From 81dfb395815ca4ff7c80626dd37782536401b142 Mon Sep 17 00:00:00 2001 From: Sawbez <63512091+Sawbez@users.noreply.github.com> Date: Fri, 12 Jan 2024 20:01:49 -0800 Subject: [PATCH 1/3] Fix typo in README, fix eslint warnings, fix accessibility --- README.md | 2 +- client/src/App.js | 20 ++++++++++---------- client/src/components/Card.js | 4 ++-- client/src/components/Footer.js | 14 +++++++------- client/src/components/LazyImage.js | 3 ++- client/src/pages/Home.js | 13 ++++++++----- 6 files changed, 30 insertions(+), 26 deletions(-) diff --git a/README.md b/README.md index 7c5eebd..8f88ef8 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ This is currently being hosted by: { +const Card = ({ title, text, image, alt }) => { return (
@@ -9,7 +9,7 @@ const Card = ({ title, text, image }) => {

{text}

- +
diff --git a/client/src/components/Footer.js b/client/src/components/Footer.js index cf8d94a..398ed06 100644 --- a/client/src/components/Footer.js +++ b/client/src/components/Footer.js @@ -104,9 +104,9 @@ export default function Footer() {

-
+

Learn -

+

Onshape @@ -129,9 +129,9 @@ export default function Footer() {

-
+

Useful links -

+

Design Calculator -

+

-
+

Contact -

+

{alt} ) : ( - + // An empty alt tag is required for accessibility + ); }; diff --git a/client/src/pages/Home.js b/client/src/pages/Home.js index 8f6c0c6..806181e 100644 --- a/client/src/pages/Home.js +++ b/client/src/pages/Home.js @@ -1,11 +1,11 @@ +import { useEffect } from "react"; import Card from "../components/Card.js"; -import Splash from "../components/Splash.js"; import InfoBlock from "../components/InfoBlock.js"; -import { useEffect } from "react"; -import intakeImage from "../graphics/images/Intake-min.jpg"; -import groupImage from "../graphics/images/GroupPhoto-min.jpg"; -import competitionImage from "../graphics/images/Competition-min.jpg"; +import Splash from "../components/Splash.js"; import botImage from "../graphics/images/Bot.jpg"; +import competitionImage from "../graphics/images/Competition-min.jpg"; +import groupImage from "../graphics/images/GroupPhoto-min.jpg"; +import intakeImage from "../graphics/images/Intake-min.jpg"; const Home = () => { useEffect(() => { @@ -20,16 +20,19 @@ const Home = () => { title="ABOUT US" text="Created in 2008, our team participates in the FIRST Robotics Competition as team 2976. We are a high school club operating at Skyline High School, Sammamish, WA." image={groupImage} + alt="Group photo of the Spartabots team" />

Date: Fri, 12 Jan 2024 20:16:23 -0800 Subject: [PATCH 2/3] Fix build --- client/public/index.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client/public/index.html b/client/public/index.html index dad3f07..50e6d71 100644 --- a/client/public/index.html +++ b/client/public/index.html @@ -30,7 +30,8 @@ Within our completely student built team, we use our problem solving, critical thinking and analytical skills to create a competitive robot within 6 weeks. The club was created in 2008 and initially worked in the garage of one of our mentors. In the first few years of the club we struggled, but always managed to bring a robot to competitions. During that time, our team never managed to advance to the elimination rounds of any competitions, but by 2014, the Spartabots had made it through two district competitions, getting second place in one of them, and qualified for regionals." /> - + + The Spartabots From 23836b33eaf019dcfafeed2c253595f2bb3a2f68 Mon Sep 17 00:00:00 2001 From: Sawbez <63512091+Sawbez@users.noreply.github.com> Date: Fri, 12 Jan 2024 20:19:04 -0800 Subject: [PATCH 3/3] Add contribution information --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 8f88ef8..35e6d39 100644 --- a/README.md +++ b/README.md @@ -33,3 +33,4 @@ This is currently being hosted by: TheCubeHamster LS-x21 solar138 +Sawbez