Skip to content

Commit 307b991

Browse files
committed
fixes #76
1 parent 196d29b commit 307b991

File tree

8 files changed

+120
-0
lines changed

8 files changed

+120
-0
lines changed

game-menu/index.html

+8
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,13 @@
2222
<li><button>Quit</button></li>
2323
</ul>
2424

25+
<a href="https://github.com/argyleink/gui-challenges" class="github-corner" aria-label="View source on GitHub">
26+
<svg width="80" height="80" viewBox="0 0 250 250" style="position: absolute; top: 0; border: 0; right: 0;" aria-hidden="true">
27+
<path d="M0,0 L115,115 L130,115 L142,142 L250,250 L250,0 Z"></path>
28+
<path d="M128.3,109.0 C113.8,99.7 119.0,89.6 119.0,89.6 C122.0,82.7 120.5,78.6 120.5,78.6 C119.2,72.0 123.4,76.3 123.4,76.3 C127.3,80.9 125.5,87.3 125.5,87.3 C122.9,97.6 130.6,101.9 134.4,103.2" fill="currentColor" style="transform-origin: 130px 106px;" class="octo-arm"></path>
29+
<path d="M115.0,115.0 C114.9,115.1 118.7,116.5 119.8,115.4 L133.7,101.6 C136.9,99.2 139.9,98.4 142.2,98.6 C133.8,88.0 127.5,74.4 143.8,58.0 C148.5,53.4 154.0,51.2 159.7,51.0 C160.3,49.4 163.2,43.6 171.4,40.1 C171.4,40.1 176.1,42.5 178.8,56.2 C183.1,58.6 187.2,61.8 190.9,65.4 C194.5,69.0 197.7,73.2 200.1,77.6 C213.8,80.2 216.3,84.9 216.3,84.9 C212.7,93.1 206.9,96.0 205.4,96.6 C205.1,102.4 203.0,107.8 198.3,112.5 C181.9,128.9 168.3,122.5 157.7,114.1 C157.9,116.9 156.7,120.9 152.7,124.9 L141.0,136.5 C139.8,137.7 141.6,141.9 141.8,141.8 Z" fill="currentColor" class="octo-body"></path>
30+
</svg>
31+
</a>
32+
2533
</body>
2634
</html>

game-menu/style.css

+21
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,25 @@ body {
2525

2626
display: grid;
2727
place-content: center;
28+
}
29+
30+
.github-corner {
31+
fill: indigo;
32+
color: white;
33+
34+
&:hover .octo-arm {
35+
animation: octocat-wave 560ms ease-in-out
36+
}
37+
}
38+
39+
@keyframes octocat-wave{
40+
0%,100% {
41+
transform: rotate(0)
42+
}
43+
20%,60% {
44+
transform: rotate(-25deg)
45+
}
46+
40%,80% {
47+
transform: rotate(10deg)
48+
}
2849
}

multi-select/index.html

+8
Original file line numberDiff line numberDiff line change
@@ -176,5 +176,13 @@ <h1>Lighting</h1>
176176
</article>
177177
</main>
178178

179+
<a href="https://github.com/argyleink/gui-challenges" class="github-corner" aria-label="View source on GitHub">
180+
<svg width="80" height="80" viewBox="0 0 250 250" style="position: absolute; top: 0; border: 0; right: 0;" aria-hidden="true">
181+
<path d="M0,0 L115,115 L130,115 L142,142 L250,250 L250,0 Z"></path>
182+
<path d="M128.3,109.0 C113.8,99.7 119.0,89.6 119.0,89.6 C122.0,82.7 120.5,78.6 120.5,78.6 C119.2,72.0 123.4,76.3 123.4,76.3 C127.3,80.9 125.5,87.3 125.5,87.3 C122.9,97.6 130.6,101.9 134.4,103.2" fill="currentColor" style="transform-origin: 130px 106px;" class="octo-arm"></path>
183+
<path d="M115.0,115.0 C114.9,115.1 118.7,116.5 119.8,115.4 L133.7,101.6 C136.9,99.2 139.9,98.4 142.2,98.6 C133.8,88.0 127.5,74.4 143.8,58.0 C148.5,53.4 154.0,51.2 159.7,51.0 C160.3,49.4 163.2,43.6 171.4,40.1 C171.4,40.1 176.1,42.5 178.8,56.2 C183.1,58.6 187.2,61.8 190.9,65.4 C194.5,69.0 197.7,73.2 200.1,77.6 C213.8,80.2 216.3,84.9 216.3,84.9 C212.7,93.1 206.9,96.0 205.4,96.6 C205.1,102.4 203.0,107.8 198.3,112.5 C181.9,128.9 168.3,122.5 157.7,114.1 C157.9,116.9 156.7,120.9 152.7,124.9 L141.0,136.5 C139.8,137.7 141.6,141.9 141.8,141.8 Z" fill="currentColor" class="octo-body"></path>
184+
</svg>
185+
</a>
186+
179187
</body>
180188
</html>

multi-select/style.css

+21
Original file line numberDiff line numberDiff line change
@@ -233,4 +233,25 @@ fieldset:first-of-type {
233233
inline-size: 0;
234234
block-size: 0;
235235
overflow: hidden;
236+
}
237+
238+
.github-corner {
239+
fill: var(--border-color);
240+
color: var(--surface-color-1);
241+
242+
&:hover .octo-arm {
243+
animation: octocat-wave 560ms ease-in-out
244+
}
245+
}
246+
247+
@keyframes octocat-wave{
248+
0%,100% {
249+
transform: rotate(0)
250+
}
251+
20%,60% {
252+
transform: rotate(-25deg)
253+
}
254+
40%,80% {
255+
transform: rotate(10deg)
256+
}
236257
}

