-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathteach.html
More file actions
158 lines (137 loc) · 6.83 KB
/
Copy pathteach.html
File metadata and controls
158 lines (137 loc) · 6.83 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>SkillSwap – Host a Session</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<main class="app-content">
<!-- Header + action buttons -->
<div style="display:flex; align-items:flex-start; justify-content:space-between; margin-bottom:28px;">
<div class="teach-page-header" style="margin-bottom:0;">
<h1>Host a Session</h1>
<p>Share your skills and earn credits</p>
</div>
<div class="teach-action-row" style="margin-bottom:0;">
<button class="btn-save-draft" id="saveDraftBtn">Save Draft</button>
<button class="btn-publish" id="publishBtn">Publish Session</button>
</div>
</div>
<div class="teach-layout">
<!-- ── Left column ─────────────────────────────────── -->
<div class="teach-left">
<!-- Session details card -->
<div class="teach-form-card">
<div class="teach-fields-row">
<div class="teach-field">
<label>Skill You're Teaching</label>
<div class="teach-field-input-wrap">
<input
class="teach-input"
id="skillInput"
type="text"
placeholder="Select or type a skill (e.g., Guitar, Python)"
>
<span class="teach-input-add">+</span>
</div>
</div>
<div class="teach-field">
<label>Session Title</label>
<input
class="teach-input"
id="titleInput"
type="text"
placeholder="e.g., Beginner Guitar Basics"
>
</div>
</div>
<div class="teach-field-label">Description</div>
<textarea
class="teach-textarea"
id="descInput"
placeholder="What will you teach in this session?"
></textarea>
<div class="teach-field-label">Session Type</div>
<div class="session-type-row">
<div class="session-type-btns">
<button class="session-type-btn active" id="btn1on1">
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><circle cx="12" cy="8" r="4"/><path d="M4 20c0-4 3.6-7 8-7s8 3 8 7"/></svg>
1:1 Session
</button>
<button class="session-type-btn" id="btnGroup">
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"/><circle cx="9" cy="7" r="4"/><path d="M23 21v-2a4 4 0 0 0-3-3.87"/><path d="M16 3.13a4 4 0 0 1 0 7.75"/></svg>
Group Session
</button>
</div>
<div class="credits-earned-badge">
<div class="badge-icon">
<svg width="18" height="18" viewBox="0 0 24 24" fill="#fff" stroke="#fff" stroke-width="1"><polygon points="12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2"/></svg>
</div>
<div>
<div class="badge-label">Credits Earned</div>
<div class="badge-val" id="creditsLabel">+10 credits</div>
</div>
</div>
</div>
</div>
<!-- Availability card -->
<div class="teach-avail-card">
<div class="teach-avail-title">
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="var(--teal)" stroke-width="2"><rect x="3" y="4" width="18" height="18" rx="2"/><line x1="16" y1="2" x2="16" y2="6"/><line x1="8" y1="2" x2="8" y2="6"/><line x1="3" y1="10" x2="21" y2="10"/></svg>
Set Availability
</div>
<div class="teach-days-row" id="daysRow"></div>
<div class="teach-slots-label">Select Time Slots</div>
<div class="time-slots-grid" id="slotsGrid"></div>
</div>
</div>
<!-- ── Right column ────────────────────────────────── -->
<div class="teach-right">
<!-- Live preview -->
<div class="teach-preview-card">
<div class="teach-preview-label">Preview</div>
<div class="preview-card-inner">
<div class="preview-card-top">
<div class="preview-avatar">
<svg width="22" height="22" viewBox="0 0 24 24" fill="none" stroke="#fff" stroke-width="1.8"><circle cx="12" cy="8" r="4"/><path d="M4 20c0-4 3.6-7 8-7s8 3 8 7"/></svg>
</div>
<span class="preview-credits-pill" id="previewCredits">+10 credits</span>
</div>
<div class="preview-session-title" id="previewTitle">Session Title</div>
<div class="preview-session-cat" id="previewCat">
<svg width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><rect x="3" y="4" width="18" height="18" rx="2"/><line x1="16" y1="2" x2="16" y2="6"/><line x1="8" y1="2" x2="8" y2="6"/><line x1="3" y1="10" x2="21" y2="10"/></svg>
Skill Category
</div>
<div class="preview-session-footer">
<span class="preview-duration">
<svg width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><circle cx="12" cy="12" r="10"/><polyline points="12 6 12 12 16 14"/></svg>
60 mins
</span>
<button class="preview-view-link">
View details
<svg width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M9 18l6-6-6-6"/></svg>
</button>
</div>
</div>
</div>
<!-- Pro Tip -->
<div class="teach-protip-card">
<div class="teach-protip-icon">
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="rgba(255,255,255,0.8)" stroke-width="2"><circle cx="12" cy="12" r="10"/><line x1="12" y1="8" x2="12" y2="12"/><line x1="12" y1="16" x2="12.01" y2="16"/></svg>
</div>
<h3>Pro Tip</h3>
<p>Teaching sessions is the fastest way to earn credits. Share what you already know and help others grow.</p>
<a class="teach-protip-link" href="help.html">
Read teaching guide
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M5 12h14"/><path d="m12 5 7 7-7 7"/></svg>
</a>
</div>
</div>
</div>
</main>
<script src="shared.js"></script>
<script src="teach.js"></script>
</body>
</html>