Switch to warm minimal theme: linen texture, muted warm tones, add service links (Gitea/Cloudreve/MC)

This commit is contained in:
2026-07-08 16:19:33 +08:00
parent 1214e48733
commit e992d8cbe7
21 changed files with 300 additions and 469 deletions
+39 -18
View File
@@ -1,22 +1,43 @@
{{ define "body" }}
<div id="star-canvas-wrap">
<canvas id="star-canvas"></canvas>
<div class="home-overlay">
<div class="logo-wrap">
<img src="{{ .Site.Params.logo }}" alt="SNOWARE Logo" class="home-logo" width="180" height="180">
</div>
<h1 class="home-title">SNOWARE</h1>
<nav class="home-nav">
{{ range .Site.Params.navLinks }}
<a href="{{ .url }}" class="home-btn{{ if .external }} external{{ end }}" {{ if .external }}target="_blank" rel="noopener"{{ end }}>
{{ .name }}
</a>
{{ end }}
</nav>
<div class="home-hero">
<div class="logo-wrap">
<img src="{{ .Site.Params.logo }}" alt="SNOWARE Logo" class="home-logo" width="160" height="160">
</div>
<h1 class="home-title">SNOWARE</h1>
<p class="home-subtitle">冷静而温馨,简约而不简单。</p>
<nav class="home-nav">
{{ range .Site.Params.navLinks }}
<a href="{{ .url }}" class="home-btn{{ if .external }} external{{ end }}" {{ if .external }}target="_blank" rel="noopener"{{ end }}>
{{ .name }}
</a>
{{ end }}
</nav>
{{ with .Site.Params.services }}
<div class="home-services">
<h2>服务</h2>
<div class="services-grid">
{{ range . }}
{{ if .url }}
<a href="{{ .url }}" class="service-card external" target="_blank" rel="noopener">
{{ else }}
<div class="service-card no-link">
{{ end }}
<div class="service-icon">
{{ if eq .icon "git" }}
<svg viewBox="0 0 24 24"><path d="M9 19c-5 1.5-5-2.5-7-3m14 6v-3.87a3.37 3.37 0 00-.94-2.61c3.14-.35 6.44-1.54 6.44-7A5.44 5.44 0 0020 4.77 5.07 5.07 0 0019.91 1S18.73.65 16 2.48a13.38 13.38 0 00-7 0C6.27.65 5.09 1 5.09 1A5.07 5.07 0 005 4.77a5.44 5.44 0 00-1.5 3.78c0 5.42 3.3 6.61 6.44 7A3.37 3.37 0 009 18.13V22"/></svg>
{{ else if eq .icon "cloud" }}
<svg viewBox="0 0 24 24"><path d="M18 10h-1.26A8 8 0 109 20h9a5 5 0 000-10z"/></svg>
{{ else if eq .icon "game" }}
<svg viewBox="0 0 24 24"><rect x="2" y="6" width="20" height="12" rx="2"/><line x1="6" y1="12" x2="10" y2="12"/><line x1="8" y1="10" x2="8" y2="14"/><circle cx="16" cy="10" r="1" fill="currentColor" stroke="none"/><circle cx="19" cy="12" r="1" fill="currentColor" stroke="none"/></svg>
{{ end }}
</div>
<h3>{{ .name }}</h3>
<p>{{ .desc }}</p>
{{ if .url }}</a>{{ else }}</div>{{ end }}
{{ end }}
</div>
</div>
{{ end }}
</div>
{{ end }}
{{ define "extra_scripts" }}
<script src="/js/stars.js"></script>
{{ end }}
+1 -1
View File
@@ -1,5 +1,5 @@
{{ define "body" }}
<section class="page-hero" style="--accent: #1565c0">
<section class="page-hero" style="--accent: #7a7a9e">
<h1>学科资源列表</h1>
<p class="subtitle">蓝奏云下载 · 点击学科即可跳转</p>
</section>
+1 -1
View File
@@ -1,5 +1,5 @@
{{ define "body" }}
<section class="page-hero" style="--accent: #1565c0">
<section class="page-hero" style="--accent: #7a7a9e">
<h1>{{ .Title }}</h1>
<p class="subtitle">{{ .Description }}</p>
</section>
+1 -1
View File
@@ -1,5 +1,5 @@
{{ define "body" }}
<section class="page-hero" style="--accent: #009688">
<section class="page-hero" style="--accent: #8a9a7e">
<h1>{{ .Title }}</h1>
<p class="subtitle">{{ .Description }}</p>
</section>
+1 -1
View File
@@ -1,5 +1,5 @@
{{ define "body" }}
<section class="page-hero" style="--accent: #f44336">
<section class="page-hero" style="--accent: #b87070">
<h1>{{ .Title }}</h1>
<p class="subtitle">{{ .Description }}</p>
</section>
+1 -1
View File
@@ -12,6 +12,6 @@
{{ define "extra_head" }}
<style>
.warning-page { --accent: #f44336; }
.warning-page { --accent: #b87070; }
</style>
{{ end }}