Skip to content

Commit f8f70ce

Browse files
committed
Rewrite website
1 parent 8521071 commit f8f70ce

File tree

258 files changed

+6211
-2416
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

258 files changed

+6211
-2416
lines changed

.gitignore

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
.DS_Store
22
*.log
3-
node_modules/
43
build/
4+
data/
5+
node_modules/
6+
.env
57
yarn.lock

.remarkignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
build/
2+
data/

script/natural-language/preset.js .remarkrc.js

+13-3
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
1-
'use strict'
2-
31
var fs = require('fs')
42
var strip = require('strip-comments')
3+
var unified = require('unified')
54

65
var personal = strip(fs.readFileSync('dictionary.txt', 'utf8'))
76

8-
exports.plugins = [
7+
var naturalLanguage = unified().use([
98
require('retext-english'),
109
require('retext-preset-wooorm'),
1110
require('retext-equality'),
@@ -18,4 +17,15 @@ exports.plugins = [
1817
require('retext-spell'),
1918
{dictionary: require('dictionary-en-gb'), personal: personal}
2019
]
20+
])
21+
22+
exports.plugins = [
23+
require('remark-preset-wooorm'),
24+
require('remark-frontmatter'),
25+
[require('remark-retext'), naturalLanguage],
26+
[require('remark-validate-links'), false],
27+
[require('remark-lint-no-dead-urls'), 'https://unifiedjs.com'],
28+
[require('remark-lint-first-heading-level'), 2],
29+
[require('remark-lint-no-html'), false],
30+
[require('remark-toc'), {heading: 'contents', maxDepth: 3, tight: true}]
2131
]

.stylelintignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
build/

.travis.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ deploy:
55
local_dir: build
66
target_branch: master
77
skip_cleanup: true
8-
github_token: $GITHUB_TOKEN
8+
github_token: $GH_TOKEN
99
1010
name: Titus Wormer
1111
on:

asset/big.css

+110
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,110 @@
1+
.cards > *,
2+
.boxes > * {
3+
display: inline-block;
4+
vertical-align: top;
5+
}
6+
7+
.cards > * {
8+
width: calc(11.333 * (1em + 1ex));
9+
}
10+
11+
.boxes > * {
12+
width: calc(12.333 * (1em + 1ex));
13+
}
14+
15+
@media (min-width: 48.01em) {
16+
.readme {
17+
padding-left: calc(1em + 1ex);
18+
padding-right: calc(1em + 1ex);
19+
}
20+
21+
.landing .article {
22+
padding: calc(6 * (1em + 1ex) / 1.125) calc(3 * (1em + 1ex) / 1.125);
23+
}
24+
25+
.article {
26+
font-size: 1.125em;
27+
padding-left: calc(3 * (1em + 1ex) / 1.125);
28+
padding-right: calc(3 * (1em + 1ex) / 1.125);
29+
}
30+
31+
.x-hide-l {
32+
display: none;
33+
}
34+
35+
.ellipsis-l {
36+
overflow: hidden;
37+
text-overflow: ellipsis;
38+
white-space: nowrap;
39+
}
40+
41+
.column-l,
42+
.row-l {
43+
display: flex;
44+
}
45+
46+
.row-l {
47+
margin-left: calc(-0.25 * (1em + 1ex));
48+
margin-right: calc(-0.25 * (1em + 1ex));
49+
}
50+
51+
.column-l {
52+
margin-top: calc(-0.25 * (1em + 1ex));
53+
margin-bottom: calc(-0.25 * (1em + 1ex));
54+
flex-direction: column;
55+
}
56+
57+
.row-l > * {
58+
margin-left: calc(0.25 * (1em + 1ex));
59+
margin-right: calc(0.25 * (1em + 1ex));
60+
}
61+
62+
.column-l > * {
63+
margin-top: calc(0.25 * (1em + 1ex));
64+
margin-bottom: calc(0.25 * (1em + 1ex));
65+
}
66+
67+
.row-l > .row,
68+
.row-l > .row-l {
69+
margin-left: 0;
70+
margin-right: 0;
71+
}
72+
73+
.justify-end-l {
74+
justify-content: flex-end;
75+
}
76+
77+
.anchor {
78+
margin-left: calc(-1 * (1em + 1ex));
79+
margin-right: 0;
80+
}
81+
82+
.content pre {
83+
border-radius: 3px;
84+
}
85+
86+
.content blockquote,
87+
.content ol,
88+
.content ul {
89+
margin-left: calc(-1 * (1em + 1ex));
90+
}
91+
92+
.content ol blockquote,
93+
.content ul blockquote,
94+
.content blockquote blockquote,
95+
.content ol ol,
96+
.content ul ol,
97+
.content blockquote ol,
98+
.content ol ul,
99+
.content ul ul,
100+
.content blockquote ul {
101+
margin-left: 0;
102+
}
103+
}
104+
105+
@media (min-width: 62.01em) {
106+
.readme {
107+
padding-left: 0;
108+
padding-right: 0;
109+
}
110+
}

asset/dark.css

+160
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,160 @@
1+
:root {
2+
--hl: var(--blue-3-83);
3+
}
4+
5+
body {
6+
background-color: var(--gray-9);
7+
color: var(--gray-2);
8+
}
9+
10+
.content .mdx:hover,
11+
.content .mdx:focus {
12+
color: #f9ac00;
13+
}
14+
15+
.mdx .hl,
16+
.content .mdx:hover .hl,
17+
.content .mdx:focus .hl {
18+
color: var(--gray-2);
19+
}
20+
21+
.box {
22+
background-color: rgba(0, 0, 0, 0.2);
23+
border-color: black;
24+
}
25+
26+
.thumbnail {
27+
box-shadow: 0 0 0 0.2em var(--gray-9);
28+
}
29+
30+
.card {
31+
background-color: rgba(0, 0, 0, 0.2);
32+
box-shadow:
33+
0 0 0 0.2em rgba(46, 143, 255, 0),
34+
0 13px 27px -5px rgba(0, 0, 43, 0.25),
35+
0 8px 16px -8px rgba(0, 0, 0, 0.3),
36+
0 -6px 16px -6px rgba(0, 0, 0, 0.025);
37+
}
38+
39+
.card:hover {
40+
box-shadow:
41+
0 0 0 0.2em rgba(46, 143, 255, 0),
42+
0 30px 60px -12px rgba(0, 0, 43, 0.25),
43+
0 18px 36px -18px rgba(0, 0, 0, 0.3),
44+
0 -12px 36px -8px rgba(0, 0, 0, 0.025);
45+
}
46+
47+
.more {
48+
border-color: black;
49+
}
50+
51+
.tag {
52+
color: var(--blue-3);
53+
background-color: var(--blue-7);
54+
}
55+
56+
.count {
57+
background-color: var(--blue-3);
58+
color: var(--blue-7);
59+
}
60+
61+
a.tag:hover,
62+
a.tag:focus {
63+
color: var(--gray-2);
64+
}
65+
66+
a.tag:hover .count,
67+
a.tag:focus .count {
68+
background-color: var(--gray-2);
69+
}
70+
71+
.search button,
72+
.search input {
73+
color: var(--gray-0);
74+
border-color: black;
75+
}
76+
77+
.search input {
78+
background-color: var(--gray-8);
79+
}
80+
81+
.search button {
82+
background-color: rgba(0, 0, 0, 0.2);
83+
}
84+
85+
.search input:hover,
86+
.search input:focus,
87+
.search button:hover,
88+
.search button:focus,
89+
.search button:active {
90+
border-color: var(--hl);
91+
}
92+
93+
.search button:active {
94+
background-color: var(--hl);
95+
color: var(--gray-0);
96+
}
97+
98+
.card:focus {
99+
/* --blue-3-83 */
100+
box-shadow:
101+
0 0 0 0.2em rgb(46, 143, 255),
102+
0 30px 60px -12px rgba(0, 0, 43, 0.25),
103+
0 18px 36px -18px rgba(0, 0, 0, 0.3),
104+
0 -12px 36px -8px rgba(0, 0, 0, 0.025);
105+
}
106+
107+
.content h1,
108+
.content h2 {
109+
border-bottom-color: var(--gray-7);
110+
}
111+
112+
.content kbd {
113+
background-color: rgba(0, 0, 0, 0.2);
114+
border-color: var(--gray-8);
115+
box-shadow: inset 0 -1px 0 black;
116+
color: var(--gray-2);
117+
}
118+
119+
.content pre {
120+
background-color: rgba(0, 0, 0, 0.2);
121+
}
122+
123+
.content code {
124+
background-color: rgba(0, 0, 0, 0.2);
125+
}
126+
127+
.content hr {
128+
background-color: rgba(0, 0, 0, 0.2);
129+
}
130+
131+
.content tr {
132+
background-color: var(--gray-9);
133+
border-top-color: var(--gray-6);
134+
}
135+
136+
.content tr:nth-child(2n) {
137+
background-color: var(--gray-8);
138+
}
139+
140+
.content td,
141+
.content th {
142+
border-color: var(--gray-6);
143+
}
144+
145+
.content blockquote {
146+
color: var(--gray-4);
147+
}
148+
149+
.content blockquote::before {
150+
background-color: rgba(0, 0, 0, 0.2);
151+
}
152+
153+
.content abbr.first {
154+
border-bottom-color: var(--gray-6);
155+
}
156+
157+
/* Not enough contrast */
158+
.hljs-comment {
159+
color: var(--gray-4);
160+
}

asset/image/alex-dark.png

604 KB

asset/image/alex.png

558 KB

asset/image/cssnano-dark.png

767 KB

asset/image/cssnano.png

713 KB

asset/image/debugger-dark.png

2.36 MB

asset/image/debugger.png

2.31 MB

asset/image/documentation-dark.png

993 KB

asset/image/documentation.png

946 KB

asset/image/docz-dark.png

1.26 MB

asset/image/docz.png

1.22 MB

asset/image/eslint-dark.png

2.64 MB

asset/image/eslint.png

2.6 MB

asset/image/freecodecamp-dark.png

734 KB

asset/image/freecodecamp.png

690 KB

asset/image/gatsby-dark.png

699 KB

asset/image/gatsby.png

649 KB

asset/image/github-help-dark.png

783 KB

asset/image/github-help.png

733 KB

asset/image/mdx-dark.png

789 KB

asset/image/mdx-deck-dark.png

608 KB

asset/image/mdx-deck.png

561 KB

asset/image/mdx.png

719 KB

asset/image/netlify-cms-dark.png

1.71 MB

asset/image/netlify-cms.png

1.66 MB

asset/image/nextein-dark.png

3.42 MB

asset/image/nextein.png

3.38 MB

asset/image/node-dark.png

800 KB

asset/image/node.png

756 KB

asset/image/nteract-dark.png

859 KB

asset/image/nteract.png

809 KB

asset/image/opensourceguide-dark.png

868 KB

asset/image/opensourceguide.png

819 KB

asset/image/phenomic-dark.png

2.34 MB

asset/image/phenomic.png

2.29 MB

asset/image/prettier-dark.png

714 KB

asset/image/prettier.png

658 KB

asset/image/prettyhtml-dark.png

720 KB

asset/image/prettyhtml.png

675 KB

asset/image/react-markdown-dark.png

1020 KB

asset/image/react-markdown.png

982 KB

asset/image/readability-dark.png

846 KB

asset/image/readability.png

801 KB

asset/image/regl-dark.png

1.18 MB

asset/image/regl.png

897 KB

asset/image/rxjs-dark.png

986 KB

asset/image/rxjs.png

940 KB

asset/image/storybook-dark.png

789 KB

asset/image/storybook.png

748 KB

asset/image/stylelint-dark.png

966 KB

asset/image/stylelint.png

916 KB
File renamed without changes.

asset/image/web-dev-dark.png

754 KB

asset/image/web-dev.png

705 KB

asset/image/web-fundamentals-dark.png

997 KB

asset/image/web-fundamentals.png

942 KB

asset/image/write-music-dark.png

839 KB

asset/image/write-music.png

790 KB

0 commit comments

Comments
 (0)