From c5ee3697966e0a9c8a7d74cea31d7653d7719aa1 Mon Sep 17 00:00:00 2001 From: Alex Date: Fri, 2 Feb 2024 15:50:25 -0800 Subject: [PATCH] about page (#1533) * created about page and added link from sidebar menu * created the route * changed export to default * added more substance to about page * added text and styling * changed to grid layout and some editing * aesthetic changes * revisions to the about blurb * updated about page replaced grid with constrained widths added semantic HTML tags linked email address added header tag * fixed text width, header margins * padding and margin changes * editing and minor changes * replaced text with embedded expressions * adjusted width parameters to make text narrower * formatting changes * convention & hyperlink nits --------- Co-authored-by: Caleb Eby Co-authored-by: Caleb Eby --- src/components/menu.tsx | 4 ++ src/routes.ts | 4 ++ src/routes/about.tsx | 108 ++++++++++++++++++++++++++++++++++++++++ 3 files changed, 116 insertions(+) create mode 100644 src/routes/about.tsx diff --git a/src/components/menu.tsx b/src/components/menu.tsx index 6f2a0b47f..4fbb00ff0 100644 --- a/src/components/menu.tsx +++ b/src/components/menu.tsx @@ -11,6 +11,7 @@ import { mdiLoginVariant, mdiLogoutVariant, mdiCloudUpload, + mdiInformationOutline, } from '@mdi/js' import { logout, useJWT } from '@/jwt' import { createShadow } from '@/utils/create-shadow' @@ -231,6 +232,9 @@ export const Menu = ({ onHide, visible }: Props) => { )} + + About Peregrine + diff --git a/src/routes.ts b/src/routes.ts index 231381335..229bcff32 100644 --- a/src/routes.ts +++ b/src/routes.ts @@ -3,6 +3,10 @@ const routes = [ path: '/', component: () => import('./routes/home'), }, + { + path: '/about', + component: () => import('./routes/about'), + }, { path: '/events/:eventKey', component: () => import('./routes/event'), diff --git a/src/routes/about.tsx b/src/routes/about.tsx new file mode 100644 index 000000000..769938f40 --- /dev/null +++ b/src/routes/about.tsx @@ -0,0 +1,108 @@ +import Page from '@/components/page' +import { css } from '@linaria/core' + +const pageStyle = css` + text-align: center; + padding: 0 1rem; + margin: auto; + max-width: 45rem; +` + +const headerStyle = css` + margin-bottom: 0; + margin-top: 1em; +` + +const informationStyle = css` + font-size: 22px; +` + +const sourceStyle = css` + padding: 1rem 0; + + & h3 { + margin: 0.3rem; + } + + & p { + margin: 0.2rem; + } +` + +const AboutPage = () => { + return ( + +

Welcome to Peregrine!

+
+

+ + { + 'Peregrine is a completely free, open-source scouting app for FRC competitions. ' + } + + {` + The frontend is written in TypeScript and the backend is written in + Go. Peregrine was originally built by students on team 2733 Pigmice in + 2017 and redesigned in the autumn of 2018. Development is ongoing to + make the website better than ever. Peregrine has been used by 15 teams + and counting to simplify scouting at FRC competitions. + `} +

+

+ + {'Peregrine handles all of the calculations involved in scouting, '} + + {` + allowing team members to spend time analyzing data and making + decisions instead of crunching numbers. It shows an analysis table + where team members can compare individual statistics or overall + performance between teams and has pages for each team at each event + and the matches each team will play in, easily allowing pit crews to + know when they're up next. All event data and some match scoring + data is pulled from The Blue Alliance. + `} +

+

+ {"It's really easy to get started with Peregrine."} + {' Have a team captain or coach send an email to '} + alexv@pigmice.com + {` + and a member of the Pigmice will add your team to the dropdown on the + signup page. They will also connect you to a Slack channel where your + team can ask questions and give you some tips on setting up your team + with Peregrine. + `} +

+

+ {` + If you have any questions about getting your team onboarded to + Peregrine or using the app, + `} + + { + "please reach out to the Pigmice team's Peregrine lead, Alex Vennebush, " + } + + {'at '} + alexv@pigmice.com + {'.'} +

+
+
+

Source code repositories:

+

+ + frontend (TypeScript and Preact) + +

+

+ + backend (Go with Postgres) + +

+
+
+ ) +} + +export default AboutPage