mirror of
https://github.com/skoelle/moonweb-site.git
synced 2026-09-17 17:00:25 +00:00
initial commit
This commit is contained in:
@@ -0,0 +1,40 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title>{{ title }} · moonweb.org</title>
|
||||
<meta name="description" content="{{ description }}">
|
||||
<link rel="icon" href="/favicon.svg" type="image/svg+xml">
|
||||
<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=Lobster&display=swap" rel="stylesheet">
|
||||
<link rel="stylesheet" href="/shared-base.css">
|
||||
<link rel="stylesheet" href="/theme.css">
|
||||
</head>
|
||||
<body>
|
||||
<header class="site-header">
|
||||
<div class="site-banner">
|
||||
<span class="site-title">{{ section }}.moonweb.org</span>
|
||||
</div>
|
||||
<nav class="site-switcher">
|
||||
<a href="https://hub.moonweb.org">hub</a>
|
||||
<a href="https://infra.moonweb.org">infra</a>
|
||||
<a href="https://smarthome.moonweb.org">smarthome</a>
|
||||
<a href="https://code.moonweb.org">code</a>
|
||||
<a href="https://retro.moonweb.org">retro</a>
|
||||
<a href="https://stefankoelle.de">cv</a>
|
||||
</nav>
|
||||
</header>
|
||||
|
||||
<main>
|
||||
{% if parent %}<a class="back-link" href="{{ parent }}">← Back to {{ section }} overview</a>{% endif %}
|
||||
{{ content | safe }}
|
||||
</main>
|
||||
|
||||
<footer class="site-footer">
|
||||
<p>Part of the <a href="https://hub.moonweb.org">moonweb.org</a> homelab.</p>
|
||||
<p><a href="https://hub.moonweb.org/impressum/">Impressum</a></p>
|
||||
</footer>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,13 @@
|
||||
{% for section in sections %}
|
||||
<section class="card-section">
|
||||
<h2>{{ section.heading }}</h2>
|
||||
<div class="card-grid">
|
||||
{% for card in section.cards %}
|
||||
<a class="card" href="{{ card.href }}">
|
||||
<h3>{% if card.emoji %}{{ card.emoji }} {% endif %}{{ card.title }}</h3>
|
||||
<p>{{ card.summary }}</p>
|
||||
</a>
|
||||
{% endfor %}
|
||||
</div>
|
||||
</section>
|
||||
{% endfor %}
|
||||
+159
@@ -0,0 +1,159 @@
|
||||
/* shared/base.css — layout skeleton, shared by all home-section sites. */
|
||||
|
||||
:root {
|
||||
--bg: #fafafa;
|
||||
--text: #1a1a1a;
|
||||
--card-bg: #ffffff;
|
||||
--card-border: #e2e2e2;
|
||||
--accent: #3b6ea5;
|
||||
}
|
||||
|
||||
* { box-sizing: border-box; }
|
||||
|
||||
body {
|
||||
margin: 0;
|
||||
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
|
||||
background: var(--bg);
|
||||
color: var(--text);
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
.site-header { background: var(--accent); color: #fff; }
|
||||
.site-banner { padding: 1.5rem 2rem 0.5rem; }
|
||||
.site-title {
|
||||
font-family: 'Lobster', cursive;
|
||||
font-size: 3em;
|
||||
color: #FFFFFF;
|
||||
text-transform: lowercase;
|
||||
display: block;
|
||||
margin: 5px 0 0;
|
||||
}
|
||||
|
||||
.site-switcher {
|
||||
display: flex;
|
||||
gap: 1.25rem;
|
||||
padding: 0.75rem 2rem;
|
||||
background: rgba(0,0,0,0.12);
|
||||
}
|
||||
.site-switcher a { color: #fff; text-decoration: none; font-size: 0.9rem; opacity: 0.85; }
|
||||
.site-switcher a:hover { opacity: 1; text-decoration: underline; }
|
||||
|
||||
main { max-width: 1100px; margin: 0 auto; padding: 2rem; }
|
||||
|
||||
.card-section { margin-bottom: 2.5rem; }
|
||||
.card-section h2 {
|
||||
font-size: 1rem;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.04em;
|
||||
color: #666;
|
||||
border-bottom: 1px solid var(--card-border);
|
||||
padding-bottom: 0.5rem;
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
|
||||
.card-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
|
||||
gap: 1rem;
|
||||
}
|
||||
|
||||
.card {
|
||||
display: block;
|
||||
background: var(--card-bg);
|
||||
border: 1px solid var(--card-border);
|
||||
border-radius: 10px;
|
||||
padding: 1.25rem;
|
||||
text-decoration: none;
|
||||
color: var(--text);
|
||||
transition: box-shadow 0.15s ease, transform 0.15s ease;
|
||||
}
|
||||
.card:hover { box-shadow: 0 2px 10px rgba(0,0,0,0.08); transform: translateY(-1px); }
|
||||
.card h3 { margin: 0 0 0.4rem; font-size: 1.05rem; color: var(--accent); }
|
||||
.card p { margin: 0; font-size: 0.9rem; color: #555; }
|
||||
|
||||
.wip-badge {
|
||||
display: inline-block;
|
||||
font-size: 0.75rem;
|
||||
font-weight: 600;
|
||||
color: #8a5b00;
|
||||
background: #fff3d6;
|
||||
border: 1px solid #f0d68a;
|
||||
border-radius: 6px;
|
||||
padding: 0.15rem 0.5rem;
|
||||
margin-left: 0.5rem;
|
||||
}
|
||||
|
||||
.redacted-note {
|
||||
font-size: 0.85rem;
|
||||
color: #666;
|
||||
background: #f0f4f8;
|
||||
border-left: 3px solid var(--accent);
|
||||
padding: 0.6rem 0.9rem;
|
||||
margin: 1.25rem 0;
|
||||
}
|
||||
|
||||
.site-footer {
|
||||
text-align: center;
|
||||
padding: 2rem;
|
||||
color: #888;
|
||||
font-size: 0.85rem;
|
||||
}
|
||||
.site-footer a { color: var(--accent); }
|
||||
|
||||
.detail-content {
|
||||
max-width: 800px;
|
||||
background: var(--card-bg);
|
||||
border: 1px solid var(--card-border);
|
||||
border-radius: 10px;
|
||||
padding: 2rem;
|
||||
}
|
||||
.detail-content h1 {
|
||||
color: var(--accent);
|
||||
margin: 0 0 1.5rem;
|
||||
padding-bottom: 0.75rem;
|
||||
border-bottom: 2px solid var(--accent);
|
||||
font-size: 1.8rem;
|
||||
}
|
||||
.detail-content h2 {
|
||||
margin-top: 2rem;
|
||||
padding-left: 0.75rem;
|
||||
border-left: 3px solid var(--accent);
|
||||
color: var(--text);
|
||||
font-size: 1.2rem;
|
||||
}
|
||||
.detail-content table { border-collapse: collapse; width: 100%; margin: 1rem 0; font-size: 0.9rem; }
|
||||
.detail-content th, .detail-content td {
|
||||
border: 1px solid var(--card-border);
|
||||
padding: 0.5rem 0.75rem;
|
||||
text-align: left;
|
||||
}
|
||||
.detail-content th {
|
||||
background: var(--accent);
|
||||
color: #fff;
|
||||
font-weight: 600;
|
||||
}
|
||||
.detail-content code { background: #f0f4f8; padding: 0.15rem 0.4rem; border-radius: 4px; font-size: 0.85em; }
|
||||
.detail-content a {
|
||||
color: var(--accent);
|
||||
text-decoration: underline;
|
||||
text-underline-offset: 2px;
|
||||
}
|
||||
.detail-content a:hover { color: var(--text); }
|
||||
|
||||
.back-link {
|
||||
display: inline-block;
|
||||
margin-bottom: 1.25rem;
|
||||
padding: 0.35rem 0.75rem;
|
||||
font-size: 0.85rem;
|
||||
color: var(--accent);
|
||||
background: rgba(0, 0, 0, 0.04);
|
||||
border: 1px solid var(--card-border);
|
||||
border-radius: 6px;
|
||||
text-decoration: none;
|
||||
transition: background 0.15s ease, border-color 0.15s ease;
|
||||
}
|
||||
.back-link:hover {
|
||||
background: var(--accent);
|
||||
color: #fff;
|
||||
border-color: var(--accent);
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><text y=".9em" font-size="90">💻</text></svg>
|
||||
|
After Width: | Height: | Size: 109 B |
@@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><text y=".9em" font-size="90">🌙</text></svg>
|
||||
|
After Width: | Height: | Size: 109 B |
@@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><text y=".9em" font-size="90">🏗️</text></svg>
|
||||
|
After Width: | Height: | Size: 112 B |
@@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><text y=".9em" font-size="90">🕹️</text></svg>
|
||||
|
After Width: | Height: | Size: 112 B |
@@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><text y=".9em" font-size="90">🏠</text></svg>
|
||||
|
After Width: | Height: | Size: 109 B |
@@ -0,0 +1 @@
|
||||
:root { --accent: #3E5098; }
|
||||
@@ -0,0 +1 @@
|
||||
:root { --accent: #3b6ea5; }
|
||||
@@ -0,0 +1 @@
|
||||
:root { --accent: #99333A; }
|
||||
@@ -0,0 +1 @@
|
||||
:root { --accent: #8a6d3b; }
|
||||
@@ -0,0 +1 @@
|
||||
:root { --accent: #1f8a8a; }
|
||||
Reference in New Issue
Block a user