From 6f844d1255fcff86b441a3c41fa4e8c5a0a2ec62 Mon Sep 17 00:00:00 2001 From: chark1es Date: Sat, 18 Jan 2025 03:36:28 -0800 Subject: [PATCH 1/7] add ai section --- src/data/subteams.json | 48 ++++++++++++++++++++++++++---------------- 1 file changed, 30 insertions(+), 18 deletions(-) diff --git a/src/data/subteams.json b/src/data/subteams.json index 5e965d9..c720958 100644 --- a/src/data/subteams.json +++ b/src/data/subteams.json @@ -1,20 +1,32 @@ [ - { - "title": "Mechanical", - "list": ["Design the Mechanisms and Structure of the Robot", - "Fabricate and assemble robot design", - "Integrate electronics and other hardware"] - }, - { - "title": "Electrical", - "list": ["Design circuits to power and control robot subsystems", - "Work with mechanical team to assemble electronics in the robots"] - }, - { - "title": "Embedded", - "list": ["Communicate between software and hardware", - "Provide low level software interface and API", - "Handle and sample data using math/physics knowledge" - ] - } + { + "title": "Mechanical", + "list": [ + "Design the Mechanisms and Structure of the Robot", + "Fabricate and assemble robot design", + "Integrate electronics and other hardware" + ] + }, + { + "title": "Electrical", + "list": [ + "Design circuits to power and control robot subsystems", + "Work with mechanical team to assemble electronics in the robots" + ] + }, + { + "title": "Embedded", + "list": [ + "Communicate between software and hardware", + "Provide low level software interface and API", + "Handle and sample data using math/physics knowledge" + ] + }, + { + "title": "AI", + "list": [ + "Design decision making algorithms using behavioral trees", + "Conduct testing with simulation" + ] + } ] From acb11e29fd6cdc91df2c2f52a2f5454910c83e6e Mon Sep 17 00:00:00 2001 From: chark1es Date: Sat, 18 Jan 2025 03:36:50 -0800 Subject: [PATCH 2/7] formatting --- src/components/robocub/Subteam.astro | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/src/components/robocub/Subteam.astro b/src/components/robocub/Subteam.astro index 7044658..2bf23b1 100644 --- a/src/components/robocub/Subteam.astro +++ b/src/components/robocub/Subteam.astro @@ -1,22 +1,24 @@ --- import { FaGear, FaMicrochip, FaCode } from "react-icons/fa6"; import { LuBrainCircuit } from "react-icons/lu"; -const {title, list}=Astro.props; +const { title, list } = Astro.props; --- -
+

{title}

    - {list.map((item)=>( -
  • • {item}
  • - ))} + {list.map((item) =>
  • • {item}
  • )}
-
- {title==="Mechanical" && } - {title==="Electrical" && } - {title==="AI" && } - {title==="Embedded" && } +
+ {title === "Mechanical" && } + {title === "Electrical" && } + {title === "AI" && } + {title === "Embedded" && }
-
\ No newline at end of file +
From 79212b52e359abba0faa890468db15aace8d9e21 Mon Sep 17 00:00:00 2001 From: chark1es Date: Sat, 18 Jan 2025 03:43:09 -0800 Subject: [PATCH 3/7] add carousel --- src/components/robocub/Subteams.astro | 244 +++++++++++++++++++++++++- 1 file changed, 237 insertions(+), 7 deletions(-) diff --git a/src/components/robocub/Subteams.astro b/src/components/robocub/Subteams.astro index 62c4780..95bcb17 100644 --- a/src/components/robocub/Subteams.astro +++ b/src/components/robocub/Subteams.astro @@ -1,13 +1,243 @@ --- import Subtitle from "../core/Subtitle.astro"; import Subteam from "./Subteam.astro"; -import subteams from "../../data/subteams.json" +import subteams from "../../data/subteams.json"; +import { IoIosArrowBack, IoIosArrowForward } from "react-icons/io"; +import { FaGear, FaMicrochip, FaCode } from "react-icons/fa6"; +import { LuBrainCircuit } from "react-icons/lu"; + +// duplicate the array 3 times for smoother looping +const duplicatedSubteams = [...subteams, ...subteams, ...subteams]; +const centerIndex = Math.floor(subteams.length); // center in the middle --- -
+ +
-
- {subteams.map((subteam)=>( - - ))} +
+ + +
-
\ No newline at end of file +
+ + + + From ef151ddfcd6006c54edee0f03d51260283ef539b Mon Sep 17 00:00:00 2001 From: chark1es Date: Sat, 18 Jan 2025 03:43:28 -0800 Subject: [PATCH 4/7] fixed rounded corners bug for blur --- src/components/robocub/Subteam.astro | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/src/components/robocub/Subteam.astro b/src/components/robocub/Subteam.astro index 2bf23b1..e698960 100644 --- a/src/components/robocub/Subteam.astro +++ b/src/components/robocub/Subteam.astro @@ -5,20 +5,12 @@ const { title, list } = Astro.props; ---

