irongit

header stays in tact on small screen

huncholanehuncholaneauthored
parent f95f193commit 89f4529d2376f5bc7452ad22457127b934d0eaa0Browse files

2 files changed, +8 -16

+4-12twench_landing_page/app/page.tsx
@@ -6,19 +6,11 @@ export default function Home() {
66 <div>
77 <div className="landing relative">
88 <Header />
9- <h1 className="text-[180px] large-text-shadow w-full text-center bottom-[480px] absolute">
10- $TWENCH
11- </h1>
12- <div className="absolute bottom-[-20px] flex justify-center w-full min-w-[1354px]">
13- <Image
14- src="/images/tank.png"
15- width={1354}
16- height={656}
17- alt="Tank"
18- className="max-w-100%"
19- />
9+ <h1 className="text-[180px] large-text-shadow w-full text-center bottom-[480px] absolute"></h1>
10+ <div className="absolute bottom-[-20px] flex justify-center max-h-[75%] w-full">
11+ <Image src="/images/tank.png" width={1354} height={656} alt="Tank" />
2012 </div>
21- <div className="absolute bottom-[-20px] z-10 flex justify-center w-full">
13+ <div className="absolute bottom-[-20px] z-10 flex justify-center max-h-[50%] w-full">
2214 <Image
2315 src="/images/soldier-large.png"
2416 width={472}
+4-4twench_landing_page/components/Header.tsx
@@ -4,8 +4,8 @@ import React from "react";
44 const Header = () => {
55 return (
66 <div className="h-32 flex justify-between">
7- <div></div>
8- <div className="w-[220px] my-auto">
7+ <div className="hidden sm:block"></div>
8+ <div className="sm:w-[220px] my-auto pl-3 sm:pl-0">
99 <Image
1010 src="/images/logo.png"
1111 alt="Twench"
@@ -41,12 +41,12 @@ const Header = () => {
4141 </a>
4242 </div>
4343 <a
44- className="p-3 border-black bg-background my-auto rounded-full border-4 text-[28px] leading-[30.52px] cursor-pointer hover:brightness-150"
44+ className="p-1 sm:p-3 border-black bg-background my-auto rounded-full border-4 text-[12px] leading-[30.52px] cursor-pointer hover:brightness-150 sm:text-[28px] mr-3 sm:mr-0"
4545 href=""
4646 >
4747 BUY $TWENCH
4848 </a>
49- <div></div>
49+ <div className="hidden sm:block"></div>
5050 </div>
5151 );
5252 };