質問するログイン新規登録

質問編集履歴

4

イメージの追加

2021/02/17 23:55

投稿

mitrasi
mitrasi

スコア49

title CHANGED
File without changes
body CHANGED
@@ -411,4 +411,6 @@
411
411
  text-align: center;
412
412
  line-height: 78px;
413
413
  }
414
- ```
414
+ ```
415
+
416
+ ![イメージ説明](2b6eab4e53673fd25a46e605ed0e81f8.png)

3

アドバイスを受けて訂正後のコード

2021/02/17 23:55

投稿

mitrasi
mitrasi

スコア49

title CHANGED
File without changes
body CHANGED
@@ -82,4 +82,333 @@
82
82
  https://crestadesign.org/cording-traning/
83
83
 
84
84
  ### 目標物
85
- ![イメージ説明](7a0a584d1e282d35366a5a62b4dfb0b4.png)
85
+ ![イメージ説明](7a0a584d1e282d35366a5a62b4dfb0b4.png)
86
+
87
+ ### グーグルフォント修正版追加後、フォントファミリー訂正後
88
+
89
+ ```HTML
90
+ <!DOCTYPE html>
91
+ <html lang="ja">
92
+
93
+ <head>
94
+ <meta charset="UTF-8">
95
+ <meta name="viewport" content="width=device-width,initial-scale=1">
96
+
97
+ <link rel="preconnect" href="https://fonts.gstatic.com">
98
+ <link href="https://fonts.googleapis.com/css2?family=Noto+Serif+JP&family=Noto+Serif:wght@700&display=swap" rel="stylesheet">
99
+ <link rel="stylesheet" href="css/reset.css">
100
+ <link rel="stylesheet" href="css/style.css">
101
+ <link rel="stylesheet" href="css/responsive.css">
102
+ <link href="https://use.fontawesome.com/releases/v5.6.1/css/all.css" rel="stylesheet">
103
+ <title>模写コーディング 中級</title>
104
+ </head>
105
+
106
+ <body>
107
+ <header>
108
+ <div class="fv">
109
+ <div class="header-wrapper">
110
+ <h1 class="header-left"><a href="#">Cresta Design</a></h1>
111
+ <nav class="header-nav">
112
+ <li><a class="header-item" href="#">Concept</a></li>
113
+ <li><a class="header-item" href="#">Service</a></li>
114
+ <li><a class="header-item" href="#">Works</a></li>
115
+ <li><a class="header-item" href="#">Contact</a></li>
116
+ </nav>
117
+ </div>
118
+
119
+ <div class="main-copy-wrapper">
120
+ <p class="main-title">Design for Smile.</p>
121
+ <p class="main-text">快適なオフィスをデザインする</p>
122
+ </div>
123
+ </div>
124
+ </header>
125
+ <main>
126
+
127
+
128
+ <section id="concept">
129
+
130
+
131
+ <h2 class="section-title">CONCEPT
132
+
133
+ </h2>
134
+
135
+
136
+ <div class="wrapper">
137
+ <h3 class="sub-title">“働きたくなる空間”をデザインすることで 人々を幸せにする。</h3>
138
+ <div class="concept-item">
139
+ <p class="concept-text">私たちは、オフィスに特化した空間デザイン専門としております。その理由は、「働きたくなる空間で仕事ができれば多くの人を幸せにできるのではないか」と考えるためです。そんな想いの株式会社Cresta Designだからこそできる空間デザインを提供させていただきます。</p>
140
+ <img class="concept-img" src="img/concept-image@2x.jpg" alt="オフィス">
141
+ </div>
142
+ <p class="message-right">Our Concept</p>
143
+ </div>
144
+ </section>
145
+
146
+ <section id="works">
147
+ <h2 class="section-title">Works</h2>
148
+ <div class="wrapper">
149
+ <ul class="works-list">
150
+ <li class="works-card">
151
+ <img class="works-img" src="img/card-img01@2x.jpg" alt="職場">
152
+ <p class="works-text">新規サイトを公開しました。今回のサイトは白と黒を基調にしたミニマルなデザインになっています。</p>
153
+ </li>
154
+ <li class="works-card center">
155
+ <img class="works-img" src="img/card-img02@2x.jpg" alt="日の当たるデスク">
156
+ <p class="works-text">新規サイトを公開しました。今回のサイトは白と黒を基調にしたミニマルなデザインになっています。</p>
157
+ </li>
158
+ <li class="works-card">
159
+ <img class="works-img" src="img/card-img03@2x.jpg" alt="解放空間">
160
+ <p class="works-text">新規サイトを公開しました。今回のサイトは白と黒を基調にしたミニマルなデザインになっています。</p>
161
+ </li>
162
+ </ul>
163
+ <input class="btn" type="submit" value="View more">
164
+ <p class="message-left">Our Works</p>
165
+ </div>
166
+ </section>
167
+
168
+ <section id="service">
169
+
170
+ <h2 class="section-title">Service
171
+
172
+ </h2>
173
+
174
+ <div class="wrapper">
175
+ <h3 class="sub-title"></h3>
176
+ <ul class="service-list">
177
+ <li class="service-card"><img class="service-img" src="img/service-img01@2x.jpg" alt="計画">
178
+ <p class="service-text">Hearing</p>
179
+ </li>
180
+ <li class="service-card"><img class="service-img" src="img/service-img02@2x.jpg" alt="会議">
181
+ <p class="service-text">Planning</p>
182
+ </li>
183
+ <li class="service-card"><img class="service-img" src="img/sevice-img03@2x.jpg" alt="商談">
184
+ <p class="service-text">Direction</p>
185
+ </li>
186
+ </ul>
187
+ <p class="message-right">Our Service</p>
188
+ </div>
189
+ </section>
190
+
191
+ <section id="contact">
192
+ <h2 class="section-title">Contact
193
+ </h2>
194
+
195
+ <div class="wrapper">
196
+ <p>お気軽にご相談ください。</p>
197
+ <input class="btn" type="submit" value="Contact">
198
+ </div>
199
+ <p class="message-left">Contact us</p>
200
+ </section>
201
+ </main>
202
+ <footer><small>©︎cresta.design all rights reserved</small></footer>
203
+ </body>
204
+
205
+ </html>
206
+
207
+ ```
208
+
209
+ ```CSS
210
+ @charset "UTF-8";
211
+ * {
212
+ box-sizing: border-box;
213
+ }
214
+
215
+ html {
216
+ font-size: 62.5%;
217
+ }
218
+ html body {
219
+ line-height: 1.8;
220
+
221
+ font-family: "Noto Serif", "Noto Serif JP", serif;
222
+
223
+ font-size: 1.6rem;
224
+ width: 100%;
225
+
226
+ }
227
+ html body img {
228
+ max-width: 100%;
229
+ vertical-align: bottom;
230
+ }
231
+ html body a {
232
+ text-decoration: none;
233
+ color: #FFFFFF;
234
+ }
235
+ html body .btn {
236
+ background-color: yellow;
237
+ border-radius: 51px;
238
+ width: 235px;
239
+ height: 59px;
240
+ font-weight: bold;
241
+ margin: 80px;
242
+ border: none;
243
+ }
244
+ html body li {
245
+ list-style: none;
246
+ }
247
+ html body h2 {
248
+ font-size: 6rem;
249
+ margin-bottom: 73px;
250
+ font-weight: bold;
251
+ font-style: italic;
252
+ }
253
+ html body .section-title::after {
254
+ content: "";
255
+ display: inline-block;
256
+ background-color: #282F35;
257
+ width: 200px;
258
+ height: 5px;
259
+ margin-left: 30px;
260
+ vertical-align: middle;
261
+ }
262
+ html body .message-right {
263
+ font-size: 7rem;
264
+ color: #282F35;
265
+ text-align: right;
266
+ opacity: 0.1;
267
+ font-weight: bold;
268
+ letter-spacing: 4.5;
269
+ margin-top: 70px;
270
+ }
271
+ html body .message-left {
272
+ font-size: 7rem;
273
+ color: #FFFFFF;
274
+ text-align: left;
275
+ opacity: 0.1;
276
+ font-weight: bold;
277
+ margin-top: 70px;
278
+ }
279
+ html body h3 {
280
+ font-weight: bold;
281
+ font-size: 3rem;
282
+ }
283
+ html body section {
284
+ padding: 99px 10% 73px;
285
+ }
286
+ html body section .wrapper {
287
+ text-align: center;
288
+ margin: 0 auto;
289
+ }
290
+ html body header .fv {
291
+ background-image: url(../img/fv-bgi_01@2x.jpg);
292
+ background-position: center;
293
+ background-size: cover;
294
+ height: 100vh;
295
+ position: relative;
296
+ }
297
+ html body header .fv .header-wrapper,
298
+ html body header .fv .main-copy-wrapper {
299
+ padding: 0 120px;
300
+ }
301
+ html body header .fv .header-wrapper {
302
+ display: flex;
303
+ justify-content: space-between;
304
+ padding: 19px 120px;
305
+ }
306
+ html body header .fv .header-wrapper .header-left {
307
+ font-size: 2.6rem;
308
+ color: #FFFFFF;
309
+ }
310
+ html body header .fv .header-wrapper .header-nav {
311
+ display: flex;
312
+ }
313
+ html body header .fv .header-wrapper .header-nav .header-item {
314
+ padding-right: 35px;
315
+ }
316
+ html body header .fv .main-copy-wrapper {
317
+ color: #FFFFFF;
318
+ position: absolute;
319
+ top: 60%;
320
+ text-align: center;
321
+ }
322
+ html body header .fv .main-copy-wrapper .main-title,
323
+ html body header .fv .main-copy-wrapper .main-text {
324
+ font-weight: bold;
325
+ }
326
+ html body header .fv .main-copy-wrapper .main-title {
327
+ font-size: 7rem;
328
+ }
329
+ html body header .fv .main-copy-wrapper .main-text {
330
+ padding-bottom: 172px;
331
+ font-size: 3rem;
332
+ width: 478px;
333
+ height: 53px;
334
+ }
335
+ html body #concept .sub-title {
336
+ max-width: 600px;
337
+ text-align: center;
338
+ }
339
+ html body #concept .concept-item {
340
+ display: flex;
341
+ justify-content: center;
342
+ align-items: center;
343
+ }
344
+ html body #concept .concept-item .concept-text,
345
+ html body #concept .concept-item .concept-img {
346
+ max-width: 440px;
347
+ }
348
+ html body #concept .concept-item .concept-text {
349
+ margin-right: 120px;
350
+ }
351
+ html body #works {
352
+ background-image: url(../img/works-bgi@2x.jpg);
353
+ background-position: center;
354
+ background-size: cover;
355
+ }
356
+ html body #works .section-title {
357
+ color: #FFFFFF;
358
+ text-align: right;
359
+ }
360
+ html body #works .section-title:after {
361
+ background-color: #FFFFFF;
362
+ }
363
+ html body #works .works-list {
364
+ justify-content: center;
365
+ align-items: center;
366
+ display: flex;
367
+ flex-wrap: wrap;
368
+ }
369
+ html body #works .works-list .works-card {
370
+ max-width: 320px;
371
+ box-shadow: 0px 0px 6px #000000;
372
+ background-color: #FFFFFF;
373
+ font-family: "Noto Serif JP", serif;
374
+ font-weight: normal;
375
+ }
376
+ html body #works .works-list .works-card .works-text {
377
+ padding: 25px 20px;
378
+ }
379
+ html body #works .works-list .center {
380
+ margin: 0 20px;
381
+ }
382
+ html body #service .service-list {
383
+ display: flex;
384
+ }
385
+ html body #service .service-list .service-card {
386
+ display: flex;
387
+ flex-direction: column;
388
+ position: relative;
389
+ }
390
+ html body #service .service-list .service-card .service-text {
391
+ color: #FFFFFF;
392
+ position: absolute;
393
+ top: 35%;
394
+ left: 30%;
395
+ font-size: 4rem;
396
+ font-weight: bold;
397
+ }
398
+ html body #contact {
399
+ color: #FFFFFF;
400
+ background-image: url(../img/contact-bgi@2x.jpg);
401
+ background-position: center;
402
+ background-size: cover;
403
+ }
404
+ html body #contact .section-title:after {
405
+ background-color: #FFFFFF;
406
+ }
407
+ html body #contact .section-title {
408
+ text-align: right;
409
+ }
410
+ html body footer {
411
+ text-align: center;
412
+ line-height: 78px;
413
+ }
414
+ ```

