Ratchapon commited on
Commit
694dde9
·
verified ·
1 Parent(s): 14570cb

Update index.html

Browse files
Files changed (1) hide show
  1. index.html +328 -38
index.html CHANGED
@@ -1,41 +1,331 @@
1
  <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <title>My app</title>
5
- <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
- <meta charset="utf-8">
7
  <style>
8
- body {
9
- display: flex;
10
- justify-content: center;
11
- align-items: center;
12
- overflow: hidden;
13
- height: 100dvh;
14
- font-family: "Arial", sans-serif;
15
- text-align: center;
16
- }
17
- .arrow {
18
- position: absolute;
19
- bottom: 32px;
20
- left: 0px;
21
- width: 100px;
22
- transform: rotate(30deg);
23
- }
24
- h1 {
25
- font-size: 50px;
26
- }
27
- h1 span {
28
- color: #acacac;
29
- font-size: 32px;
30
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
31
  </style>
32
- </head>
33
- <body>
34
- <h1>
35
- <span>I'm ready to work,</span><br />
36
- Ask me anything.
37
- </h1>
38
- <img src="https://enzostvs-deepsite.hf.space/arrow.svg" class="arrow" />
39
- <script></script>
40
- </body>
41
- </html>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  <!DOCTYPE html>
2
+ <html lang="th">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>ระบบสื่อการสอนออนไลน์</title>
7
  <style>
8
+ :root {
9
+ --primary-color: #4a6fa5;
10
+ --secondary-color: #166088;
11
+ --accent-color: #4fc3f7;
12
+ --text-color: #333;
13
+ --light-bg: #f5f9fc;
14
+ }
15
+
16
+ * {
17
+ margin: 0;
18
+ padding: 0;
19
+ box-sizing: border-box;
20
+ font-family: 'Kanit', 'TH Sarabun New', sans-serif;
21
+ }
22
+
23
+ body {
24
+ background-color: var(--light-bg);
25
+ color: var(--text-color);
26
+ line-height: 1.6;
27
+ }
28
+
29
+ /* Header Styles */
30
+ .header {
31
+ background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
32
+ color: white;
33
+ padding: 1.5rem 0;
34
+ box-shadow: 0 4px 12px rgba(0,0,0,0.1);
35
+ }
36
+
37
+ .header-container {
38
+ max-width: 1200px;
39
+ margin: 0 auto;
40
+ display: flex;
41
+ justify-content: space-between;
42
+ align-items: center;
43
+ padding: 0 2rem;
44
+ }
45
+
46
+ .logo {
47
+ display: flex;
48
+ align-items: center;
49
+ gap: 1rem;
50
+ }
51
+
52
+ .logo img {
53
+ height: 60px;
54
+ }
55
+
56
+ /* Navigation */
57
+ .nav-menu {
58
+ display: flex;
59
+ list-style: none;
60
+ gap: 1.5rem;
61
+ }
62
+
63
+ .nav-menu a {
64
+ color: white;
65
+ text-decoration: none;
66
+ font-weight: 500;
67
+ padding: 0.5rem 1rem;
68
+ border-radius: 4px;
69
+ transition: all 0.3s ease;
70
+ }
71
+
72
+ .nav-menu a:hover {
73
+ background-color: rgba(255,255,255,0.2);
74
+ }
75
+
76
+ /* Main Content */
77
+ .main-container {
78
+ max-width: 1200px;
79
+ margin: 2rem auto;
80
+ padding: 0 2rem;
81
+ }
82
+
83
+ .course-section {
84
+ background: white;
85
+ border-radius: 8px;
86
+ box-shadow: 0 2px 10px rgba(0,0,0,0.05);
87
+ padding: 2rem;
88
+ margin-bottom: 2rem;
89
+ }
90
+
91
+ .section-title {
92
+ color: var(--secondary-color);
93
+ margin-bottom: 1.5rem;
94
+ padding-bottom: 0.5rem;
95
+ border-bottom: 2px solid var(--accent-color);
96
+ }
97
+
98
+ /* Video Embed */
99
+ .video-container {
100
+ position: relative;
101
+ padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
102
+ height: 0;
103
+ overflow: hidden;
104
+ margin: 1.5rem 0;
105
+ border-radius: 8px;
106
+ box-shadow: 0 4px 8px rgba(0,0,0,0.1);
107
+ }
108
+
109
+ .video-container iframe {
110
+ position: absolute;
111
+ top: 0;
112
+ left: 0;
113
+ width: 100%;
114
+ height: 100%;
115
+ border: none;
116
+ }
117
+
118
+ /* Document Section */
119
+ .document-card {
120
+ background: var(--light-bg);
121
+ border-left: 4px solid var(--accent-color);
122
+ padding: 1.5rem;
123
+ margin: 1rem 0;
124
+ border-radius: 0 8px 8px 0;
125
+ transition: transform 0.3s ease;
126
+ }
127
+
128
+ .document-card:hover {
129
+ transform: translateX(5px);
130
+ }
131
+
132
+ .document-card h3 {
133
+ color: var(--secondary-color);
134
+ margin-bottom: 0.5rem;
135
+ }
136
+
137
+ .document-card a {
138
+ display: inline-block;
139
+ margin-top: 0.5rem;
140
+ padding: 0.5rem 1rem;
141
+ background-color: var(--accent-color);
142
+ color: white;
143
+ text-decoration: none;
144
+ border-radius: 4px;
145
+ font-weight: 500;
146
+ }
147
+
148
+ /* Quiz Section */
149
+ .quiz-container {
150
+ background: white;
151
+ border-radius: 8px;
152
+ padding: 2rem;
153
+ box-shadow: 0 2px 10px rgba(0,0,0,0.05);
154
+ }
155
+
156
+ .question {
157
+ margin-bottom: 1.5rem;
158
+ padding-bottom: 1rem;
159
+ border-bottom: 1px solid #eee;
160
+ }
161
+
162
+ .options {
163
+ margin-top: 1rem;
164
+ }
165
+
166
+ .option {
167
+ margin: 0.5rem 0;
168
+ }
169
+
170
+ .submit-btn {
171
+ background-color: var(--primary-color);
172
+ color: white;
173
+ border: none;
174
+ padding: 0.8rem 1.5rem;
175
+ border-radius: 4px;
176
+ cursor: pointer;
177
+ font-size: 1rem;
178
+ font-weight: 500;
179
+ transition: background 0.3s;
180
+ }
181
+
182
+ .submit-btn:hover {
183
+ background-color: var(--secondary-color);
184
+ }
185
+
186
+ /* Responsive Design */
187
+ @media (max-width: 768px) {
188
+ .header-container {
189
+ flex-direction: column;
190
+ text-align: center;
191
+ gap: 1rem;
192
+ }
193
+
194
+ .nav-menu {
195
+ flex-wrap: wrap;
196
+ justify-content: center;
197
+ }
198
+ }
199
  </style>
200
+ </head>
201
+ <body>
202
+ <!-- Header Section -->
203
+ <header class="header">
204
+ <div class="header-container">
205
+ <div class="logo">
206
+ <img src="https://via.placeholder.com/60x60?text=LOGO" alt="โลโก้สื่อการสอน">
207
+ <h1>ระบบสื่อการสอนออนไลน์</h1>
208
+ </div>
209
+
210
+ <ul class="nav-menu">
211
+ <li><a href="#">หน้าหลัก</a></li>
212
+ <li><a href="#">บทเรียนทั้งหมด</a></li>
213
+ <li><a href="#">แบบฝึกหัด</a></li>
214
+ <li><a href="#">แบบทดสอบ</a></li>
215
+ <li><a href="#">ติดต่อครู</a></li>
216
+ </ul>
217
+ </div>
218
+ </header>
219
+
220
+ <!-- Main Content -->
221
+ <main class="main-container">
222
+ <!-- Video Lesson Section -->
223
+ <section class="course-section">
224
+ <h2 class="section-title">บทเรียนวิดีโอ</h2>
225
+ <p>เรียนรู้เนื้อหาผ่านวิดีโอการสอนที่เข้าใจง่าย</p>
226
+
227
+ <div class="video-container">
228
+ <!-- YouTube Embed -->
229
+ <iframe src="https://www.youtube.com/embed/VIDEO_ID"
230
+ frameborder="0"
231
+ allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"
232
+ allowfullscreen></iframe>
233
+ </div>
234
+
235
+ <div class="video-info">
236
+ <h3>การสร้างเว็บไซต์เบื้องต้น</h3>
237
+ <p>ความยาว: 15:30 นาที | ระดับความยาก: ปานกลาง</p>
238
+ </div>
239
+ </section>
240
+
241
+ <!-- Document Section -->
242
+ <section class="course-section">
243
+ <h2 class="section-title">เอกสารประกอบการเรียน</h2>
244
+ <p>ดาวน์โหลดใบงานและเอกสารประกอบการเรียนรู้</p>
245
+
246
+ <div class="document-card">
247
+ <h3>ใบงานที่ 1: แบบฝึกหัด HTML</h3>
248
+ <p>แบบฝึกหัดการเขียนโครงสร้าง HTML เบื้องต้น</p>
249
+ <a href="https://drive.google.com/file/d/YOUR_FILE_ID/view" target="_blank">ดาวน์โหลด PDF</a>
250
+ </div>
251
+
252
+ <div class="document-card">
253
+ <h3>ใบงานที่ 2: การใช้ CSS</h3>
254
+ <p>แบบฝึกหัดการตกแต่งเว็บไซต์ด้วย CSS</p>
255
+ <a href="https://drive.google.com/file/d/YOUR_FILE_ID/view" target="_blank">ดาวน์โหลด PDF</a>
256
+ </div>
257
+ </section>
258
+
259
+ <!-- Quiz Section -->
260
+ <section class="course-section">
261
+ <h2 class="section-title">แบบทดสอบหลังเรียน</h2>
262
+ <p>ทดสอบความเข้าใจหลังจากเรียนจบบทเรียน</p>
263
+
264
+ <div class="quiz-container">
265
+ <form id="quiz-form">
266
+ <div class="question">
267
+ <h3>1. คำถามที่ 1: HTML ย่อมาจากอะไร?</h3>
268
+ <div class="options">
269
+ <div class="option">
270
+ <input type="radio" id="q1-1" name="q1" value="1">
271
+ <label for="q1-1">Hyper Text Markup Language</label>
272
+ </div>
273
+ <div class="option">
274
+ <input type="radio" id="q1-2" name="q1" value="2">
275
+ <label for="q1-2">Hyperlinks and Text Markup Language</label>
276
+ </div>
277
+ <div class="option">
278
+ <input type="radio" id="q1-3" name="q1" value="3">
279
+ <label for="q1-3">Home Tool Markup Language</label>
280
+ </div>
281
+ </div>
282
+ </div>
283
+
284
+ <div class="question">
285
+ <h3>2. คำถามที่ 2: ข้อใดคือ Selector ใน CSS?</h3>
286
+ <div class="options">
287
+ <div class="option">
288
+ <input type="radio" id="q2-1" name="q2" value="1">
289
+ <label for="q2-1">body</label>
290
+ </div>
291
+ <div class="option">
292
+ <input type="radio" id="q2-2" name="q2" value="2">
293
+ <label for="q2-2">font-size</label>
294
+ </div>
295
+ <div class="option">
296
+ <input type="radio" id="q2-3" name="q2" value="3">
297
+ <label for="q2-3">#header</label>
298
+ </div>
299
+ </div>
300
+ </div>
301
+
302
+ <button type="submit" class="submit-btn">ส่งคำตอบ</button>
303
+ </form>
304
+ </div>
305
+ </section>
306
+ </main>
307
+
308
+ <script>
309
+ // Quiz Submission Handler
310
+ document.getElementById('quiz-form').addEventListener('submit', function(e) {
311
+ e.preventDefault();
312
+
313
+ // Calculate score
314
+ let score = 0;
315
+ const q1 = document.querySelector('input[name="q1"]:checked')?.value;
316
+ const q2 = document.querySelector('input[name="q2"]:checked')?.value;
317
+
318
+ if (q1 === "1") score += 50;
319
+ if (q2 === "3") score += 50;
320
+
321
+ // Show result
322
+ alert(`คุณได้คะแนน ${score} คะแนน จาก 100 คะแนน`);
323
+
324
+ // In real implementation, you would send this to a server
325
+ // fetch('/submit-quiz', { method: 'POST', body: JSON.stringify({answers}) });
326
+ });
327
+
328
+ // In a real app, you would add more interactive features here
329
+ </script>
330
+ </body>
331
+ </html>