-
Notifications
You must be signed in to change notification settings - Fork 29
Expand file tree
/
Copy pathguide.html
More file actions
215 lines (196 loc) · 7.53 KB
/
guide.html
File metadata and controls
215 lines (196 loc) · 7.53 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Submission Guide</title>
<style>
@font-face {
font-family: 'GravitationFalls';
src: url('./fonts/gravity-falls/gravitation_falls.ttf') format('truetype');
font-weight: normal;
font-style: normal;
font-display: swap;
}
:root {
--gf-yellow: #f0e72d;
--ink: #1d0f18;
--paper: #f6e7b7;
--paper-edge: #d7c18a;
--paper-shadow: rgba(0,0,0,0.5);
--bg-deep: #0a0208;
--glow: 0 0 6px var(--gf-yellow), 0 0 14px rgba(240,231,45,0.6);
}
html, body { height: 100%; }
body {
margin: 0;
background:
radial-gradient(1200px 600px at 50% 10%, rgba(240,231,45,0.075), transparent 60%),
radial-gradient(900px 500px at 10% 90%, rgba(255,0,0,0.05), transparent 60%),
radial-gradient(800px 500px at 90% 80%, rgba(0,255,170,0.05), transparent 60%),
url('./assets/bg.png') center / cover no-repeat fixed;
color: var(--ink);
display: flex;
align-items: center;
justify-content: center;
padding: 20px 12px;
box-sizing: border-box;
}
.parchment {
position: relative;
width: min(760px, 94vw);
padding: 18px 18px 16px;
background: linear-gradient(180deg, #fbf1cf, var(--paper));
border: 2px solid var(--paper-edge);
border-radius: 10px;
box-shadow:
0 12px 28px var(--paper-shadow),
inset 0 0 6px rgba(0,0,0,0.08),
inset 0 16px 26px rgba(255,255,255,0.45);
overflow: hidden;
}
.parchment:before, .parchment:after {
content: '';
position: absolute;
inset: 0;
pointer-events: none;
}
.parchment:before { background: radial-gradient(120% 80% at 50% -10%, rgba(0,0,0,0.08), transparent 50%); }
.parchment:after { background: radial-gradient(100% 60% at 50% 120%, rgba(0,0,0,0.10), transparent 40%); }
/* Hide scrollbars on the parchment while keeping it scrollable */
.parchment {
-ms-overflow-style: none; /* IE and old Edge */
scrollbar-width: none; /* Firefox */
}
.parchment::-webkit-scrollbar { /* Chrome, Safari, new Edge */
width: 0; height: 0;
background: transparent;
}
header.page-title { display:flex; align-items:center; gap:10px; margin-bottom: 6px; }
.seal {
width: 34px; height: 34px; border-radius: 50%;
background: radial-gradient(circle at 30% 30%, #ffd666, #d4a215);
box-shadow: var(--glow);
position: relative;
overflow: hidden;
}
.seal:after {
content:''; position:absolute; inset:10px; border:2px solid rgba(0,0,0,0.25); border-radius:50%;
}
h1, h2 { margin: 0; }
h1 {
font-family: 'GravitationFalls', Georgia, serif;
color: #f6de3b;
font-size: 1.6rem;
letter-spacing: 0.2px;
font-weight: 700;
-webkit-text-stroke: 1px rgba(94,66,23,0.95);
text-shadow:
-1px -1px 0 rgba(94,66,23,0.95),
1px -1px 0 rgba(94,66,23,0.95),
-1px 1px 0 rgba(94,66,23,0.95),
1px 1px 0 rgba(94,66,23,0.95),
0 0 4px rgba(240,231,45,0.35);
}
h2 {
font-family: 'GravitationFalls', Georgia, serif;
color: #5d3e12;
font-size: 1.05rem;
margin-top: 16px;
-webkit-text-stroke: 0.5px rgba(60,42,15,0.55);
text-shadow: 0 1px 0 rgba(255,255,255,0.25);
}
.rune {
color:#5a4218;
letter-spacing: 1.5px;
font-size: 0.84rem;
opacity: 0.85;
margin-left: 2px;
}
.divider { height: 1px; background: linear-gradient(90deg, transparent, #9b7e39 10%, #c5a557 50%, #9b7e39 90%, transparent); margin: 10px 0 8px; opacity: 0.9; }
p, li { font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; color: #3a2a18; }
p { margin: 8px 0 0; font-size: 0.95rem; }
ul { margin: 6px 0 0 18px; padding: 0; }
li { margin: 4px 0; }
pre, code { font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
pre {
background: linear-gradient(180deg, rgba(0,0,0,0.07), rgba(0,0,0,0.12));
color: #f6f6f6;
border: 1px solid rgba(0,0,0,0.25);
border-radius: 6px;
padding: 8px 10px;
margin: 8px 0 0;
overflow-x: auto;
box-shadow: inset 0 0 14px rgba(0,0,0,0.25);
}
code { background: rgba(0,0,0,0.08); color: #1d130a; padding: 1px 5px; border-radius: 5px; }
.watermark {
position: absolute; right: -10px; bottom: -10px; width: 130px; opacity: 0.14; transform: rotate(-6deg);
filter: drop-shadow(0 0 10px rgba(0,0,0,0.3)); pointer-events: none;
}
.back { position: absolute; top: 10px; right: 14px; color:#6b511f; text-decoration: none; font-weight: 600; }
.back:hover { text-decoration: underline; }
</style>
</head>
<body>
<main class="parchment" style="max-height: 90vh; overflow: auto;">
<a class="back" href="index.html">↩ Back</a>
<header class="page-title">
<div class="seal" aria-hidden="true"></div>
<div>
<h1>How to Submit Your Answers</h1>
<div class="rune">△ Σ Ξ ᚠ ᚱ • Keep your scroll tidy • ᚨ ᚾ ᛊ</div>
</div>
</header>
<div class="divider"></div>
<section>
<h2>1) Generate your token</h2>
<ul>
<li>Select a question (Q1, Q2, …).</li>
<li>Enter your <strong>GitHub username</strong> and your <strong>answer</strong>.</li>
<li>Press Enter to generate the token shown under <em>Hash:</em>.</li>
<li>Use the <strong>COPY HASH</strong> button to copy it.</li>
</ul>
</section>
<section>
<h2>2) Create the submission file</h2>
<p>Create a file per question with this exact path pattern:</p>
<pre><code>submissions/<your-github-username>/<your-github-username>_q<N>.txt</code></pre>
<p>File contents must be a single line:</p>
<pre><code><hash>:<nonce></code></pre>
<p>Example for user <code>octocat</code> submitting Q3:</p>
<pre><code>submissions/octocat/octocat_q3.txt
# contents:
2f5a...be9e:ab12cd34</code></pre>
</section>
<section>
<h2>3) Commit, push, and open a PR</h2>
<pre><code>git add submissions/<you>/<you>_q<N>.txt
git commit -m "Submit Q<N> answer"
# ensure your fork main is up to date
git pull --rebase origin main
git push origin main
</code></pre>
<p>On GitHub, click <strong>Compare & pull request</strong>, title it like <code>Q<N> answer by <you></code>, and submit.</p>
</section>
<section>
<h2>4) What CI checks</h2>
<ul>
<li><strong>Path check</strong>: files must match <code>submissions/<you>/<you>_q<N>.txt</code>.</li>
<li><strong>Answer verification</strong>: derives <code>sha256(sha256(username)+sha256(correct_answer)+nonce)</code> and matches your <code><hash></code>.</li>
<li><strong>Commit signature</strong>: fails some bot-style merges.</li>
</ul>
<p>If a check fails, open the PR Checks tab for details and fix the path/token.</p>
</section>
<section>
<h2>Tips</h2>
<ul>
<li>Username in the path must match your PR author login.</li>
<li>Keep the submission line exactly <code><hash>:<nonce></code> (no spaces).</li>
<li>Use Hint Mode and the media links (video/image) if provided.</li>
</ul>
</section>
<img class="watermark" src="assets/bill_about.png" alt="Bill watermark" />
</main>
</body>
</html>