diff --git a/src/components/atoms/Link.astro b/src/components/atoms/Link.astro index 1312ff4..871d9d0 100644 --- a/src/components/atoms/Link.astro +++ b/src/components/atoms/Link.astro @@ -12,46 +12,10 @@ const currentPath = new URL(Astro.url).pathname.split('/')[1]; \ No newline at end of file diff --git a/src/components/atoms/MenuLink.astro b/src/components/atoms/MenuLink.astro new file mode 100644 index 0000000..1312ff4 --- /dev/null +++ b/src/components/atoms/MenuLink.astro @@ -0,0 +1,57 @@ +--- +interface Props { + to: string +} + +const { to } = Astro.props; +const currentPath = new URL(Astro.url).pathname.split('/')[1]; +--- + + + + + + \ No newline at end of file diff --git a/src/components/footer.astro b/src/components/footer.astro new file mode 100644 index 0000000..c31a16a --- /dev/null +++ b/src/components/footer.astro @@ -0,0 +1,19 @@ +--- +import Link from "./atoms/Link.astro" +--- + + + + \ No newline at end of file diff --git a/src/components/nav.astro b/src/components/nav.astro index 756b112..ad06721 100644 --- a/src/components/nav.astro +++ b/src/components/nav.astro @@ -1,7 +1,7 @@ --- import { Icon } from 'astro-icon/components'; import Button from './atoms/Button.astro'; -import Link from './atoms/Link.astro'; +import Link from './atoms/MenuLink.astro'; ---