+
-
- +
-
Invite
+
+ +
+
+
{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;
- }
}