2

コードの訂正

2021/02/17 23:53

投稿

mitrasi
mitrasi

スコア49

title CHANGED
File without changes
body CHANGED
@@ -22,15 +22,6 @@
22
22
  <link href="https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;700&family=Noto+Serif:ital,wght@0,400;0,700;1,700&display=swap" rel="stylesheet">
23
23
 
24
24
 
25
- <!-- <link rel="preconnect" href="https://fonts.gstatic.com">-->
26
- <!-- <link href="https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;700&family=Noto+Serif:ital,wght@0,400;0,700;1,700&display=swap" rel="stylesheet">-->
27
- <!-- <link rel="preconnect" href="https://fonts.gstatic.com">-->
28
- <!-- <link rel="preconnect" href="https://fonts.gstatic.com">-->
29
- <!-- <link href="https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;700&family=Noto+Serif:wght@400;700&display=swap" rel="stylesheet">-->
30
- <!-- <link href="https://fonts.googleapis.com/css?family=Noto+Serif+JP:400,700|Noto+Serif:400,700,700i&display=swap&subset=japanese" rel="stylesheet">-->
31
- <!-- <link href="https://fonts.googleapis.com/css2?family=Noto+Serif+JP:wght@400;700&family=Noto+Serif:wght@400;700&display=swap" rel="stylesheet">-->
32
- <!-- <link rel="preconnect" href="https://fonts.gstatic.com">-->
33
- <!-- <link href="https://fonts.googleapis.com/css2?family=Noto+Serif+JP:wght@400;700&family=Noto+Serif:ital,wght@0,700;1,700&display=swap" rel="stylesheet">-->
34
25
  <link href="https://use.fontawesome.com/releases/v5.6.1/css/all.css" rel="stylesheet">
