質問編集履歴
3
SCSSからCSSコンパイルに書き換え、画像の追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -9,6 +9,14 @@
|
|
9
9
|
原因と解決策を教えて頂きたいです。
|
10
10
|
|
11
11
|
お願いします。
|
12
|
+
|
13
|
+
|
14
|
+
|
15
|
+
![模写ページ](4e4d305179a966ec6d82c139347f9da8.png)
|
16
|
+
|
17
|
+
|
18
|
+
|
19
|
+
![元ページ](27def6509214ba0ea920e1a5d8b27c45.png)
|
12
20
|
|
13
21
|
|
14
22
|
|
@@ -104,139 +112,63 @@
|
|
104
112
|
|
105
113
|
```
|
106
114
|
|
107
|
-
```
|
115
|
+
```CSS
|
108
116
|
|
109
|
-
|
117
|
+
* { margin: 0; padding: 0; box-sizing: border-box; }
|
110
118
|
|
111
119
|
|
112
120
|
|
113
|
-
.header-main {
|
114
|
-
|
115
|
-
height:75px;
|
116
|
-
|
117
|
-
width:100%;
|
118
|
-
|
119
|
-
background-color: white;
|
121
|
+
.header-main { height: 75px; width: 100%; background-color: white; align-items: baseline; position: fixed; z-index: 50; }
|
120
|
-
|
121
|
-
align-items: baseline;
|
122
|
-
|
123
|
-
position:fixed;
|
124
|
-
|
125
|
-
z-index: 50;
|
126
|
-
|
127
|
-
}
|
128
122
|
|
129
123
|
|
130
124
|
|
131
|
-
//ヘッダータイトル
|
132
|
-
|
133
|
-
.header-title {
|
134
|
-
|
135
|
-
margin:0 366.5px;
|
136
|
-
|
137
|
-
padding:20px 0;
|
138
|
-
|
139
|
-
width:100%;
|
140
|
-
|
141
|
-
display:flex;
|
142
|
-
|
143
|
-
align-items: baseline;
|
125
|
+
.header-title { margin: 0 366.5px; padding: 20px 0; width: 100%; display: flex; align-items: baseline; position: relative; }
|
144
|
-
|
145
|
-
position:relative;
|
146
|
-
|
147
|
-
.logo {margin-top: -6px;}
|
148
|
-
|
149
|
-
img { width:128px;
|
150
|
-
|
151
|
-
vertical-align:bottom; }
|
152
|
-
|
153
|
-
}
|
154
126
|
|
155
127
|
|
156
128
|
|
157
|
-
//ヘッダーサブタイトル
|
158
|
-
|
159
|
-
.subtitle {
|
160
|
-
|
161
|
-
display: inline-block;
|
162
|
-
|
163
|
-
p { font-size:14px;
|
164
|
-
|
165
|
-
font-weight: bold;
|
166
|
-
|
167
|
-
display:inline-block;
|
168
|
-
|
169
|
-
|
129
|
+
.header-title .logo { margin-top: -6px; }
|
170
|
-
|
171
|
-
}
|
172
130
|
|
173
131
|
|
174
132
|
|
175
|
-
//問い合わせボタン
|
176
|
-
|
177
|
-
#header-btn {
|
178
|
-
|
179
|
-
padding:11px 40px;
|
180
|
-
|
181
|
-
background-color: #da6b64;;
|
182
|
-
|
183
|
-
border-radius:50px;
|
184
|
-
|
185
|
-
position:absolute;
|
186
|
-
|
187
|
-
bottom:16px;
|
188
|
-
|
189
|
-
right:366.5px;
|
190
|
-
|
191
|
-
p { font-size:14px;
|
192
|
-
|
193
|
-
color:white;
|
194
|
-
|
195
|
-
|
133
|
+
.header-title img { width: 128px; vertical-align: bottom; }
|
196
|
-
|
197
|
-
}
|
198
134
|
|
199
135
|
|
200
136
|
|
201
|
-
|
137
|
+
.subtitle { display: inline-block; }
|
202
138
|
|
203
|
-
.home {
|
204
139
|
|
205
|
-
background-image:url(img/main.jpg);
|
206
140
|
|
207
|
-
|
141
|
+
.subtitle p { font-size: 14px; font-weight: bold; display: inline-block; }
|
208
142
|
|
209
|
-
background-position: center center;
|
210
143
|
|
211
|
-
height:500px;
|
212
144
|
|
213
|
-
|
145
|
+
#header-btn { padding: 11px 40px; background-color: #da6b64; border-radius: 50px; position: absolute; bottom: 16px; right: 366.5px; }
|
214
146
|
|
215
|
-
padding:90px 0;
|
216
147
|
|
217
|
-
//ホームタイトル
|
218
148
|
|
219
|
-
|
149
|
+
#header-btn p { font-size: 14px; color: white; }
|
220
150
|
|
221
|
-
@include large-font;
|
222
151
|
|
223
|
-
p{margin-bottom:10px; } }
|
224
152
|
|
225
|
-
/
|
153
|
+
.home { background-image: url(img/main.jpg); background-size: 100%; background-position: center center; height: 500px; text-align: center; padding: 90px 0; }
|
226
154
|
|
227
|
-
.home-logo {
|
228
155
|
|
229
|
-
width:317px;
|
230
156
|
|
231
|
-
|
157
|
+
.home .text { font-size: 28px; font-weight: 600; letter-spacing: 0.1em; line-height: 1.6; }
|
232
158
|
|
233
|
-
}
|
234
159
|
|
235
|
-
//ホームタイトル下
|
236
160
|
|
237
|
-
|
161
|
+
.home .text p { margin-bottom: 10px; }
|
238
162
|
|
163
|
+
|
164
|
+
|
239
|
-
}
|
165
|
+
.home .home-logo { width: 317px; margin-bottom: 20px; }
|
166
|
+
|
167
|
+
|
168
|
+
|
169
|
+
.home .text-bottom { font-size: 20px; font-weight: 600; letter-spacing: 0.1em; line-height: 1.6; }
|
170
|
+
|
171
|
+
|
240
172
|
|
241
173
|
|
242
174
|
|
2
htmlコード、コード名をSCSSに
test
CHANGED
File without changes
|
test
CHANGED
@@ -98,11 +98,13 @@
|
|
98
98
|
|
99
99
|
</div>
|
100
100
|
|
101
|
-
|
101
|
+
</body>
|
102
|
+
|
103
|
+
</html>
|
102
104
|
|
103
105
|
```
|
104
106
|
|
105
|
-
```
|
107
|
+
```SCSS
|
106
108
|
|
107
109
|
//ヘッターのCSS
|
108
110
|
|
1
headを追記しました。
test
CHANGED
File without changes
|
test
CHANGED
@@ -16,7 +16,37 @@
|
|
16
16
|
|
17
17
|
|
18
18
|
|
19
|
-
|
19
|
+
<!DOCTYPE html>
|
20
|
+
|
21
|
+
<html>
|
22
|
+
|
23
|
+
<head>
|
24
|
+
|
25
|
+
<meta charset="utf-8">
|
26
|
+
|
27
|
+
<meta name="viewport" content="width=device-width,initial-scale=1.0">
|
28
|
+
|
29
|
+
<title>iSara[イサラ]|バンコクのノマドエンジニア育成講座</title>
|
30
|
+
|
31
|
+
<link rel="stylesheet" href="stylesheet.css">
|
32
|
+
|
33
|
+
<link href="https://fonts.googleapis.com/css?family=Open+Sans:700&display=swap" rel="stylesheet">
|
34
|
+
|
35
|
+
<link rel="icon" href="img/favicon.ico">
|
36
|
+
|
37
|
+
<link href="https://use.fontawesome.com/releases/v5.6.1/css/all.css" rel="stylesheet">
|
38
|
+
|
39
|
+
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
|
40
|
+
|
41
|
+
<script type="text/javascript" src="js/script.js"></script>
|
42
|
+
|
43
|
+
<script src="https://kit.fontawesome.com/646ee2a69d.js" crossorigin="anonymous"></script>
|
44
|
+
|
45
|
+
</head>
|
46
|
+
|
47
|
+
|
48
|
+
|
49
|
+
<body>
|
20
50
|
|
21
51
|
<div class="header-main">
|
22
52
|
|