Skip to content

Commit 51e76f6

Browse files
committed
Add link to Xylect
1 parent 559a027 commit 51e76f6

File tree

1 file changed

+37
-16
lines changed

1 file changed

+37
-16
lines changed

templates/components/challenge_area.html

+37-16
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,26 @@
22
<div class="challenge-header__title">
33
<span>Challenge - {{ name }}</span>
44
{%include 'components/badge.html' with context %}
5+
<span style="font-weight: 600; margin-left: auto"
6+
>🥰 Like type challenges? I also built
7+
<a target="_blank" href="https://xylect.app">Xylect</a>, one-click AI-search for
8+
Mac</span></span
9+
>
510
</div>
611
<p class="challenge-header__exerpt">
712
Complete code following the instructions, so that lines followed by
8-
<code># expect-type-error</code> (if any)
9-
fail type check, while others can pass.<br>
13+
<code># expect-type-error</code> (if any) fail type check, while others can pass.<br />
1014
Hit the "▶️ Run" button to see result.
1115
</p>
1216
<div class="hints-container">
1317
{% if hints_for_display %}
14-
<a id="read-hints" role="button" class="secondary outline" href="javascript:void(0);">💡 Read Hints</a>
18+
<a
19+
id="read-hints"
20+
role="button"
21+
class="secondary outline"
22+
href="javascript:void(0);"
23+
>💡 Read Hints</a
24+
>
1525
{% else %}
1626
<div id="hints-missing">💡 No Hints Available</div>
1727
{% endif %}
@@ -23,26 +33,37 @@
2333
<div class="codemirror-container">
2434
<div id="editor">
2535
<a id="playground-link" target="_blank" rel="noopener noreferrer">
26-
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24">
27-
<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
28-
d="M10 4H6a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-4m-8-2l8-8m0 0v5m0-5h-5" />
36+
<svg
37+
xmlns="http://www.w3.org/2000/svg"
38+
width="16"
39+
height="16"
40+
viewBox="0 0 24 24"
41+
>
42+
<path
43+
fill="none"
44+
stroke="currentColor"
45+
stroke-linecap="round"
46+
stroke-linejoin="round"
47+
stroke-width="2"
48+
d="M10 4H6a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-4m-8-2l8-8m0 0v5m0-5h-5"
49+
/>
2950
</svg>
3051
<span>Open Pyright Playground</span>
3152
</a>
3253
</div>
3354
<div class="editor-actions">
34-
<p id="answer-link">Stuck? Check out
35-
<a target="_blank" rel="noopener noreferrer"
36-
href="https://github.com/laike9m/Python-Type-Challenges/tree/main/challenges/{{level}}-{{name}}/solution.py">
55+
<p id="answer-link">
56+
Stuck? Check out
57+
<a
58+
target="_blank"
59+
rel="noopener noreferrer"
60+
href="https://github.com/laike9m/Python-Type-Challenges/tree/main/challenges/{{level}}-{{name}}/solution.py"
61+
>
3762
solution
3863
</a>
3964
</p>
40-
<button id="reset-button" class="secondary">
41-
Reset
42-
</button>
43-
<button id="run-button">
44-
▶️ Run
45-
</button>
65+
<button id="reset-button" class="secondary">Reset</button>
66+
<button id="run-button">▶️ Run</button>
4667
</div>
4768
</div>
4869
<div class="tests-result-container">
@@ -175,6 +196,6 @@
175196
const challengeArea = document.querySelector(".challenge-area");
176197

177198
challengeArea.addEventListener("click", () => {
178-
drawer.classList.remove('open');
199+
drawer.classList.remove("open");
179200
});
180201
</script>

0 commit comments

Comments
 (0)