Skip to content

Commit 47da773

Browse files
committed
Added about
1 parent 8fd489e commit 47da773

File tree

3 files changed

+61
-0
lines changed

3 files changed

+61
-0
lines changed

src/App.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ import AuthProvider from './providers/AuthProvider';
2020
import usePageTracking from './hooks/usePageTracking';
2121
import { QueryClient, QueryClientProvider } from '@tanstack/react-query';
2222
import { createContext, useEffect, useState } from 'react';
23+
import About from './pages/About';
2324

2425
export const GlobalStateContext = createContext<{
2526
online: boolean;
@@ -50,6 +51,7 @@ const Navigation = () => {
5051
<Route path="rooms/:roomId" element={<CompetitionRoom />} />
5152
<Route path="information" element={<CompetitionInformation />} />
5253
</Route>
54+
<Route path="about" element={<About />} />
5355
</Route>
5456
</Routes>
5557
);

src/pages/About/index.tsx

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
import { useEffect } from 'react';
2+
3+
const Link = ({ to, children }) => (
4+
<a className="text-blue-700 underline" href={to} target="_blank" rel="noreferrer">
5+
{children}
6+
</a>
7+
);
8+
9+
export default function About() {
10+
useEffect(() => {
11+
document.title = 'About - Competition Groups';
12+
}, []);
13+
14+
return (
15+
<div className="flex flex-col items-center">
16+
<div className="flex flex-col lg:w-1/2 md:w-2/3 pt-2 w-full text-sm md:text-base p-2 md:px-0 text-gray-800 space-y-4">
17+
<p>Welcome to CompetitionGroups.com!</p>
18+
19+
<p className="leading-relaxed">
20+
This purpose of this website is to show WCA competition assignments. This site can show
21+
competing and staff assignments for competitions with 1 room or more for 1 day or multiday
22+
competitions updating with all of the competition's next round assignments. This site
23+
simply presents the assignments *as-is* from how they are, as stored on the WCA website.
24+
</p>
25+
26+
<p className="leading-relaxed">
27+
Start times and end times are taken straight from the WCIF data as generated, rounded to
28+
the nearest 5 minutes, and converted to the respective venue's timezones.
29+
</p>
30+
31+
<p className="leading-relaxed">
32+
To get your competition's assignments to show here, you must generate them with a tool
33+
like <Link to="https://groupifier.jonatanklosko.com/">Groupifier</Link>,{' '}
34+
<Link to="https://delegate-dashboard.netlify.app/">DelegateDashboard</Link>, or{' '}
35+
<Link to="https://goosly.github.io/AGE/">AGE</Link>.
36+
</p>
37+
38+
<p className="leading-relaxed">
39+
If you are a developer and you want to learn more about the data that is shown here, check
40+
out the{' '}
41+
<Link to="https://github.com/thewca/wcif/blob/master/specification.md">
42+
WCIF specification
43+
</Link>
44+
.
45+
</p>
46+
<br />
47+
<p className="leading-relaxed">
48+
People can be assigned to groups, rounds, or any arbitrary activity. If you want to get
49+
creative with the website, feel free to reach out to{' '}
50+
<Link to="https://github.com/coder13">me</Link>!
51+
</p>
52+
</div>
53+
</div>
54+
);
55+
}

src/pages/Home/index.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import { useEffect } from 'react';
22
import MyCompetitions from '../../components/MyCompetitions';
33
import UpcomingCompetitions from '../../components/UpcomingCompetitions';
44
import { useAuth } from '../../providers/AuthProvider';
5+
import { Link } from 'react-router-dom';
56

67
export default function Home() {
78
const { user } = useAuth();
@@ -20,6 +21,9 @@ export default function Home() {
2021
competitors. The information provided is based on scheduled data. Pay close attention to
2122
the competition for the most up-to-date information. Start and end times can fluctuate.
2223
</p>
24+
<Link to="/about" className="text-blue-700 underline">
25+
How does this site work?
26+
</Link>
2327
</div>
2428
{user && (
2529
<>

0 commit comments

Comments
 (0)