diff --git a/public/produce.jpg b/public/produce.jpg index b10b25d..8a17226 100644 Binary files a/public/produce.jpg and b/public/produce.jpg differ diff --git a/public/produce_2.jpg b/public/produce_2.jpg new file mode 100644 index 0000000..9a91f50 Binary files /dev/null and b/public/produce_2.jpg differ diff --git a/src/app/page.tsx b/src/app/page.tsx index 17a319d..cfa6533 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -18,14 +18,31 @@ export default function Home() { {/* Referral Form */} -
- Fresh Produce +
+ Fresh Produce
{/* Why Refer & Referral History */}
+
+ Fresh Produce +
+
+

Why Should I Refer?

Each new member brings fresh ideas, helps us offer more events, and keeps our shelves stocked with an even @@ -37,9 +54,6 @@ export default function Home() { bottles of wine, engraved bricks, and more.

-
-

Referral History

-
); diff --git a/src/components/Header/Header.module.css b/src/components/Header/Header.module.css index 9138a74..c03d132 100644 --- a/src/components/Header/Header.module.css +++ b/src/components/Header/Header.module.css @@ -1,15 +1,13 @@ -/* Header.module.css */ .header { width: 100%; - height: 8vw; /* Adjust height as needed */ + height: 8vw; background-color: white; display: flex; align-items: center; - justify-content: flex-start; /* Align logo to the left */ - /* padding: 0 30px; Adjust horizontal padding as needed */ + justify-content: flex-start; padding: 5vh; padding-bottom: 5vh; - box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); /* Optional, for a subtle shadow */ + box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); } .logoContainer { @@ -19,6 +17,29 @@ .logo { height: 4vw; - min-height: 60px; /* Adjust logo size as needed */ + min-height: 60px; width: auto; } + +@media (max-width: 768px) { + .header { + background-image: linear-gradient(rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.5)), url("/produce.jpg"); + height: auto; + background-size: 100% auto; + background-repeat: no-repeat; + background-position: center; + background-color: unset; + padding: 60px 20px; + box-shadow: none; + } + + .logo { + height: auto; + max-height: 50px; + width: auto; + } + + .logoContainer { + width: 100%; + } +} diff --git a/src/components/Header/Header.tsx b/src/components/Header/Header.tsx index c4b1d40..0c62927 100644 --- a/src/components/Header/Header.tsx +++ b/src/components/Header/Header.tsx @@ -8,7 +8,7 @@ const Header: React.FC = () => {
{/* Logo */} Logo )}
-
+
{prospects.map((prospect, index) => (
- - handleProspectChange(index, "firstName", e.target.value)} - placeholder="Prospect's First Name" - className={styles.input} - /> - - handleProspectChange(index, "lastName", e.target.value)} - placeholder="Prospect's Last Name" - className={styles.input} - /> - - handleProspectChange(index, "email", e.target.value)} - placeholder="Prospect's Email Address" - className={styles.input} - /> +
+
+ + handleProspectChange(index, "firstName", e.target.value)} + placeholder="Enter First Name" + className={styles.input} + /> + + handleProspectChange(index, "lastName", e.target.value)} + placeholder="Enter Last Name" + className={styles.input} + /> +
+
+ + handleProspectChange(index, "email", e.target.value)} + placeholder="Enter Referee Email Address" + className={styles.input} + /> +
+
))}
- + + {errorMessage &&

{errorMessage}

} diff --git a/src/styles/page.module.css b/src/styles/page.module.css index c0d17c7..877248f 100644 --- a/src/styles/page.module.css +++ b/src/styles/page.module.css @@ -34,13 +34,11 @@ .hero { display: flex; flex-wrap: wrap; - align-items: stretch; - justify-content: space-between; width: 100%; background-color: #fadfc4; box-sizing: border-box; - padding-left: 2rem; /* keep only left padding */ - padding-right: 2rem; /* remove right padding */ + padding-left: 2rem; + padding-right: 2rem; margin: 0; gap: 0; /* remove the gap so there's no forced spacing */ } @@ -64,26 +62,35 @@ font-size: 1.9rem; color: #831002; margin-bottom: 0.5rem; + font-size: clamp(0.8rem, 4vw, 2.5rem); } .heroText h2 { font-family: "Komika Axis", sans-serif; font-size: 1.5rem; color: #523018; + font-size: clamp(0.8rem, 3.8vw, 2.5rem); } -.heroImage { - flex: 1 1 600px; - display: flex; - justify-content: flex-end; - align-items: center; - margin: 0; -} +/* .heroImage { + flex: 1 1 300px; + display: none; + width: 100%; + height: auto; + object-fit: cover; +} */ -.heroImage img { +.heroImageWrapper { + position: relative; + flex: 1 1 300px; width: 100%; - max-width: 600px; height: auto; + min-height: 400px; /*ensures some height so image isn't 0px tall */ + max-width: 900px; +} + +.heroImage { + display: none; object-fit: cover; } @@ -94,54 +101,40 @@ align-items: stretch; /* Ensures children fill vertically */ width: 100%; box-sizing: border-box; - gap: 2rem; } .leftSection { - flex: 1 1 300px; - background-color: #831002; - color: white; - padding: 2rem; - font-family: "Montserrat", sans-serif; - display: flex; + display: none; + flex: 2 1 470px; flex-direction: column; justify-content: center; } -.leftSection h2 { - font-size: 1.8rem; - font-family: "Komika Axis", sans-serif; +.produceImageWrapper { + position: relative; + width: 100%; + height: 100%; +} + +.produceImage { + display: none; + object-fit: cover; } .rightSection { - flex: 2 1 400px; - background-color: white; + flex: 1 1 300px; + background-color: #831002; + color: white; padding: 2rem; + font-family: "Montserrat", sans-serif; display: flex; flex-direction: column; justify-content: center; } -.referralHistory { - width: 100%; - border-collapse: collapse; -} - -.referralHistoryTitle { +.rightSection h2 { + font-size: 1.8rem; font-family: "Komika Axis", sans-serif; - color: #831002; -} - -.referralHistory th, -.referralHistory td { - border: 1px solid #3e1c00; - padding: 10px; - text-align: left; -} - -.referralHistory th { - background-color: #f5d7b5; - color: #3e1c00; } .section { @@ -184,13 +177,61 @@ font-size: 1rem; } +@media (max-width: 768px) { + .heroImageWrapper { + display: none; + } + .leftSection { + display: none; + } + + .rightSection { + display: flex; + flex-direction: column; + } + .rightSection h2 { + font-size: 1.4rem; + font-family: "Komika Axis", sans-serif; + color: white; + + margin-bottom: 0.8rem; + margin-top: 1.5rem; + } + + .rightSection h2:first-of-type { + margin-top: 0; + } + + .rightSection p { + font-size: 0.9rem; + color: white; + font-family: "Montserrat", sans-serif; + margin-bottom: 1rem; + + margin-top: 0; + } + + .rightSection p:last-of-type { + margin-bottom: 0; + } +} + /* when it gets bigger than mobile view */ -@media (min-width: 1065px) { +@media (min-width: 768px) { .hero { padding-right: 0; } .heroImage { - padding-left: 8rem; + display: flex; + padding-left: 6rem; + } + + .produceImage { + display: flex; + } + + .leftSection { + display: flex; } } @@ -203,9 +244,4 @@ .heroText h2 { font-size: 2rem; } - - .leftSection, - .rightSection { - padding: 3rem; - } }