質問編集履歴

1

前後のhtml, cssを追加しました。

2021/02/18 02:11

投稿

MsParrot
MsParrot

スコア4

test CHANGED
File without changes
test CHANGED
@@ -6,11 +6,23 @@
6
6
 
7
7
 
8
8
 
9
+ <div class="top-logo">
10
+
11
+ <a href="#">
12
+
13
+ <svg viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg" style="display:block;height:36px;width:36px;fill:#210034" aria-label="Airbnb" role="img" focusable="false"><path d="m16.5 <!--文字数の関係で省略-->"></path></svg>
14
+
15
+ </a>
16
+
17
+ </div>
18
+
19
+
20
+
9
21
  <div id="top-banner">
10
22
 
11
23
  <a href="#">
12
24
 
13
- <svg viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg" style="display:block;height:36px;width:36px;fill:#210034" aria-label="Airbnb" role="img" focusable="false"><path d="m16.5 1c2.008085 0 3.4632027.96283388 4.7513779 3.26849971l.5326477 1.02546647c1.9537557 3.83047524 6.1137915 12.53917462 7.0991575 14.83626342l.1462392.3528118c.666849 1.5911597.9089331 2.4721983.9588638 3.3963643l.0112155.4148361c.0004984.0616776.0004984.134022.0004984.2274973 0 4.0620396-2.8764539 6.4782609-6.3571429 6.4782609-2.2243943 0-4.5558538-1.2577296-6.7085498-3.3861099l-.2574471-.25956-.1718602-.1793301h-.011l-.1755759.1847983c-2.0445114 2.1008154-4.2677042 3.4208856-6.41432039 3.6152501l-.27953818.0189396-.26742267.006012c-3.48068898 0-6.35714286-2.4162213-6.35714286-6.4782609l.00454695-.468363c.0267153-.9288567.22966104-1.7682114.83130912-3.2441913l.21547951-.5238937c.96518694-2.298134 6.08242852-12.98926921 7.70666272-16.03396302 1.278799-2.2884942 2.7339167-3.25132808 4.7420017-3.25132808zm0 2c-1.2386682 0-2.0526703.53861541-2.9867173 2.20976115l-.5236826 1.00849692c-1.9253014 3.77609709-6.05944731 12.43033983-7.03072523 14.69152843l-.34466233.836533c-.42741793 1.0708881-.57302322 1.6541875-.60525859 2.2390305l-.00853405.3300843c-.0004199.0548485-.0004199.1205531-.0004199.2063048 0 2.8727431 1.91133076 4.4782609 4.35714286 4.4782609 1.77322614 0 3.86957714-1.2360441 5.83116174-3.3543075-2.2950884-2.9375996-3.8549713-6.449937-3.8549713-8.9088504 0-2.9133611 1.9323483-5.3862954 5.1774304-5.4209947 3.2235547.0346993 5.155903 2.5076336 5.155903 5.4209947 0 2.4547692-1.5546293 5.9594145-3.8549699 8.9062679 1.9648698 2.1227832 4.0593243 3.35689 5.8311603 3.35689 2.4458121 0 4.3571429-1.6055178 4.3571429-4.4782609l-.0037202-.4108638c-.0193133-.671496-.1709867-1.2953427-.7139685-2.6202181l-.2488229-.5997251c-1.064789-2.4778253-5.9928845-12.7679933-7.5373949-15.66399932-.9434232-1.68831737-1.7574253-2.22693278-2.9960935-2.22693278zm.0107637 10.3157316c-2.0107259.021644-3.1774304 1.514741-3.1774304 3.4211105 0 1.796356 1.1790231 4.5797683 2.9544726 7.0428415l.2101941.2873164.174104-.2339736c1.7298707-2.3850145 2.8981786-5.0656085 2.9888755-6.8746747l.0056872-.2215096c0-1.9063695-1.1667045-3.3994665-3.155903-3.4211105z"></path></svg>
25
+ <svg viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg" style="display:block;height:36px;width:36px;fill:#210034" aria-label="Airbnb" role="img" focusable="false"><path d="m16.5<!--文字数の関係で省略-->"></path></svg>
14
26
 
15
27
  </a>
16
28
 
@@ -18,12 +30,110 @@
18
30
 
19
31
  </div>
20
32
 
