-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
86 lines (86 loc) · 2.94 KB
/
index.html
File metadata and controls
86 lines (86 loc) · 2.94 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="theme-color" content="#F5F5F0" />
<title>Engineer Diary</title>
<script src="https://cdn.tailwindcss.com"></script>
<script>
tailwind.config = {
theme: {
extend: {
colors: {
paper: '#F5F5F0',
ink: '#1A1A1A',
accent: '#FF3333',
success: '#00CC66'
},
fontFamily: {
mono: ['"Courier Prime"', 'Menlo', 'Monaco', 'Consolas', '"Liberation Mono"', '"Courier New"', 'monospace'],
// Optimized stack: Merriweather for Latin, Noto Serif SC for Chinese, falling back to system Songti
serif: ['"Merriweather"', '"Noto Serif SC"', '"Songti SC"', '"Source Han Serif SC"', '"SimSun"', 'Georgia', 'serif'],
sans: ['"Inter"', '"PingFang SC"', '"Hiragino Sans GB"', '"Microsoft YaHei"', 'sans-serif']
},
typography: (theme) => ({
DEFAULT: {
css: {
color: theme('colors.ink'),
'--tw-prose-body': theme('colors.ink'),
'--tw-prose-headings': theme('colors.ink'),
'--tw-prose-links': theme('colors.ink'),
p: {
fontWeight: '400',
opacity: '0.9',
},
},
},
}),
}
}
}
</script>
<link href="https://fonts.googleapis.com/css2?family=Courier+Prime:ital,wght@0,400;0,700;1,400&family=Inter:wght@400;500;600&family=Merriweather:ital,wght@0,300;0,400;0,700;1,300;1,400&family=Noto+Serif+SC:wght@300;400;700&display=swap" rel="stylesheet">
<style>
body {
background-color: #F5F5F0;
color: #1A1A1A;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
/* Custom Scrollbar to match the brutalist/terminal vibe */
::-webkit-scrollbar {
width: 8px;
height: 8px;
}
::-webkit-scrollbar-track {
background: #F5F5F0;
border-left: 1px solid #000;
}
::-webkit-scrollbar-thumb {
background: #1A1A1A;
border: 1px solid #F5F5F0;
}
::-webkit-scrollbar-thumb:hover {
background: #333;
}
</style>
<script type="importmap">
{
"imports": {
"react-dom/": "https://esm.sh/react-dom@^19.2.4/",
"react/": "https://esm.sh/react@^19.2.4/",
"react": "https://esm.sh/react@^19.2.4",
"react-markdown": "https://esm.sh/react-markdown@^10.1.0",
"lucide-react": "https://esm.sh/lucide-react@^0.563.0",
"vite": "https://esm.sh/vite@^7.3.1",
"@vitejs/plugin-react": "https://esm.sh/@vitejs/plugin-react@^5.1.2"
}
}
</script>
</head>
<body>
<div id="root"></div>
<script type="module" src="/index.tsx"></script>
</body>
</html>