Skip to content

Commit 4dfdd76

Browse files
committed
some static pages
1 parent 0856b18 commit 4dfdd76

File tree

4 files changed

+59
-2
lines changed

4 files changed

+59
-2
lines changed

client/Header.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { useRouter } from 'next/router';
55
import LogoutLink from './components/LogoutLink';
66

77
const anonRoutes = {
8-
left: [{ href: '/', label: 'Home' }],
8+
left: [{ href: '/', label: 'Home' }, { href: '/about', label: 'About' }],
99
right: [
1010
{ href: '/login', label: 'Log in' },
1111
{ href: '/join', label: 'Join' },
@@ -16,6 +16,7 @@ const authedRoutes = {
1616
left: [
1717
{ href: '/event', label: 'My Event' },
1818
{ href: '/create', label: 'Create' },
19+
{ href: '/about', label: 'About' },
1920
],
2021
right: [
2122
{ href: '/account', label: 'Account' },

pages/_error.tsx

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,15 @@
11
import * as React from 'react';
22

3+
const email = '[email protected]';
4+
35
export default () => (
46
<h1>
57
hey you hit an error thats a real shame can you let me know what happened at
6-
8+
<a href={`mailto:${email}`}>{email}</a> thanks
9+
<style jsx>{`
10+
h1 {
11+
max-width: 600px;
12+
}
13+
`}</style>
714
</h1>
815
);

pages/about.tsx

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
import * as React from 'react';
2+
3+
const email = '[email protected]';
4+
5+
export default () => {
6+
return (
7+
<div className="about-page">
8+
<p>
9+
Hello, my name is Tim. I made this thing. If you have questions,
10+
comments, or concerns, you can reach me at{' '}
11+
<a href={`mailto:${email}`}>{email}</a>.
12+
</p>
13+
<p>
14+
This is a simple tool for people to set up events (like Hackathons)
15+
where one group (attendees) get assistance from another group (mentors).
16+
Events have an expiration time and all accounts/data associated with the
17+
event are deleted afterwards.
18+
</p>
19+
<p>
20+
The MVP of this thing was made over a two days so things might break. If
21+
they do, please let me know at the email above.
22+
</p>
23+
<p>
24+
The code is open-source and you're welcome to make improvements via pull
25+
requests. Github link is here:{' '}
26+
<a href="https://github.com/timmyichen/help-a-hacker" target="_blank">
27+
timmyichen/help-a-hacker
28+
</a>
29+
. It's written in TypeScript, React, Redux, Next.js, and Bootstrap on
30+
the client, and TypeScript, Node, Express, and MongoDB on the server.
31+
</p>
32+
<style jsx>{`
33+
.about-page {
34+
max-width: 400px;
35+
margin: 50px auto;
36+
}
37+
`}</style>
38+
</div>
39+
);
40+
};

pages/index.tsx

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,19 @@
11
import * as React from 'react';
2+
import Link from 'next/link';
23

34
export default () => {
45
return (
56
<div className="landing-page">
7+
<p>
8+
Hey, and welcome to Help-A-Hacker. Navigate pages above or visit the
9+
<Link href="/about">
10+
<a>About Page</a>
11+
</Link>{' '}
12+
to learn some more.
13+
</p>
614
<style jsx>{`
715
.landing-page {
16+
max-width: 600px;
817
}
918
`}</style>
1019
</div>

0 commit comments

Comments
 (0)