33
+
34
+
35
+ <div class="rates">
36
+
37
+ <div class="rates-container">
38
+
39
+
40
+
41
+ <div class="msg-container">
42
+
43
+ <p>予想ホスティング収入額をチェック</p>
44
+
45
+
46
+
47
+ <h1><span class="city">Mumbai</span>でホスティングして、ひと月あたり最大<span class="amount">¥ 47,608</span>の収入を得ましょう</h1>
48
+
49
+
50
+
51
+ <a href="#">予想ホスティング収入額の計算方法</a>
52
+
53
+ </div>
54
+
55
+
56
+
57
+ <div class="rates-buffer"></div>
58
+
59
+
60
+
61
+ <div class="form-container">
62
+
63
+ <p class="form-message"> 予想ホスティング収入額を更新するにはお部屋についてさらに詳しくお聞かせください</p>
64
+
65
+
66
+
67
+ <input type="text" id="address-input" name="location" placeholder="所在地" role="combobox" value="">
68
+
69
+ <div id="room-type-dropdown">
70
+
71
+ <p class="dropdown-txt">まるまる貸切</p>
72
+
73
+ <p id="rt-down-arrow"><svg viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" role="presentation" focusable="false" style="display: block; fill: none; height: 16px; width: 16px; stroke: currentcolor; stroke-width: 4; overflow: visible;"><g fill="none"><path d="m28 12-11.2928932 11.2928932c-.3905243.3905243-1.0236893.3905243-1.4142136 0l-11.2928932-11.2928932"></path></g></svg></p>
74
+
75
+ </div>
76
+
77
+ <div id="guest-count-dropdown">
78
+
79
+ <p class="dropdown-txt">ゲスト4人</p>
80
+
81
+ <p id="gc-down-arrow"><svg viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" role="presentation" focusable="false" style="display: block; fill: none; height: 16px; width: 16px; stroke: currentcolor; stroke-width: 4; overflow: visible;"><g fill="none"><path d="m28 12-11.2928932 11.2928932c-.3905243.3905243-1.0236893.3905243-1.4142136 0l-11.2928932-11.2928932"></path></g></svg></p>
82
+
83
+ </div>
84
+
85
+ <div class="special-space">
86
+
87
+ <a href="#"><span>+</span> ゲストが利用できる特別なスペースがあればお知らせください</a>
88
+
89
+ </div>
90
+
91
+ <button type="button" class="btn btn-listing">リスティングの掲載をはじめる</button>
92
+
93
+ </div>
94
+
95
+
96
+
97
+ <hr>
98
+
99
+ </div>
100
+
101
+ </div>
102
+
21
103
  ```
22
104
 
23
105
 
24
106
 
25
107
  ```CSS
26
108
 
109
+ *{
110
+
111
+ margin: 0;
112
+
113
+ padding: 0;
114
+
115
+ font-family: Circular,-apple-system,BlinkMacSystemFont,Roboto,Helvetica Neue,sans-serif;
116
+
117
+ }
118
+
119
+
120
+
121
+ .top-logo {
122
+
123
+ position: top;
124
+
125
+ background-color:#F2ECE2;
126
+
127
+ padding: 24px 0px 0px 24px;
128
+
129
+ width: 100%;
130
+
131
+ margin: 0 auto;
132
+
133
+ }
134
+
135
+
136
+
27
137
  #top-banner {
28
138
 
29
139
  display: none;
@@ -54,6 +164,390 @@
54
164
 
55
165
  }
56
166
 
