Skip to content

Commit bceb161

Browse files
committed
feat: 在导航栏徽标旁添加灰色小字'Star me on GitHub'引导用户去star项目
1 parent 93021cb commit bceb161

File tree

11 files changed

+49
-12
lines changed

11 files changed

+49
-12
lines changed

cases/index.html

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -231,10 +231,11 @@ <h1>JS Debugger Bypass Goat</h1>
231231
</div>
232232
</div>
233233
</div>
234-
<a href="https://github.com/JSREI/js-debugger-bypass-goat" class="github-badge" target="_blank" aria-label="GitHub">
235-
<svg height="32" aria-hidden="true" viewBox="0 0 16 16" version="1.1" width="32" data-view-component="true" class="octicon octicon-mark-github">
234+
<a href="https://github.com/JSREI/js-debugger-bypass-goat" class="github-link" target="_blank" aria-label="GitHub">
235+
<svg height="24" aria-hidden="true" viewBox="0 0 16 16" version="1.1" width="24" data-view-component="true" class="octicon octicon-mark-github">
236236
<path d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.013 8.013 0 0016 8c0-4.42-3.58-8-8-8z"></path>
237237
</svg>
238+
<span class="github-text">Star me on GitHub</span>
238239
</a>
239240
</div>
240241
</div>

index.html

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,11 @@ <h1>JS Debugger Bypass Goat</h1>
3636
</div>
3737
</div>
3838
</div>
39-
<a href="https://github.com/JSREI/js-debugger-bypass-goat" class="github-badge" target="_blank" aria-label="GitHub">
40-
<svg height="32" aria-hidden="true" viewBox="0 0 16 16" version="1.1" width="32" data-view-component="true" class="octicon octicon-mark-github">
39+
<a href="https://github.com/JSREI/js-debugger-bypass-goat" class="github-link" target="_blank" aria-label="GitHub">
40+
<svg height="24" aria-hidden="true" viewBox="0 0 16 16" version="1.1" width="24" data-view-component="true" class="octicon octicon-mark-github">
4141
<path d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.013 8.013 0 0016 8c0-4.42-3.58-8-8-8z"></path>
4242
</svg>
43+
<span class="github-text">Star me on GitHub</span>
4344
</a>
4445
</div>
4546
</div>

styles/main.css

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,41 @@ nav a:hover {
129129
fill: var(--primary-color);
130130
}
131131

