Repository navigation
Expand file tree
/
Copy pathindex.html
More file actions
312 lines (311 loc) · 9.71 KB
/
Copy pathindex.html
File metadata and controls
312 lines (311 loc) · 9.71 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
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>PR Playground — Integify</title>
<style>
:root {
--brand: #652d90;
--bg: #652d90;
--surface: #fff;
--text: #fff;
--muted: #4a4a4a;
--body: #333;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
font-family: -apple-system, Arial, sans-serif;
background: var(--bg);
color: var(--text);
line-height: 1.6;
min-height: 100vh;
}
header {
text-align: center;
padding: 72px 20px 24px;
}
header h1 {
font-size: 2.5rem;
color: #fff;
}
.how {
max-width: 1100px;
margin: 0 auto;
padding: 0 20px 28px;
color: #fff;
font-size: 0.95rem;
text-align: center;
}
main {
max-width: 1100px;
margin: 0 auto;
padding: 0 20px 20px;
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 16px;
}
.challenge {
display: flex;
flex-direction: column;
background: var(--surface);
border: 1px solid #e2d8ea;
border-radius: 10px;
padding: 20px;
text-decoration: none;
color: inherit;
transition: border-color 0.15s ease;
min-height: 100%;
}
.challenge:hover {
border-color: #652d90;
}
.challenge-top {
display: flex;
justify-content: space-between;
align-items: flex-start;
gap: 8px;
}
.challenge h2 {
color: #652d90;
font-size: 1.05rem;
line-height: 1.3;
}
.challenge-open {
color: #652d90;
font-size: 0.8rem;
white-space: nowrap;
margin-top: 2px;
}
.challenge p {
color: var(--body);
margin-top: 10px;
font-size: 0.9rem;
flex: 1;
}
.tags {
display: flex;
flex-wrap: wrap;
gap: 6px;
margin-top: 14px;
}
.tag {
display: inline-block;
font-size: 0.7rem;
background: var(--brand);
color: #fff;
border: 1px solid var(--brand);
padding: 3px 8px;
border-radius: 20px;
}
.tag.skill {
background: transparent;
color: #652d90;
}
footer {
max-width: 1100px;
margin: 0 auto;
width: 100%;
display: flex;
justify-content: space-between;
align-items: center;
gap: 16px;
padding: 40px 20px;
color: #fff;
font-size: 0.9rem;
}
.find-repo {
display: inline-flex;
align-items: center;
gap: 8px;
color: #fff;
text-decoration: none;
font-weight: 500;
}
.find-repo:hover { text-decoration: underline; }
.github-icon {
flex-shrink: 0;
}
.powered-by {
display: inline-flex;
align-items: center;
gap: 10px;
color: #fff;
font-size: 0.95rem;
font-weight: 300;
text-decoration: none;
}
.powered-by .logo {
height: 28px;
width: auto;
display: block;
}
a { color: #652d90; }
@media (max-width: 1000px) {
main { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
main { grid-template-columns: 1fr; }
footer {
flex-direction: column;
align-items: center;
text-align: center;
}
}
</style>
</head>
<body>
<header>
<h1>PR Playground</h1>
</header>
<p class="how">
Preview a challenge below, then fork the repo, fix it on a branch, and open a PR.
</p>
<main>
<a class="challenge" href="challenges/01-css-bug-hunt/index.html">
<div class="challenge-top">
<h2>01 · CSS Bug Hunt</h2>
<span class="challenge-open">Preview →</span>
</div>
<p>The cards should cast a subtle shadow, but they don't. Find the CSS bug and fix it.</p>
<div class="tags">
<span class="tag">Beginner</span>
<span class="tag skill">CSS</span>
</div>
</a>
<a class="challenge" href="challenges/02-typo-fix/index.html">
<div class="challenge-top">
<h2>02 · Typo Fix</h2>
<span class="challenge-open">Preview →</span>
</div>
<p>The About page has several spelling mistakes. Find them all without changing the meaning.</p>
<div class="tags">
<span class="tag">Beginner</span>
<span class="tag skill">HTML</span>
</div>
</a>
<a class="challenge" href="challenges/03-missing-footer/index.html">
<div class="challenge-top">
<h2>03 · Missing Footer</h2>
<span class="challenge-open">Preview →</span>
</div>
<p>This page has no footer. Build one from scratch with your name, the year, and a short credit line.</p>
<div class="tags">
<span class="tag">Beginner</span>
<span class="tag skill">HTML / CSS</span>
</div>
</a>
<a class="challenge" href="challenges/04-broken-button/index.html">
<div class="challenge-top">
<h2>04 · Broken Button</h2>
<span class="challenge-open">Preview →</span>
</div>
<p>Clicking the button does nothing. Open the console, find the JavaScript error, and fix it.</p>
<div class="tags">
<span class="tag">Beginner+</span>
<span class="tag skill">JavaScript</span>
</div>
</a>
<a class="challenge" href="challenges/05-broken-image/index.html">
<div class="challenge-top">
<h2>05 · Broken Image</h2>
<span class="challenge-open">Preview →</span>
</div>
<p>The logo should show, but the image is broken. Fix the file path.</p>
<div class="tags">
<span class="tag">Beginner</span>
<span class="tag skill">HTML</span>
</div>
</a>
<a class="challenge" href="challenges/06-responsive-cards/index.html">
<div class="challenge-top">
<h2>06 · Responsive Cards</h2>
<span class="challenge-open">Preview →</span>
</div>
<p>On a phone-sized screen the cards overflow. Fix the CSS so they stack cleanly.</p>
<div class="tags">
<span class="tag">Beginner+</span>
<span class="tag skill">CSS</span>
</div>
</a>
<a class="challenge" href="challenges/07-broken-form/index.html">
<div class="challenge-top">
<h2>07 · Broken Form</h2>
<span class="challenge-open">Preview →</span>
</div>
<p>Send does nothing useful. Fix the form so it reaches the thanks page.</p>
<div class="tags">
<span class="tag">Beginner+</span>
<span class="tag skill">HTML</span>
</div>
</a>
<a class="challenge" href="challenges/08-missing-alt/index.html">
<div class="challenge-top">
<h2>08 · Missing Alt Text</h2>
<span class="challenge-open">Preview →</span>
</div>
<p>The logo has empty alt text. Add meaningful alternative text for accessibility.</p>
<div class="tags">
<span class="tag">Beginner</span>
<span class="tag skill">A11y</span>
</div>
</a>
<a class="challenge" href="challenges/09-broken-link/index.html">
<div class="challenge-top">
<h2>09 · Broken Link</h2>
<span class="challenge-open">Preview →</span>
</div>
<p>Contact in the nav should jump to the Contact section. Fix the href.</p>
<div class="tags">
<span class="tag">Beginner</span>
<span class="tag skill">HTML</span>
</div>
</a>
<a class="challenge" href="challenges/10-color-contrast/index.html">
<div class="challenge-top">
<h2>10 · Color Contrast</h2>
<span class="challenge-open">Preview →</span>
</div>
<p>Body text is too light to read. Improve the contrast without losing the brand feel.</p>
<div class="tags">
<span class="tag">Intermediate</span>
<span class="tag skill">A11y / CSS</span>
</div>
</a>
<a class="challenge" href="challenges/11-update-the-docs/index.html">
<div class="challenge-top">
<h2>11 · Update the Docs</h2>
<span class="challenge-open">Preview →</span>
</div>
<p>SERVICES.md is out of date. Make the docs match the three services on the page.</p>
<div class="tags">
<span class="tag">Beginner</span>
<span class="tag skill">Docs</span>
</div>
</a>
<a class="challenge" href="challenges/12-console-error/index.html">
<div class="challenge-top">
<h2>12 · Console Error</h2>
<span class="challenge-open">Preview →</span>
</div>
<p>The hero title stays blank. Open the console, find the error, and fix the script.</p>
<div class="tags">
<span class="tag">Beginner+</span>
<span class="tag skill">JavaScript</span>
</div>
</a>
</main>
<footer>
<a class="find-repo" href="https://github.com/integify/pr-playground" target="_blank" rel="noopener noreferrer" aria-label="Find the repo on GitHub">
<svg class="github-icon" viewBox="0 0 16 16" width="22" height="22" aria-hidden="true">
<path fill="currentColor" 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-.27s1.36.09 2 .27c1.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.01 8.01 0 0016 8c0-4.42-3.58-8-8-8z"/>
</svg>
<span>Find the repo</span>
</a>
<a class="powered-by" href="https://www.integify.io" target="_blank" rel="noopener noreferrer">
Powered by
<img class="logo" src="integify_logo.png" alt="Integify">
</a>
</footer>
</body>
</html>