-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathprofile-edit.html
More file actions
80 lines (71 loc) · 2.81 KB
/
profile-edit.html
File metadata and controls
80 lines (71 loc) · 2.81 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
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width,initial-scale=1" />
<title>Edit Profile — HouseLearning</title>
<link rel="stylesheet" href="/css/profile-edit.css" />
<script src="https://houselearning.org/feedback.js"></script>
<script src="https://houselearning.org/cookiebanner.js"></script>
</head>
<body>
<header class="hl-nav">
<div class="hl-nav-left">
<a class="hl-logo" href="/">HouseLearning</a>
<a href="https://houselearning.org/docs/forum.html">Forum</a>
<a href="/blob.html">Gist</a>
</div>
<div class="hl-nav-right">
<span id="signedInAs">Guest</span>
<button id="signInBtn" class="hl-btn">Sign In</button>
<button id="signOutBtn" class="hl-btn hidden">Sign Out</button>
</div>
</header>
<main class="edit-layout">
<section class="card edit-card">
<h2>Edit Profile</h2>
<form id="profileForm">
<div class="row">
<div class="avatar-col">
<div id="avatarPreview" class="avatar-preview"></div>
<label class="field">
<span>Avatar image URL</span>
<input id="avatarUrl" type="url" placeholder="https://..." />
</label>
<div class="muted small">Or leave blank to use generated avatar.</div>
</div>
<div class="fields-col">
<label class="field">
<span>Display name</span>
<input id="displayName" type="text" maxlength="80" />
</label>
<label class="field">
<span>Bio</span>
<textarea id="bio" rows="4" maxlength="1000" placeholder="Tell people about yourself"></textarea>
</label>
<label class="field">
<span>Location</span>
<input id="location" type="text" maxlength="120" />
</label>
<label class="field">
<span>Public email (optional)</span>
<input id="publicEmail" type="email" placeholder="you@example.com" />
</label>
<div class="actions">
<button id="saveBtn" class="hl-btn primary" type="submit">Save profile</button>
<button id="cancelBtn" class="hl-btn" type="button">Cancel</button>
<span id="saveStatus" class="muted"></span>
</div>
</div>
</div>
</form>
<section class="card small">
<h3>Danger zone</h3>
<button id="deleteProfileBtn" class="hl-btn" style="background:#ffecec;color:#9b1b1b">Delete profile</button>
<div class="muted small">Deleting your profile will remove public profile fields. It will not delete your blobs.</div>
</section>
</section>
</main>
<script type="module" src="/js/profile-edit.js"></script>
</body>
</html>