irongit

added banner

huncholanehuncholaneauthored
parent 5f77909commit 051c86c500c6fa63aaaf2721af733b2e6263117aBrowse files

5 files changed, +34 -1

+2-0twench_landing_page/app/page.tsx
@@ -1,3 +1,4 @@
1+import Banner from "@/components/Banner";
12 import Header from "@/components/Header";
23 import LandingSection from "@/components/LandingSection";
34 import Image from "next/image";
@@ -7,6 +8,7 @@ export default function Home() {
78 <div>
89 <Header />
910 <LandingSection />
11+ <Banner />
1012 </div>
1113 );
1214 }
+17-0twench_landing_page/components/Banner/Banner.css
@@ -0,0 +1,17 @@
1+.Banner {
2+ @apply w-full px-[5%];
3+}
4+.Banner .Picture {
5+ background: url("/images/banner.png") repeat-x center center;
6+ @apply h-16;
7+ animation: scrollBackground 10s linear infinite;
8+}
9+
10+@keyframes scrollBackground {
11+ from {
12+ background-position: 0 center;
13+ }
14+ to {
15+ background-position: -100% center;
16+ }
17+}
+12-0twench_landing_page/components/Banner/Banner.tsx
@@ -0,0 +1,12 @@
1+import React from "react";
2+import "./Banner.css";
3+
4+const Banner: React.FC = () => {
5+ return (
6+ <div className="Banner">
7+ <div className="Picture"></div>
8+ </div>
9+ );
10+};
11+
12+export default Banner;
+2-0twench_landing_page/components/Banner/index.ts
@@ -0,0 +1,2 @@
1+import Banner from './Banner';
2+export default Banner;
+1-1twench_landing_page/components/LandingSection/LandingSection.css
@@ -23,7 +23,7 @@
2323 .LandingSection .Title {
2424 @apply text-[150px] text-center w-full absolute md:top-32 leading-none;
2525 @apply md:text-[150px] xs:text-[100px] text-[69px];
26- @apply md:text-shadow-lg xs:text-shadow-md text-shadow;
26+ @apply md:text-shadow-lg xs:text-shadow-md text-shadow-sm;
2727 @apply top-32;
2828 }
2929