--- vscode/flex/1.html
+++ vscode/flex/1.html
... | ... | @@ -14,9 +14,15 @@ |
14 | 14 |
height: 500px; |
15 | 15 |
align-items: center; |
16 | 16 |
} |
17 |
- article {background-color: cadetblue; |
|
17 |
+ article { |
|
18 |
+ background-color: cadetblue; |
|
18 | 19 |
width: 50px; |
19 | 20 |
height: 50px; |
21 |
+ flex: 1; |
|
22 |
+ border: 1px solid black; |
|
23 |
+ } |
|
24 |
+ article:nth-child(2) { |
|
25 |
+ flex: 2; |
|
20 | 26 |
} |
21 | 27 |
</style> |
22 | 28 |
</head> |
+++ vscode/flex/index.html
... | ... | @@ -0,0 +1,129 @@ |
1 | +<!doctype html> | |
2 | +<html lang="ko"> | |
3 | +<head> | |
4 | + <meta charset="UTF-8"> | |
5 | + <meta name="viewport" | |
6 | + content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"> | |
7 | + <meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
8 | + <title>융합소프트웨어학과</title> | |
9 | + <link rel="stylesheet" href="main.css"> | |
10 | +</head> | |
11 | +<body> | |
12 | + <!-- 헤더 --> | |
13 | + <header> | |
14 | + <div class="top"> | |
15 | + <div class="wrap"> | |
16 | + <a href="#" class="bg">전체메뉴</a> | |
17 | + <ul class="gnb"> | |
18 | + <li><a href="#">로그인</a></li> | |
19 | + <li><a href="#">회원가입</a></li> | |
20 | + </ul> | |
21 | + </div> | |
22 | + </div> | |
23 | + <nav> | |
24 | + <div class="wrap"> | |
25 | + <div class="logo"><a href=""><img src="http://img.cuenet.kr/exam/SWP/2017A/logo.png" alt="로고"></a></div> | |
26 | + <ul class="lnb"> | |
27 | + <li><a href="#">학교소개</a></li> | |
28 | + <li><a href="#">입학안내</a></li> | |
29 | + <li><a href="#">교육과정</a></li> | |
30 | + <li><a href="#">취업정보</a></li> | |
31 | + <li><a href="#">커뮤니티</a></li> | |
32 | + </ul> | |
33 | + </div> | |
34 | + </nav> | |
35 | + </header> | |
36 | + <!-- //헤더 --> | |
37 | + <!-- 메인 --> | |
38 | + <main> | |
39 | + <!-- 섹션1 --> | |
40 | + <section id="section1"> | |
41 | + <div class="wrap"> | |
42 | + <ul> | |
43 | + <li id="box1" class="box"><a href="#"><h3>원서<br>접수</h3><p>자세히보기</p></a></li> | |
44 | + <li id="box2" class="box"><a href="#"><h3>입학<br>상담</h3><p>자세히보기</p></a></li> | |
45 | + <li id="box3" class="box"><a href="#"><h3>입시자료<br>신청</h3><p>자세히보기</p></a></li> | |
46 | + <li id="box4" class="box"><a href="#"><h3>수강<br>후기</h3><p>자세히보기</p></a></li> | |
47 | + </ul> | |
48 | + </div> | |
49 | + </section> | |
50 | + <!-- //섹션1 --> | |
51 | + <!-- 섹션2 --> | |
52 | + <section id="section2"> | |
53 | + <div class="wrap"> | |
54 | + <div class="left"> | |
55 | + <a href="#"><img src="http://img.cuenet.kr/exam/SWP/2017A/box2_1.jpg" alt="2017 시험일정안내"></a> | |
56 | + </div> | |
57 | + <div class="right"> | |
58 | + <div id="board_notice" class="board_box"> | |
59 | + <div class="board_title">공지사항<a href="#">more</a></div> | |
60 | + <div class="board_content"> | |
61 | + <ul> | |
62 | + <li><a href="#">4월교육일정 안내..<span>2022-01-05</span></a></li> | |
63 | + <li><a href="#">UI/UX 웹퍼블리셔 양성과정..<span>2022-02-05</span></a></li> | |
64 | + <li><a href="#">아두이노와 자바를 활용한..<span>2022-03-05</span></a></li> | |
65 | + <li><a href="#">일반고 특화 직업능력개발..<span>2022-04-05</span></a></li> | |
66 | + </ul> | |
67 | + </div> | |
68 | + </div> | |
69 | + <div id="board_pds" class="board_box"> | |
70 | + <div class="board_title">자료실<a href="#">more</a></div> | |
71 | + <div class="board_content"> | |
72 | + <ul> | |
73 | + <li><a href="#">원서접수 양식..<span>2022-01-05</span></a></li> | |
74 | + <li><a href="#">세무/회계/ERP 교육과정..<span>2022-02-05</span></a></li> | |
75 | + <li><a href="#">전기/전자/통신 교육과..<span>2022-03-05</span></a></li> | |
76 | + <li><a href="#">디자인/영상 교육과정..<span>2022-04-05</span></a></li> | |
77 | + </ul> | |
78 | + </div> | |
79 | + </div> | |
80 | + </div> | |
81 | + </div> | |
82 | + </section> | |
83 | + <!-- //섹션2 --> | |
84 | + <!-- 섹션3 --> | |
85 | + <section id="section3"> | |
86 | + <div class="wrap"> | |
87 | + <div class="area_banner"> | |
88 | + <div class="box_banner"><a href="#"><img src="http://img.cuenet.kr/exam/SWP/2017A/box3_1_1.jpg" | |
89 | + alt="고객센터 070-1234-5678"></a></div> | |
90 | + <div class="box_banner"><a href="#"><img src="http://img.cuenet.kr/exam/SWP/2017A/box3_1_2.jpg" | |
91 | + alt="한국정보통신교육원 소개"></a></div> | |
92 | + <div class="box_banner"><a href="#"><img src="http://img.cuenet.kr/exam/SWP/2017A/box3_1_3.jpg" | |
93 | + alt="계좌안내 123-56789012-3"></a></div> | |
94 | + </div> | |
95 | + <div class="area_sitemap"> | |
96 | + <h3>커뮤니티</h3> | |
97 | + <ul> | |
98 | + <li><a href="#">공지사항</a></li> | |
99 | + <li><a href="#">수상경력</a></li> | |
100 | + <li><a href="#">동영상</a></li> | |
101 | + <li><a href="#">포토갤러리</a></li> | |
102 | + <li><a href="#">수강후기</a></li> | |
103 | + <li><a href="#">자료실</a></li> | |
104 | + </ul> | |
105 | + </div> | |
106 | + </div> | |
107 | + </section> | |
108 | + <!-- //섹션3 --> | |
109 | + </main> | |
110 | + <!-- //메인 --> | |
111 | + <footer> | |
112 | + <div class="wrap"> | |
113 | + <img src="http://img.cuenet.kr/exam/SWP/2017A/logo_copy.png" alt="로고"> | |
114 | + <div class="right"> | |
115 | + <ul> | |
116 | + <li><a href="#">이용약관</a></li> | |
117 | + <li><a href="#">이메일 무단수집거부</a></li> | |
118 | + <li><a href="#">개인정보보호정책</a></li> | |
119 | + </ul> | |
120 | + <p> | |
121 | + (우)98765 서울특별시 중구 세종대로 000 TEL : 070‐1234‐5678 FAX : 070‐2345‐6789<br/> | |
122 | + 사업자번호 : 123‐45‐67890 대표자 : 홍길동 E‐Mail : abc1234@wassane.com<br/> | |
123 | + Copyright (c) 2017 한국정보통신교육원 All right reserved. | |
124 | + </p> | |
125 | + </div> | |
126 | + </div> | |
127 | + </footer> | |
128 | +</body> | |
129 | +</html>(No newline at end of file) |
+++ vscode/flex/main.css
... | ... | @@ -0,0 +1,355 @@ |
1 | +@charset "utf-8"; | |
2 | + | |
3 | +/* ALL */ | |
4 | + | |
5 | +:root { | |
6 | + --img-box1: url('http://img.cuenet.kr/exam/SWP/2017A/box1_1_bg.png'); | |
7 | + --img-box2: url('http://img.cuenet.kr/exam/SWP/2017A/box1_2_bg.png'); | |
8 | + --img-box3: url('http://img.cuenet.kr/exam/SWP/2017A/box1_3_bg.png'); | |
9 | + --img-box4: url('http://img.cuenet.kr/exam/SWP/2017A/box1_4_bg.png'); | |
10 | +} | |
11 | + | |
12 | +* { | |
13 | + font-size: 14px; | |
14 | + margin: 0; | |
15 | + padding: 0; | |
16 | + box-sizing: border-box; | |
17 | +} | |
18 | + | |
19 | +body { | |
20 | + width: 100%; | |
21 | + height: 100%; | |
22 | + font-family: '굴림', '돋움', Gullim, Dotum, sans-serif; | |
23 | + background-color: #fff; | |
24 | +} | |
25 | + | |
26 | +ul, li { | |
27 | + list-style: none; | |
28 | +} | |
29 | + | |
30 | +a, a:hover, a:link, a:active { | |
31 | + text-decoration: none; | |
32 | + color: #222; | |
33 | +} | |
34 | + | |
35 | +b, strong { | |
36 | + font-weight: 600; | |
37 | +} | |
38 | + | |
39 | +.wrap { | |
40 | + width: 100%; | |
41 | + margin: 0 auto; | |
42 | + max-width: 800px; | |
43 | +} | |
44 | + | |
45 | +/* TOP */ | |
46 | +header { | |
47 | + display: flex; | |
48 | + flex-direction: column; | |
49 | +} | |
50 | + | |
51 | +header .wrap { | |
52 | + display: flex; | |
53 | + align-items: center; | |
54 | + justify-content: space-between; | |
55 | +} | |
56 | + | |
57 | +header .top{ | |
58 | + background-color: #1b4fa0; | |
59 | +} | |
60 | + | |
61 | +header .bg { | |
62 | + background-color: #143b78; | |
63 | + color: white; | |
64 | + padding: 10px 20px; | |
65 | + font-size: 0.8rem; | |
66 | +} | |
67 | + | |
68 | +header .gnb { | |
69 | + display: flex; | |
70 | +} | |
71 | + | |
72 | +header .gnb li a { | |
73 | + display: block; | |
74 | + padding: 10px 15px; | |
75 | + font-size: 0.8rem; | |
76 | + color: white; | |
77 | +} | |
78 | + | |
79 | +header .gnb li a:hover { | |
80 | + color: #ccc; | |
81 | +} | |
82 | + | |
83 | +nav { | |
84 | + background-color: #eee; | |
85 | +} | |
86 | + | |
87 | +nav .logo { | |
88 | + padding: 16px 0; | |
89 | +} | |
90 | + | |
91 | +nav .lnb { | |
92 | + width: 70%; | |
93 | + display: flex; | |
94 | + justify-content: space-around; | |
95 | +} | |
96 | + | |
97 | +nav .lnb li a { | |
98 | + display: block; | |
99 | + font-size: 1.1rem; | |
100 | + font-weight: 600; | |
101 | + text-align: center; | |
102 | +} | |
103 | + | |
104 | +nav .lnb li a:hover{ | |
105 | + color: blue; | |
106 | +} | |
107 | + | |
108 | +/* MAIN */ | |
109 | +main{ | |
110 | + display: flex; | |
111 | + flex-direction: column; | |
112 | +} | |
113 | + | |
114 | +section { | |
115 | + margin-top: 25px; | |
116 | +} | |
117 | + | |
118 | +section .wrap { | |
119 | + display: flex; | |
120 | + align-items: center; | |
121 | +} | |
122 | + | |
123 | +/* SECTION1 */ | |
124 | +#section1 ul { | |
125 | + width: 100%; | |
126 | + display: flex; | |
127 | + align-items: center; | |
128 | + justify-content: space-between; | |
129 | +} | |
130 | + | |
131 | +#section1 ul li { | |
132 | + width: 23%; | |
133 | + background-color: #333; | |
134 | + min-height: 225px; | |
135 | + text-align: center; | |
136 | +} | |
137 | + | |
138 | +#section1 ul li a { | |
139 | + color: #fff; | |
140 | + display: block; | |
141 | + padding: 50px 0; | |
142 | +} | |
143 | + | |
144 | +#section1 ul li h3 { | |
145 | + font-size: 2.2rem; | |
146 | + font-weight: 600; | |
147 | + flex-grow: 1; | |
148 | +} | |
149 | + | |
150 | +#section1 ul li p { | |
151 | + font-size: 1.2rem; | |
152 | + margin: 15px auto; | |
153 | + border: 1px solid white; | |
154 | + padding: 5px 15px; | |
155 | + width: 70%; | |
156 | +} | |
157 | + | |
158 | +#section1 .box { | |
159 | + background-repeat: no-repeat; | |
160 | + background-position: right bottom; | |
161 | + background-size: contain; | |
162 | +} | |
163 | + | |
164 | +#section1 #box1 { | |
165 | + background-color: #00a882; | |
166 | + background-image: var(--img-box1); | |
167 | +} | |
168 | + | |
169 | +#section1 #box1:hover { | |
170 | + background-color: #00c29a; | |
171 | +} | |
172 | + | |
173 | +#section1 #box2 { | |
174 | + background-color: #2263c8; | |
175 | + background-image: var(--img-box2); | |
176 | +} | |
177 | + | |
178 | +#section1 #box2:hover { | |
179 | + background-color: #2875db; | |
180 | +} | |
181 | + | |
182 | +#section1 #box3 { | |
183 | + background-color: #2083cb; | |
184 | + background-image: var(--img-box3); | |
185 | +} | |
186 | + | |
187 | +#section1 #box3:hover { | |
188 | + background-color: #2592df; | |
189 | +} | |
190 | + | |
191 | +#section1 #box4 { | |
192 | + background-color: #ff893e; | |
193 | + background-image: var(--img-box4); | |
194 | +} | |
195 | + | |
196 | +#section1 #box4:hover { | |
197 | + background-color: #ff944c; | |
198 | +} | |
199 | + | |
200 | +/* SECTION2 */ | |
201 | +#section2 .wrap { | |
202 | + align-items: flex-start; | |
203 | +} | |
204 | + | |
205 | +#section2 .right { | |
206 | + display: flex; | |
207 | + align-items: flex-start; | |
208 | + justify-content: space-between; | |
209 | + width: 100%; | |
210 | + margin-left: 15px; | |
211 | +} | |
212 | + | |
213 | +#section2 .board_title { | |
214 | + padding: 7px 0; | |
215 | + font-size: 1.3rem; | |
216 | + font-weight: 600; | |
217 | + border-bottom: 2px solid #005baa; | |
218 | + color: #333; | |
219 | + display: flex; | |
220 | + align-items: center; | |
221 | + justify-content: space-between; | |
222 | +} | |
223 | + | |
224 | +#section2 .board_title a{ | |
225 | + color: #2083cb; | |
226 | + font-weight: 600; | |
227 | + font-size: 0.9rem; | |
228 | +} | |
229 | + | |
230 | +#section2 .board_content { | |
231 | + padding-top: 10px; | |
232 | +} | |
233 | + | |
234 | +#section2 .board_content li { | |
235 | + line-height: 1.6rem; | |
236 | + padding-left: 10px; | |
237 | + background: url('http://img.cuenet.kr/exam/SWP/2017A/bullet1.png') no-repeat left center; | |
238 | +} | |
239 | + | |
240 | +#section2 .board_content li a { | |
241 | + display: flex; | |
242 | + justify-content: space-between; | |
243 | + width: 100%; | |
244 | + font-size: 0.9rem; | |
245 | +} | |
246 | + | |
247 | +#section2 .board_content li span { | |
248 | + font-size: 0.9rem; | |
249 | +} | |
250 | + | |
251 | +/* SECTION3 */ | |
252 | +#section3 { | |
253 | + background-color: #eee; | |
254 | + padding: 20px 0; | |
255 | +} | |
256 | + | |
257 | +#section3 .wrap { | |
258 | + display: flex; | |
259 | + flex-direction: column; | |
260 | +} | |
261 | + | |
262 | +#section3 .area_banner { | |
263 | + width: 100%; | |
264 | + display: flex; | |
265 | + justify-content: space-around; | |
266 | +} | |
267 | + | |
268 | +#section3 .area_sitemap { | |
269 | + display: flex; | |
270 | + width: 100%; | |
271 | + margin-top: 10px; | |
272 | + background-color: white; | |
273 | +} | |
274 | + | |
275 | +#section3 .area_sitemap h3 { | |
276 | + background-color: #2263c8; | |
277 | + color: white; | |
278 | + font-weight: 600; | |
279 | + padding: 20px 0; | |
280 | + text-align: center; | |
281 | +} | |
282 | + | |
283 | +#section3 .area_sitemap ul { | |
284 | + display: flex; | |
285 | + justify-content: space-around; | |
286 | + align-items: center; | |
287 | + flex-grow: 6; | |
288 | +} | |
289 | + | |
290 | +#section3 .area_sitemap ul li { | |
291 | + padding: 0 15px; | |
292 | + background: url('http://img.cuenet.kr/exam/SWP/2017A/box3_4.png') no-repeat left center; | |
293 | +} | |
294 | + | |
295 | +#section3 .area_sitemap ul li:first-child { | |
296 | + background: none; | |
297 | + padding: 0; | |
298 | +} | |
299 | + | |
300 | +#section3 .area_sitemap ul li a { | |
301 | + font-weight: 600; | |
302 | + | |
303 | +} | |
304 | + | |
305 | +/* FOOTER */ | |
306 | +footer{ | |
307 | + border-top: 1px solid #ddd; | |
308 | + padding: 20px 0; | |
309 | +} | |
310 | + | |
311 | +footer .wrap { | |
312 | + display: flex; | |
313 | + align-items: center; | |
314 | +} | |
315 | + | |
316 | +footer .right { | |
317 | + display: flex; | |
318 | + flex-direction: column; | |
319 | +} | |
320 | + | |
321 | +footer .right ul { | |
322 | + display: flex; | |
323 | + justify-content: flex-start; | |
324 | + padding-left: 30px; | |
325 | +} | |
326 | + | |
327 | +footer .right ul li { | |
328 | + padding: 0 10px; | |
329 | + border-right: 1px solid #888; | |
330 | +} | |
331 | + | |
332 | +footer .right ul li:last-child { | |
333 | + border: none; | |
334 | +} | |
335 | + | |
336 | +footer .right p { | |
337 | + padding: 10px 40px; | |
338 | + font-size: 0.9rem; | |
339 | + color: #666; | |
340 | + line-height: 1.6rem; | |
341 | +} | |
342 | + | |
343 | + | |
344 | + | |
345 | + | |
346 | + | |
347 | + | |
348 | + | |
349 | + | |
350 | + | |
351 | + | |
352 | + | |
353 | + | |
354 | + | |
355 | + |
Add a comment
Delete comment
Once you delete this comment, you won't be able to recover it. Are you sure you want to delete this comment?