增加图标

This commit is contained in:
2025-11-11 07:34:48 +08:00
parent 54f0f8eace
commit b302671529
+15 -7
View File
@@ -34,14 +34,19 @@ function switchView(view: 'editor' | 'manager') {
<header class="app-header">
<div class="header-content">
<div class="header-left">
<div class="app-logo">
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M12 2L2 7L12 12L22 7L12 2Z" stroke="currentColor" stroke-width="2" stroke-linejoin="round"/>
<path d="M2 17L12 22L22 17" stroke="currentColor" stroke-width="2" stroke-linejoin="round"/>
<path d="M2 12L12 17L22 12" stroke="currentColor" stroke-width="2" stroke-linejoin="round"/>
<a
class="app-logo"
href="https://github.com/kjqwer/prompt"
target="_blank"
rel="noopener noreferrer"
title="打开 GitHub 仓库"
>
<!-- GitHub 标志 -->
<svg width="24" height="24" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" aria-hidden="true">
<path fill="currentColor" fill-rule="evenodd" clip-rule="evenodd" d="M12 2C6.477 2 2 6.477 2 12c0 4.418 2.865 8.166 6.839 9.49.5.09.682-.217.682-.483 0-.237-.009-.868-.013-1.705-2.782.604-3.37-1.342-3.37-1.342-.455-1.157-1.111-1.466-1.111-1.466-.908-.62.069-.607.069-.607 1.003.07 1.53 1.03 1.53 1.03.892 1.528 2.341 1.087 2.91.832.092-.646.35-1.087.637-1.338-2.221-.253-4.558-1.11-4.558-4.941 0-1.091.39-1.984 1.029-2.682-.104-.254-.446-1.274.098-2.656 0 0 .84-.269 2.753 1.025.798-.222 1.653-.333 2.504-.337.85.004 1.706.115 2.504.337 1.911-1.294 2.75-1.025 2.75-1.025.546 1.382.203 2.402.1 2.656.64.698 1.028 1.591 1.028 2.682 0 3.84-2.34 4.685-4.566 4.934.359.309.679.919.679 1.853 0 1.337-.012 2.415-.012 2.744 0 .268.18.577.688.479C19.137 20.163 22 16.416 22 12c0-5.523-4.477-10-10-10z"/>
</svg>
<span class="app-title">提示词编辑器</span>
</div>
</a>
</div>
<nav class="header-nav">
@@ -116,6 +121,7 @@ function switchView(view: 'editor' | 'manager') {
--radius-sm: 0.375rem;
--radius-md: 0.5rem;
--radius-lg: 0.75rem;
--color-github: #181717;
}
.dark {
@@ -131,6 +137,7 @@ function switchView(view: 'editor' | 'manager') {
--color-accent: #60a5fa;
--color-accent-hover: #3b82f6;
--color-accent-light: #1e3a8a;
--color-github: #f8fafc;
}
* {
@@ -183,8 +190,9 @@ body {
display: flex;
align-items: center;
gap: 0.5rem;
color: var(--color-accent);
color: var(--color-github);
font-weight: 600;
text-decoration: none;
}
.app-title {