Skip to content

Commit 3d20d60

Browse files
committed
switch to nextjs site
1 parent 40bda21 commit 3d20d60

File tree

189 files changed

+16547
-16728
lines changed

Some content is hidden

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

189 files changed

+16547
-16728
lines changed
File renamed without changes.
File renamed without changes.
File renamed without changes.

package-lock.json

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

package.json

Lines changed: 44 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,50 @@
11
{
2-
"name": "n0_website",
3-
"version": "1.0.0",
4-
"license": "MIT",
2+
"name": "tailwindui-protocol",
3+
"version": "0.1.0",
4+
"private": true,
55
"scripts": {
6-
"build": "parcel build src/styles/style.css --dist-dir static/styles --no-source-maps && zola build",
7-
"dev": "node dev",
8-
"parcel": "parcel watch src/styles/style.css --dist-dir static/styles --no-hmr --no-source-maps",
9-
"build_index": "node build_index"
6+
"dev": "next dev",
7+
"build": "next build",
8+
"start": "next start",
9+
"lint": "next lint"
1010
},
11+
"browserslist": "defaults, not ie <= 11",
1112
"dependencies": {
12-
"autoprefixer": "10.4.7",
13-
"parcel": "2.0.0",
14-
"postcss": "8.2.1",
15-
"tailwindcss": "3.1.6",
16-
"toml": "^3.0.0"
13+
"@algolia/autocomplete-core": "^1.7.3",
14+
"@headlessui/react": "^1.7.15",
15+
"@headlessui/tailwindcss": "^0.2.0",
16+
"@mdx-js/loader": "^2.1.5",
17+
"@mdx-js/react": "^2.1.5",
18+
"@next/mdx": "^13.0.3",
19+
"@sindresorhus/slugify": "^2.1.1",
20+
"@tailwindcss/typography": "^0.5.8",
21+
"acorn": "^8.8.1",
22+
"autoprefixer": "^10.4.7",
23+
"clsx": "^1.2.0",
24+
"fast-glob": "^3.3.0",
25+
"flexsearch": "^0.7.31",
26+
"framer-motion": "7.8.1",
27+
"mdast-util-to-string": "^3.2.0",
28+
"mdx-annotations": "^0.1.1",
29+
"next": "13.4.12",
30+
"next-themes": "^0.2.1",
31+
"react": "18.2.0",
32+
"react-dom": "18.2.0",
33+
"react-highlight-words": "^0.20.0",
34+
"remark": "^14.0.2",
35+
"remark-gfm": "^3.0.1",
36+
"remark-mdx": "^2.3.0",
37+
"shiki": "^0.11.1",
38+
"simple-functional-loader": "^1.2.1",
39+
"tailwindcss": "^3.3.3",
40+
"unist-util-filter": "^4.0.1",
41+
"unist-util-visit": "^4.1.1",
42+
"zustand": "^4.3.2"
43+
},
44+
"devDependencies": {
45+
"eslint": "8.45.0",
46+
"eslint-config-next": "13.4.12",
47+
"prettier": "^2.8.7",
48+
"prettier-plugin-tailwindcss": "^0.2.6"
1749
}
1850
}
File renamed without changes.
File renamed without changes.

readme.md

Lines changed: 26 additions & 9 deletions
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

tailwind.config.js