35
26
  <title>模写コーディング 中級</title>
36
27
  </head>
@@ -47,93 +38,10 @@
47
38
  <li><a class="header-item" href="#">Contact</a></li>
48
39
  </nav>
49
40
  </div>
50
-
51
- <div class="main-copy-wrapper">
52
- <p class="main-title">Design for Smile.</p>
53
- <p class="main-text">快適なオフィスをデザインする</p>
54
- </div>
55
41
  </div>
56
42
  </header>
57
- <main>
43
+
58
44
 
59
-
60
- <section id="concept">
61
-
62
-
63
- <h2 class="section-title">CONCEPT
64
-
65
- </h2>
66
-
67
-
68
- <div class="wrapper">
69
- <h3 class="sub-title">“働きたくなる空間”をデザインすることで 人々を幸せにする。</h3>
70
- <div class="concept-item">
71
- <p class="concept-text">私たちは、オフィスに特化した空間デザイン専門としております。その理由は、「働きたくなる空間で仕事ができれば多くの人を幸せにできるのではないか」と考えるためです。そんな想いの株式会社Cresta Designだからこそできる空間デザインを提供させていただきます。</p>
72
- <img class="concept-img" src="img/concept-image@2x.jpg" alt="オフィス">
73
- </div>
74
- <p class="message-right">Our Concept</p>
75
- </div>
76
- </section>
77
-
78
- <section id="works">
79
- <h2 class="section-title">Works</h2>
80
- <div class="wrapper">
81
- <ul class="works-list">
82
- <li class="works-card">
83
- <img class="works-img" src="img/card-img01@2x.jpg" alt="職場">
84
- <p class="works-text">新規サイトを公開しました。今回のサイトは白と黒を基調にしたミニマルなデザインになっています。</p>
85
- </li>
86
- <li class="works-card center">
87
- <img class="works-img" src="img/card-img02@2x.jpg" alt="日の当たるデスク">
88
- <p class="works-text">新規サイトを公開しました。今回のサイトは白と黒を基調にしたミニマルなデザインになっています。</p>
89
- </li>
90
- <li class="works-card">
91
- <img class="works-img" src="img/card-img03@2x.jpg" alt="解放空間">
92
- <p class="works-text">新規サイトを公開しました。今回のサイトは白と黒を基調にしたミニマルなデザインになっています。</p>
93
- </li>
94
- </ul>
95
- <input class="btn" type="submit" value="View more">
96
- <p class="message-left">Our Works</p>
97
- </div>
98
- </section>
99
-
100
- <section id="service">
101
-
102
- <h2 class="section-title">Service
103
-
104
- </h2>
105
-
106
- <div class="wrapper">
107
- <h3 class="sub-title"></h3>
108
- <ul class="service-list">
109
- <li class="service-card"><img class="service-img" src="img/service-img01@2x.jpg" alt="計画">
110
- <p class="service-text">Hearing</p>
111
- </li>
112
- <li class="service-card"><img class="service-img" src="img/service-img02@2x.jpg" alt="会議">
113
- <p class="service-text">Planning</p>
114
- </li>
115
- <li class="service-card"><img class="service-img" src="img/sevice-img03@2x.jpg" alt="商談">
116
- <p class="service-text">Direction</p>
117
- </li>
118
- </ul>
119
- <p class="message-right">Our Service</p>
120
- </div>
121
- </section>
122
-
123
- <section id="contact">
124
- <h2 class="section-title">Contact
125
- </h2>
126
-
127
- <div class="wrapper">
128
- <p>お気軽にご相談ください。</p>
129
- <input class="btn" type="submit" value="Contact">
130
- </div>
131
- <p class="message-left">Contact us</p>
132
- </section>
133
- </main>
134
- <footer><small>©︎cresta.design all rights reserved</small></footer>
135
- </body>
136
-
137
45
  </html>
