diff options
Diffstat (limited to 'themes/rose-pine')
| -rw-r--r-- | themes/rose-pine/home.html | 324 | ||||
| -rw-r--r-- | themes/rose-pine/layout.html | 412 |
2 files changed, 736 insertions, 0 deletions
diff --git a/themes/rose-pine/home.html b/themes/rose-pine/home.html new file mode 100644 index 0000000..5b7b6fa --- /dev/null +++ b/themes/rose-pine/home.html @@ -0,0 +1,324 @@ +<!doctype html> +<html lang="en"> + <head> + <meta charset="UTF-8" /> + <meta name="viewport" content="width=device-width, initial-scale=1.0" /> + <title>{{ .SiteTitle }}</title> + <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=Zodiak:ital,wght@0,400;0,500;0,700;1,400;1,500&family=Cabinet+Grotesk:wght@400;500;700;800&family=Commit+Mono:ital,wght@0,400;0,700;1,400&display=swap" + rel="stylesheet" + /> + <style> + :root { + --rp-base: #191724; + --rp-surface: #1f1d2e; + --rp-overlay: #26233a; + --rp-muted: #6e6a86; + --rp-subtle: #908caa; + --rp-text: #e0def4; + --rp-gold: #f6c177; + --rp-rose: #ebbcba; + --rp-pine: #31748f; + --rp-foam: #9ccfd8; + --rp-iris: #c4a7e7; + --rp-highlight-med: #403d52; + --border: var(--rp-highlight-med); + --text: var(--rp-text); + --text-dim: var(--rp-subtle); + --serif: "Zodiak", "Playfair Display", Georgia, serif; + --sans: "Cabinet Grotesk", "Outfit", system-ui, sans-serif; + --mono: "Commit Mono", "JetBrains Mono", ui-monospace, monospace; + --radius: 6px; + --max-w: 740px; + } + + *, + *::before, + *::after { + box-sizing: border-box; + margin: 0; + padding: 0; + } + html { + scroll-behavior: smooth; + } + + body { + margin: 0; + padding: 4rem 2rem 6rem; + background-color: var(--rp-base); + background-image: + radial-gradient( + ellipse 80% 50% at 50% -10%, + rgba(196, 167, 231, 0.08) 0%, + transparent 60% + ); + color: var(--rp-text); + font-family: var(--serif); + line-height: 1.8; + font-size: 19px; + -webkit-font-smoothing: antialiased; + } + + body > * { + max-width: var(--max-w); + margin-left: auto; + margin-right: auto; + } + + a { + color: var(--rp-foam); + text-decoration: none; + border-bottom: 1px solid var(--rp-highlight-med); + } + + a:hover { + color: var(--rp-iris); + } + + nav { + display: flex; + align-items: center; + justify-content: space-between; + padding: 1.2rem 0 3rem; + border-bottom: 1px solid var(--rp-highlight-med); + margin-bottom: 3.5rem; + } + + nav .logo { + font-family: var(--sans); + font-weight: 800; + font-size: 1.1rem; + letter-spacing: -0.02em; + color: var(--rp-text); + border: none; + } + + nav .logo span { + color: var(--rp-iris); + } + + nav ul { + display: flex; + gap: 2rem; + margin: 0; + padding: 0; + list-style: none; + } + + nav ul li::before { + display: none; + } + + nav a { + font-family: var(--mono); + font-size: 0.72rem; + letter-spacing: 0.08em; + text-transform: uppercase; + color: var(--rp-muted); + border: none; + } + + nav a:hover { + color: var(--rp-foam); + } + + .hero { + padding: 3rem 0 4rem; + } + + .hero h1 { + font-family: var(--sans); + font-size: clamp(2.5rem, 6vw, 3.5rem); + font-weight: 800; + margin-bottom: 1rem; + background: linear-gradient( + 135deg, + var(--rp-text) 30%, + var(--rp-iris) 65%, + var(--rp-foam) 100% + ); + -webkit-background-clip: text; + -webkit-text-fill-color: transparent; + background-clip: text; + } + + .author-block { + display: flex; + flex-direction: column; + gap: 0.25rem; + margin-bottom: 2rem; + } + + .author-name { + font-family: var(--sans); + font-size: 1.1rem; + font-weight: 600; + color: var(--rp-text); + } + + .author-meta { + font-family: var(--mono); + font-size: 0.7rem; + letter-spacing: 0.08em; + text-transform: uppercase; + color: var(--rp-muted); + } + + .author-bio { + font-size: 1rem; + color: var(--rp-subtle); + line-height: 1.7; + max-width: 50ch; + } + + .section-title { + font-family: var(--mono); + font-size: 0.65rem; + letter-spacing: 0.15em; + text-transform: uppercase; + color: var(--rp-muted); + padding-bottom: 1rem; + border-bottom: 1px solid var(--rp-highlight-med); + margin-bottom: 2rem; + } + + .post-list { + list-style: none; + padding: 0; + margin: 0; + } + + .post-item { + display: block; + text-decoration: none; + padding: 1.2rem 0; + border-bottom: 1px solid var(--rp-highlight-med); + transition: background 130ms ease; + } + + .post-item:last-child { + border-bottom: none; + } + + .post-item:hover { + background: var(--rp-surface); + } + + .post-item:hover .post-title { + color: var(--rp-iris); + } + + .post-title { + font-family: var(--sans); + font-size: 1.1rem; + font-weight: 600; + color: var(--rp-text); + line-height: 1.4; + margin-bottom: 0.35rem; + transition: color 130ms ease; + border: none; + } + + .post-meta { + font-family: var(--mono); + font-size: 0.7rem; + letter-spacing: 0.04em; + color: var(--rp-muted); + } + + .post-tags { + display: flex; + gap: 0.4rem; + margin-top: 0.5rem; + } + + .tag { + font-family: var(--mono); + font-size: 0.6rem; + letter-spacing: 0.08em; + text-transform: uppercase; + padding: 0.15rem 0.5rem; + border: 1px solid var(--rp-highlight-med); + border-radius: 2px; + color: var(--rp-muted); + } + + footer { + margin-top: 5rem; + padding-top: 2rem; + border-top: 1px solid var(--rp-highlight-med); + font-family: var(--mono); + font-size: 0.72rem; + letter-spacing: 0.05em; + color: var(--rp-muted); + display: flex; + justify-content: space-between; + align-items: center; + } + + @media (max-width: 700px) { + body { + padding: 2rem 1.2rem 4rem; + font-size: 17px; + } + nav { + flex-wrap: wrap; + gap: 1rem; + } + footer { + flex-direction: column; + text-align: center; + } + } + </style> + </head> + <body> + <nav> + <a href="/" class="logo">Kite<span>.</span></a> + <ul> + <li><a href="/">Home</a></li> + </ul> + </nav> + + <main> + <section class="hero"> + <h1>{{ .SiteTitle }}</h1> + <div class="author-block"> + <span class="author-name">{{ .AuthorName }}</span> + <span class="author-meta">{{ .AuthorRole }}</span> + </div> + <p class="author-bio">{{ .AuthorBio }}</p> + </section> + + <section class="posts"> + <h2 class="section-title">Latest Posts</h2> + <ul class="post-list"> + {{ range .Posts }} + <li> + <a href="/{{ .Slug }}/" class="post-item"> + <span class="post-title">{{ .Title }}</span> + <div class="post-meta"> + <time>{{ .Date }}</time> + </div> + {{ if .Tags }} + <div class="post-tags"> + {{ range .Tags }} + <span class="tag">{{ . }}</span> + {{ end }} + </div> + {{ end }} + </a> + </li> + {{ end }} + </ul> + </section> + </main> + + <footer> + <span>© {{ .Year }} {{ .AuthorName }}</span> + </footer> + </body> +</html>
\ No newline at end of file diff --git a/themes/rose-pine/layout.html b/themes/rose-pine/layout.html new file mode 100644 index 0000000..2239d62 --- /dev/null +++ b/themes/rose-pine/layout.html @@ -0,0 +1,412 @@ +<!doctype html> +<html lang="en"> + <head> + <meta charset="UTF-8" /> + <meta name="viewport" content="width=device-width, initial-scale=1.0" /> + <meta name="description" content="{{ .Title }}" /> + <title>{{ .Title }}</title> + <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=Zodiak:ital,wght@0,400;0,500;0,700;1,400;1,500&family=Cabinet+Grotesk:wght@400;500;700;800&family=Commit+Mono:ital,wght@0,400;0,700;1,400&display=swap" + rel="stylesheet" + /> + <link + href="https://cdn.jsdelivr.net/npm/prismjs/themes/prism-okaidia.css" + rel="stylesheet" + /> + <script src="https://cdn.jsdelivr.net/npm/prismjs/prism.js"></script> + <script src="https://cdn.jsdelivr.net/npm/prismjs/plugins/autoloader/prism-autoloader.min.js"></script> + <style> + :root { + --rp-base: #191724; + --rp-surface: #1f1d2e; + --rp-overlay: #26233a; + --rp-muted: #6e6a86; + --rp-subtle: #908caa; + --rp-text: #e0def4; + --rp-love: #eb6f92; + --rp-gold: #f6c177; + --rp-rose: #ebbcba; + --rp-pine: #31748f; + --rp-foam: #9ccfd8; + --rp-iris: #c4a7e7; + --rp-highlight-med: #403d52; + --bg: var(--rp-base); + --surface: var(--rp-surface); + --border: var(--rp-highlight-med); + --text: var(--rp-text); + --text-dim: var(--rp-subtle); + --text-muted: var(--rp-muted); + --accent: var(--rp-iris); + --accent-2: var(--rp-foam); + --accent-dim: rgba(196, 167, 231, 0.1); + --serif: "Zodiak", "Playfair Display", Georgia, serif; + --sans: "Cabinet Grotesk", "Outfit", system-ui, sans-serif; + --mono: "Commit Mono", "JetBrains Mono", ui-monospace, monospace; + --radius: 6px; + --max-w: 740px; + } + + *, + *::before, + *::after { + box-sizing: border-box; + margin: 0; + padding: 0; + } + html { + scroll-behavior: smooth; + } + + body { + margin: 0; + padding: 4rem 2rem 6rem; + background-color: var(--rp-base); + background-image: + radial-gradient( + ellipse 80% 50% at 50% -10%, + rgba(196, 167, 231, 0.08) 0%, + transparent 60% + ); + color: var(--rp-text); + font-family: var(--serif); + line-height: 1.8; + font-size: 19px; + -webkit-font-smoothing: antialiased; + } + + body > * { + max-width: var(--max-w); + margin-left: auto; + margin-right: auto; + } + + h1, h2, h3, h4 { + font-family: var(--sans); + font-weight: 700; + line-height: 1.15; + letter-spacing: -0.02em; + scroll-margin-top: 1.5rem; + } + + h1 { + font-size: clamp(2.2rem, 5vw, 3rem); + font-weight: 800; + margin-bottom: 1.2rem; + background: linear-gradient( + 135deg, + var(--rp-text) 30%, + var(--rp-iris) 65%, + var(--rp-foam) 100% + ); + -webkit-background-clip: text; + -webkit-text-fill-color: transparent; + background-clip: text; + } + + h2 { + font-size: 1.5rem; + margin-top: 3.5rem; + padding-top: 2rem; + border-top: 1px solid var(--rp-highlight-med); + color: var(--rp-pine); + } + + h3 { + font-size: 1.15rem; + font-weight: 600; + margin-top: 2.2rem; + color: var(--rp-gold); + } + + p { + margin: 1.4rem 0; + color: var(--rp-text); + } + + a { + color: var(--rp-foam); + text-decoration: none; + border-bottom: 1px solid var(--rp-highlight-med); + } + + a:hover { + color: var(--rp-iris); + border-bottom-color: var(--rp-iris); + } + + ul, ol { + margin: 1.4rem 0; + padding-left: 0; + list-style: none; + } + + ul li, ol li { + position: relative; + padding-left: 1.5rem; + margin: 0.55rem 0; + color: var(--rp-text); + } + + ul li::before { + content: "–"; + position: absolute; + left: 0; + color: var(--rp-gold); + font-family: var(--mono); + } + + code { + font-family: var(--mono); + font-size: 0.83rem; + background: var(--rp-overlay); + color: var(--rp-love); + padding: 0.18rem 0.4rem; + border-radius: var(--radius); + border: 1px solid var(--rp-highlight-med); + word-break: break-word; + } + + pre { + background: var(--rp-surface); + border: 1px solid var(--rp-highlight-med); + border-left: 2px solid var(--rp-iris); + padding: 1.4rem 1.6rem; + overflow-x: auto; + border-radius: var(--radius); + margin: 2rem 0; + } + + pre code { + background: none; + border: none; + padding: 0; + color: var(--rp-text); + font-size: 0.87rem; + line-height: 1.65; + } + + blockquote { + margin: 2.5rem 0; + padding: 1.5rem 1.8rem; + background: var(--rp-surface); + border-left: 2px solid var(--rp-iris); + border-radius: 0 var(--radius) var(--radius) 0; + } + + blockquote p { + margin: 0; + font-style: italic; + font-size: 1.1rem; + color: var(--rp-rose); + } + + img { + max-width: 100%; + height: auto; + display: block; + border-radius: var(--radius); + border: 1px solid var(--rp-highlight-med); + margin: 2rem auto; + } + + table { + width: 100%; + border-collapse: collapse; + margin: 2rem 0; + font-size: 0.9rem; + font-family: var(--mono); + background: var(--rp-surface); + border-radius: var(--radius); + overflow: hidden; + border: 1px solid var(--rp-highlight-med); + } + + thead { + background: var(--rp-overlay); + } + + th { + text-align: left; + padding: 0.75rem 1rem; + font-size: 0.7rem; + letter-spacing: 0.1em; + text-transform: uppercase; + color: var(--rp-foam); + border-bottom: 1px solid var(--rp-highlight-med); + font-weight: 500; + } + + td { + padding: 0.65rem 1rem; + color: var(--rp-subtle); + } + + hr { + border: none; + margin: 3.5rem auto; + height: 1px; + background: linear-gradient(90deg, transparent, var(--rp-highlight-med) 20%, var(--rp-highlight-med) 80%, transparent); + } + + .toc-wrap { + margin: 2.5rem 0; + } + + .toc { + background: var(--rp-surface); + border: 1px solid var(--rp-highlight-med); + border-left: 2px solid var(--rp-iris); + border-radius: 3px; + padding: 1rem 1.2rem; + } + + .toc-title { + font-size: 0.8rem; + letter-spacing: 0.1em; + text-transform: uppercase; + color: var(--rp-iris); + margin: 0 0 0.8rem; + display: block; + } + + .toc ul { + list-style: none; + padding: 0; + margin: 0; + } + + .toc li { + padding: 0.2rem 0; + margin: 0; + } + + .toc li::before { + display: none; + } + + .toc a { + font-size: 0.85rem; + color: var(--rp-subtle); + text-decoration: none; + border: none; + } + + .toc a:hover { + color: var(--accent); + border: none; + } + + nav { + display: flex; + align-items: center; + justify-content: space-between; + padding: 1.2rem 0 3rem; + border-bottom: 1px solid var(--rp-highlight-med); + margin-bottom: 3.5rem; + } + + nav .logo { + font-family: var(--sans); + font-weight: 800; + font-size: 1.1rem; + letter-spacing: -0.02em; + color: var(--rp-text); + border: none; + } + + nav .logo span { + color: var(--rp-iris); + } + + nav ul { + display: flex; + gap: 2rem; + margin: 0; + padding: 0; + list-style: none; + } + + nav ul li::before { + display: none; + } + + nav a { + font-family: var(--mono); + font-size: 0.72rem; + letter-spacing: 0.08em; + text-transform: uppercase; + color: var(--rp-muted); + border: none; + } + + nav a:hover { + color: var(--rp-foam); + } + + footer { + margin-top: 5rem; + padding-top: 2rem; + border-top: 1px solid var(--rp-highlight-med); + font-family: var(--mono); + font-size: 0.72rem; + letter-spacing: 0.05em; + color: var(--rp-muted); + display: flex; + justify-content: space-between; + align-items: center; + } + + @media (max-width: 700px) { + body { + padding: 2rem 1.2rem 4rem; + font-size: 17px; + } + nav { + flex-wrap: wrap; + gap: 1rem; + } + footer { + flex-direction: column; + text-align: center; + } + } + </style> + </head> + <body> + <nav> + <a href="/" class="logo">Kite<span>.</span></a> + <ul> + <li><a href="/">Home</a></li> + </ul> + </nav> + + <main> + <header class="article-header"> + <h1 class="article-h1">{{ .Title }}</h1> + </header> + + {{ if .TOC }} + <div class="toc-wrap"> + <details class="toc" open> + <summary class="toc-title">Contents</summary> + <ul> + {{ range .TOC }} + <li> + <a href="#{{ .ID }}">{{ .Text }}</a> + </li> + {{ end }} + </ul> + </details> + </div> + {{ end }} + + <article class="prose">{{ .Content }}</article> + </main> + + <footer> + <span>© {{ .Year }} Kite</span> + </footer> + </body> +</html>
\ No newline at end of file |
