質問編集履歴
2
HTMLとCSSのコード全体を追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -9,7 +9,7 @@
|
|
9
9
|
|
10
10
|
|
11
11
|
### 該当のソースコード
|
12
|
-
|
12
|
+
```<!DOCTYPE html>
|
13
13
|
<html lang="ja">
|
14
14
|
<head>
|
15
15
|
<meta charset="utf-8">
|
@@ -63,7 +63,7 @@
|
|
63
63
|
</html>
|
64
64
|
|
65
65
|
--------------------------- CSS ------------------------------------
|
66
|
-
@charset "UTF-8";
|
66
|
+
```@charset "UTF-8";
|
67
67
|
|
68
68
|
/* 基本設定 */
|
69
69
|
html {
|
@@ -254,6 +254,9 @@
|
|
254
254
|
.cover-news {
|
255
255
|
background-image: url(../news-pictures/cover-news-s.webp);
|
256
256
|
}
|
257
|
+
```
|
258
|
+
|
259
|
+
|
257
260
|
|
258
261
|
|
259
262
|
```
|
1
HTMLとCSSの全体のコード追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -9,6 +9,252 @@
|
|
9
9
|
|
10
10
|
|
11
11
|
### 該当のソースコード
|
12
|
+
<!DOCTYPE html>
|
13
|
+
<html lang="ja">
|
14
|
+
<head>
|
15
|
+
<meta charset="utf-8">
|
16
|
+
<title>WCB cafe - NEWS</title>
|
17
|
+
<meta name="description" content="ブレンドコーヒーとヘルシーなオーガニックフードを提供するカフェ">
|
18
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
19
|
+
|
20
|
+
<link rel="icon" href="picture/favicon.ico" type="image/x-icon">
|
21
|
+
<link rel="stylesheet" href="https://unpkg.com/ress/dist/ress.min.css">
|
22
|
+
|
23
|
+
<link rel="preconnect" href="https://fonts.googleapis.com">
|
24
|
+
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
25
|
+
<link href="https://fonts.googleapis.com/css2?family=Philosopher:ital,wght@0,400;0,700;1,400;1,700&display=swap" rel="stylesheet">
|
26
|
+
|
27
|
+
<link rel="stylesheet" href="css/wcb-cafe.css">
|
28
|
+
</head>
|
29
|
+
|
30
|
+
<body>
|
31
|
+
<div class="sub-cover cover-news">
|
32
|
+
<header class="page-header wrapper">
|
33
|
+
<h1 class="align-center">
|
34
|
+
<a href="index.html">
|
35
|
+
<img class="logo" src="picture/logo.svg" alt="WCBカフェホーム">
|
36
|
+
</a>
|
37
|
+
</h1>
|
38
|
+
<nav>
|
39
|
+
<ul class="main-nav font-english">
|
40
|
+
<li><a href="news.html">News</a></li>
|
41
|
+
<li><a href="menu.html">Menu</a></li>
|
42
|
+
<li><a href="contact.html">Contact</a></li>
|
43
|
+
</ul>
|
44
|
+
</nav>
|
45
|
+
</header>
|
46
|
+
|
47
|
+
<h2 class="page-title font-english">News</h2>
|
48
|
+
</div>
|
49
|
+
|
50
|
+
<footer class="page-footer">
|
51
|
+
<h3 class="heading-large font-english">Information</h3>
|
52
|
+
<table class="info">
|
53
|
+
<tr><th>住所</th><td>東京都港区六本木0-0</td></tr>
|
54
|
+
<tr><th>電話番号</th><td>03-0000-0000</td></tr>
|
55
|
+
<tr><th>営業時間</th><td>11:00-20:00</td></tr>
|
56
|
+
<tr><th>定休日</th><td>月曜日</td></tr>
|
57
|
+
</table>
|
58
|
+
<div class="copyright">
|
59
|
+
<small>© 2010 WCB cafe</small>
|
60
|
+
</div>
|
61
|
+
</footer>
|
62
|
+
</body>
|
63
|
+
</html>
|
64
|
+
|
65
|
+
--------------------------- CSS ------------------------------------
|
66
|
+
@charset "UTF-8";
|
67
|
+
|
68
|
+
/* 基本設定 */
|
69
|
+
html {
|
70
|
+
font-size: 100%;
|
71
|
+
}
|
72
|
+
|
73
|
+
body {
|
74
|
+
font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "BIZ UDPGothic", sans-serif;
|
75
|
+
line-height: 1.7;
|
76
|
+
color: #432;
|
77
|
+
}
|
78
|
+
|
79
|
+
a {
|
80
|
+
text-decoration: none;
|
81
|
+
}
|
82
|
+
|
83
|
+
img {
|
84
|
+
max-width: 100%;
|
85
|
+
}
|
86
|
+
|
87
|
+
/* 汎用クラス */
|
88
|
+
.align-center {
|
89
|
+
text-align: center;
|
90
|
+
}
|
91
|
+
|
92
|
+
.font-english {
|
93
|
+
font-family: 'Philosopher', sans-serif;
|
94
|
+
font-weight: normal;
|
95
|
+
}
|
96
|
+
|
97
|
+
.page-title {
|
98
|
+
font-size: 3rem;
|
99
|
+
text-align: center;
|
100
|
+
margin-top: 2rem;
|
101
|
+
line-height: 1.4;
|
102
|
+
}
|
103
|
+
|
104
|
+
.page-header {
|
105
|
+
padding-top: 0.5rem;
|
106
|
+
}
|
107
|
+
|
108
|
+
.logo {
|
109
|
+
width: 210px;
|
110
|
+
}
|
111
|
+
|
112
|
+
.main-nav {
|
113
|
+
display: flex;
|
114
|
+
justify-content: center;
|
115
|
+
gap: 2.5rem;
|
116
|
+
font-size: 1.5rem;
|
117
|
+
list-style: none;
|
118
|
+
}
|
119
|
+
|
120
|
+
.main-nav a {
|
121
|
+
color: #432;
|
122
|
+
}
|
123
|
+
|
124
|
+
.main-nav a:hover,
|
125
|
+
.main-nav a:focus {
|
126
|
+
color: #0bd;
|
127
|
+
}
|
128
|
+
|
129
|
+
.cover,
|
130
|
+
.sub-cover {
|
131
|
+
background-size: cover;
|
132
|
+
background-position: center bottom;
|
133
|
+
height: 800px;
|
134
|
+
}
|
135
|
+
|
136
|
+
/* レイアウト */
|
137
|
+
.wrapper {
|
138
|
+
max-width: 1120px;
|
139
|
+
margin: auto;
|
140
|
+
padding: 0 1.5rem;
|
141
|
+
}
|
142
|
+
|
143
|
+
/* セクション */
|
144
|
+
.about {
|
145
|
+
max-width: 736px;
|
146
|
+
padding: 0 1.5rem;
|
147
|
+
margin: 3rem auto 4rem;
|
148
|
+
}
|
149
|
+
|
150
|
+
.about p {
|
151
|
+
margin-bottom: 3rem;
|
152
|
+
}
|
153
|
+
|
154
|
+
.page-title,
|
155
|
+
.heading-large {
|
156
|
+
font-size: 3rem;
|
157
|
+
text-align: center;
|
158
|
+
margin-bottom: 1rem;
|
159
|
+
}
|
160
|
+
|
161
|
+
/* ボタン */
|
162
|
+
.btn {
|
163
|
+
display: inline-block;
|
164
|
+
padding: 1rem 2rem;
|
165
|
+
font-size: 1.5rem;
|
166
|
+
color: #fff;
|
167
|
+
background-color: #0bd;
|
168
|
+
border-radius: 8px;
|
169
|
+
transition: 0.5s;
|
170
|
+
}
|
171
|
+
|
172
|
+
.btn:hover {
|
173
|
+
translate: 10px;
|
174
|
+
}
|
175
|
+
|
176
|
+
/* フッター */
|
177
|
+
.page-footer {
|
178
|
+
background-image: url(../picture/footer-s.webp);
|
179
|
+
background-size: cover;
|
180
|
+
background-position: center;
|
181
|
+
padding-top: 12rem;
|
182
|
+
}
|
183
|
+
|
184
|
+
.info {
|
185
|
+
width: 100%;
|
186
|
+
max-width: 544px;
|
187
|
+
margin: auto;
|
188
|
+
padding: 0 1.5rem;
|
189
|
+
border-spacing: 0;
|
190
|
+
}
|
191
|
+
|
192
|
+
.info th,
|
193
|
+
.info td {
|
194
|
+
border-bottom: 1px solid #c9c2bc;
|
195
|
+
}
|
196
|
+
|
197
|
+
.info th {
|
198
|
+
padding: 1rem 0;
|
199
|
+
text-align: left;
|
200
|
+
font-weight: normal;
|
201
|
+
}
|
202
|
+
|
203
|
+
.info td {
|
204
|
+
padding: 1rem 0;
|
205
|
+
}
|
206
|
+
|
207
|
+
.copyright {
|
208
|
+
text-align: center;
|
209
|
+
padding: 2rem 0;
|
210
|
+
background-color: #432;
|
211
|
+
color: #fff;
|
212
|
+
margin-top: 6rem;
|
213
|
+
}
|
214
|
+
|
215
|
+
/* デスクトップ版 */
|
216
|
+
@media (min-width: 800px) {
|
217
|
+
.page-title {
|
218
|
+
font-size: 5rem;
|
219
|
+
}
|
220
|
+
|
221
|
+
.heading-large {
|
222
|
+
font-size: 4rem;
|
223
|
+
}
|
224
|
+
|
225
|
+
.page-header {
|
226
|
+
display: flex;
|
227
|
+
justify-content: space-between;
|
228
|
+
padding-top: 1.5rem;
|
229
|
+
}
|
230
|
+
|
231
|
+
.main-nav {
|
232
|
+
font-size: 2rem;
|
233
|
+
}
|
234
|
+
|
235
|
+
.cover-home {
|
236
|
+
background-image: url(../picture/cover-home-l.webp);
|
237
|
+
}
|
238
|
+
|
239
|
+
.about {
|
240
|
+
margin: 4rem auto 0;
|
241
|
+
}
|
242
|
+
|
243
|
+
.page-footer {
|
244
|
+
background-image: url(../picture/footer-l.webp);
|
245
|
+
padding-top: 12rem;
|
246
|
+
}
|
247
|
+
|
248
|
+
.info th {
|
249
|
+
padding-left: 2.5rem;
|
250
|
+
}
|
251
|
+
}
|
252
|
+
|
253
|
+
/* Newsページ専用 */
|
254
|
+
.cover-news {
|
255
|
+
background-image: url(../news-pictures/cover-news-s.webp);
|
256
|
+
}
|
257
|
+
|
12
258
|
|
13
259
|
```
|
14
260
|
特になし
|