generated from mateusfg7/nextjs-setup
-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(ui): create Footer component for blog section
- Loading branch information
Showing
2 changed files
with
53 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
import { ReactNode } from 'react' | ||
import NextLink from 'next/link' | ||
import { ArrowUpRight } from '@/shared/lib/phosphor-icons' | ||
|
||
export function Footer() { | ||
const Link = ({ href, children }: { href: string; children: ReactNode }) => ( | ||
<NextLink | ||
className="inline-flex items-end gap-px hover:text-neutral-900 hover:dark:text-neutral-200" | ||
href={href} | ||
target="_blank" | ||
rel="noreferrer" | ||
> | ||
{children} | ||
</NextLink> | ||
) | ||
|
||
const ArrowIcon = () => <ArrowUpRight className="text-xs" /> | ||
|
||
return ( | ||
<div className="mt-28 border-t border-neutral-300/30 py-11 dark:border-neutral-800/20"> | ||
<div className="blog-content-w m-auto flex items-center justify-between leading-none"> | ||
<div className="flex gap-4 text-neutral-500 dark:text-neutral-400"> | ||
<Link href="https://github.com/mateusfg7/mfg-b/blob/main/LICENSE"> | ||
<span>License</span> | ||
<ArrowIcon /> | ||
</Link> | ||
<Link href="/sitemap.xml"> | ||
<span>Sitemap</span> | ||
<ArrowIcon /> | ||
</Link> | ||
<Link href="/feed"> | ||
<span>RSS</span> | ||
<ArrowIcon /> | ||
</Link> | ||
<Link href="https://github.com/mateusfg7/mfg-b"> | ||
<span>Github</span> | ||
<ArrowIcon /> | ||
</Link> | ||
</div> | ||
<div className="text-dm text-neutral-400 dark:text-neutral-500"> | ||
Built with <Link href="https://nextjs.org/">Next.js</Link>,{' '} | ||
<Link href="https://mdxjs.com/">MDX</Link>,{' '} | ||
<Link href="https://tailwindcss.com/">Tailwindcss</Link> and{' '} | ||
<Link href="https://www.contentlayer.dev/">Contentlayer</Link> by{' '} | ||
<Link href="https://github.com/mateusfg7">Mateus Felipe</Link>. | ||
</div> | ||
</div> | ||
</div> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters