whatisthis?
Project. ๋ฐ์ํ ํ์ด์ง - (5) Curriculum Section ๋ณธ๋ฌธ
(5) Curriculum Section
๐ HTML + CSS ์์ฑ
- html ๋งํฌ์ ๊ตฌ์ฑ
desktop์์๋ ์ด๋ฏธ์ง๊ฐ ๋ฑ์ฅํจ.
row๋ ๋์ค๋ก,
col-12(col-md-6) ๋๊ฐ์ฉ ๊ตฌ์ฑํจ.
<section class="curriculum section">
<div class="container">
<div class="row align-items-center">
<div class="col-12 col-md-6">
<strong class="section-category">Curriculum</strong>
<h1 class="section-title">Dive into the web development</h1>
<p class="section-desc">
Dive into the software development <br />
environment and the basics of computing, networks, and data
structures.
</p>
<a href="#" class="fill-button">Apply now</a>
</div>
<div class="col-12 col-md-6">
<div class="curriculum-image">
<img src="./assets/img-curriculum.png" alt="Curriculum" />
</div>
</div>
</div>
<div class="row">
<div class="col-12 col-md-6">
<p class="curriculum-detail-desc">
<strong>Real-World Projects.</strong> Solve challenges that
professional engineers face as you work individually and in teams
with designers.
</p>
</div>
<div class="col-12 col-md-6">
<p class="curriculum-detail-desc">
<strong>Instructor Support.</strong> Get guidance, feedback, and
more during scheduled one-on-one check-ins.
</p>
</div>
</div>
</div>
</section>
- ์คํ์ผ ์ ์ฉ์?
์ด์ ์ program ๋ง๋ค ๋ ๋ชจ๋์ ๋ง๋ค์ด๋๊ธฐ ๋๋ฌธ์ ๊ทธ๋๋ก ํด๋์ค๋ง ์ ์ฉํ๋ฉด ๋๋ค.
style.css
/* Curriculum Page */
.curriculum .section-category {
color: #0189d1;
}
.curriculum-image {
display: none;
}
.curriculum-detail-desc {
font-size: 15px;
line-height: 1.466666667;
color: #2b292d;
letter-spacing: -0.01em;
}
.curriculum .section-desc {
margin-bottom: 32px;
}
.curriculum .row:first-child {
margin-bottom: 48px;
}
.curriculum .row:last-child .col-12:first-child {
margin-bottom: 40px;
}
+) ๋ฏธ๋์ด์ฟผ๋ฆฌ ๋ถ๋ถ (desktop)
/* >= 768px (Desktop) */
@media screen and (min-width: 768px) {
/* ๐บ ์๋ต */
/* Curriculum */
.curriculum .row:first-child {
margin-bottom: 24px;
}
.curriculum .row:last-child .col-12:first-child {
margin-bottom: 0;
}
.curriculum .section-desc {
margin-bottom: 72px;
}
.curriculum-detail-desc {
font-size: 18px;
line-height: 1.44444444;
}
.curriculum-image {
display: block;
}
.curriculum-image img {
display: block;
width: 100%;
max-width: 425px;
height: auto;
}
}
mobile์์๋ display: none์ผ๋ก
div>img ์์ฒด๋ฅผ ์จ๊ฒจ๋ฒ๋ฆฌ๊ณ ,
desktop์์๋ (๋ฏธ๋์ด์ฟผ๋ฆฌ) display: block์ผ๋ก div๊ฐ ๋ณด์ด๊ฒ ํ ํ,
img์ width*height ๋ฅผ ์กฐ์ ํด์ค๋ค.
** ์ฌ๊ธฐ์ max-width๋
์ฒ์์ width: 100% ๋ก ๊ฐ๋ค๊ฐ ์ด๋์๊ฐ ์ปค์ง๋ฉด 425px์ ์ ๋๋๋ก ํด์ฃผ๋ ๊ฒ.
+) ์ฌ๋ด
์๊พธ ์ด์ํ ๋ถ๋ถ์์ ์ค์๋ฅผ ํด์ ์๊ฐ์ ๋ง์ด ๋ ๋ ธ๋ค ๐ฅ
๋ค์๋ถํด ์ด๋ฐ์ผ ์์ด๋ ๋นํฉํ์ง๋ง์. ์ฌํผํ์ง๋ง์.
๐ป Design File
๐ปReference Lecture
'PROJECT > WEB' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
Project. ๋ฐ์ํ ํ์ด์ง - (7) Footer Section (0) | 2022.03.02 |
---|---|
Project. ๋ฐ์ํ ํ์ด์ง - (6) Subscription Section (0) | 2022.03.02 |
Project. ๋ฐ์ํ ํ์ด์ง - (4) Program Section โก (0) | 2022.03.02 |
Project. ๋ฐ์ํ ํ์ด์ง - (4) Program Section (0) | 2022.03.02 |
Project. ๋ฐ์ํ ํ์ด์ง - (3) Service Section (0) | 2022.03.02 |