132+
/* GitHub link with star me text */
133+
.github-link {
134+
display: flex;
135+
align-items: center;
136+
gap: 8px;
137+
text-decoration: none;
138+
color: var(--text-light);
139+
padding: 6px 12px;
140+
border-radius: 6px;
141+
transition: all 0.3s ease;
142+
}
143+
144+
.github-link:hover {
145+
background-color: rgba(79, 70, 229, 0.1);
146+
color: var(--primary-color);
147+
}
148+
149+
.github-link:hover svg {
150+
fill: var(--primary-color);
151+
}
152+
153+
.github-text {
154+
font-size: 0.75rem;
155+
font-weight: 400;
156+
color: #888888;
157+
line-height: 1;
158+
display: flex;
159+
align-items: center;
160+
}
161+
162+
.github-link svg {
163+
fill: #888888;
164+
transition: all 0.3s ease;
165+
}
166+
132167
/* Main content styles */
133168
main {
134169
padding-top: 4rem;

test-cases/execute-debugger-patterns/Function.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ <h1>JS Debugger Bypass Goat</h1>
164164
</div>
165165
</div>
166166
</div>
167-
<a href="https://github.com/JSREI/js-debugger-bypass-goat" class="github-badge" target="_blank" aria-label="GitHub">
167+
<a href="https://github.com/JSREI/js-debugger-bypass-goat" class="github-link" target="_blank" aria-label="GitHub"><span class="github-text">Star me on GitHub</span>
168168
<svg height="32" aria-hidden="true" viewBox="0 0 16 16" version="1.1" width="32" data-view-component="true" class="octicon octicon-mark-github">
169169
<path d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.013 8.013 0 0016 8c0-4.42-3.58-8-8-8z"></path>
170170
</svg>

test-cases/execute-debugger-patterns/[].constructor.constructor('debugger')().html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ <h1>JS Debugger Bypass Goat</h1>
163163
</div>
164164
</div>
165165
</div>
166-
<a href="https://github.com/JSREI/js-debugger-bypass-goat" class="github-badge" target="_blank" aria-label="GitHub">
166+
<a href="https://github.com/JSREI/js-debugger-bypass-goat" class="github-link" target="_blank" aria-label="GitHub"><span class="github-text">Star me on GitHub</span>
167167
<svg height="32" aria-hidden="true" viewBox="0 0 16 16" version="1.1" width="32" data-view-component="true" class="octicon octicon-mark-github">
168168
<path d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.013 8.013 0 0016 8c0-4.42-3.58-8-8-8z"></path>
169169
</svg>

test-cases/execute-debugger-patterns/eval.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ <h1>JS Debugger Bypass Goat</h1>
164164
</div>
165165
</div>
166166
</div>
167-
<a href="https://github.com/JSREI/js-debugger-bypass-goat" class="github-badge" target="_blank" aria-label="GitHub">
167+
<a href="https://github.com/JSREI/js-debugger-bypass-goat" class="github-link" target="_blank" aria-label="GitHub"><span class="github-text">Star me on GitHub</span>
168168
<svg height="32" aria-hidden="true" viewBox="0 0 16 16" version="1.1" width="32" data-view-component="true" class="octicon octicon-mark-github">
169169
<path d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.013 8.013 0 0016 8c0-4.42-3.58-8-8-8z"></path>
170170
</svg>

test-cases/execute-debugger-patterns/misc.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ <h1>JS Debugger Bypass Goat</h1>
164164
English
165165
</div>
166166
</div>
167-
</div><a href="https://github.com/JSREI/js-debugger-bypass-goat" class="github-badge" target="_blank" aria-label="GitHub">
167+
</div><a href="https://github.com/JSREI/js-debugger-bypass-goat" class="github-link" target="_blank" aria-label="GitHub"><span class="github-text">Star me on GitHub</span>
168168
<svg height="32" aria-hidden="true" viewBox="0 0 16 16" version="1.1" width="32" data-view-component="true" class="octicon octicon-mark-github">
169169
<path d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.013 8.013 0 0016 8c0-4.42-3.58-8-8-8z"></path>
170170
</svg>

test-cases/execute-debugger-patterns/setInterval-002.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ <h1>JS Debugger Bypass Goat</h1>
194194
</div>
195195
</div>
196196
</div>
197-
<a href="https://github.com/JSREI/js-debugger-bypass-goat" class="github-badge" target="_blank" aria-label="GitHub">
197+
<a href="https://github.com/JSREI/js-debugger-bypass-goat" class="github-link" target="_blank" aria-label="GitHub"><span class="github-text">Star me on GitHub</span>
198198
<svg height="32" aria-hidden="true" viewBox="0 0 16 16" version="1.1" width="32" data-view-component="true" class="octicon octicon-mark-github">
199199
<path d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.013 8.013 0 0016 8c0-4.42-3.58-8-8-8z"></path>
200200
</svg>

test-cases/execute-debugger-patterns/setInterval.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ <h1>JS Debugger Bypass Goat</h1>
194194
</div>
195195
</div>
196196
</div>
197-
<a href="https://github.com/JSREI/js-debugger-bypass-goat" class="github-badge" target="_blank" aria-label="GitHub">
197+
<a href="https://github.com/JSREI/js-debugger-bypass-goat" class="github-link" target="_blank" aria-label="GitHub"><span class="github-text">Star me on GitHub</span>
198198
<svg height="32" aria-hidden="true" viewBox="0 0 16 16" version="1.1" width="32" data-view-component="true" class="octicon octicon-mark-github">
199199
<path d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.013 8.013 0 0016 8c0-4.42-3.58-8-8-8z"></path>
200200
</svg>

test-cases/execute-debugger-patterns/{}['constructor']('debugger')());.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ <h1>JS Debugger Bypass Goat</h1>
165165
English
166166
</div>
167167
</div>
168-
</div><a href="https://github.com/JSREI/js-debugger-bypass-goat" class="github-badge" target="_blank" aria-label="GitHub">
168+
</div><a href="https://github.com/JSREI/js-debugger-bypass-goat" class="github-link" target="_blank" aria-label="GitHub"><span class="github-text">Star me on GitHub</span>
169169
<svg height="32" aria-hidden="true" viewBox="0 0 16 16" version="1.1" width="32" data-view-component="true" class="octicon octicon-mark-github">
170170
<path d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.013 8.013 0 0016 8c0-4.42-3.58-8-8-8z"></path>
171171
</svg>

0 commit comments

Comments
 (0)