Skip to content

Commit ed919d3

Browse files
committed
Add GitHub star link
1 parent c454ad9 commit ed919d3

2 files changed

Lines changed: 42 additions & 0 deletions

File tree

web/src/App.jsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,11 @@ export default function App() {
156156
<div className="app">
157157
<div className="page-inner">
158158
<header className="app-header">
159+
<a className="repo-star" href="https://github.com/OpenRaiser/Gewu"
160+
target="_blank" rel="noreferrer" aria-label="在 GitHub 上 Star Gewu">
161+
<span className="repo-star-icon"></span>
162+
<span>Star</span>
163+
</a>
159164
<div className="seal" aria-label="格物致知">
160165
<span></span><span></span>
161166
<span></span><span></span>

web/src/styles.css

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,43 @@ html, body {
9898
letter-spacing: 3px;
9999
margin-top: 6px;
100100
}
101+
.repo-star {
102+
position: absolute;
103+
top: 2px;
104+
right: 86px;
105+
display: inline-flex;
106+
align-items: center;
107+
gap: 5px;
108+
min-height: 30px;
109+
padding: 4px 11px;
110+
border: 1px solid rgba(107,58,46,0.55);
111+
border-radius: 3px;
112+
background: rgba(228,214,186,0.68);
113+
color: var(--ink-soft);
114+
font-family: var(--mono);
115+
font-size: 12.5px;
116+
line-height: 1;
117+
letter-spacing: 0;
118+
text-decoration: none;
119+
box-shadow: 0 1px 0 rgba(255,255,255,0.28) inset;
120+
transition: color .18s, border-color .18s, background .18s;
121+
}
122+
.repo-star:hover {
123+
background: var(--paper-2);
124+
border-color: var(--cinnabar);
125+
color: var(--cinnabar);
126+
}
127+
.repo-star-icon {
128+
color: var(--gold);
129+
font-size: 14px;
130+
line-height: 1;
131+
}
132+
@media (max-width: 860px) {
133+
.repo-star {
134+
left: 6px;
135+
right: auto;
136+
}
137+
}
101138
/* 朱砂印章 */
102139
.seal {
103140
position: absolute;

0 commit comments

Comments
 (0)