Skip to content

Commit 0eb9aea

Browse files
committed
update for mobile nav
1 parent 70a8c4f commit 0eb9aea

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

src/components/Header.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@ const Header = () => {
1010
{/* Gradient Background for the Logo and Navigation */}
1111
<div
1212
id="home"
13-
className="bg-gradient-to-b from-gray-400 to-gray-300 w-full py-24"
13+
className="bg-gradient-to-b from-gray-400 to-gray-300 w-full py-24 overflow-x-hidden"
1414
>
1515
<div className="max-w-screen-xl mx-auto px-4 flex flex-col sm:flex-row items-center sm:justify-between">
1616
{/* Logo and Tagline */}
1717
<div className="flex flex-col items-center sm:items-start">
1818
<img
1919
src={logo}
2020
alt="StacChain Logo"
21-
className="scale-150 sm:scale-150 h-28 sm:h-36 md:h-48 mb-4 ml-0 sm:ml-24 mt-12 max-w-full"
21+
className="scale-150 sm:scale-150 h-28 sm:h-36 md:h-48 mb-4 ml-0 sm:ml-24 mt-12 max-w-full mx-auto sm:mx-0"
2222
/>
2323
</div>
2424

src/components/Navbar.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,10 @@ const Navbar = () => {
3131
<div className="flex justify-between items-center h-16">
3232
{/* Logo */}
3333
<div className="flex-shrink-0">
34-
<a href="/" className="text-4xl font-bold font-comfortaa">
34+
<a
35+
href="/"
36+
className="text-2xl sm:text-4xl font-bold font-comfortaa"
37+
>
3538
<span>stac</span>
3639
<span className="text-white">chain</span>
3740
</a>

0 commit comments

Comments
 (0)