theme-switch/index.css

+25
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,29 @@ body {
2626

2727
display: grid;
2828
place-content: center;
29+
}
30+
31+
.github-corner {
32+
fill: hotpink;
33+
color: Canvas;
34+
35+
&:hover .octo-arm {
36+
animation: octocat-wave 560ms ease-in-out
37+
}
38+
39+
@nest [data-theme="dark"] & {
40+
fill: indigo;
41+
}
42+
}
43+
44+
@keyframes octocat-wave{
45+
0%,100% {
46+
transform: rotate(0)
47+
}
48+
20%,60% {
49+
transform: rotate(-25deg)
50+
}
51+
40%,80% {
52+
transform: rotate(10deg)
53+
}
2954
}

theme-switch/index.html

+8
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,13 @@
3434
</svg>
3535
</button>
3636

37+
<a href="https://github.com/argyleink/gui-challenges" class="github-corner" aria-label="View source on GitHub">
38+
<svg width="80" height="80" viewBox="0 0 250 250" style="position: absolute; top: 0; border: 0; right: 0;" aria-hidden="true">
39+
<path d="M0,0 L115,115 L130,115 L142,142 L250,250 L250,0 Z"></path>
40+
<path d="M128.3,109.0 C113.8,99.7 119.0,89.6 119.0,89.6 C122.0,82.7 120.5,78.6 120.5,78.6 C119.2,72.0 123.4,76.3 123.4,76.3 C127.3,80.9 125.5,87.3 125.5,87.3 C122.9,97.6 130.6,101.9 134.4,103.2" fill="currentColor" style="transform-origin: 130px 106px;" class="octo-arm"></path>
41+
<path d="M115.0,115.0 C114.9,115.1 118.7,116.5 119.8,115.4 L133.7,101.6 C136.9,99.2 139.9,98.4 142.2,98.6 C133.8,88.0 127.5,74.4 143.8,58.0 C148.5,53.4 154.0,51.2 159.7,51.0 C160.3,49.4 163.2,43.6 171.4,40.1 C171.4,40.1 176.1,42.5 178.8,56.2 C183.1,58.6 187.2,61.8 190.9,65.4 C194.5,69.0 197.7,73.2 200.1,77.6 C213.8,80.2 216.3,84.9 216.3,84.9 C212.7,93.1 206.9,96.0 205.4,96.6 C205.1,102.4 203.0,107.8 198.3,112.5 C181.9,128.9 168.3,122.5 157.7,114.1 C157.9,116.9 156.7,120.9 152.7,124.9 L141.0,136.5 C139.8,137.7 141.6,141.9 141.8,141.8 Z" fill="currentColor" class="octo-body"></path>
42+
</svg>
43+
</a>
44+
3745
</body>
3846
</html>

toast/index.css

+21
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,25 @@ body {
3030
button {
3131
font-size: 1.5rem;
3232
touch-action: manipulation;
33+
}
34+
35+
.github-corner {
36+
fill: indigo;
37+
color: Canvas;
38+
39+
&:hover .octo-arm {
40+
animation: octocat-wave 560ms ease-in-out
41+
}
42+
}
43+
44+
@keyframes octocat-wave{
45+
0%,100% {
46+
transform: rotate(0)
47+
}
48+
20%,60% {
49+
transform: rotate(-25deg)
50+
}
51+
40%,80% {
52+
transform: rotate(10deg)
53+
}
3354
}

toast/index.html

+8
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,13 @@
2222
Mock User Action
2323
</button>
2424

25+
<a href="https://github.com/argyleink/gui-challenges" class="github-corner" aria-label="View source on GitHub">
26+
<svg width="80" height="80" viewBox="0 0 250 250" style="position: absolute; top: 0; border: 0; right: 0;" aria-hidden="true">
27+
<path d="M0,0 L115,115 L130,115 L142,142 L250,250 L250,0 Z"></path>
28+
<path d="M128.3,109.0 C113.8,99.7 119.0,89.6 119.0,89.6 C122.0,82.7 120.5,78.6 120.5,78.6 C119.2,72.0 123.4,76.3 123.4,76.3 C127.3,80.9 125.5,87.3 125.5,87.3 C122.9,97.6 130.6,101.9 134.4,103.2" fill="currentColor" style="transform-origin: 130px 106px;" class="octo-arm"></path>
29+
<path d="M115.0,115.0 C114.9,115.1 118.7,116.5 119.8,115.4 L133.7,101.6 C136.9,99.2 139.9,98.4 142.2,98.6 C133.8,88.0 127.5,74.4 143.8,58.0 C148.5,53.4 154.0,51.2 159.7,51.0 C160.3,49.4 163.2,43.6 171.4,40.1 C171.4,40.1 176.1,42.5 178.8,56.2 C183.1,58.6 187.2,61.8 190.9,65.4 C194.5,69.0 197.7,73.2 200.1,77.6 C213.8,80.2 216.3,84.9 216.3,84.9 C212.7,93.1 206.9,96.0 205.4,96.6 C205.1,102.4 203.0,107.8 198.3,112.5 C181.9,128.9 168.3,122.5 157.7,114.1 C157.9,116.9 156.7,120.9 152.7,124.9 L141.0,136.5 C139.8,137.7 141.6,141.9 141.8,141.8 Z" fill="currentColor" class="octo-body"></path>
30+
</svg>
31+
</a>
32+
2533
</body>
2634
</html>

0 commit comments

Comments
 (0)