main.html
257 lines1
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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
<!DOCTYPE html>
<html lang="en" data-theme="{{theme}}">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{{block "title" .}}Congo{{end}}</title>
<meta name="description" content="{{block "description" .}}Go framework with HTMX, DaisyUI, and optional React islands. One binary, vendored source you own.{{end}}">
<!-- Open Graph -->
<meta property="og:type" content="website">
<meta property="og:site_name" content="Congo">
<meta property="og:title" content="{{template "title" .}}">
<meta property="og:description" content="{{template "description" .}}">
<!-- Twitter Card -->
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="{{template "title" .}}">
<meta name="twitter:description" content="{{template "description" .}}">
<!-- Go module resolution -->
<meta name="go-import" content="congo.gg git https://congo.gg/git/congo.git">
<meta name="go-source" content="congo.gg https://congo.gg/source https://congo.gg/source/{/dir} https://congo.gg/source/{/dir}/{file}#L{line}">
<!-- AI / LLM discoverability -->
<link rel="alternate" type="text/plain" href="/llms.txt" title="LLM context">
<link rel="icon" href="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><text y='.9em' font-size='90'>C</text></svg>">
<link href="https://cdn.jsdelivr.net/npm/daisyui@5" rel="stylesheet" type="text/css" />
<script nonce="{{nonce}}" src="https://cdn.jsdelivr.net/npm/@tailwindcss/browser@4"></script>
<script nonce="{{nonce}}" src="https://cdn.jsdelivr.net/npm/htmx.org@2.0.8/dist/htmx.min.js"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.9.0/build/styles/github.min.css">
<script nonce="{{nonce}}" src="https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.9.0/build/highlight.min.js"></script>
<script nonce="{{nonce}}" src="https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.9.0/build/languages/go.min.js"></script>
<script nonce="{{nonce}}" src="https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.9.0/build/languages/bash.min.js"></script>
<script nonce="{{nonce}}" src="https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.9.0/build/languages/javascript.min.js"></script>
<script nonce="{{nonce}}" src="https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.9.0/build/languages/json.min.js"></script>
<script nonce="{{nonce}}" src="https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.9.0/build/languages/xml.min.js"></script>
<script nonce="{{nonce}}" src="https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.9.0/build/languages/css.min.js"></script>
<script nonce="{{nonce}}" src="https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.9.0/build/languages/yaml.min.js"></script>
<script nonce="{{nonce}}" src="https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.9.0/build/languages/dockerfile.min.js"></script>
<script nonce="{{nonce}}" src="https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.9.0/build/languages/makefile.min.js"></script>
<script nonce="{{nonce}}" src="https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.9.0/build/languages/markdown.min.js"></script>
<script type="application/ld+json">
{"@context":"https://schema.org","@type":"SoftwareApplication","name":"Congo","applicationCategory":"DeveloperApplication","operatingSystem":"macOS, Linux, Windows","description":"Go web framework. One binary with routing, database, templates, and deployment. Vendored source you own.","url":"https://congo.gg","offers":{"@type":"Offer","price":"0","priceCurrency":"USD"},"license":"https://opensource.org/licenses/MIT"}
</script>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400;500&display=swap" rel="stylesheet">
<style>
html { background: #f8f9fc; }
body {
font-family: 'Inter', system-ui, sans-serif;
background: transparent;
color: #4a5568;
}
h1, h2, h3, h4, h5 { font-family: 'Space Grotesk', system-ui, sans-serif; color: #1a1a2e; }
code, pre, .font-mono { font-family: 'JetBrains Mono', monospace !important; }
/* Code blocks */
.code-block {
background: #f1f3f8;
border: 1px solid rgba(100,130,180,0.12);
border-radius: 0.5rem;
padding: 1.25rem 1.5rem;
overflow-x: auto;
position: relative;
}
.code-block pre { margin: 0; color: #2d3748; font-size: 0.8125rem; line-height: 1.7; }
.code-block code { tab-size: 4; }
.code-block .copy-btn {
position: absolute;
top: 0.5rem;
right: 0.5rem;
background: none;
border: none;
color: rgba(100,130,180,0.3);
cursor: pointer;
padding: 0.25rem;
transition: color 0.2s ease;
opacity: 0;
}
.code-block:hover .copy-btn { opacity: 1; }
.code-block .copy-btn:hover { color: #4a5568; }
/* Source file with line numbers */
.source-lines {
display: grid;
grid-template-columns: auto 1fr;
}
.source-lines .line-nums {
text-align: right;
padding-right: 1.25rem;
user-select: none;
color: rgba(100,130,180,0.4);
font-size: 0.8125rem;
line-height: 1.7;
border-right: 1px solid rgba(100,130,180,0.12);
margin-right: 1.25rem;
}
.source-lines pre { margin: 0; color: #2d3748; font-size: 0.8125rem; line-height: 1.7; }
/* Cards */
.glow-card {
background: #ffffff;
border: 1px solid rgba(100,130,180,0.1);
border-radius: 0.5rem;
box-shadow: 0 4px 20px rgba(79,142,247,0.08);
transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.glow-card:hover {
border-color: rgba(79,142,247,0.25);
box-shadow: 0 8px 32px rgba(79,142,247,0.15), 0 2px 8px rgba(79,142,247,0.1);
}
/* Animations — only on homepage hero */
.shimmer { animation: shimmer 8s ease-in-out infinite alternate; }
@keyframes shimmer { 0% { opacity: 0.7; } 100% { opacity: 1; } }
/* Hero glow */
.hero-glow {
position: absolute;
width: 700px;
height: 700px;
background: radial-gradient(circle, rgba(79,142,247,0.1) 0%, rgba(79,142,247,0.04) 40%, transparent 70%);
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
pointer-events: none;
}
/* Pull quotes */
.quote-bar {
border-left: 2px solid rgba(79,142,247,0.4);
padding-left: 1.25rem;
margin: 1.5rem 0;
}
.quote-bar p { color: #8b95a8; font-style: italic; line-height: 1.7; }
/* Navigation */
.nav-link {
color: #6b7a90;
font-size: 0.8125rem;
letter-spacing: 0.02em;
padding: 0.5rem 0.75rem;
transition: color 0.2s ease;
text-decoration: none;
}
.nav-link:hover { color: #1a1a2e; }
.nav-link-active { color: #1a1a2e; border-bottom: 1px solid #4f8ef7; padding-bottom: calc(0.5rem - 1px); }
/* Text */
.text-muted { color: #8b95a8 !important; }
.text-body { color: #4a5568 !important; }
.text-bright { color: #1a1a2e !important; }
.text-accent { color: #4f8ef7 !important; }
/* Dividers */
.section-divide { border-top: 1px solid rgba(100,130,180,0.08); }
/* Table rows */
.table-row {
border-bottom: 1px solid rgba(100,130,180,0.08);
transition: background 0.15s ease;
text-decoration: none;
display: flex;
}
.table-row:hover { background: rgba(79,142,247,0.04); }
/* Buttons */
.btn-glow {
display: inline-flex;
align-items: center;
background: rgba(255,255,255,0.8);
border: 1px solid rgba(100,130,180,0.15);
color: #4a5568;
padding: 0.625rem 1.75rem;
font-family: 'Space Grotesk', system-ui, sans-serif;
font-size: 0.8125rem;
font-weight: 500;
letter-spacing: 0.04em;
text-transform: uppercase;
text-decoration: none;
transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
cursor: pointer;
}
.btn-glow:hover {
background: #ffffff;
border-color: rgba(79,142,247,0.3);
color: #1a1a2e;
box-shadow: 0 4px 20px rgba(79,142,247,0.15), 0 1px 6px rgba(79,142,247,0.1);
}
.btn-glow-primary {
background: #4f8ef7;
border-color: #4f8ef7;
color: #ffffff;
box-shadow: 0 4px 16px rgba(79,142,247,0.2);
}
.btn-glow-primary:hover {
background: #3a7be6;
border-color: #3a7be6;
color: #ffffff;
box-shadow: 0 6px 28px rgba(79,142,247,0.35), 0 2px 8px rgba(79,142,247,0.2);
}
/* Override highlight.js background to match our code blocks */
.hljs { background: transparent !important; padding: 0 !important; }
/* Inline code in body text */
p code, td code, li code {
font-size: 0.8125rem;
padding: 0.125rem 0.375rem;
background: rgba(79,142,247,0.08);
border-radius: 0.25rem;
color: #4f8ef7;
}
main, nav, footer { position: relative; z-index: 1; }
</style>
</head>
<body class="min-h-screen">
{{template "nav.html" .}}
<main>
{{block "content" .}}{{end}}
</main>
{{template "footer.html" .}}
<script nonce="{{nonce}}">
hljs.configure({ ignoreUnescapedHTML: true });
function highlightCode() {
document.querySelectorAll('pre code[class*="language-"]').forEach(function(el) {
if (!el.dataset.highlighted) hljs.highlightElement(el);
});
}
function addCopyButtons() {
document.querySelectorAll('.code-block').forEach(function(block) {
if (block.querySelector('.copy-btn')) return;
var btn = document.createElement('button');
btn.className = 'copy-btn';
btn.title = 'Copy';
btn.innerHTML = '<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><rect x="9" y="9" width="13" height="13" rx="2"/><path d="M5 15H4a2 2 0 01-2-2V4a2 2 0 012-2h9a2 2 0 012 2v1"/></svg>';
btn.onclick = function() {
var code = block.querySelector('code');
try { navigator.clipboard.writeText(code.textContent); } catch(e) { return; }
btn.innerHTML = '<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M20 6L9 17l-5-5"/></svg>';
setTimeout(function() {
btn.innerHTML = '<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><rect x="9" y="9" width="13" height="13" rx="2"/><path d="M5 15H4a2 2 0 01-2-2V4a2 2 0 012-2h9a2 2 0 012 2v1"/></svg>';
}, 1500);
};
block.appendChild(btn);
});
}
highlightCode();
addCopyButtons();
document.body.addEventListener('htmx:afterSettle', function() { highlightCode(); addCopyButtons(); });
</script>
</body>
</html>