Skip to content

Commit

Permalink
support very small screen sizes
Browse files Browse the repository at this point in the history
  • Loading branch information
Highfire1 committed Jan 19, 2025
1 parent 56017b0 commit 049b410
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 18 deletions.
2 changes: 1 addition & 1 deletion src/components/footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const Footer = () => {
<footer className="flex flex-col items-center justify-center">

{/* show links if sidebar is hidden because we are on mobile */}
<div className="sm:hidden flex">
<div className="sm:hidden flex flex-wrap justify-center items-center">

<Link href="https://www.linkedin.com/in/andersontseng/" className="p-2 text-gray-500 dark:hover:text-gray-200 hover:text-gray-900">Linkedin</Link>

Expand Down
35 changes: 18 additions & 17 deletions src/components/header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,24 +4,25 @@ const Header = () => {
return (
<header className=" ">
<nav className="w-full mx-auto flex items-center justify-between ">

<div className="hidden min-[100px]:block justify-start">
<Link href="/" className="text-xl font-bold text-gray-500">
Anderson Tseng
</Link>
</div>

<div className="justify-start">
<Link href="/" className="text-xl font-bold text-gray-500">
<span className="min-[300px]:hidden">AT</span>
<span className="hidden min-[300px]:inline">Anderson Tseng</span>
</Link>
</div>

<div className="flex sm:gap-4 justify-end grow max-[99px]:w-full">
<Link href="/" className="p-2 text-gray-500 dark:hover:text-gray-200 hover:text-gray-900">
Home
</Link>
<Link href="/blog" className="p-2 text-gray-500 dark:hover:text-gray-200 hover:text-gray-900">
Blog
</Link>
{/* <Link href="/contact" className="text-gray-500 hover:text-gray-900">
Contact
</Link> */}
</div>
<div className="flex sm:gap-4 justify-end grow max-[99px]:w-full">
<Link href="/" className="p-2 text-gray-500 dark:hover:text-gray-200 hover:text-gray-900">
Home
</Link>
<Link href="/blog" className="p-2 text-gray-500 dark:hover:text-gray-200 hover:text-gray-900">
Blog
</Link>
{/* <Link href="/contact" className="text-gray-500 hover:text-gray-900">
Contact
</Link> */}
</div>
</nav>
</header>
)
Expand Down

0 comments on commit 049b410

Please sign in to comment.