From 46356b78ede4fe6a0baa96488d3c14890eef9601 Mon Sep 17 00:00:00 2001 From: Lisa Chen Date: Sat, 7 Mar 2026 19:37:19 +0000 Subject: [PATCH 1/4] feat(landing): landing page stripe mock hero --- src/components/content/LandingHero.astro | 158 +++++++++++++++++++++++ src/pages/index.astro | 2 + 2 files changed, 160 insertions(+) create mode 100644 src/components/content/LandingHero.astro diff --git a/src/components/content/LandingHero.astro b/src/components/content/LandingHero.astro new file mode 100644 index 0000000..fb76aab --- /dev/null +++ b/src/components/content/LandingHero.astro @@ -0,0 +1,158 @@ +--- +const { + eyebrow = "UBC Agrobot", + title = "Robotics for agriculture", + subtitle = "We design and build field-ready systems—perception, autonomy, and real-world deployment.", + primaryCta = { label: "Get involved", href: "/recruitment" }, + secondaryCta = { label: "Explore projects", href: "/projects" }, + rightImage = "/landing-hero-card.png", // optional (place in /public) +} = Astro.props; +--- + +
+ +
+
+
+
+ + +
+
+
+
+ +
+
+ +
+

+ {eyebrow} +

+ +

+ {title} +

+ +

+ {subtitle} +

+ + + +

+ Build • Test • Deploy • Iterate +

+
+ + +
+
+
+
+ +
+
+ + + + Agrobot +
+ +
+ +
+
+
+
+
+
+ + +
diff --git a/src/pages/index.astro b/src/pages/index.astro index e47087c..a5031a2 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -1,11 +1,13 @@ --- import Welcome from "../components/Welcome.astro"; import Layout from "../layouts/Layout.astro"; +import LandingHero from "../components/content/LandingHero.astro"; // Welcome to Astro! Wondering what to do next? Check out the Astro documentation at https://docs.astro.build // Don't want to use any of this? Delete everything in this file, the `assets`, `components`, and `layouts` directories, and start fresh. --- + From eb66b0f413e3e8fba3ab8c79a8329d919613b0b9 Mon Sep 17 00:00:00 2001 From: Lisa Chen Date: Sat, 7 Mar 2026 20:25:27 +0000 Subject: [PATCH 2/4] feat(landing): fix stripe and add dashboard --- src/components/content/LandingHero.astro | 126 ++++++++++++++++++++--- src/pages/index.astro | 5 +- 2 files changed, 112 insertions(+), 19 deletions(-) diff --git a/src/components/content/LandingHero.astro b/src/components/content/LandingHero.astro index fb76aab..0f73ccf 100644 --- a/src/components/content/LandingHero.astro +++ b/src/components/content/LandingHero.astro @@ -5,12 +5,10 @@ const { subtitle = "We design and build field-ready systems—perception, autonomy, and real-world deployment.", primaryCta = { label: "Get involved", href: "/recruitment" }, secondaryCta = { label: "Explore projects", href: "/projects" }, - rightImage = "/landing-hero-card.png", // optional (place in /public) } = Astro.props; --- -
- +
-
@@ -28,7 +25,7 @@ const {
- +

{eyebrow} @@ -65,7 +62,7 @@ const {

- +
+
@@ -83,17 +81,114 @@ const { AgrobotAgrobot Dashboard
-
- +
+ +
+
+
+ + +
+
+
+
+
+
+ + +
+ + crop + +
+ +
+ + weed + +
+ +
+ + row + +
+ + +
+ Live vision +
+
+ + +
+
+

Mode

+

+ Autonomous +

+
+ +
+

Battery

+

92%

+
+ +
+

+ Detected crops +

+

67

+
+ +
+

Path status

+

+ On track +

+
+
+ + +
+
+

+ System health +

+

Nominal

+
+ +
+ + Online +
+
@@ -109,12 +204,9 @@ const { transform: rotate(-8deg); border-radius: 999px; opacity: 0.95; - background-size: 240% 240%; background-position: 0% 50%; animation: agrobotGradientMove 10s ease-in-out infinite; - - /* Agrobot palette: leaf → teal → sky → lime */ background-image: linear-gradient( 115deg, #22c55e 0%, diff --git a/src/pages/index.astro b/src/pages/index.astro index a5031a2..288205c 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -8,6 +8,7 @@ import LandingHero from "../components/content/LandingHero.astro"; --- - - +
+ +
From 3d156ec0c55c7a7d16b07b7acb7fb2f4d0aba2a0 Mon Sep 17 00:00:00 2001 From: Lisa Chen Date: Sat, 7 Mar 2026 20:36:38 +0000 Subject: [PATCH 3/4] feat(landing): add comments to hero for better maintainabiliyy --- src/components/content/LandingHero.astro | 105 ++++++++++++++++++++--- 1 file changed, 92 insertions(+), 13 deletions(-) diff --git a/src/components/content/LandingHero.astro b/src/components/content/LandingHero.astro index 0f73ccf..aa53328 100644 --- a/src/components/content/LandingHero.astro +++ b/src/components/content/LandingHero.astro @@ -1,14 +1,32 @@ --- +/* +Props allow this component to be reused with different text +without modifying the layout or styling. +*/ const { eyebrow = "UBC Agrobot", title = "Robotics for agriculture", - subtitle = "We design and build field-ready systems—perception, autonomy, and real-world deployment.", + subtitle = "We design and build field-ready systems. For perception, autonomy, and real-world deployment.", primaryCta = { label: "Get involved", href: "/recruitment" }, secondaryCta = { label: "Explore projects", href: "/projects" }, } = Astro.props; --- +
+
+
+
+
- + + +
+

{eyebrow}

+

{title}

+

{subtitle}

+ +

Build • Test • Deploy • Iterate

- + + +
+
+
+
- +
- Agrobot Dashboard + + Agrobot Dashboard +
- +
+
- +
@@ -103,7 +176,7 @@ const {
- +
@@ -134,7 +207,7 @@ const {
- +
@@ -142,7 +215,7 @@ const {
- +

Mode

@@ -171,7 +244,7 @@ const {
- +
@@ -196,6 +269,12 @@ const {
+
diff --git a/src/components/hero/HeroDashboard.astro b/src/components/hero/HeroDashboard.astro new file mode 100644 index 0000000..9d749bb --- /dev/null +++ b/src/components/hero/HeroDashboard.astro @@ -0,0 +1,133 @@ +--- +/* +Dashboard mock shown on the right side of the landing hero. + +This simulates a robotics/computer vision interface so the page +feels like a real product/engineering site instead of just text. +*/ +--- + +
+ +
+
+ + +
+ +
+ + + + + Agrobot Dashboard + +
+ +
+ +
+ +
+
+ + +
+
+
+
+
+
+ + +
+ + crop + +
+ + +
+ + weed + +
+ + +
+ + row + +
+ + +
+ Live vision +
+
+ + +
+
+

Mode

+

Autonomous

+
+ +
+

Battery

+

92%

+
+ +
+

Detected crops

+

67

+
+ +
+

Path status

+

On track

+
+
+ + +
+
+

System health

+

Nominal

+
+ +
+ + Online +
+
+
+
+
diff --git a/src/components/hero/HeroRibbon.astro b/src/components/hero/HeroRibbon.astro new file mode 100644 index 0000000..a71fbd8 --- /dev/null +++ b/src/components/hero/HeroRibbon.astro @@ -0,0 +1,62 @@ +--- +/* +Animated gradient ribbon background. +*/ +--- + +
+
+
+
+ +