Skip to content

Commit

Permalink
fix: add link
Browse files Browse the repository at this point in the history
  • Loading branch information
N0N4T0 committed May 7, 2024
1 parent 59977a9 commit 3d2b8e5
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 10 deletions.
10 changes: 3 additions & 7 deletions src/app/sobre/page.tsx
Original file line number Diff line number Diff line change
@@ -1,14 +1,10 @@
import { Metadata } from 'next';

export const metadata: Metadata = {
title: 'Sobre',
description: 'Essa é a página sobre',
};

export default function SobrePage() {
return (
<main>
<h2>Sobre</h2>
<h2 style={{ margin: '1600px 0' }} id="empresa">
A Empresa
</h2>
</main>
);
}
20 changes: 17 additions & 3 deletions src/components/menu.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,23 @@
import Link from 'next/link';

export default function Menu() {
return (
<ul className="menu">
<li>Home</li>
<li>Sobre</li>
<li>Contato</li>
<li>
<Link href="/" prefetch={true}>
Home
</Link>
</li>
<li>
<Link href="/sobre#empresa" scroll={false} prefetch={true}>
Sobre
</Link>
</li>
<li>
<Link href="/contato" prefetch={true}>
Contato
</Link>
</li>
</ul>
);
}

0 comments on commit 3d2b8e5

Please sign in to comment.