Skip to content

Commit

Permalink
about page (#1533)
Browse files Browse the repository at this point in the history
* 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 <[email protected]>
Co-authored-by: Caleb Eby <[email protected]>
  • Loading branch information
3 people authored Feb 2, 2024
1 parent d7a4522 commit c5ee369
Show file tree
Hide file tree
Showing 3 changed files with 116 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/components/menu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import {
mdiLoginVariant,
mdiLogoutVariant,
mdiCloudUpload,
mdiInformationOutline,
} from '@mdi/js'
import { logout, useJWT } from '@/jwt'
import { createShadow } from '@/utils/create-shadow'
Expand Down Expand Up @@ -231,6 +232,9 @@ export const Menu = ({ onHide, visible }: Props) => {
</MenuItem>
</>
)}
<MenuItem icon={mdiInformationOutline} href="/about">
About Peregrine
</MenuItem>
</ul>
</nav>
</aside>
Expand Down
4 changes: 4 additions & 0 deletions src/routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ const routes = [
path: '/',
component: () => import('./routes/home'),
},
{
path: '/about',
component: () => import('./routes/about'),
},
{
path: '/events/:eventKey',
component: () => import('./routes/event'),
Expand Down
108 changes: 108 additions & 0 deletions src/routes/about.tsx
Original file line number Diff line number Diff line change
@@ -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 (
<Page name="About" back="/" class={pageStyle}>
<h1 class={headerStyle}>Welcome to Peregrine!</h1>
<section class={informationStyle}>
<p>
<strong>
{
'Peregrine is a completely free, open-source scouting app for FRC competitions. '
}
</strong>
{`
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.
`}
</p>
<p>
<strong>
{'Peregrine handles all of the calculations involved in scouting, '}
</strong>
{`
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.
`}
</p>
<p>
<strong>{"It's really easy to get started with Peregrine."}</strong>
{' Have a team captain or coach send an email to '}
<a href="mailto:[email protected]">[email protected]</a>
{`
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.
`}
</p>
<p>
{`
If you have any questions about getting your team onboarded to
Peregrine or using the app,
`}
<strong>
{
"please reach out to the Pigmice team's Peregrine lead, Alex Vennebush, "
}
</strong>
{'at '}
<a href="mailto:[email protected]">[email protected]</a>
{'.'}
</p>
</section>
<section class={sourceStyle}>
<h3>Source code repositories:</h3>
<p>
<a href="https://github.com/Pigmice2733/peregrine-frontend">
frontend (TypeScript and Preact)
</a>
</p>
<p>
<a href="https://github.com/Pigmice2733/peregrine-backend">
backend (Go with Postgres)
</a>
</p>
</section>
</Page>
)
}

export default AboutPage

0 comments on commit c5ee369

Please sign in to comment.