This repository has been archived by the owner on Sep 23, 2022. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index-blank.html
339 lines (335 loc) · 11.7 KB
/
index-blank.html
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
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
<!DOCTYPE html>
<html lang="en">
<head>
<title>Special Agent Mittens</title>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="stylesheet" href="base-style.css" />
<link rel="stylesheet" href="normalize.css" />
<style type="text/css">
a {
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
body {
background-color: #d3f6db;
}
#site-header {
background-color: #5a0b4d;
color: white;
}
#site-header a {
color: white;
}
button {
background-color: #92d5e6;
border-radius: 10px;
border-style: solid;
border-color: #5a0b4d;
border-width: 1px;
}
button:hover {
background-color: #a1ef8b;
}
.skills-list {
columns: 2;
list-style: none;
}
.top-skill {
font-weight: bold;
color: red;
}
blockquote {
background-color: white;
padding: 0.5em;
}
blockquote p {
padding: 0;
margin: 0;
margin-bottom: 1em;
}
.comment-photo img {
border-radius: 50%;
}
.comment {
background: white;
border-radius: 10px;
padding: 0.25em;
margin-bottom: 1em;
}
.comment-form textarea {
width: 100%;
height: 5em;
}
.by {
font-weight: 400;
font-size: 0.8em;
}
.comment-date {
font-size: 0.8em;
}
</style>
</head>
<body>
<header id="site-header">
<div>
<h1 id="site-title">
<a href="/">😺 CatBook</a>
</h1>
<p id="site-description">
Your #1 place to connect with cats.
</p>
</div>
<nav><a href="/">Home</a> • <a href="/">About</a></nav>
</header>
<div id="sidebar">
<!-- Use inline styles here to illustrate how styles work. -->
<aside>
<h2>
About CatBook
</h2>
<p style="opacity: 0.5; color: red;">
<a href="/" style="text-decoration:none;">CatBook</a> is a
social network for cats. It's free for all cats to join!
</p>
<p>
You are viewing a cat's profile page.
</p>
</aside>
</div>
<main>
<header class="profile-header">
<div>
<h1 class="profile-title">
Secret Agent Mittens
</h1>
<figure class="profile-photo">
<img
src="mittens.jpg"
alt="Mittens' profile photo"
height="200"
width="200"
/>
<figcaption>Photo of Agent Mittens</figcaption>
</figure>
<div class="buttons">
<button>
Add friend
</button>
<button>
Message
</button>
<button>
Share
</button>
</div>
</div>
<div>
<table class="bio-table">
<tbody>
<tr>
<th>Residence</th>
<td>DC area</td>
</tr>
<tr>
<th>Age</th>
<td>5 years</td>
</tr>
<tr>
<th>Hometown</th>
<td><em>Classified</em></td>
</tr>
<tr>
<th>Code name</th>
<td>Mittens</td>
</tr>
<tr>
<th>Legal name</th>
<td><em>Classified</em></td>
</tr>
</tbody>
</table>
</div>
</header>
<h2 class="bio-title">
Bio
</h2>
<p class="bio-paragraph">
At a young age, Mittens was recruited into the
<a href="/">Kitty Secret Agent Corps</a>. He graduated at the
top of his class and now he defends cats from injustice across
the globe.
</p>
<div class="stats">
<h2 class="stats-title">
Stats
</h2>
<h3>
Favorite food
</h3>
<p>
Tuna
</p>
<h3>
Strengths
</h3>
<p>
Claws and stealth
</p>
<h3>
Weakness
</h3>
<p>
Catnip and Laser pointers
</p>
<h3 class="skills-title">
Skills
</h3>
<ul class="skills-list">
<li class="top-skill">
Napping
</li>
<li>
Climbing trees
</li>
<li>
<del>Getting down from trees</del>
</li>
<li>
Scratching
</li>
<li>
Batting
</li>
<li class="top-skill">
Knocking things off tables
</li>
</ul>
</div>
<h2 class="title-quotes">
Quotes
</h2>
<blockquote>
<p>
Meow meow meow.
</p>
<cite>Remark given at the 2019 Kitty Agent Gala</cite>
</blockquote>
<h2 class="title-comments">
Comments
</h2>
<section id="comments">
<div class="comment">
<header class="comment-profile">
<h3 class="comment-author">
<span class="by">by</span> Milo
</h3>
<div class="comment-photo">
<img
src="milo.jpg"
width="100"
height="100"
alt="Milo's photo"
/>
</div>
<div class="comment-date">
Posted 1 day ago
</div>
</header>
<div class="comment-body">
<p>
Can I get your pawtograph? 🐾
</p>
</div>
</div>
<div class="comment">
<header class="comment-profile">
<h3 class="comment-author">
<span class="by">by</span> Kitty Galore
</h3>
<div class="comment-photo">
<img
src="kitty.jpg"
width="100"
height="100"
alt="Kitty Galore's photo"
/>
</div>
<div class="comment-date">
Posted 2 days ago
</div>
</header>
<div class="comment-body">
<p>
Meow meow? 🐱 Meow meow meow 🙀
</p>
<p>
Purrrr.... meow! 😹
</p>
</div>
</div>
</section>
<form class="comment-form">
<h3 class="title-comment-form">
Leave a comment for Mittens
</h3>
<input type="text" placeholder="Name" id="comment-form-name" />
<textarea
placeholder="Write a comment here"
id="comment-form-text"
></textarea>
<input
type="submit"
value="Submit"
id="comment-submit-button"
/>
</form>
</main>
<footer class="site-footer">
<p>
Copyright © 2019 CatBook
</p>
</footer>
</body>
<script type="text/javascript">
/* This giant function just creates the HTML we'll render into the
comments list. It may be unweildy, but its details aren't important
since all we need is a basic function to help us later.*/
function createComment(authorName, text) {
text = text.length > 0 ? text : "[Blank comment]";
authorName = authorName.length > 0 ? authorName : "Anonymous";
var comment = document.createElement("div");
comment.className = "comment";
var header = document.createElement("header");
header.className = "comment-profile";
comment.appendChild(header);
var author = document.createElement("h3");
author.className = "comment-author";
var by = document.createElement("span");
by.className = "by";
by.appendChild(document.createTextNode("by "));
author.appendChild(by);
author.appendChild(document.createTextNode(authorName));
header.appendChild(author);
var photoDiv = document.createElement("div");
photoDiv.className = "comment-photo";
var avatarImg = document.createElement("img");
photoDiv.appendChild(avatarImg);
avatarImg.src = "user.jpg";
avatarImg.width = 100;
avatarImg.height = 100;
header.appendChild(photoDiv);
var date = document.createElement("div");
date.className = "comment-date";
date.appendChild(document.createTextNode("Posted just now"));
header.appendChild(date);
var body = document.createElement("div");
comment.appendChild(body);
var bodyP = document.createElement("p");
bodyP.appendChild(document.createTextNode(text));
body.appendChild(bodyP);
return comment;
}
</script>
</html>