@designsystemsinternational/cloudflare 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +60 -0
- package/cli/index.ts +196 -0
- package/package.json +32 -0
- package/templates/dist/auth/assets/index-BqXcY2TH.css +1 -0
- package/templates/dist/auth/assets/index-TTeq04ep.js +9 -0
- package/templates/dist/auth/fonts/UniversNextPro-Medium.woff2 +0 -0
- package/templates/dist/auth/fonts/UniversNextPro-Regular.woff2 +0 -0
- package/templates/dist/auth/fonts/UniversNextTypewrtrPro-Rg.woff2 +0 -0
- package/templates/dist/auth/index.html +14 -0
- package/templates/dist/index.html +6 -0
- package/templates/eslint.config.js +23 -0
- package/templates/index.html +12 -0
- package/templates/package-lock.json +5394 -0
- package/templates/package.json +33 -0
- package/templates/postcss.config.cjs +19 -0
- package/templates/public/fonts/UniversNextPro-Medium.woff2 +0 -0
- package/templates/public/fonts/UniversNextPro-Regular.woff2 +0 -0
- package/templates/public/fonts/UniversNextTypewrtrPro-Rg.woff2 +0 -0
- package/templates/src/App.module.css +116 -0
- package/templates/src/App.tsx +116 -0
- package/templates/src/assets/Cloudflare_Logo.svg +51 -0
- package/templates/src/assets/react.svg +1 -0
- package/templates/src/main.tsx +16 -0
- package/templates/src/styles/breakpoints.css +9 -0
- package/templates/src/styles/fonts.css +17 -0
- package/templates/src/styles/globals.css +14 -0
- package/templates/src/styles/reset.css +438 -0
- package/templates/src/styles/textStyles.css +19 -0
- package/templates/src/styles/utilities.css +5 -0
- package/templates/src/styles/variables.css +195 -0
- package/templates/src/vite-env.d.ts +1 -0
- package/templates/tsconfig.app.json +28 -0
- package/templates/tsconfig.json +7 -0
- package/templates/tsconfig.node.json +26 -0
- package/templates/vite.config.ts +15 -0
- package/tsconfig.json +10 -0
- package/worker-configuration.d.ts +10851 -0
- package/workers/password/index.ts +67 -0
- package/workers/password/lib/constants.ts +1 -0
- package/workers/password/lib/schema.ts +8 -0
- package/workers/password/lib/util.ts +28 -0
- package/wrangler.jsonc +16 -0
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "auth-templates",
|
|
3
|
+
"type": "module",
|
|
4
|
+
"scripts": {
|
|
5
|
+
"dev": "vite",
|
|
6
|
+
"build": "tsc -b && vite build",
|
|
7
|
+
"lint": "eslint ."
|
|
8
|
+
},
|
|
9
|
+
"dependencies": {
|
|
10
|
+
"@cassiozen/usestatemachine": "^1.0.1",
|
|
11
|
+
"clsx": "^2.1.1",
|
|
12
|
+
"react": "^19.1.1",
|
|
13
|
+
"react-dom": "^19.1.1"
|
|
14
|
+
},
|
|
15
|
+
"devDependencies": {
|
|
16
|
+
"@csstools/postcss-global-data": "^3.1.0",
|
|
17
|
+
"@eslint/js": "^9.33.0",
|
|
18
|
+
"@lehoczky/postcss-fluid": "^1.0.3",
|
|
19
|
+
"@types/node": "^24.10.1",
|
|
20
|
+
"@types/react": "^19.1.10",
|
|
21
|
+
"@types/react-dom": "^19.1.7",
|
|
22
|
+
"@vitejs/plugin-react": "^5.0.0",
|
|
23
|
+
"eslint": "^9.33.0",
|
|
24
|
+
"eslint-plugin-react-hooks": "^5.2.0",
|
|
25
|
+
"eslint-plugin-react-refresh": "^0.4.20",
|
|
26
|
+
"globals": "^16.3.0",
|
|
27
|
+
"postcss": "^8.5.6",
|
|
28
|
+
"postcss-preset-env": "^10.3.1",
|
|
29
|
+
"typescript": "~5.8.3",
|
|
30
|
+
"typescript-eslint": "^8.39.1",
|
|
31
|
+
"vite": "^7.1.2"
|
|
32
|
+
}
|
|
33
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
module.exports = {
|
|
2
|
+
plugins: {
|
|
3
|
+
'@lehoczky/postcss-fluid': {
|
|
4
|
+
min: 360,
|
|
5
|
+
max: 1400,
|
|
6
|
+
},
|
|
7
|
+
'@csstools/postcss-global-data': {
|
|
8
|
+
files: ['./src/styles/breakpoints.css'],
|
|
9
|
+
},
|
|
10
|
+
'postcss-preset-env': {
|
|
11
|
+
preserve: false,
|
|
12
|
+
features: {
|
|
13
|
+
'custom-properties': false,
|
|
14
|
+
'cascade-layers': false,
|
|
15
|
+
'custom-media-queries': true,
|
|
16
|
+
},
|
|
17
|
+
},
|
|
18
|
+
},
|
|
19
|
+
};
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
.root {
|
|
2
|
+
display: grid;
|
|
3
|
+
grid-template-columns: repeat(3, 1fr);
|
|
4
|
+
justify-content: center;
|
|
5
|
+
align-items: end;
|
|
6
|
+
min-height: 100vh;
|
|
7
|
+
width: 100vw;
|
|
8
|
+
padding-bottom: var(--spacing-layout-gutter);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
@media (--md) {
|
|
12
|
+
.root {
|
|
13
|
+
align-items: center;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.logo {
|
|
18
|
+
position: absolute;
|
|
19
|
+
top: 0;
|
|
20
|
+
left: 0;
|
|
21
|
+
right: 0;
|
|
22
|
+
display: grid;
|
|
23
|
+
grid-template-columns: repeat(3, 1fr);
|
|
24
|
+
font-size: var(--text-sm);
|
|
25
|
+
font-weight: var(--font-weight-medium);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.logo>div {
|
|
29
|
+
padding-top: var(--spacing-layout-gutter);
|
|
30
|
+
padding-right: var(--spacing-layout-gutter);
|
|
31
|
+
padding-left: var(--spacing-layout-gutter);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.logo>div:last-child {
|
|
35
|
+
text-align: right;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.container {
|
|
39
|
+
padding-right: var(--spacing-layout-gutter);
|
|
40
|
+
padding-left: var(--spacing-layout-gutter);
|
|
41
|
+
grid-column: 1 / -1;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
@media (--md) {
|
|
45
|
+
.container {
|
|
46
|
+
grid-column: 2 / 3;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.box {
|
|
51
|
+
--input-padding: calc(1.2 * var(--spacing-sm)) var(--spacing-sm) var(--spacing-sm);
|
|
52
|
+
display: flex;
|
|
53
|
+
flex-direction: column;
|
|
54
|
+
justify-content: space-between;
|
|
55
|
+
gap: var(--spacing-xl);
|
|
56
|
+
padding: var(--spacing-sm);
|
|
57
|
+
background-color: var(--color-overlay);
|
|
58
|
+
border-radius: var(--radius-sm);
|
|
59
|
+
backdrop-filter: var(--backdrop-filter);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.box form {
|
|
63
|
+
display: flex;
|
|
64
|
+
flex-direction: column;
|
|
65
|
+
gap: var(--spacing-2xs);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.box [aria-busy] {
|
|
69
|
+
opacity: 0.5;
|
|
70
|
+
cursor: wait;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.box input {
|
|
74
|
+
border: 1px solid var(--color-border-default);
|
|
75
|
+
padding: var(--input-padding);
|
|
76
|
+
font-size: var(--text-sm);
|
|
77
|
+
border-radius: var(--radius-xs);
|
|
78
|
+
outline: none;
|
|
79
|
+
font-family: var(--font-mono);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.box input:not([aria-busy]):focus {
|
|
83
|
+
border-color: var(--color-border-focus);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.box button {
|
|
87
|
+
background: var(--color-bg-inverted-primary);
|
|
88
|
+
color: var(--color-text-inverted-primary);
|
|
89
|
+
font-size: var(--text-sm);
|
|
90
|
+
padding: var(--input-padding);
|
|
91
|
+
border-radius: var(--radius-xs);
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.box button:not([aria-busy]):hover {
|
|
95
|
+
background: var(--color-bg-inverted-secondary);
|
|
96
|
+
cursor: pointer;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.errorBox[aria-hidden] {
|
|
100
|
+
visibility: hidden;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.errorBox {
|
|
104
|
+
padding: var(--spacing-sm);
|
|
105
|
+
background: var(--color-bg-inverted-tertiary);
|
|
106
|
+
line-height: var(--leading-loose);
|
|
107
|
+
border-radius: var(--radius-xs);
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.errorBox a {
|
|
111
|
+
font-weight: var(--font-weight-medium);
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.errorBox a:hover {
|
|
115
|
+
text-decoration: underline;
|
|
116
|
+
}
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
import { useRef, useState } from 'react';
|
|
2
|
+
import cn from 'clsx';
|
|
3
|
+
import useStateMachine, { t } from '@cassiozen/usestatemachine';
|
|
4
|
+
|
|
5
|
+
import css from './App.module.css';
|
|
6
|
+
|
|
7
|
+
const LOGO = ['Design', 'Systems', 'International'];
|
|
8
|
+
|
|
9
|
+
function App() {
|
|
10
|
+
const ref = useRef<HTMLInputElement>(null);
|
|
11
|
+
const [passwordLength, setPasswordLength] = useState(0);
|
|
12
|
+
|
|
13
|
+
const [state, send] = useStateMachine({
|
|
14
|
+
schema: {
|
|
15
|
+
events: {
|
|
16
|
+
SUBMIT: t<{ data: FormData }>(),
|
|
17
|
+
},
|
|
18
|
+
},
|
|
19
|
+
initial: 'idle',
|
|
20
|
+
states: {
|
|
21
|
+
idle: {
|
|
22
|
+
on: { SUBMIT: 'submitting' },
|
|
23
|
+
effect() {
|
|
24
|
+
ref.current?.focus();
|
|
25
|
+
},
|
|
26
|
+
},
|
|
27
|
+
error: {
|
|
28
|
+
on: { SUBMIT: 'submitting' },
|
|
29
|
+
effect() {
|
|
30
|
+
ref.current?.focus();
|
|
31
|
+
},
|
|
32
|
+
},
|
|
33
|
+
submitting: {
|
|
34
|
+
on: { ERROR: 'error' },
|
|
35
|
+
effect({ event, send }: {
|
|
36
|
+
event: { type: 'SUBMIT', data: FormData },
|
|
37
|
+
send: (type: 'ERROR') => void,
|
|
38
|
+
}) {
|
|
39
|
+
fetch('/auth/authenticate', {
|
|
40
|
+
method: 'POST',
|
|
41
|
+
body: event.data
|
|
42
|
+
})
|
|
43
|
+
.then((res) => res.json())
|
|
44
|
+
.then((data) => {
|
|
45
|
+
console.log(data);
|
|
46
|
+
if (data.success === true) {
|
|
47
|
+
const urlParams = new URLSearchParams(window.location.search);
|
|
48
|
+
const next = urlParams.get('next') || '/';
|
|
49
|
+
window.location.href = next;
|
|
50
|
+
} else {
|
|
51
|
+
send('ERROR');
|
|
52
|
+
}
|
|
53
|
+
})
|
|
54
|
+
.catch(() => {
|
|
55
|
+
send('ERROR');
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
});
|
|
61
|
+
|
|
62
|
+
const handleSubmit = (e: React.FormEvent<HTMLFormElement>) => {
|
|
63
|
+
e.preventDefault();
|
|
64
|
+
const formData = new FormData(e.currentTarget);
|
|
65
|
+
send({ type: 'SUBMIT', data: formData });
|
|
66
|
+
};
|
|
67
|
+
|
|
68
|
+
const logo = LOGO.map((_, i) => LOGO[(i + passwordLength) % LOGO.length]);
|
|
69
|
+
|
|
70
|
+
return (
|
|
71
|
+
<div className={css.root}>
|
|
72
|
+
<div className={css.logo}>
|
|
73
|
+
{logo.map((w) => (
|
|
74
|
+
<div key={w}>{w}</div>
|
|
75
|
+
))}
|
|
76
|
+
</div>
|
|
77
|
+
<div className={css.container}>
|
|
78
|
+
<div className={css.box}>
|
|
79
|
+
<div>
|
|
80
|
+
<h1 className={cn('text-sm', 'text-secondary')}>
|
|
81
|
+
Password required
|
|
82
|
+
</h1>
|
|
83
|
+
<div className={cn('text-sm', 'text-primary')}>
|
|
84
|
+
Please enter your password to get access.
|
|
85
|
+
</div>
|
|
86
|
+
</div>
|
|
87
|
+
<form onSubmit={handleSubmit}>
|
|
88
|
+
<div
|
|
89
|
+
aria-hidden={state.value !== 'error' || undefined}
|
|
90
|
+
className={cn(css.errorBox, 'text-xs')}>
|
|
91
|
+
The entered password is invalid. If you forgot your password
|
|
92
|
+
reach out to us at <a href="mailto: i@designsystems.international">i@designsystems.international</a>.
|
|
93
|
+
</div>
|
|
94
|
+
|
|
95
|
+
<input
|
|
96
|
+
ref={ref}
|
|
97
|
+
aria-busy={state.value === 'submitting' || undefined}
|
|
98
|
+
name="password"
|
|
99
|
+
type="password"
|
|
100
|
+
placeholder="Password"
|
|
101
|
+
onChange={(e) => setPasswordLength(e.target.value.length)}
|
|
102
|
+
/>
|
|
103
|
+
<button
|
|
104
|
+
aria-busy={state.value === 'submitting' || undefined}
|
|
105
|
+
type="submit"
|
|
106
|
+
>
|
|
107
|
+
{state.value === 'submitting' ? 'Loading...' : 'Authenticate'}
|
|
108
|
+
</button>
|
|
109
|
+
</form>
|
|
110
|
+
</div>
|
|
111
|
+
</div>
|
|
112
|
+
</div>
|
|
113
|
+
);
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
export default App;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
+
<!-- Generator: Adobe Illustrator 21.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
|
3
|
+
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
|
4
|
+
viewBox="0 0 822.8 355.5" style="enable-background:new 0 0 822.8 355.5;" xml:space="preserve">
|
|
5
|
+
<style type="text/css">
|
|
6
|
+
.st0{fill:#FFFFFF;}
|
|
7
|
+
.st1{fill:#FBAE40;}
|
|
8
|
+
.st2{fill:#F58220;}
|
|
9
|
+
</style>
|
|
10
|
+
<g id="Page-1">
|
|
11
|
+
<path id="CLOUDFLARE-_xAE_" class="st0" d="M772.2,252.6c-3.4,0-6.1-2.7-6.1-6.1c0-3.3,2.7-6.1,6.1-6.1c3.3,0,6.1,2.7,6.1,6.1
|
|
12
|
+
C778.3,249.8,775.5,252.6,772.2,252.6L772.2,252.6z M772.2,241.6c-2.7,0-4.9,2.2-4.9,4.9s2.2,4.9,4.9,4.9c2.7,0,4.9-2.2,4.9-4.9
|
|
13
|
+
S774.9,241.6,772.2,241.6L772.2,241.6z M775.3,249.7h-1.4l-1.2-2.3h-1.6v2.3h-1.3V243h3.2c1.4,0,2.3,0.9,2.3,2.2c0,1-0.6,1.7-1.4,2
|
|
14
|
+
L775.3,249.7z M772.9,246.2c0.5,0,1-0.3,1-1c0-0.8-0.4-1-1-1h-2v2H772.9z M136.7,239.8h15.6v42.5h27.1v13.6h-42.7V239.8z
|
|
15
|
+
M195.5,268v-0.2c0-16.1,13-29.2,30.3-29.2s30.1,12.9,30.1,29v0.2c0,16.1-13,29.2-30.3,29.2S195.5,284.1,195.5,268z M240.1,268
|
|
16
|
+
v-0.2c0-8.1-5.8-15.1-14.4-15.1c-8.5,0-14.2,6.9-14.2,15v0.2c0,8.1,5.8,15.1,14.3,15.1C234.4,283,240.1,276.1,240.1,268z
|
|
17
|
+
M275,271.3v-31.5h15.8V271c0,8.1,4.1,11.9,10.3,11.9c6.2,0,10.3-3.7,10.3-11.5v-31.6h15.8v31.1c0,18.1-10.3,26-26.3,26
|
|
18
|
+
C285,296.9,275,288.9,275,271.3z M351,239.8h21.6c20,0,31.7,11.5,31.7,27.7v0.2c0,16.2-11.8,28.2-32,28.2H351V239.8z M372.9,282.1
|
|
19
|
+
c9.3,0,15.5-5.1,15.5-14.2v-0.2c0-9-6.2-14.2-15.5-14.2h-6.3V282L372.9,282.1L372.9,282.1z M426.9,239.8h44.9v13.6h-29.4v9.6H469
|
|
20
|
+
v12.9h-26.6v20h-15.5V239.8z M493.4,239.8h15.5v42.5h27.2v13.6h-42.7V239.8z M576.7,239.4h15l23.9,56.5h-16.7l-4.1-10h-21.6l-4,10
|
|
21
|
+
h-16.3L576.7,239.4z M590.4,273.8l-6.2-15.9l-6.3,15.9H590.4z M635.6,239.8h26.5c8.6,0,14.5,2.2,18.3,6.1c3.3,3.2,5,7.5,5,13.1v0.2
|
|
22
|
+
c0,8.6-4.6,14.3-11.5,17.2l13.4,19.6h-18L658,279h-6.8v17h-15.6V239.8z M661.4,266.7c5.3,0,8.3-2.6,8.3-6.6v-0.2
|
|
23
|
+
c0-4.4-3.2-6.6-8.4-6.6h-10.2v13.4H661.4z M707.8,239.8h45.1V253h-29.7v8.5h26.9v12.3h-26.9v8.9h30.1v13.2h-45.5V239.8z
|
|
24
|
+
M102.7,274.6c-2.2,4.9-6.8,8.4-12.8,8.4c-8.5,0-14.3-7.1-14.3-15.1v-0.2c0-8.1,5.7-15,14.2-15c6.4,0,11.3,3.9,13.3,9.3h16.4
|
|
25
|
+
c-2.6-13.4-14.4-23.3-29.6-23.3c-17.3,0-30.3,13.1-30.3,29.2v0.2c0,16.1,12.8,29,30.1,29c14.8,0,26.4-9.6,29.4-22.4L102.7,274.6z"
|
|
26
|
+
/>
|
|
27
|
+
<path id="flare" class="st0" d="M734.5,150.4l-40.7-24.7c-0.6-0.1-4.4,0.3-6.4-0.7c-1.4-0.7-2.5-1.9-3.2-4c-3.2,0-175.5,0-175.5,0
|
|
28
|
+
v91.8h225.8V150.4z"/>
|
|
29
|
+
<path id="right-cloud" class="st1" d="M692.2,125.8c-0.8,0-1.5,0.6-1.8,1.4l-4.8,16.7c-2.1,7.2-1.3,13.8,2.2,18.7
|
|
30
|
+
c3.2,4.5,8.6,7.1,15.1,7.4l26.2,1.6c0.8,0,1.5,0.4,1.9,1c0.4,0.6,0.5,1.5,0.3,2.2c-0.4,1.2-1.6,2.1-2.9,2.2l-27.3,1.6
|
|
31
|
+
c-14.8,0.7-30.7,12.6-36.3,27.2l-2,5.1c-0.4,1,0.3,2,1.4,2H758c1.1,0,2.1-0.7,2.4-1.8c1.6-5.8,2.5-11.9,2.5-18.2
|
|
32
|
+
c0-37-30.2-67.2-67.3-67.2C694.5,125.7,693.3,125.7,692.2,125.8z"/>
|
|
33
|
+
<path id="left-cloud" class="st2" d="M656.4,204.6c2.1-7.2,1.3-13.8-2.2-18.7c-3.2-4.5-8.6-7.1-15.1-7.4L516,176.9
|
|
34
|
+
c-0.8,0-1.5-0.4-1.9-1c-0.4-0.6-0.5-1.4-0.3-2.2c0.4-1.2,1.6-2.1,2.9-2.2l124.2-1.6c14.7-0.7,30.7-12.6,36.3-27.2l7.1-18.5
|
|
35
|
+
c0.3-0.8,0.4-1.6,0.2-2.4c-8-36.2-40.3-63.2-78.9-63.2c-35.6,0-65.8,23-76.6,54.9c-7-5.2-15.9-8-25.5-7.1
|
|
36
|
+
c-17.1,1.7-30.8,15.4-32.5,32.5c-0.4,4.4-0.1,8.7,0.9,12.7c-27.9,0.8-50.2,23.6-50.2,51.7c0,2.5,0.2,5,0.5,7.5
|
|
37
|
+
c0.2,1.2,1.2,2.1,2.4,2.1h227.2c1.3,0,2.5-0.9,2.9-2.2L656.4,204.6z"/>
|
|
38
|
+
</g>
|
|
39
|
+
<g>
|
|
40
|
+
</g>
|
|
41
|
+
<g>
|
|
42
|
+
</g>
|
|
43
|
+
<g>
|
|
44
|
+
</g>
|
|
45
|
+
<g>
|
|
46
|
+
</g>
|
|
47
|
+
<g>
|
|
48
|
+
</g>
|
|
49
|
+
<g>
|
|
50
|
+
</g>
|
|
51
|
+
</svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--logos" width="35.93" height="32" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 228"><path fill="#00D8FF" d="M210.483 73.824a171.49 171.49 0 0 0-8.24-2.597c.465-1.9.893-3.777 1.273-5.621c6.238-30.281 2.16-54.676-11.769-62.708c-13.355-7.7-35.196.329-57.254 19.526a171.23 171.23 0 0 0-6.375 5.848a155.866 155.866 0 0 0-4.241-3.917C100.759 3.829 77.587-4.822 63.673 3.233C50.33 10.957 46.379 33.89 51.995 62.588a170.974 170.974 0 0 0 1.892 8.48c-3.28.932-6.445 1.924-9.474 2.98C17.309 83.498 0 98.307 0 113.668c0 15.865 18.582 31.778 46.812 41.427a145.52 145.52 0 0 0 6.921 2.165a167.467 167.467 0 0 0-2.01 9.138c-5.354 28.2-1.173 50.591 12.134 58.266c13.744 7.926 36.812-.22 59.273-19.855a145.567 145.567 0 0 0 5.342-4.923a168.064 168.064 0 0 0 6.92 6.314c21.758 18.722 43.246 26.282 56.54 18.586c13.731-7.949 18.194-32.003 12.4-61.268a145.016 145.016 0 0 0-1.535-6.842c1.62-.48 3.21-.974 4.76-1.488c29.348-9.723 48.443-25.443 48.443-41.52c0-15.417-17.868-30.326-45.517-39.844Zm-6.365 70.984c-1.4.463-2.836.91-4.3 1.345c-3.24-10.257-7.612-21.163-12.963-32.432c5.106-11 9.31-21.767 12.459-31.957c2.619.758 5.16 1.557 7.61 2.4c23.69 8.156 38.14 20.213 38.14 29.504c0 9.896-15.606 22.743-40.946 31.14Zm-10.514 20.834c2.562 12.94 2.927 24.64 1.23 33.787c-1.524 8.219-4.59 13.698-8.382 15.893c-8.067 4.67-25.32-1.4-43.927-17.412a156.726 156.726 0 0 1-6.437-5.87c7.214-7.889 14.423-17.06 21.459-27.246c12.376-1.098 24.068-2.894 34.671-5.345a134.17 134.17 0 0 1 1.386 6.193ZM87.276 214.515c-7.882 2.783-14.16 2.863-17.955.675c-8.075-4.657-11.432-22.636-6.853-46.752a156.923 156.923 0 0 1 1.869-8.499c10.486 2.32 22.093 3.988 34.498 4.994c7.084 9.967 14.501 19.128 21.976 27.15a134.668 134.668 0 0 1-4.877 4.492c-9.933 8.682-19.886 14.842-28.658 17.94ZM50.35 144.747c-12.483-4.267-22.792-9.812-29.858-15.863c-6.35-5.437-9.555-10.836-9.555-15.216c0-9.322 13.897-21.212 37.076-29.293c2.813-.98 5.757-1.905 8.812-2.773c3.204 10.42 7.406 21.315 12.477 32.332c-5.137 11.18-9.399 22.249-12.634 32.792a134.718 134.718 0 0 1-6.318-1.979Zm12.378-84.26c-4.811-24.587-1.616-43.134 6.425-47.789c8.564-4.958 27.502 2.111 47.463 19.835a144.318 144.318 0 0 1 3.841 3.545c-7.438 7.987-14.787 17.08-21.808 26.988c-12.04 1.116-23.565 2.908-34.161 5.309a160.342 160.342 0 0 1-1.76-7.887Zm110.427 27.268a347.8 347.8 0 0 0-7.785-12.803c8.168 1.033 15.994 2.404 23.343 4.08c-2.206 7.072-4.956 14.465-8.193 22.045a381.151 381.151 0 0 0-7.365-13.322Zm-45.032-43.861c5.044 5.465 10.096 11.566 15.065 18.186a322.04 322.04 0 0 0-30.257-.006c4.974-6.559 10.069-12.652 15.192-18.18ZM82.802 87.83a323.167 323.167 0 0 0-7.227 13.238c-3.184-7.553-5.909-14.98-8.134-22.152c7.304-1.634 15.093-2.97 23.209-3.984a321.524 321.524 0 0 0-7.848 12.897Zm8.081 65.352c-8.385-.936-16.291-2.203-23.593-3.793c2.26-7.3 5.045-14.885 8.298-22.6a321.187 321.187 0 0 0 7.257 13.246c2.594 4.48 5.28 8.868 8.038 13.147Zm37.542 31.03c-5.184-5.592-10.354-11.779-15.403-18.433c4.902.192 9.899.29 14.978.29c5.218 0 10.376-.117 15.453-.343c-4.985 6.774-10.018 12.97-15.028 18.486Zm52.198-57.817c3.422 7.8 6.306 15.345 8.596 22.52c-7.422 1.694-15.436 3.058-23.88 4.071a382.417 382.417 0 0 0 7.859-13.026a347.403 347.403 0 0 0 7.425-13.565Zm-16.898 8.101a358.557 358.557 0 0 1-12.281 19.815a329.4 329.4 0 0 1-23.444.823c-7.967 0-15.716-.248-23.178-.732a310.202 310.202 0 0 1-12.513-19.846h.001a307.41 307.41 0 0 1-10.923-20.627a310.278 310.278 0 0 1 10.89-20.637l-.001.001a307.318 307.318 0 0 1 12.413-19.761c7.613-.576 15.42-.876 23.31-.876H128c7.926 0 15.743.303 23.354.883a329.357 329.357 0 0 1 12.335 19.695a358.489 358.489 0 0 1 11.036 20.54a329.472 329.472 0 0 1-11 20.722Zm22.56-122.124c8.572 4.944 11.906 24.881 6.52 51.026c-.344 1.668-.73 3.367-1.15 5.09c-10.622-2.452-22.155-4.275-34.23-5.408c-7.034-10.017-14.323-19.124-21.64-27.008a160.789 160.789 0 0 1 5.888-5.4c18.9-16.447 36.564-22.941 44.612-18.3ZM128 90.808c12.625 0 22.86 10.235 22.86 22.86s-10.235 22.86-22.86 22.86s-22.86-10.235-22.86-22.86s10.235-22.86 22.86-22.86Z"></path></svg>
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { StrictMode } from "react";
|
|
2
|
+
import { createRoot } from "react-dom/client";
|
|
3
|
+
import App from "./App.tsx";
|
|
4
|
+
|
|
5
|
+
import "./styles/fonts.css";
|
|
6
|
+
import "./styles/reset.css";
|
|
7
|
+
import "./styles/breakpoints.css";
|
|
8
|
+
import "./styles/variables.css";
|
|
9
|
+
import "./styles/globals.css";
|
|
10
|
+
import "./styles/textStyles.css";
|
|
11
|
+
|
|
12
|
+
createRoot(document.getElementById("root")!).render(
|
|
13
|
+
<StrictMode>
|
|
14
|
+
<App />
|
|
15
|
+
</StrictMode>
|
|
16
|
+
);
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Breakpoints, but defined as custom media,
|
|
3
|
+
* so we can do @media (--sm) in our custom CSS.
|
|
4
|
+
*/
|
|
5
|
+
@custom-media --sm (min-width: 42rem);
|
|
6
|
+
@custom-media --md (min-width: 56rem);
|
|
7
|
+
@custom-media --lg (min-width: 72rem);
|
|
8
|
+
@custom-media --xl (min-width: 100rem);
|
|
9
|
+
@custom-media --max (min-width: 120rem);
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
@font-face {
|
|
2
|
+
font-family: Univers;
|
|
3
|
+
font-weight: 400;
|
|
4
|
+
src: url("/fonts/UniversNextPro-Regular.woff2") format("woff2");
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
@font-face {
|
|
8
|
+
font-family: Univers;
|
|
9
|
+
font-weight: 600;
|
|
10
|
+
src: url("/fonts/UniversNextPro-Medium.woff2") format("woff2");
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
@font-face {
|
|
14
|
+
font-family: Typewriter;
|
|
15
|
+
font-weight: 400;
|
|
16
|
+
src: url("/fonts/UniversNextTypewrtrPro-Rg.woff2") format("woff2");
|
|
17
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
body {
|
|
2
|
+
padding: 0;
|
|
3
|
+
overflow-x: hidden;
|
|
4
|
+
background: var(--color-bg-secondary);
|
|
5
|
+
color: var(--color-text-primary);
|
|
6
|
+
font-family: var(--font-sans);
|
|
7
|
+
font-size: var(--text-md);
|
|
8
|
+
line-height: var(--leading-normal);
|
|
9
|
+
|
|
10
|
+
/* stylelint-disable */
|
|
11
|
+
-webkit-font-smoothing: antialiased;
|
|
12
|
+
-moz-osx-font-smoothing: grayscale;
|
|
13
|
+
/* stylelint-enable */
|
|
14
|
+
}
|