-
Notifications
You must be signed in to change notification settings - Fork 0
/
web_homework.html
329 lines (288 loc) · 7.88 KB
/
web_homework.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
/* fonts */
@import url('https://webfontworld.github.io/score/SCoreDream.css');
:root {
--pink1: #fbe4ec;
--pink_cont: #ea1e63;
}
.score {
font-family: 'SCoreDream';
font-weight: 300;
font-size: 14px !important;
color: #fff;
}
/* Reset */
* {
margin: 0;
padding: 0;
}
a {
text-decoration: none;
color: #000;
}
img {
width: 100%;
border-radius: 10px;
}
h1,
h2,
h3,
h4,
h5,
h6 {
font-weight: normal;
}
/* common(공통) */
.container {
width: 1160px;
padding: 0 20px;
margin: 0 auto;
}
.section {
padding: 70px 0;
/*위 아래 */
}
.section>h2 {
/* ">" 이걸로 section 안에 있는 h2선택 */
font-size: 50px;
line-height: 1;
/* 1이라고 적으면 auto랑 똑같음 */
text-align: center;
margin-bottom: 20px;
}
.section>p {
font-size: 22px;
font-weight: 300;
color: #666;
text-align: center;
margin-bottom: 70px;
}
/* blind : 제목은 적어야 하나 시각이 불편한 사람들을 위해 숨김처리 */
.blind {
position: absolute;
clip: rect(0 0 0 0);
/* 포토샵의 클리핑 마스크와 같은 효과 */
width: 1px;
height: 1px;
margin: -1px;
overflow: hidden
}
/* header */
.header_container {
background-color: var(--pink1);
width: 100%;
height: 120px;
display: flex;
justify-content: space-between;
margin-bottom: 20px;
}
.header_container ul li {
float: left;
width: 20%;
}
.active_container {
width: 10%;
margin: 20px;
text-align: center;
background-color: var(--pink_cont);
}
.active_container h1{
font-size: 14px;
margin-top: 10px;
}
.active_container p{
margin: 10px auto 0px auto;
}
.nav_container {
width: 90%;
text-align: center;
margin: 20px 70px 20px 0px;
background-color: var(--pink1);
}
.nav_container>p {
margin: 0px 20px 13px 425px;
background-color: #000;
color: #fff;
width: 100px;
}
.nav_mainBox {
display: flex;
justify-content: space-between;
background-color: var(--pink_cont);
margin: 0px;
}
.nav_mainBox nav {
width: 90%;
margin: 20px 60px 10px 60px;
/* background-color: red; */
}
.nav_mainBox ul li {
margin-left: auto;
margin-right: auto;
}
/* main */
.main_container {
background-color: var(--pink1);
width: 100%;
height: 550px;
margin-bottom: 20px;
/* padding: 10px; */
}
.main_container .container_1 {
background-color: var(--pink_cont);
margin: 1px 10px 20px 20px;
float: left;
height: 93%;
/* margin-right: 10px; */
width: 35%;
}
.main_container .container_2 {
background-color: var(--pink_cont);
margin: 1px 10px 20px 10px;
float: left;
height: 93%;
margin-right: 10px;
width: 33%;
}
.main_container .container_3 {
margin: 1px 10px 20px 10px;
float: left;
height: 93%;
width: 25%;
}
.container_1 p,
.container_2 p {
margin: 10px 0px 0px 10px;
}
.container_1 h1,
.container_2 h1 {
text-align: center;
padding: 200px 0px 200px 0px;
}
.news_cont {
background-color: var(--pink_cont);
height: 48%;
margin-bottom: 20px;
}
.news_cont h1 {
text-align: center;
padding: 95px 0px 95px 0px;
}
.commercial_cont {
background-color: var(--pink_cont);
height: 48%;
}
.commercial_cont h1 {
text-align: center;
padding: 95px 0px 95px 0px;
}
.main_container>p,
.active_container p,
.nav_mainBox p,
.news_cont p,
.commercial_cont p,
.container_1 p,
.container_2 p,
.footer_container>p,
.address_box p,
.p_box p {
height: 20px;
background-color: #888;
background: #000;
width: 80px;
text-align: center;
color: #fff;
}
.footer_container {
background-color: var(--pink1);
width: 100%;
height: 128px;
}
.footer_container>p {
/* display: inline; */
}
.address_box p,
.p_box p {
float: left;
}
.address_box h1,
.p_box h1 {
padding-top: 10px;
font-size: 14px;
margin-left: 110px;
}
.address_box,
.p_box {
margin: 0px 20px 0px 200px;
height: 40px;
width: 40%;
background-color: var(--pink_cont);
margin-bottom: 10px;
}
</style>
</head>
<body>
<section class="container section score">
<header class="header_container">
<div class="active_container">
<p>h1</p>
<h1>반응형 웹</h1>
</div>
<div class="nav_container">
<p>header</p>
<div class="nav_mainBox">
<p>nav</p>
<nav>
<ul style="list-style:none">
<li>MENU 01</li>
<li>MENU 02</li>
<li>MENU 03</li>
<li>MENU 04</li>
<li>MENU 05</li>
</ul>
</nav>
</div>
</div>
</header>
<main class="main_container">
<p>div</p>
<section class="container_1">
<p>section</p>
<h1>콘텐츠 그룹 01</h1>
</section>
<section class="container_2">
<p>section</p>
<h1>콘텐츠 그룹 02</h1>
</section>
<div class="container_3">
<section class="news_cont">
<p>aritcle</p>
<h1>주요 기사</h1>
</section>
<section class="commercial_cont">
<p>aside</p>
<h1>광고</h1>
</section>
</div>
</main>
<footer class="footer_container">
<p>footer</p>
<div class="address_box">
<p>address</p>
<h1>경기도 부천시 졸립다 참..</h1>
</div>
<div class="p_box">
<p>p</p>
<h1>COPYRIGHT going to sleep</h1>
</div>
</footer>
</section>
</body>
</html>