From 12dc513127f20ac3f774fa26838258b84d0dd798 Mon Sep 17 00:00:00 2001
From: Joey Wu <37964203+thermosento@users.noreply.github.com>
Date: Wed, 25 Dec 2024 03:00:54 -0500
Subject: [PATCH] landing page fix test
---
public/about.mp4 | 3 --
public/windmill.mp4 | 3 --
src/pages/LandingPage.css | 95 ++++++++++++++++++++-------------------
src/pages/LandingPage.js | 40 ++++++++++-------
4 files changed, 74 insertions(+), 67 deletions(-)
delete mode 100644 public/about.mp4
delete mode 100644 public/windmill.mp4
diff --git a/public/about.mp4 b/public/about.mp4
deleted file mode 100644
index 02fabb8..0000000
--- a/public/about.mp4
+++ /dev/null
@@ -1,3 +0,0 @@
-version https://git-lfs.github.com/spec/v1
-oid sha256:0fd6d30d7a3a7126f7d05d5e9e5a469fee919d4fd52b6cb649dcf76014a1f190
-size 177482957
diff --git a/public/windmill.mp4 b/public/windmill.mp4
deleted file mode 100644
index b1b6ac5..0000000
--- a/public/windmill.mp4
+++ /dev/null
@@ -1,3 +0,0 @@
-version https://git-lfs.github.com/spec/v1
-oid sha256:3e909a5848ba5aff44133a66b9517132a0e2c561b605a1c63261e44ce356d2d5
-size 110871611
diff --git a/src/pages/LandingPage.css b/src/pages/LandingPage.css
index 4ea5cbe..2f15008 100644
--- a/src/pages/LandingPage.css
+++ b/src/pages/LandingPage.css
@@ -4,27 +4,38 @@ body {
font-family: 'Montserrat', sans-serif;
font-weight: 500;
color: #002657;
+ margin: 0; /* Good practice to reset default margin */
+ padding: 0;
}
+/* Hero Section */
.hero-section {
text-align: center;
- padding: 40px 20px;
+ position: relative;
padding-top: 180px;
padding-bottom: 180px;
- position: relative;
overflow: hidden;
}
-.hero-video {
+/* Container holding the iframe video */
+.hero-video-container {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
- object-fit: cover;
+ overflow: hidden;
z-index: -2;
}
+/* Make the iframe fill the container */
+.hero-video {
+ width: 100%;
+ height: 100%;
+ border: none;
+}
+
+/* Overlay for the dark tint */
.hero-overlay {
position: absolute;
top: 0;
@@ -35,25 +46,16 @@ body {
z-index: -1;
}
+/* Main hero text content */
.hero-content {
color: white;
position: relative;
z-index: 1;
}
-.hero-section {
- position: relative;
-}
-
.title {
font-size: 3rem;
- margin: 0px 0;
- font-family: 'Roboto', sans-serif;
-}
-
-.heading {
- font-size: 2.2rem;
- margin: 0px 0;
+ margin: 0;
font-family: 'Roboto', sans-serif;
}
@@ -62,6 +64,21 @@ body {
font-family: 'Montserrat', sans-serif;
}
+/* Scroll arrow */
+.scroll-arrow {
+ width: 35px;
+ height: 35px;
+ cursor: pointer;
+ display: block;
+ margin: 0px auto 0;
+ transition: transform 0.2s ease;
+}
+
+.scroll-arrow:hover {
+ transform: translateY(5px);
+}
+
+/* CTA Button */
.cta-button {
display: inline-block;
text-align: center;
@@ -81,21 +98,10 @@ body {
}
.cta-button:hover {
- background-color: #306dc7; /* Optional: Add hover effect */
-}
-
-.cta-button:focus {
- outline: none; /* Removes focus outline for a cleaner look */
-}
-
-.section hr {
- border: 0;
- height: 1px;
- background-color: #e0e0e0;
- width: 50%;
- margin: 40px auto; /* Center horizontally */
+ background-color: #306dc7;
}
+/* Main content sections */
.main-content {
display: flex;
flex-direction: column;
@@ -105,26 +111,37 @@ body {
padding-top: 3rem;
}
+/* Each section block */
.section {
width: 100%;
padding: 1rem 0;
box-sizing: border-box;
- margin: 0; /* Remove horizontal margin */
+ margin: 0;
display: flex;
flex-direction: column;
align-items: center;
- justify-content: center; /* Center content vertically */
+ justify-content: center;
+}
+
+.section hr {
+ border: 0;
+ height: 1px;
+ background-color: #e0e0e0;
+ width: 50%;
+ margin: 40px auto;
}
.section .content {
width: 50%;
margin: 0 auto;
text-align: left;
- padding: 0 20px; /* Add horizontal padding */
+ padding: 0 20px;
}
.section .content .heading {
font-family: 'Roboto', sans-serif;
+ font-size: 2.2rem;
+ margin: 0;
}
.section .content p {
@@ -140,6 +157,7 @@ body {
margin-bottom: 10px;
}
+/* Countdown styles (optional media queries) */
@media screen and (min-width: 550px) {
.countdown .content {
gap: 30px;
@@ -171,20 +189,7 @@ body {
}
}
-.scroll-arrow {
- width: 35px;
- height: 35px;
- cursor: pointer;
- display: block;
- margin: 0px auto 0; /* Reduce top margin to 15px */
- transition: transform 0.2s ease;
-}
-
-.scroll-arrow:hover {
- transform: translateY(5px);
-}
-
.countdown {
margin-bottom: 0;
color: #002657;
-}
+}
\ No newline at end of file
diff --git a/src/pages/LandingPage.js b/src/pages/LandingPage.js
index 7e47008..a060c98 100644
--- a/src/pages/LandingPage.js
+++ b/src/pages/LandingPage.js
@@ -10,12 +10,22 @@ const LandingPage = () => {
return (
+
+ {/* Hero Section */}
+ {/* Main Content */}
@@ -79,10 +90,10 @@ const LandingPage = () => {
Prizes
- After three rounds of selection, winners will receive ____ for the
- ____ track and ____ for the ____ school track to support their
- start-up. Additionally, winners will have the opportunity to benefit
- from professional advising, mentorship, and internship opportunities.
+ After three rounds of selection, winners will receive ____ for the
+ ____ track and ____ for the ____ school track to support their
+ start-up. Additionally, winners will have the opportunity to benefit
+ from professional advising, mentorship, and internship opportunities.
@@ -95,9 +106,9 @@ const LandingPage = () => {
How to Participate
- This competition is for students pursuing a high school diploma or
- bachelor’s degree who don’t have experience in startups
- or climate change. To participate, follow these steps:
+ This competition is for students pursuing a high school diploma or
+ bachelor’s degree who don’t have experience in startups
+ or climate change. To participate, follow these steps:
- Sign up by clicking the "Register Now" button.
@@ -115,18 +126,15 @@ const LandingPage = () => {
-
-
);
};
-export default LandingPage;
+export default LandingPage;
\ No newline at end of file