Skip to content

Commit 0aa82cc

Browse files
committed
feat: version display on webpage
1 parent f80743a commit 0aa82cc

File tree

3 files changed

+39
-1
lines changed

3 files changed

+39
-1
lines changed

static/index.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ <h1>OpenAI TTS API Documentation</h1>
2929
<div class="domain-badge">
3030
<span>API Domain: <strong>ttsapi.site</strong></span>
3131
</div>
32+
<div class="version-badge">
33+
<span>Version: <strong id="version">1.1.2</strong></span>
34+
</div>
3235
<div class="language-selector">
3336
<button class="lang-btn active" data-lang="en">English</button>
3437
<a href="index_zh.html" class="lang-btn">中文</a>

static/index_zh.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ <h1>OpenAI TTS API 文档</h1>
2929
<div class="domain-badge">
3030
<span>API 域名: <strong>ttsapi.site</strong></span>
3131
</div>
32+
<div class="version-badge">
33+
<span>版本: <strong id="version">1.1,2</strong></span>
34+
</div>
3235
<div class="language-selector">
3336
<a href="index.html" class="lang-btn">English</a>
3437
<button class="lang-btn active" data-lang="zh">中文</button>

static/styles.css

Lines changed: 33 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1024,7 +1024,39 @@ code[class*="language-"] {
10241024
}
10251025

10261026
.domain-badge strong {
1027-
color: #2563eb;
1027+
color: var(--primary-color);
1028+
font-weight: 600;
1029+
}
1030+
1031+
.version-badge {
1032+
background-color: #fff;
1033+
border: 1px solid #e2e8f0;
1034+
border-radius: 6px;
1035+
padding: 8px 16px;
1036+
margin-left: 12px;
1037+
display: inline-flex;
1038+
align-items: center;
1039+
transition: all 0.2s ease;
1040+
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
1041+
}
1042+
1043+
.version-badge:hover {
1044+
border-color: var(--primary-color);
1045+
transform: translateY(-1px);
1046+
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
1047+
}
1048+
1049+
.version-badge span {
1050+
color: #64748b;
1051+
font-size: 0.9rem;
1052+
display: flex;
1053+
align-items: center;
1054+
gap: 4px;
1055+
}
1056+
1057+
.version-badge strong {
1058+
color: var(--primary-color);
1059+
font-weight: 600;
10281060
font-family: 'Fira Code', monospace;
10291061
letter-spacing: 0.5px;
10301062
}

0 commit comments

Comments
 (0)