138
46
 
139
47
  ```
@@ -155,185 +63,6 @@
155
63
  /* font-weight: bold;*/
156
64
  /*半透明のメッセージ部*/
157
65
  }
158
- html body img {
159
- max-width: 100%;
160
- vertical-align: bottom;
161
- }
162
- html body a {
163
- text-decoration: none;
164
- color: #FFFFFF;
165
- }
166
- html body .btn {
167
- background-color: yellow;
168
- border-radius: 51px;
169
- width: 235px;
170
- height: 59px;
171
- font-weight: bold;
172
- margin: 80px;
173
- border: none;
174
- }
175
- html body li {
176
- list-style: none;
177
- }
178
- html body h2 {
179
- font-size: 6rem;
180
- margin-bottom: 73px;
181
- font-weight: bold;
182
- }
183
- html body .section-title::after {
184
- content: "";
185
- display: inline-block;
186
- background-color: #282F35;
187
- width: 200px;
188
- height: 5px;
189
- margin-left: 30px;
190
- vertical-align: middle;
191
- }
192
- html body .message-right {
193
- font-size: 9rem;
194
- color: #1717170D;
195
- opacity: 1;
196
- text-align: right;
197
- }
198
- html body .message-left {
199
- font-size: 9rem;
200
- color: #FFFFFF;
201
- text-align: left;
202
- opacity: 0.1;
203
- }
204
- html body h3 {
205
- font-weight: bold;
206
- font-size: 3rem;
207
- }
208
- html body section {
209
- padding: 99px 10% 73px;
210
- }
211
- html body section .wrapper {
212
- text-align: center;
213
- margin: 0 auto;
214
- }
215
- html body header .fv {
216
- background-image: url(../img/fv-bgi_01@2x.jpg);
217
- background-position: center;
218
- background-size: cover;
219
- height: 100vh;
220
- position: relative;
221
- }
222
- html body header .fv .header-wrapper,
223
- html body header .fv .main-copy-wrapper {
224
- padding: 0 120px;
225
- }
226
- html body header .fv .header-wrapper {
227
- display: flex;
228
- justify-content: space-between;
229
- padding: 19px 120px;
230
- }
231
- html body header .fv .header-wrapper .header-left {
232
- font-size: 2.6rem;
233
- color: #FFFFFF;
234
- }
235
- html body header .fv .header-wrapper .header-nav {
236
- display: flex;
237
- }
238
- html body header .fv .header-wrapper .header-nav .header-item {
239
- padding-right: 35px;
240
- }
241
- html body header .fv .main-copy-wrapper {
242
- color: #FFFFFF;
243
- position: absolute;
244
- top: 60%;
245
- }
246
- html body header .fv .main-copy-wrapper .main-title,
247
- html body header .fv .main-copy-wrapper .main-text {
248
- font-weight: bold;
249
- }
250
- html body header .fv .main-copy-wrapper .main-title {
251
- font-size: 7rem;
252
- }
253
- html body header .fv .main-copy-wrapper .main-text {
254
- padding-bottom: 172px;
255
- font-size: 4rem;
256
- }
257
- html body #concept .sub-title {
258
- max-width: 600px;
259
- text-align: center;
260
- /*margin: 0;*/
261
- }
262
- html body #concept .concept-item {
263
- display: flex;
264
- justify-content: center;
265
- align-items: center;
266
- }
267
- html body #concept .concept-item .concept-text,
268
- html body #concept .concept-item .concept-img {
269
- max-width: 440px;
270
- }
271
- html body #concept .concept-item .concept-text {
272
- margin-right: 120px;
273
- }
274
- html body #works {
275
- background-image: url(../img/works-bgi@2x.jpg);
276
- background-position: center;
277
- background-size: cover;
278
- }
279
- html body #works .section-title {
280
- color: #FFFFFF;
281
- text-align: right;
282
- }
283
- html body #works .section-title:after {
284
- background-color: #FFFFFF;
285
- }
286
- html body #works .works-list {
287
- justify-content: center;
288
- align-items: center;
289
- display: flex;
290
- flex-wrap: wrap;
291
- }
292
- html body #works .works-list .works-card {
293
- max-width: 320px;
294
- box-shadow: 0px 0px 6px #000000;
295
- background-color: #FFFFFF;
296
- font-family: "Noto Serif JP", serif;
297
- font-weight: normal;
298
- }
299
- html body #works .works-list .works-card .works-text {
300
- padding: 25px 20px;
301
- }
302
- html body #works .works-list .center {
303
- margin: 0 20px;
304
- }
305
- html body #service .service-list {
306
- display: flex;
307
- }
308
- html body #service .service-list .service-card {
309
- display: flex;
310
- flex-direction: column;
311
- position: relative;
312
- }
313
- html body #service .service-list .service-card .service-text {
314
- color: #FFFFFF;
315
- position: absolute;
316
- top: 35%;
317
- left: 30%;
318
- font-size: 4rem;
319
- font-weight: bold;
320
- }
321
- html body #contact {
322
- color: #FFFFFF;
323
- background-image: url(../img/contact-bgi@2x.jpg);
324
- background-position: center;
325
- background-size: cover;
326
- }
327
- html body #contact .section-title:after {
328
- background-color: #FFFFFF;
329
- }
330
- html body #contact .section-title {
331
- text-align: right;
332
- }
333
- html body footer {
334
- text-align: center;
335
- line-height: 78px;
336
- }
337
66
  ```
338
67
 
339
68
 

1

一部修正

2021/02/16 13:40

投稿

mitrasi
mitrasi

スコア49

title CHANGED
File without changes
body CHANGED
@@ -1,7 +1,7 @@
1
1
  ### 前提・実現したいこと
2
2
 
3
3
  グーグルフォントのフォントファミリーの設定の仕方についての質問です。
4
- 解説動画もみて、同様の指定方法をしているはずなのに思ったように表示されません。
4
+ 解説動画もみて、同様の指定方法をしているはずなのにフォントファミリーが適用されません。
5
5
  (全体的に欧文も和文も効いていないように思います。)
6
6
 
7
7
  ### 該当のソースコード