Skip to content

Commit

Permalink
feat(ux): adapt footer layout to small devices
Browse files Browse the repository at this point in the history
  • Loading branch information
mateusfg7 committed Jun 20, 2023
1 parent 088ab9e commit e6c15d9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/app/(blog)/components/footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ 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"
className="inline-flex items-end gap-px active:text-neutral-900 active:dark:text-neutral-200 hover:text-neutral-900 hover:dark:text-neutral-200"
href={href}
target="_blank"
rel="noreferrer"
Expand All @@ -18,8 +18,8 @@ export function Footer() {

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">
<div className="blog-content-w m-auto flex items-center md:justify-between leading-none">
<div className="hidden md: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 />
Expand All @@ -37,7 +37,7 @@ export function Footer() {
<ArrowIcon />
</Link>
</div>
<div className="text-dm text-neutral-400 dark:text-neutral-500">
<div className="text-sm text-center md:text-right 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{' '}
Expand Down

0 comments on commit e6c15d9

Please sign in to comment.