Skip to content

Commit dfcbbc5

Browse files
author
molty3000
committed
Migrate to shared asset hub: use assets.21no.de CSS/fonts, remove Google Fonts CDN and inline styles
1 parent ddcc729 commit dfcbbc5

1 file changed

Lines changed: 8 additions & 296 deletions

File tree

‎docs/index.html‎

Lines changed: 8 additions & 296 deletions
Original file line numberDiff line numberDiff line change
@@ -9,302 +9,14 @@
99
<meta property="og:description" content="Zero-dependency vector similarity library. Four distance metrics, in-memory vector store, pure Go.">
1010
<meta property="og:type" content="website">
1111
<meta name="twitter:card" content="summary_large_image">
12-
<link rel="preconnect" href="https://fonts.googleapis.com">
13-
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
14-
<link href="https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap" rel="stylesheet">
15-
<style>
16-
/* === Font Faces === */
17-
@font-face {
18-
font-family: 'Monaspace Neon';
19-
src: url('https://raw.githubusercontent.com/githubnext/monaspace/main/fonts/webfonts/MonaspaceNeon-Regular.woff2') format('woff2');
20-
font-weight: 400;
21-
font-style: normal;
22-
font-display: swap;
23-
}
24-
@font-face {
25-
font-family: 'Monaspace Neon';
26-
src: url('https://raw.githubusercontent.com/githubnext/monaspace/main/fonts/webfonts/MonaspaceNeon-Medium.woff2') format('woff2');
27-
font-weight: 500;
28-
font-style: normal;
29-
font-display: swap;
30-
}
31-
32-
/* === Design Tokens === */
33-
:root {
34-
--bg-primary: #0a0a0b;
35-
--bg-secondary: #111113;
36-
--bg-card: #16161a;
37-
--bg-code: #0d0d10;
38-
--border-subtle: rgba(255,255,255,0.06);
39-
--border-card: rgba(255,255,255,0.08);
40-
--text-primary: #ededef;
41-
--text-secondary: #9b9ba3;
42-
--text-tertiary: #6b6b75;
43-
--accent: #7ee787;
44-
--accent-glow: rgba(126, 231, 135, 0.12);
45-
--accent-subtle: rgba(126, 231, 135, 0.08);
46-
--blue: #58a6ff;
47-
--blue-subtle: rgba(88, 166, 255, 0.1);
48-
--purple: #d2a8ff;
49-
--purple-subtle: rgba(210, 168, 255, 0.1);
50-
--orange: #ffa657;
51-
--orange-subtle: rgba(255, 166, 87, 0.1);
52-
--green: #3dd68c;
53-
--yellow: #f5d90a;
54-
--red: #e5484d;
55-
--radius-sm: 6px;
56-
--radius-md: 8px;
57-
--radius-lg: 12px;
58-
--font-sans: 'Outfit', system-ui, -apple-system, sans-serif;
59-
--font-mono: 'Monaspace Neon', 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, monospace;
60-
--max-width: 1100px;
61-
}
62-
63-
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
64-
html { scroll-behavior: smooth; }
65-
body {
66-
font-family: var(--font-sans);
67-
background: var(--bg-primary);
68-
color: var(--text-primary);
69-
line-height: 1.6;
70-
-webkit-font-smoothing: antialiased;
71-
}
72-
a { color: var(--accent); text-decoration: none; transition: color 0.15s; }
73-
a:hover { color: #a3f0aa; }
74-
code, pre { font-family: var(--font-mono); }
75-
76-
/* === Nav === */
77-
.nav {
78-
position: sticky; top: 0; z-index: 100;
79-
background: rgba(10,10,11,0.85); backdrop-filter: blur(12px);
80-
border-bottom: 1px solid var(--border-subtle);
81-
}
82-
.nav-inner {
83-
display: flex; align-items: center; justify-content: space-between;
84-
height: 56px; max-width: var(--max-width); margin: 0 auto; padding: 0 24px;
85-
}
86-
.nav-logo {
87-
display: flex; align-items: center; gap: 10px;
88-
font-weight: 600; font-size: 18px; color: var(--text-primary);
89-
letter-spacing: -0.3px;
90-
}
91-
.nav-logo .icon {
92-
width: 28px; height: 28px; border-radius: var(--radius-sm);
93-
background: linear-gradient(135deg, var(--accent), #5bc88c);
94-
display: flex; align-items: center; justify-content: center;
95-
font-family: var(--font-mono); font-size: 14px; font-weight: 600; color: #0a0a0b;
96-
}
97-
.nav-links { display: flex; gap: 24px; align-items: center; }
98-
.nav-links a { font-size: 14px; color: var(--text-secondary); }
99-
.nav-links a:hover { color: var(--text-primary); }
100-
.nav-cta {
101-
background: var(--text-primary); color: var(--bg-primary) !important;
102-
padding: 6px 14px; border-radius: var(--radius-sm); font-weight: 500 !important;
103-
}
104-
.nav-cta:hover { opacity: 0.85; }
105-
106-
/* === Hero === */
107-
.hero {
108-
padding: 100px 0 80px; text-align: center; position: relative; overflow: hidden;
109-
}
110-
.hero::before {
111-
content: ''; position: absolute; top: -40%; left: 50%; transform: translateX(-50%);
112-
width: 800px; height: 800px;
113-
background: radial-gradient(circle, var(--accent-glow) 0%, transparent 60%);
114-
pointer-events: none;
115-
}
116-
.hero-badge {
117-
display: inline-flex; align-items: center; gap: 6px;
118-
background: var(--accent-subtle); border: 1px solid rgba(126,231,135,0.2);
119-
color: var(--accent); padding: 4px 14px; border-radius: 999px;
120-
font-size: 13px; font-weight: 500; margin-bottom: 28px;
121-
}
122-
.hero-badge .dot { width: 6px; height: 6px; background: var(--accent); border-radius: 50%; }
123-
.hero h1 {
124-
font-size: 64px; font-weight: 700; letter-spacing: -2.4px; line-height: 1.05;
125-
margin-bottom: 20px;
126-
}
127-
.hero h1 .accent { color: var(--accent); }
128-
.hero p {
129-
font-size: 20px; color: var(--text-secondary); font-weight: 300;
130-
max-width: 640px; margin: 0 auto 36px; line-height: 1.7;
131-
}
132-
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
133-
.btn {
134-
display: inline-flex; align-items: center; gap: 6px;
135-
padding: 10px 22px; border-radius: var(--radius-sm);
136-
font-family: var(--font-sans); font-size: 14px; font-weight: 500;
137-
cursor: pointer; transition: all 0.15s; border: none; text-decoration: none;
138-
}
139-
.btn-primary { background: var(--accent); color: #000; box-shadow: 0 0 20px var(--accent-glow); }
140-
.btn-primary:hover { background: #a3f0aa; color: #000; }
141-
.btn-secondary {
142-
background: transparent; color: var(--text-secondary);
143-
border: 1px solid var(--border-card);
144-
}
145-
.btn-secondary:hover { border-color: rgba(255,255,255,0.15); color: var(--text-primary); }
146-
147-
/* === Code Block === */
148-
.code-block {
149-
max-width: 680px; margin: 48px auto 0;
150-
background: var(--bg-code); border: 1px solid var(--border-card);
151-
border-radius: var(--radius-lg); overflow: hidden;
152-
text-align: left;
153-
}
154-
.code-block .bar {
155-
display: flex; align-items: center; gap: 8px;
156-
padding: 12px 16px; border-bottom: 1px solid var(--border-subtle);
157-
}
158-
.code-block .bar .dot { width: 10px; height: 10px; border-radius: 50%; }
159-
.code-block .bar .dot.r { background: var(--red); }
160-
.code-block .bar .dot.y { background: var(--yellow); }
161-
.code-block .bar .dot.g { background: var(--green); }
162-
.code-block .bar .title { font-size: 12px; color: var(--text-tertiary); margin-left: 8px; }
163-
.code-block pre {
164-
padding: 20px; overflow-x: auto; font-size: 13px; line-height: 1.75;
165-
color: #c9d1d9; margin: 0;
166-
}
167-
.code-block .kw { color: #ff7b72; }
168-
.code-block .str { color: #a5d6ff; }
169-
.code-block .fn { color: #d2a8ff; }
170-
.code-block .cmt { color: #8b949e; font-style: italic; }
171-
.code-block .pkg { color: #7ee787; }
172-
173-
/* === Sections === */
174-
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
175-
.section { padding: 100px 0; }
176-
.section-label {
177-
font-family: var(--font-mono); font-size: 12px; font-weight: 500;
178-
color: var(--accent); text-transform: uppercase; letter-spacing: 0.8px;
179-
margin-bottom: 12px;
180-
}
181-
.section h2 {
182-
font-size: 40px; font-weight: 600; letter-spacing: -1.2px; line-height: 1.2;
183-
margin-bottom: 16px;
184-
}
185-
.section p.lead {
186-
font-size: 18px; color: var(--text-secondary); font-weight: 300;
187-
max-width: 600px; line-height: 1.7; margin-bottom: 48px;
188-
}
189-
190-
/* === Stats === */
191-
.stats {
192-
display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
193-
}
194-
.stat {
195-
text-align: center; padding: 32px 16px;
196-
background: var(--bg-card); border: 1px solid var(--border-card);
197-
border-radius: var(--radius-lg);
198-
}
199-
.stat .num {
200-
font-size: 40px; font-weight: 700; letter-spacing: -1.6px;
201-
background: linear-gradient(135deg, var(--accent), #5bc88c);
202-
-webkit-background-clip: text; -webkit-text-fill-color: transparent;
203-
background-clip: text;
204-
}
205-
.stat .label { font-size: 13px; color: var(--text-tertiary); margin-top: 4px; }
206-
207-
/* === Feature Grid === */
208-
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
209-
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
210-
.card {
211-
background: var(--bg-card); border: 1px solid var(--border-card);
212-
border-radius: var(--radius-lg); padding: 28px;
213-
transition: border-color 0.2s, transform 0.2s;
214-
}
215-
.card:hover { border-color: rgba(255,255,255,0.12); transform: translateY(-1px); }
216-
.card-icon {
217-
width: 40px; height: 40px; border-radius: var(--radius-sm);
218-
display: flex; align-items: center; justify-content: center;
219-
font-size: 20px; margin-bottom: 16px;
220-
}
221-
.card-icon.blue { background: var(--blue-subtle); color: var(--blue); }
222-
.card-icon.green { background: var(--accent-subtle); color: var(--accent); }
223-
.card-icon.purple { background: var(--purple-subtle); color: var(--purple); }
224-
.card-icon.orange { background: var(--orange-subtle); color: var(--orange); }
225-
.card h3 { font-size: 18px; font-weight: 600; margin-bottom: 8px; letter-spacing: -0.3px; }
226-
.card p { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }
227-
228-
/* === Perf Table === */
229-
.perf-table {
230-
width: 100%; border-collapse: collapse; margin-top: 24px;
231-
font-family: var(--font-mono); font-size: 13px;
232-
}
233-
.perf-table th {
234-
text-align: left; font-family: var(--font-sans); font-size: 12px; font-weight: 500;
235-
color: var(--text-tertiary); text-transform: uppercase; letter-spacing: 0.5px;
236-
padding: 10px 16px; border-bottom: 1px solid var(--border-subtle);
237-
}
238-
.perf-table td {
239-
padding: 10px 16px; border-bottom: 1px solid var(--border-subtle);
240-
}
241-
.perf-table .name { color: var(--text-primary); }
242-
.perf-table .time { color: var(--accent); font-weight: 500; }
243-
.perf-table .alloc { color: var(--text-secondary); }
244-
245-
/* === Security grid === */
246-
.security-row {
247-
display: flex; align-items: center; gap: 12px; padding: 10px 0;
248-
border-bottom: 1px solid var(--border-subtle);
249-
font-size: 14px;
250-
}
251-
.security-row:last-child { border-bottom: none; }
252-
.badge { font-size: 12px; padding: 2px 8px; border-radius: 999px; font-weight: 500; }
253-
.badge.g { background: rgba(61,214,140,0.12); color: var(--green); }
254-
.badge.y { background: rgba(245,217,10,0.1); color: var(--yellow); }
255-
256-
/* === Install === */
257-
.install-box {
258-
background: var(--bg-code); border: 1px solid var(--border-card);
259-
border-radius: var(--radius-lg); padding: 20px 24px;
260-
display: flex; align-items: center; gap: 12px;
261-
max-width: 420px; margin-top: 24px;
262-
}
263-
.install-box .prompt { color: var(--green); font-family: var(--font-mono); font-size: 13px; }
264-
.install-box code { color: var(--text-primary); font-size: 13px; }
265-
266-
/* === Footer === */
267-
.footer {
268-
border-top: 1px solid var(--border-subtle); padding: 40px 0;
269-
text-align: center; color: var(--text-tertiary); font-size: 13px;
270-
}
271-
.footer a { color: var(--text-secondary); }
272-
.footer a:hover { color: var(--text-primary); }
273-
274-
/* === Use Cases === */
275-
.usecase {
276-
display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
277-
padding: 48px 0; border-bottom: 1px solid var(--border-subtle);
278-
}
279-
.usecase:last-child { border-bottom: none; }
280-
.usecase h3 { font-size: 24px; font-weight: 600; letter-spacing: -0.6px; margin-bottom: 8px; }
281-
.usecase p { font-size: 15px; color: var(--text-secondary); line-height: 1.7; font-weight: 300; }
282-
.code-mini {
283-
background: var(--bg-code); border: 1px solid var(--border-card);
284-
border-radius: var(--radius-md); padding: 20px; overflow-x: auto;
285-
font-size: 12px; line-height: 1.7; color: #c9d1d9;
286-
}
287-
.code-mini .kw { color: #ff7b72; }
288-
.code-mini .str { color: #a5d6ff; }
289-
.code-mini .fn { color: #d2a8ff; }
290-
.code-mini .cmt { color: #8b949e; }
291-
.code-mini .pkg { color: #7ee787; }
292-
293-
/* === Responsive === */
294-
@media (max-width: 768px) {
295-
.hero h1 { font-size: 40px; letter-spacing: -1.6px; }
296-
.grid-3, .grid-2 { grid-template-columns: 1fr; }
297-
.stats { grid-template-columns: repeat(2, 1fr); }
298-
.usecase { grid-template-columns: 1fr; gap: 24px; }
299-
.section h2 { font-size: 30px; }
300-
.section { padding: 64px 0; }
301-
.nav-links { display: none; }
302-
}
303-
@media (max-width: 480px) {
304-
.hero h1 { font-size: 32px; }
305-
.stats { grid-template-columns: 1fr 1fr; }
306-
}
307-
</style>
12+
<link rel="stylesheet" href="https://assets.21no.de/fonts/fonts.css" />
13+
<link rel="stylesheet" href="https://assets.21no.de/css/tokens.css" />
14+
<link rel="stylesheet" href="https://assets.21no.de/css/base.css" />
15+
<link rel="stylesheet" href="https://assets.21no.de/css/nav.css" />
16+
<link rel="stylesheet" href="https://assets.21no.de/css/hero.css" />
17+
<link rel="stylesheet" href="https://assets.21no.de/css/buttons.css" />
18+
<link rel="stylesheet" href="https://assets.21no.de/css/cards.css" />
19+
<link rel="stylesheet" href="https://assets.21no.de/css/footer.css" />
30820
</head>
30921
<body>
31022

0 commit comments

Comments
 (0)