Skip to content

Commit fb15c79

Browse files
authored
feat: custom status override, many many style changes (#67)
1 parent 607d82b commit fb15c79

28 files changed

+708
-137
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,6 @@ jobs:
1414

1515
- name: Lint
1616
run: npm run lint
17+
18+
- name: Type-check
19+
run: npm run type-check

README.md

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
# hello friend this is my website
22

3-
`npm start` to do dev stuff
3+
type `npm run dev` to do dev stuff
4+
type `npm run build` to do production stuff
45

5-
`npm run build` to do production stuff
6+
still to do
7+
8+
- [ ] visual regression testing
9+
- [ ] theme & dark mode?
10+
- [ ] 404 page
11+
- [ ] easter egg
12+
- [ ] dev mocks for redis
13+
- [ ] accessibility (contrast/reduce motion), dark mode options
14+
- [ ] add api routes for custom status and location check-in
15+
- [ ] add 'my work' page

package-lock.json

Lines changed: 11 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
"scripts": {
77
"dev": "cross-env NODE_ENV=development next",
88
"lint": "eslint src --fix",
9-
"build:ssg": "cross-env NODE_ENV=production next build && next export -o build",
10-
"build:ssr": "cross-env NODE_ENV=production next build",
9+
"type-check": "tsc --noEmit",
10+
"build": "cross-env NODE_ENV=production next build && next export -o build",
1111
"start": "cross-env NODE_ENV=production next start"
1212
},
1313
"devDependencies": {
@@ -25,6 +25,7 @@
2525
"typescript": "^4.1.3"
2626
},
2727
"dependencies": {
28+
"color.js": "^1.1.0",
2829
"goober": "^2.0.19-next.1",
2930
"ioredis": "^4.19.4",
3031
"next": "10.0.0",

public/favicon.png

27.1 KB
Loading
131 KB
Binary file not shown.
56.2 KB
Binary file not shown.
55.7 KB
Binary file not shown.

public/me.png

-363 KB
Binary file not shown.

src/components/Bio.tsx

Lines changed: 32 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,52 @@
11
import { FunctionalComponent } from 'preact';
22
import { styled } from 'goober';
33

4-
import { useCopyContext } from 'services/copy';
5-
// import { Text } from 'components/core';
4+
import { useSiteContext } from 'services/site/context';
5+
import { Link, Text } from 'components/core';
66
import DynamicTime from 'components/DynamicTime';
77
import DynamicTagline from 'components/DynamicTagline';
88
import DynamicCurrentStatus from 'components/DynamicCurrentStatus';
99

1010
const Container = styled('div')`
11-
margin-top: 1em;
11+
margin-top: 1.6em;
12+
13+
& .dynamic {
14+
font-weight: 450;
15+
}
1216
`;
1317

1418
const Bio: FunctionalComponent = () => {
15-
const { talkingPoint } = useCopyContext();
19+
const { talkingPoint } = useSiteContext();
1620

1721
return (
1822
<Container>
1923
<p>
20-
I’m a <DynamicTagline /> studying computer science at the University of
21-
Waterloo.
24+
<Text>
25+
I’m a{' '}
26+
<span className="dynamic">
27+
<DynamicTagline />
28+
</span>{' '}
29+
that's currently studying computer science at the University of
30+
Waterloo.
31+
</Text>
2232
</p>
23-
<path>
24-
It’s currently <DynamicTime /> for me and I'm <DynamicCurrentStatus />
25-
</path>
33+
34+
<p>
35+
<Text>
36+
It’s currently{' '}
37+
<span className="dynamic">
38+
<DynamicTime />
39+
</span>{' '}
40+
for me; I'm <DynamicCurrentStatus />
41+
</Text>
42+
</p>
43+
2644
<p>
27-
Wanna chat about {talkingPoint}? Lets talk. You can reach me at{' '}
28-
<a href="mailto:hi@alexxie.com">hi@alexxie.com</a>.
45+
<Text>
46+
Wanna chat about <span className="dynamic">{talkingPoint}</span>? Lets
47+
talk. You can reach me at{' '}
48+
<Link href="mailto:hi@alexxie.com">hi@alexxie.com</Link>.
49+
</Text>
2950
</p>
3051
</Container>
3152
);

0 commit comments

Comments
 (0)