irongit

have video

huncholanehuncholaneauthored
parent e627902commit cfc20e1bd6a0b629055316801cf23bc1c7093f74Browse files

5 files changed, +26 -0

+2-0twench_landing_page/app/page.tsx
@@ -3,6 +3,7 @@ import Banner from "@/components/Banner";
33 import Header from "@/components/Header";
44 import LandingSection from "@/components/LandingSection";
55 import MotivationSection from "@/components/MotivationSection";
6+import VideoSection from "@/components/VideoSection";
67
78 export default function Home() {
89 return (
@@ -12,6 +13,7 @@ export default function Home() {
1213 <Banner />
1314 <MotivationSection />
1415 <AboutSection />
16+ {/* <VideoSection /> */}
1517 </div>
1618 );
1719 }
+2-0twench_landing_page/components/VideoSection/VideoSection.css
@@ -0,0 +1,2 @@
1+.VideoSection {
2+}
+20-0twench_landing_page/components/VideoSection/VideoSection.tsx
@@ -0,0 +1,20 @@
1+import React from "react";
2+import "./VideoSection.css";
3+
4+const VideoSection: React.FC = () => {
5+ return (
6+ <div className="VideoSection relative w-full">
7+ <div className="Preview absolute left-1/2 transform -translate-x-1/2 -rotate-[20] w-96 h-32">
8+ <div className="PlayButton absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2 w-16 h-16 bg-white rounded-full flex justify-center items-center">
9+ <div className="Triangle w-6 h-6 border-t-2 border-r-2 border-black transform rotate-45"></div>
10+ </div>
11+ </div>
12+ <video className="hidden" controls>
13+ <source src="/videos/v2.mp4" type="video/mp4" />
14+ Your browser does not support the video tag.
15+ </video>
16+ </div>
17+ );
18+};
19+
20+export default VideoSection;
+2-0twench_landing_page/components/VideoSection/index.ts
@@ -0,0 +1,2 @@
1+import VideoSection from './VideoSection';
2+export default VideoSection;
+0-0twench_landing_page/public/videos/v2.mp4

Binary file changed.