{title}

    - {list.map((item) =>
  • • {item}
  • )} + {list.map((item: string) =>
  • • {item}
  • )}
-
- {title === "Mechanical" && } - {title === "Electrical" && } - {title === "AI" && } - {title === "Embedded" && } -
From 7e37987c7017d757eeace4dcf8c930b2304a0a16 Mon Sep 17 00:00:00 2001 From: chark1es Date: Sat, 18 Jan 2025 03:45:24 -0800 Subject: [PATCH 5/7] fix email link --- src/components/board/Officer.astro | 43 +++++++++++++++++++----------- 1 file changed, 28 insertions(+), 15 deletions(-) diff --git a/src/components/board/Officer.astro b/src/components/board/Officer.astro index eed91fc..02935cf 100644 --- a/src/components/board/Officer.astro +++ b/src/components/board/Officer.astro @@ -2,32 +2,45 @@ import { FaGear } from "react-icons/fa6"; import { MdEmail } from "react-icons/md"; import Link from "next/link"; -const {name, position, picture, email} = Astro.props; +const { name, position, picture, email } = Astro.props; --- -
-
- - -

+

+
+ + +

{email}

-
- officer -
- +
+ officer +
+
-
-

+

+

{name}

-
+
{position}
- -
\ No newline at end of file +
From 011432dd7a67473b6edbfd6d5c82be09b77b3c42 Mon Sep 17 00:00:00 2001 From: chark1es Date: Sat, 18 Jan 2025 04:06:19 -0800 Subject: [PATCH 6/7] adds filtering --- src/components/board/Filter.astro | 165 +++++++++++++++++++++++++++- src/components/board/Officers.astro | 29 +++-- 2 files changed, 186 insertions(+), 8 deletions(-) diff --git a/src/components/board/Filter.astro b/src/components/board/Filter.astro index 890703d..a829fb9 100644 --- a/src/components/board/Filter.astro +++ b/src/components/board/Filter.astro @@ -1,3 +1,166 @@ --- +const { filters, currentFilter } = Astro.props; +--- ---- \ No newline at end of file +
+
+
+ { + filters.map((filter) => ( + + )) + } +
+ + diff --git a/src/components/board/Officers.astro b/src/components/board/Officers.astro index 68acd80..62f4b82 100644 --- a/src/components/board/Officers.astro +++ b/src/components/board/Officers.astro @@ -4,7 +4,14 @@ import { Image } from "astro:assets"; import neko from "../../images/neko.png"; import { LiaDotCircle } from "react-icons/lia"; import Officer from "../board/Officer.astro"; +import Filter from "../board/Filter.astro"; import officers from "../../data/officers.json"; + +// Get all unique types and add 'All' option +const typeOrder = ["Executives", "Internal", "Events", "Projects"]; +const types = ["All", ...typeOrder]; + +const currentFilter = "All"; ---
@@ -28,15 +35,23 @@ import officers from "../../data/officers.json"; nibh vivamus tempus molestie tristique quis

-
+ + +
{ officers.map((officer) => ( - +
+ +
)) }
From 975e620633a4a21fcc972a8389a7a773252627e3 Mon Sep 17 00:00:00 2001 From: chark1es Date: Thu, 23 Jan 2025 13:24:48 -0800 Subject: [PATCH 7/7] merge conflict resolve --- src/components/board/Officer.astro | 26 +++++++++++++++++--------- src/components/board/Officers.astro | 25 ++++++++++++++++--------- 2 files changed, 33 insertions(+), 18 deletions(-) diff --git a/src/components/board/Officer.astro b/src/components/board/Officer.astro index 02935cf..b97d6c1 100644 --- a/src/components/board/Officer.astro +++ b/src/components/board/Officer.astro @@ -7,28 +7,36 @@ const { name, position, picture, email } = Astro.props;
- - -

+ + +

{email}

officer
-
+

{position}
-
+

diff --git a/src/components/board/Officers.astro b/src/components/board/Officers.astro index 62f4b82..b25315e 100644 --- a/src/components/board/Officers.astro +++ b/src/components/board/Officers.astro @@ -14,30 +14,37 @@ const types = ["All", ...typeOrder]; const currentFilter = "All"; --- -
-
+
+
About background image About image
-
+

MEET THE BOARD

-

- Erat hendrerit tristique erat; parturient cursus fringilla feugiat. Eget - faucibus fames ridiculus nec egestas convallis cubilia malesuada. Tellus - nibh vivamus tempus molestie tristique quis +

+ Our board comprises 31 students of varying majors, colleges, and + interests! Feel free to reach out for any questions about our position + or experiences.

-
+
{ officers.map((officer) => (