From 6587a3535a8fd6cbebb92b44f022a131ed1791b0 Mon Sep 17 00:00:00 2001 From: Shing Hung Date: Mon, 27 Jan 2025 11:25:42 -0800 Subject: [PATCH] fix mobile for Robocup page --- src/components/core/About.astro | 4 +- src/components/core/Subtitle.astro | 2 +- src/components/qp/Timeline.astro | 65 ++++++++++++------------- src/components/robocub/Contacts.astro | 12 ++--- src/components/robocub/Join.astro | 12 ++--- src/components/robocub/Subteam.astro | 16 ------ src/components/robocub/Subteams.astro | 16 +++--- src/components/signal/Competition.astro | 15 +++--- src/data/landing.js | 16 ------ src/data/qpTimeline.json | 62 ++++++++++++----------- src/data/roboTimeline.json | 30 ++++++++++++ src/layouts/Layout.astro | 2 +- src/pages/quarterly.astro | 3 +- src/pages/robocup.astro | 7 +-- 14 files changed, 127 insertions(+), 135 deletions(-) delete mode 100644 src/components/robocub/Subteam.astro delete mode 100644 src/data/landing.js create mode 100644 src/data/roboTimeline.json diff --git a/src/components/core/About.astro b/src/components/core/About.astro index 5633c44..15b5db9 100644 --- a/src/components/core/About.astro +++ b/src/components/core/About.astro @@ -4,14 +4,14 @@ const {title, text} = Astro.props; ---
-
+

{title}

-

+

{text}

\ No newline at end of file diff --git a/src/components/core/Subtitle.astro b/src/components/core/Subtitle.astro index 70857c4..6065c13 100644 --- a/src/components/core/Subtitle.astro +++ b/src/components/core/Subtitle.astro @@ -3,7 +3,7 @@ const {title} = Astro.props; import { LiaDotCircle } from "react-icons/lia"; --- -
+

{title} diff --git a/src/components/qp/Timeline.astro b/src/components/qp/Timeline.astro index 97b38d8..2dc3b72 100644 --- a/src/components/qp/Timeline.astro +++ b/src/components/qp/Timeline.astro @@ -1,54 +1,51 @@ --- -import qpTimeline from "../../data/qpTimeline.json"; -const { events } = qpTimeline; +const {timeline} = Astro.props; import Subtitle from "../core/Subtitle.astro"; --- -

+
- { - events.map((event, index) => ( + {timeline.map((event, index) => ( +
-
-
-
- {event.week} -
-
- {event.description} -
+
+
+ {event.week} +
+
+ {event.description}
- -
- -
-
-
- )) - } + +
+ +
+
+
+
+ ))}
diff --git a/src/components/robocub/Contacts.astro b/src/components/robocub/Contacts.astro index 3dbf361..77eca49 100644 --- a/src/components/robocub/Contacts.astro +++ b/src/components/robocub/Contacts.astro @@ -8,29 +8,29 @@ import { LiaDotCircle } from "react-icons/lia";
-
+

Contacts

-

+

To stay up to date, join discord server

-
+
-

Facebook

+

Facebook

-
+
-

Instagram

+

Instagram

diff --git a/src/components/robocub/Join.astro b/src/components/robocub/Join.astro index 107ec5d..36384d7 100644 --- a/src/components/robocub/Join.astro +++ b/src/components/robocub/Join.astro @@ -9,20 +9,20 @@ import robocup from "../../images/robocup.webp"; robocub competition image
-

+

We Are
Hiring

-
+

Join a community of beginner to experienced engineers from different disciplines and backgrounds @@ -33,10 +33,10 @@ import robocup from "../../images/robocup.webp";

Application form

diff --git a/src/components/robocub/Subteam.astro b/src/components/robocub/Subteam.astro deleted file mode 100644 index e698960..0000000 --- a/src/components/robocub/Subteam.astro +++ /dev/null @@ -1,16 +0,0 @@ ---- -import { FaGear, FaMicrochip, FaCode } from "react-icons/fa6"; -import { LuBrainCircuit } from "react-icons/lu"; -const { title, list } = Astro.props; ---- - -
-

- {title} -

-
    - {list.map((item: string) =>
  • • {item}
  • )} -
-
diff --git a/src/components/robocub/Subteams.astro b/src/components/robocub/Subteams.astro index 95bcb17..17321a2 100644 --- a/src/components/robocub/Subteams.astro +++ b/src/components/robocub/Subteams.astro @@ -1,6 +1,5 @@ --- import Subtitle from "../core/Subtitle.astro"; -import Subteam from "./Subteam.astro"; import subteams from "../../data/subteams.json"; import { IoIosArrowBack, IoIosArrowForward } from "react-icons/io"; import { FaGear, FaMicrochip, FaCode } from "react-icons/fa6"; @@ -11,9 +10,9 @@ const duplicatedSubteams = [...subteams, ...subteams, ...subteams]; const centerIndex = Math.floor(subteams.length); // center in the middle --- -
+
-
+