Lines changed: 91 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -1,54 +1,94 @@
1+
/** @type {import('tailwindcss').Config} */
12
module.exports = {
2-
content: [
3-
'./templates/**/*.html',
4-
'./static/js/**/*.js',
5-
],
6-
darkMode: 'class', // or 'media' or 'class'
7-
theme: {
8-
extend: {
9-
backgroundImage: {
10-
'iroh-kv-1': "url('/img/kv/iroh-kv-1.png')",
11-
'iroh-kv-2': "url('/img/kv/iroh-kv-2.png')",
12-
'iroh-kv-3': "url('/img/kv/iroh-kv-3.png')",
13-
'iroh-kv-4': "url('/img/kv/iroh-kv-4.png')",
14-
},
15-
colors: {
16-
'n0pink': {
17-
100: '#FFF4F3',
18-
200: '#FFE9E6',
19-
300: '#FFD2CC',
20-
400: '#FFBCB3',
21-
500: '#FFAC9C',
22-
600: '#E2847D',
23-
700: '#CC6E66',
24-
800: '#AF584F',
25-
900: '#99463D',
26-
},
27-
'irohGray': {
28-
50 : "#FAFAFA",
29-
100 : "#F8F8F8",
30-
200 : "#E4E4E7",
31-
300 : "#D4D4D8",
32-
400 : "#A1A1AA",
33-
500 : "#71717A",
34-
600 : "#52525B",
35-
700 : "#3B3B3B",
36-
800 : "#27272A",
37-
900 : "#18181B",
38-
1000 : "#0E0E0F",
39-
},
40-
'irohPurple': {
41-
500: "#7C7CFF",
42-
}
3+
content: ['./src/**/*.{js,mjs,jsx,mdx}'],
4+
darkMode: 'class',
5+
theme: {
6+
fontSize: {
7+
'2xs': ['0.75rem', { lineHeight: '1.25rem' }],
8+
xs: ['0.8125rem', { lineHeight: '1.5rem' }],
9+
sm: ['0.875rem', { lineHeight: '1.5rem' }],
10+
base: ['1rem', { lineHeight: '1.75rem' }],
11+
lg: ['1.125rem', { lineHeight: '1.75rem' }],
12+
xl: ['1.25rem', { lineHeight: '1.75rem' }],
13+
'2xl': ['1.5rem', { lineHeight: '2rem' }],
14+
'3xl': ['1.875rem', { lineHeight: '2.25rem' }],
15+
'4xl': ['2.25rem', { lineHeight: '2.5rem' }],
16+
'5xl': ['3rem', { lineHeight: '1' }],
17+
'6xl': ['3.75rem', { lineHeight: '1' }],
18+
'7xl': ['4.5rem', { lineHeight: '1' }],
19+
'8xl': ['6rem', { lineHeight: '1' }],
20+
'9xl': ['8rem', { lineHeight: '1' }],
4321
},
44-
fontFamily: {
45-
'space': ['Space Grotesk', 'sans-serif'],
46-
'space-mono': ['Space Mono', 'sans-serif']
22+
typography: require('./typography'),
23+
extend: {
24+
fontFamily: {
25+
'space': ['Space Grotesk', 'sans-serif'],
26+
'spaceMono': ['Space Mono', 'sans-serif']
27+
},
28+
boxShadow: {
29+
glow: '0 0 4px rgb(0 0 0 / 0.1)',
30+
},
31+
maxWidth: {
32+
lg: '33rem',
33+
'2xl': '40rem',
34+
'3xl': '50rem',
35+
'5xl': '66rem',
36+
},
37+
backgroundImage: {
38+
'iroh-kv-1': "url('/img/kv/iroh-kv-1.png')",
39+
'iroh-kv-2': "url('/img/kv/iroh-kv-2.png')",
40+
'iroh-kv-3': "url('/img/kv/iroh-kv-3.png')",
41+
'iroh-kv-4': "url('/img/kv/iroh-kv-4.png')",
42+
},
43+
opacity: {
44+
1: '0.01',
45+
2.5: '0.025',
46+
7.5: '0.075',
47+
15: '0.15',
48+
},
49+
colors: {
50+
'n0pink': {
51+
100: '#FFF4F3',
52+
200: '#FFE9E6',
53+
300: '#FFD2CC',
54+
400: '#FFBCB3',
55+
500: '#FFAC9C',
56+
600: '#E2847D',
57+
700: '#CC6E66',
58+
800: '#AF584F',
59+
900: '#99463D',
60+
},
61+
'irohGray': {
62+
50 : "#FAFAFA",
63+
100 : "#F8F8F8",
64+
200 : "#E4E4E7",
65+
300 : "#D4D4D8",
66+
400 : "#A1A1AA",
67+
500 : "#71717A",
68+
600 : "#52525B",
69+
700 : "#3B3B3B",
70+
800 : "#27272A",
71+
900 : "#18181B",
72+
1000 : "#0E0E0F",
73+
},
74+
'irohPurple': {
75+
// TODO - actual color gradation
76+
50: "#7C7CFF",
77+
100: "#7C7CFF",
78+
200: "#7C7CFF",
79+
300: "#7C7CFF",
80+
400: "#7C7CFF",
81+
500: "#7C7CFF",
82+
600: "#7C7CFF",
83+
700: "#7C7CFF",
84+
800: "#7C7CFF",
85+
900: "#7C7CFF",
86+
}
87+
},
4788
},
48-
},
49-
},
50-
variants: {
51-
extend: {},
52-
},
53-
plugins: [],
54-
}
89+
},
90+
plugins: [
91+
require('@tailwindcss/typography'),
92+
require('@headlessui/tailwindcss'),
93+
],
94+
}

tailwindui-protocol/.eslintrc.json

Lines changed: 0 additions & 3 deletions
This file was deleted.

tailwindui-protocol/.gitignore

Lines changed: 0 additions & 35 deletions
This file was deleted.

0 commit comments

Comments
 (0)