167
+
168
+
169
+ #top-banner a {
170
+
171
+ display: inline-block;
172
+
173
+ margin-left:40px;
174
+
175
+ margin-top: 18px;
176
+
177
+ }
178
+
179
+
180
+
181
+ #top-banner button{
182
+
183
+ display: inline-block;
184
+
185
+ margin-right: 80px;
186
+
187
+ margin-top: 20px;
188
+
189
+ width: 90px;
190
+
191
+ height: 36px;
192
+
193
+ font-size: 14px;
194
+
195
+ }
196
+
197
+
198
+
199
+
200
+
201
+ .rates {
202
+
203
+ background-color: #F2ECE2;
204
+
205
+ width: 100vw;
206
+
207
+ height: 520px;
208
+
209
+ margin: 0 auto;
210
+
211
+ }
212
+
213
+
214
+
215
+ .rates-container {
216
+
217
+ background-color:#F2ECE2;
218
+
219
+ display: flex;
220
+
221
+ justify-content: center;
222
+
223
+ height: 520px;
224
+
225
+ max-width: 1530px;
226
+
227
+ padding-left: 60px;
228
+
229
+ padding-right: 80px;
230
+
231
+ margin: 0 auto;
232
+
233
+ }
234
+
235
+
236
+
237
+ .msg-container {
238
+
239
+ display:block;
240
+
241
+ padding-top: 96px;
242
+
243
+ padding-left: 5px;
244
+
245
+ width: 42%;
246
+
247
+ min-width: 395px;
248
+
249
+ }
250
+
251
+
252
+
253
+ .msg-container p {
254
+
255
+ font-weight: bold;
256
+
257
+ font-size: 18px;
258
+
259
+ margin-bottom: 40px;
260
+
261
+ line-height: 22px;
262
+
263
+ letter-spacing: 0.07em;
264
+
265
+ text-transform: uppercase;
266
+
267
+ }
268
+
269
+
270
+
271
+ .msg-container h1 {
272
+
273
+ font-weight: 700;
274
+
275
+ font-size: 42px;
276
+
277
+ margin-bottom: 28px;
278
+
279
+ letter-spacing: 0.01em;
280
+
281
+ }
282
+
283
+
284
+
285
+
286
+
287
+ .city {
288
+
289
+ font-family:'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
290
+
291
+ font-size: 44px;
292
+
293
+ }
294
+
295
+
296
+
297
+ .amount {
298
+
299
+ color: #e41e57;
300
+
301
+ font-family:'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
302
+
303
+ font-size: 38px;
304
+
305
+ }
306
+
307
+
308
+
309
+ .msg-container a {
310
+
311
+ color: black;
312
+
313
+ font-size: 14px;
314
+
315
+ cursor: pointer;
316
+
317
+ font-weight: 600;
318
+
319
+ }
320
+
321
+
322
+
323
+ .rates-buffer {
324
+
325
+ display: block;
326
+
327
+ background-color:#F2ECE2;
328
+
329
+ width: 120px;
330
+
331
+ max-width: 200px;
332
+
333
+ min-width: 71px;
334
+
335
+ height: 520px;
336
+
337
+ }
338
+
339
+
340
+
341
+ .form-container {
342
+
343
+ display: block;
344
+
345
+ box-shadow: 0 0 20px rgb(206, 206, 206);
346
+
347
+ width: 545px;
348
+
349
+ height: 432px;
350
+
351
+ background-color: #fff;
352
+
353
+ border-radius: 15px;
354
+
355
+ margin-top: 0;
356
+
357
+ margin-bottom: 95px;
358
+
359
+ }
360
+
361
+
362
+
363
+ .form-message {
364
+
365
+ color: #222222;
366
+
367
+ font-size: 18px;
368
+
369
+ line-height: 24px;
370
+
371
+ padding: 0px 8px 12px 8px;
372
+
373
+ margin: 26px 30px 16px 30px;
374
+
375
+ }
376
+
377
+
378
+
379
+ #address-input {
380
+
381
+ width: 480px;
382
+
383
+ height: 57px;
384
+
385
+ margin-left: 34px;
386
+
387
+ margin-right: 32px;
388
+
389
+ padding-left: 10px;
390
+
391
+ border-radius: 8px 8px 0px 0px;
392
+
393
+ border-color: rgb(176,176,176);
394
+
395
+ border-width: 1px;
396
+
397
+ z-index: 0;
398
+
399
+ }
400
+
401
+
402
+
403
+
404
+
405
+ #rt-down-arrow, #gc-down-arrow {
406
+
407
+ padding-right: 18px;
408
+
409
+ padding-top: 10px;
410
+
411
+ color: #000000;
412
+
413
+ }
414
+
415
+
416
+
417
+ #rt-down-arrow:hover, #gc-down-arrow:hover {
418
+
419
+ cursor: pointer;
420
+
421
+ }
422
+
423
+
424
+
425
+ .dropdown-txt {
426
+
427
+ padding-top: 16px;
428
+
429
+ }
430
+
431
+
432
+
433
+ #room-type-dropdown {
434
+
435
+ display: flex;
436
+
437
+ flex-direction: row;
438
+
439
+ flex-wrap: nowrap;
440
+
441
+ align-items: center;
442
+
443
+ justify-content: space-between;
444
+
445
+ border-style: solid;
446
+
447
+ border-color: rgb(176,176,176);
448
+
449
+ border-top: none;
450
+
451
+ border-width: 1px;
452
+
453
+ width: 480px;
454
+
455
+ height:57px;
456
+
457
+ padding-left: 10px;
458
+
459
+ margin-bottom: 0;
460
+
461
+ margin-left: 34px;
462
+
463
+ margin-right: 32px;
464
+
465
+ }
466
+
467
+
468
+
469
+ #guest-count-dropdown {
470
+
471
+ display: flex;
472
+
473
+ flex-direction: row;
474
+
475
+ flex-wrap: nowrap;
476
+
477
+ align-items: center;
478
+
479
+ justify-content: space-between;
480
+
481
+ width: 480px;
482
+
483
+ height: 57px;
484
+
485
+ margin-left: 34px;
486
+
487
+ margin-right: 32px;
488
+
489
+ padding-left: 10px;
490
+
491
+ border:solid;
492
+
493
+ border-top: none;
494
+
495
+ border-radius: 0px 0px 8px 8px;
496
+
497
+ border-color: rgb(176,176,176);
498
+
499
+ border-width: 1px;
500
+
501
+ z-index: 0;
502
+
503
+ }
504
+
505
+
506
+
507
+ .special-space a {
508
+
509
+ text-decoration: none;
510
+
511
+ color: black;
512
+
513
+ font-weight: bold;
514
+
515
+ line-height: 66px;
516
+
517
+ font-size: 14px;
518
+
519
+ margin-left: 34px;
520
+
521
+ }
522
+
523
+
524
+
525
+ .special-space span{
526
+
527
+ font-size: 20px;
528
+
529
+ }
530
+
531
+
532
+
533
+ .btn-listing{
534
+
535
+ width: 480px;
536
+
537
+ height: 57px;
538
+
539
+ background-color:black;
540
+
541
+ color: white;
542
+
543
+ border-radius: 8px;
544
+
545
+ margin-left: 34px;
546
+
547
+ }
548
+
549
+
550
+
57
551
  ```
58
552
 
59
553
  ```js