hidden overflow
2 files changed, +22 -2
+2-0twench_landing_page/app/globals.css
| @@ -20,6 +20,7 @@ body { | ||
| 20 | 20 | font-family: Pixellari, Arial, Helvetica, sans-serif; |
| 21 | 21 | text-shadow: 2px 2px 0 #000, -2px -2px 0 #000, 2px -2px 0 #000, |
| 22 | 22 | -2px 2px 0 #000, 2px 0 0 #000, -2px 0 0 #000, 0 2px 0 #000, 0 -2px 0 #000; |
| 23 | + overflow-x: hidden; | |
| 23 | 24 | } |
| 24 | 25 | |
| 25 | 26 | @layer utilities { |
| @@ -38,6 +39,7 @@ body { | ||
| 38 | 39 | width: 100vw; |
| 39 | 40 | background: url("/images/burning-building-1.png") no-repeat center center; |
| 40 | 41 | background-size: cover; |
| 42 | + overflow-x: hidden; | |
| 41 | 43 | } |
| 42 | 44 | |
| 43 | 45 | .text-shadow { |
+20-2twench_landing_page/app/page.tsx
| @@ -1,13 +1,31 @@ | ||
| 1 | 1 | import Header from "@/components/Header"; |
| 2 | +import Image from "next/image"; | |
| 2 | 3 | |
| 3 | 4 | export default function Home() { |
| 4 | 5 | return ( |
| 5 | 6 | <div> |
| 6 | - <div className="landing flex flex-col"> | |
| 7 | + <div className="landing relative"> | |
| 7 | 8 | <Header /> |
| 8 | - <h1 className="text-[128px] large-text-shadow w-full text-center"> | |
| 9 | + <h1 className="text-[180px] large-text-shadow w-full text-center bottom-[480px] absolute"> | |
| 9 | 10 | $TWENCH |
| 10 | 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 | + /> | |
| 20 | + </div> | |
| 21 | + <div className="absolute bottom-[-20px] z-10 flex justify-center w-full"> | |
| 22 | + <Image | |
| 23 | + src="/images/soldier-large.png" | |
| 24 | + width={472} | |
| 25 | + height={472} | |
| 26 | + alt="Soldier" | |
| 27 | + /> | |
| 28 | + </div> | |
| 11 | 29 | </div> |
| 12 | 30 | <div></div> |
| 13 | 31 | <div></div> |