Skip to content

Commit

Permalink
prmier commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Bernyabreu42 committed Jan 5, 2022
0 parents commit 01a228a
Show file tree
Hide file tree
Showing 11 changed files with 5,884 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# dependencies
/node_modules
/.pnp
.pnp.js

# testing
/coverage

# next.js
/.next/
/out/

# production
/build

# misc
.DS_Store
*.pem

# debug
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# local env files
.env.local
.env.development.local
.env.test.local
.env.production.local

# vercel
.vercel
12 changes: 12 additions & 0 deletions components/Layout.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import Navbar from "./navbar";

export default function Layout({ children }) {
return (
<>
<Navbar />
<main>
{children}
</main>
</>
)
}
11 changes: 11 additions & 0 deletions components/navbar.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import Link from "next/link";

export default function Navbar() {
return (
<nav>
<Link href='/'><a>Home</a></Link>
<Link href='/users'><a>Users</a></Link>
<Link href='/posts'><a>Posts</a></Link>
</nav >
)
}
7 changes: 7 additions & 0 deletions components/tittle.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
export default function Tittle(props) {
return (
<div>
<h1>{props.children}</h1>
</div>
)
}
Loading

0 comments on commit 01a228a

Please sign in to comment.