Skip to content

Commit

Permalink
adicionando navbar e categorybar ao layout
Browse files Browse the repository at this point in the history
  • Loading branch information
mateusarcedev committed Jun 6, 2024
1 parent d722b37 commit 55fa831
Show file tree
Hide file tree
Showing 14 changed files with 23 additions and 74 deletions.
6 changes: 0 additions & 6 deletions app/algos/page.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,9 @@
import Card from "@/components/Card";
import CategoryBar from "@/components/CategoryBar";
import Navbar from "@/components/Navbar";

export default function Home() {
return (
<>
<Navbar />
<main className="bg-background flex flex-col items-center w-full ">
<div className="w-4/5 flex justify-center items-center">
<CategoryBar />
</div>
<div className="w-4/5 flex justify-center items-center mt-4 gap-4 flex-wrap mb-5">
<Card
url="https://www.beecrowd.com.br/judge/pt/login"
Expand Down
7 changes: 1 addition & 6 deletions app/animations/page.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,10 @@
import Card from "@/components/Card";
import CategoryBar from "@/components/CategoryBar";
import Navbar from "@/components/Navbar";


export default function Home() {
return (
<>
<Navbar />
<main className="bg-background flex flex-col items-center w-full ">
<div className="w-4/5 flex justify-center items-center">
<CategoryBar />
</div>
<div className="w-4/5 flex justify-center items-center mt-4 gap-4 flex-wrap mb-5">
<Card
url="https://scrollrevealjs.org/"
Expand Down
6 changes: 0 additions & 6 deletions app/apis/page.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,9 @@
import Card from "@/components/Card";
import CategoryBar from "@/components/CategoryBar";
import Navbar from "@/components/Navbar";

export default function Home() {
return (
<>
<Navbar />
<main className="bg-background flex flex-col items-center w-full ">
<div className="w-4/5 flex justify-center items-center">
<CategoryBar />
</div>
<div className="w-4/5 flex justify-center items-center mt-4 gap-4 flex-wrap mb-5">
<Card
url="https://dummyjson.com/"
Expand Down
9 changes: 2 additions & 7 deletions app/blogs/page.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,11 @@
import Card from "@/components/Card";
import CategoryBar from "@/components/CategoryBar";
import Navbar from "@/components/Navbar";


export default function Home() {
return (
<>
<Navbar />
<main className="bg-background flex flex-col items-center w-full ">
<div className="w-4/5 flex justify-center items-center">
<CategoryBar />
</div>

<main className="bg-background flex flex-col items-center w-full ">
<div className="w-4/5 flex justify-center items-center m-4 gap-4 flex-wrap mb-5">
<Card
url="https://medium.com/"
Expand Down
8 changes: 1 addition & 7 deletions app/colors/page.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,10 @@
import Card from "@/components/Card";
import CategoryBar from "@/components/CategoryBar";
import Navbar from "@/components/Navbar";


export default function Home() {
return (
<>
<Navbar />
<main className="bg-background flex flex-col items-center w-full ">
<div className="w-4/5 flex justify-center items-center">
<CategoryBar />
</div>

<div className="w-4/5 flex justify-center items-center m-4 gap-4 flex-wrap mb-5">
<Card
url="https://colorhunt.co/"
Expand Down
6 changes: 0 additions & 6 deletions app/fonts/page.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,9 @@
import Card from "@/components/Card";
import CategoryBar from "@/components/CategoryBar";
import Navbar from "@/components/Navbar";

export default function Home() {
return (
<>
<Navbar />
<main className="bg-background flex flex-col items-center w-full ">
<div className="w-4/5 flex justify-center items-center">
<CategoryBar />
</div>
<div className="w-4/5 flex justify-center items-center mt-4 gap-4 flex-wrap mb-5">
<Card
url="https://www.1001fonts.com/"
Expand Down
7 changes: 1 addition & 6 deletions app/icons/page.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,10 @@
import Card from "@/components/Card";
import CategoryBar from "@/components/CategoryBar";
import Navbar from "@/components/Navbar";


export default function Home() {
return (
<>
<Navbar />
<main className="bg-background flex flex-col items-center w-full ">
<div className="w-4/5 flex justify-center items-center">
<CategoryBar />
</div>

<div className="w-4/5 flex justify-center items-center m-4 gap-4 flex-wrap mb-5">
<Card
Expand Down
4 changes: 0 additions & 4 deletions app/ilustrations/page.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,7 @@ import Navbar from "@/components/Navbar";
export default function Home() {
return (
<>
<Navbar />
<main className="bg-background flex flex-col items-center w-full ">
<div className="w-4/5 flex justify-center items-center">
<CategoryBar />
</div>
<div className="w-4/5 flex justify-center items-center mt-4 gap-4 flex-wrap mb-5">
<Card
url="https://blush.design/pt"
Expand Down
7 changes: 1 addition & 6 deletions app/inspirationUI/page.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,10 @@
import Card from "@/components/Card";
import CategoryBar from "@/components/CategoryBar";
import Navbar from "@/components/Navbar";


export default function Home() {
return (
<>
<Navbar />
<main className="bg-background flex flex-col items-center w-full ">
<div className="w-4/5 flex justify-center items-center">
<CategoryBar />
</div>
<div className="w-4/5 flex justify-center items-center mt-4 gap-4 flex-wrap mb-5">
<Card
url="https://uijar.com/"
Expand Down
15 changes: 13 additions & 2 deletions app/layout.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
import './globals.css';
import { Inter } from 'next/font/google';
import Head from 'next/head';
import CategoryBar from "@/components/CategoryBar";
import Navbar from "@/components/Navbar";
import Footer from "@/components/Footer";



const inter = Inter({ subsets: ['latin'] });

export const metadata = {
openGraph: {
Expand Down Expand Up @@ -53,7 +57,14 @@ export default function RootLayout({ children }) {
<meta property="og:image:alt" content="Image preview" />
<meta property="og:type" content="website" />
</Head>
<body className={inter.className}>{children}</body>
<body className="bg-[#111111] h-full ">
<Navbar />
<div className='flex items-center justify-center'>
<CategoryBar />
</div>
{children}
{/* <Footer /> */}
</body>
</html>
);
}
12 changes: 3 additions & 9 deletions app/page.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,12 @@
import CategoryBar from "@/components/CategoryBar";
import Footer from "@/components/Footer";
import Navbar from "@/components/Navbar";

export default function Home() {
return (
<div className="bg-background h-full flex flex-col">
<Navbar />


<main className="flex flex-col items-center px-24 py-16 gap-12 text-[#D9D9D9]">
<CategoryBar />

<div className="flex flex-col gap-4 items-center">
<h1 className="text-4xl">Sobre o projeto 🧑🏽‍💻</h1>
<h1 className="text-4xl md:text-2xl sm:text-xl">Sobre o projeto 🧑🏽‍💻</h1>
<p className="text-xl">
Este é um projeto criado para ajudar programadores
iniciantes a encontrar ferramentas úteis para o
Expand All @@ -33,8 +29,6 @@ export default function Home() {
</p>
</div>
</main>

<Footer />
</div>
);
}
4 changes: 0 additions & 4 deletions app/portfolios/page.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,7 @@ import Navbar from "@/components/Navbar";
export default function Home() {
return (
<>
<Navbar />
<main className="bg-background flex flex-col items-center w-full ">
<div className="w-4/5 flex justify-center items-center">
<CategoryBar />
</div>
<div className="w-4/5 flex justify-center items-center mt-4 gap-4 flex-wrap mb-5">
<Card
url="https://iuricode.com/"
Expand Down
4 changes: 0 additions & 4 deletions app/tools/page.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,7 @@ import Navbar from "@/components/Navbar";
export default function Home() {
return (
<>
<Navbar />
<main className="bg-background flex flex-col items-center w-full ">
<div className="w-4/5 flex justify-center items-center">
<CategoryBar />
</div>

<div className="w-4/5 flex justify-center items-center m-4 gap-4 flex-wrap">
<Card
Expand Down
2 changes: 1 addition & 1 deletion components/CategoryBar.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import Category from "./Category";

export default function CategoryBar() {
return (
<div className="bg-white w-full h-auto rounded-lg flex items-center justify-between p-5 gap-2 overflow-x-auto">
<div className="bg-white w-4/5 h-auto rounded-lg flex items-center justify-between p-5 gap-2 overflow-x-auto">
<Category url="/algos" title="Algoritmos" />
<Category url="/apis" title="API's" />
<Category url="/animations" title="Animações" />
Expand Down

0 comments on commit 55fa831

Please sign in to comment.