CardType02
μΉνμ΄μ§ μ€μ΅μ μν μΉ΄λνμ νμ΄μ§ κΈ°μ΄ μ€μ΅νκΈ°! - 2μ€ μ ν
< figma : λμμΈ νκΈ° >
νΌκ·Έλ§λ₯Ό ν΅ν΄ μνλ μΉ΄λ μ νμ λμμΈ ν©λλ€. λμμΈμ ν λ λ§λ€κ³ μ νλ νμ΄μ§μ μ±κ²©μ μ νμ
νμ¬ κ·Έλ¦¬λλ₯Ό λ§λ€μ΄μ£Όλ κ²μ΄ μ€μν©λλ€.
μ»΄ν¬λνΈλ₯Ό μ²μ μ μ©μν¨ μΉ΄λκ° μλ³Έκ° λλ©° μλ³Έμ μμ νλ©΄ 볡λΆνλ μΉ΄λλ€λ ν¨κ» μμ λλ€.
< HTML μμ€ : λ μμμ ꡬ쑰 νμ νκΈ° >
λμμΈν μΉ νμ΄μ§ μμμ 보며 νμ΄μ§ ꡬ쑰λ₯Ό νμ ν ν μΉ νμ€μ±κ³Ό μ κ·Όμ±μ λ§λμλ©ν±ν λ§ν¬μ μ ν΄μ€λλ€.
ꡬ쑰 νμ
νκΈ°
1.ꡬ쑰λ₯Ό λ¨Όμ κΌΌκΌΌνκ² νμ
νμ¬ μλ©ν±ν λ§ν¬μ
μ νλ κ²μ΄ κ°μ₯ μ€μνλ€. λλ¬Έμ 볡μ‘ν κ΅¬μ‘°μΌ μλ‘ κ΅¬μ‘°λ₯Ό μ μ§μ£Όμ΄μΌ μ€νμΌμ΄λ μ€ν¬λ¦½νΈλ₯Ό ꡬνν λ ν¨μ¨μ μΌλ‘ μμ
ν μ μλ€.
2. κ΅¬μ‘°κ° λ³΅μ‘ν μλ‘ ν° λ©μ΄λ¦¬λΆν° μ²μ²ν λ§ν¬μ
νλ κ²μ΄ μ’λ€. ν°λ©μ΄λ¦¬ κ΅¬μ‘°κ° μ‘νλ©΄ κ·Έ ν μΈλΆμ μΈ κ΅¬μ‘°λ₯Ό λ§ν¬μ
ν΄μ€λ€. (cssλ λ§μ°¬κ°μ§!)
3. μΉ΄λ λ μ΄μμμ λ³΄ν΅ μΉ λ©μΈ νμ΄μ§μ μΉμ
λΆλΆμ μμΉνλ€. λλ¬Έμ μλ©ν± νκ·ΈμΈ <section>μ μ¬μ©ν΄μ£Όμ΄ μΉ΄λ μμμ ν΄λΉνλ λͺ¨λ μμλ₯Ό λ¬Άμ΄μ€λ€.
4. μΉ΄λμμμ΄ λ μ€ ννμ΄κΈ° λλ¬Έμ κΈ°μ‘΄ λΆλͺ¨μΈ .card__inner containerλ₯Ό λ κ° λ§λ λ€ <article>(= μΉ΄λ ν κ°)μ 4κ°μ© λ¬Άμ΄μ λ§ν¬μ
ν΄μ€λ€.
<section id="cardType" class="card__wrap gmarket section">
<h2>νμ€ν μ리νκΈ°π</h2>
<p>ν λ§ν μ μ€μΌ κ·Έλ¦¬κ³ ν¬λ¦Ό λ± λ€μν νμ€νλ₯Ό λ§λ보μΈμ!<br />
κ·Έλ¦¬κ³ νμ€νμ 맀λ ₯μ λ껴보μΈμ!
</p>
<div class="card__inner container top">
<article class="card">
<figure class="card__header">
<img src="img/card_bg04.jpg" alt="νμ€ν01">
</figure>
<div class="card__body">
<div class="card__body__header">
<h3 class="tit">νμ€νμ μ μ</h3>
<a href="#" class="btn">
<span aria-hidden="true">
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<rect width="24" height="24" rx="5" fill="white"/>
<rect width="24" height="24" rx="5" fill="#884A4A"/>
<path d="M6 11C5.44772 11 5 11.4477 5 12C5 12.5523 5.44772 13 6 13V11ZM18.7071 12.7071C19.0976 12.3166 19.0976 11.6834 18.7071 11.2929L12.3431 4.92893C11.9526 4.53841 11.3195 4.53841 10.9289 4.92893C10.5384 5.31946 10.5384 5.95262 10.9289 6.34315L16.5858 12L10.9289 17.6569C10.5384 18.0474 10.5384 18.6805 10.9289 19.0711C11.3195 19.4616 11.9526 19.4616 12.3431 19.0711L18.7071 12.7071ZM6 13L18 13V11L6 11V13Z" fill="white"/>
</svg>
</span>
</a>
</div>
<p class="desc">
νμ€νλ μ΄ν리μμ μ ν΅ μμ μ€ νλλ‘ λ©΄μ΄ μ£Ό μ리 μ¬λ£μΈ μμμ
λλ€. νμ€νλ₯Ό λ μμλ³ΌκΉμ?
</p>
</div>
</article>
<article class="card">
<figure class="card__header">
<img src="img/card_bg10.jpg" alt="νμ€ν02">
</figure>
<div class="card__body">
<div class="card__body__header">
<h3 class="tit">νμ€ν λ©΄μ μ’
λ₯</h3>
<a href="#" class="btn">
<span aria-hidden="true">
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<rect width="24" height="24" rx="5" fill="white"/>
<rect width="24" height="24" rx="5" fill="#884A4A"/>
<path d="M6 11C5.44772 11 5 11.4477 5 12C5 12.5523 5.44772 13 6 13V11ZM18.7071 12.7071C19.0976 12.3166 19.0976 11.6834 18.7071 11.2929L12.3431 4.92893C11.9526 4.53841 11.3195 4.53841 10.9289 4.92893C10.5384 5.31946 10.5384 5.95262 10.9289 6.34315L16.5858 12L10.9289 17.6569C10.5384 18.0474 10.5384 18.6805 10.9289 19.0711C11.3195 19.4616 11.9526 19.4616 12.3431 19.0711L18.7071 12.7071ZM6 13L18 13V11L6 11V13Z" fill="white"/>
</svg>
</span>
</a>
</div>
<p class="desc">
νμ€νλ μ΄ν리μμ μ ν΅ μμ μ€ νλλ‘ λ©΄μ΄ μ£Ό μ리 μ¬λ£μΈ μμμ
λλ€. νμ€νλ₯Ό λ μμλ³ΌκΉμ?
</p>
</div>
</article>
<article class="card">
<figure class="card__header">
<img src="img/card_bg05.jpg" alt="νμ€ν03">
</figure>
<div class="card__body">
<div class="card__body__header">
<h3 class="tit">νμ€νμ μ’
λ₯</h3>
<a href="#" class="btn">
<span aria-hidden="true">
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<rect width="24" height="24" rx="5" fill="white"/>
<rect width="24" height="24" rx="5" fill="#884A4A"/>
<path d="M6 11C5.44772 11 5 11.4477 5 12C5 12.5523 5.44772 13 6 13V11ZM18.7071 12.7071C19.0976 12.3166 19.0976 11.6834 18.7071 11.2929L12.3431 4.92893C11.9526 4.53841 11.3195 4.53841 10.9289 4.92893C10.5384 5.31946 10.5384 5.95262 10.9289 6.34315L16.5858 12L10.9289 17.6569C10.5384 18.0474 10.5384 18.6805 10.9289 19.0711C11.3195 19.4616 11.9526 19.4616 12.3431 19.0711L18.7071 12.7071ZM6 13L18 13V11L6 11V13Z" fill="white"/>
</svg>
</span>
</a>
</div>
<p class="desc">
νμ€νλ μ΄ν리μμ μ ν΅ μμ μ€ νλλ‘ λ©΄μ΄ μ£Ό μ리 μ¬λ£μΈ μμμ
λλ€. νμ€νλ₯Ό λ μμλ³ΌκΉμ?
</p>
</div>
</article>
<article class="card">
<figure class="card__header">
<img src="img/card_bg06.jpg" alt="νμ€ν04">
</figure>
<div class="card__body">
<div class="card__body__header">
<h3 class="tit">νμ€νμ μ¬λ£</h3>
<a href="#" class="btn">
<span aria-hidden="true">
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<rect width="24" height="24" rx="5" fill="white"/>
<rect width="24" height="24" rx="5" fill="#884A4A"/>
<path d="M6 11C5.44772 11 5 11.4477 5 12C5 12.5523 5.44772 13 6 13V11ZM18.7071 12.7071C19.0976 12.3166 19.0976 11.6834 18.7071 11.2929L12.3431 4.92893C11.9526 4.53841 11.3195 4.53841 10.9289 4.92893C10.5384 5.31946 10.5384 5.95262 10.9289 6.34315L16.5858 12L10.9289 17.6569C10.5384 18.0474 10.5384 18.6805 10.9289 19.0711C11.3195 19.4616 11.9526 19.4616 12.3431 19.0711L18.7071 12.7071ZM6 13L18 13V11L6 11V13Z" fill="white"/>
</svg>
</span>
</a>
</div>
<p class="desc">
νμ€νλ μ΄ν리μμ μ ν΅ μμ μ€ νλλ‘ λ©΄μ΄ μ£Ό μ리 μ¬λ£μΈ μμμ
λλ€. νμ€νλ₯Ό λ μμλ³ΌκΉμ?
</p>
</div>
</article>
</div>
<div class="card__inner container bottom">
<article class="card">
<figure class="card__header">
<img src="img/card_bg07.jpg" alt="νμ€ν05">
</figure>
<div class="card__body">
<div class="card__body__header">
<h3 class="tit">ν λ§ν νμ€ν</h3>
<a href="#" class="btn">
<span aria-hidden="true">
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<rect width="24" height="24" rx="5" fill="white"/>
<rect width="24" height="24" rx="5" fill="#884A4A"/>
<path d="M6 11C5.44772 11 5 11.4477 5 12C5 12.5523 5.44772 13 6 13V11ZM18.7071 12.7071C19.0976 12.3166 19.0976 11.6834 18.7071 11.2929L12.3431 4.92893C11.9526 4.53841 11.3195 4.53841 10.9289 4.92893C10.5384 5.31946 10.5384 5.95262 10.9289 6.34315L16.5858 12L10.9289 17.6569C10.5384 18.0474 10.5384 18.6805 10.9289 19.0711C11.3195 19.4616 11.9526 19.4616 12.3431 19.0711L18.7071 12.7071ZM6 13L18 13V11L6 11V13Z" fill="white"/>
</svg>
</span>
</a>
</div>
<p class="desc">
νμ€νλ μ΄ν리μμ μ ν΅ μμ μ€ νλλ‘ λ©΄μ΄ μ£Ό μ리 μ¬λ£μΈ μμμ
λλ€. νμ€νλ₯Ό λ μμλ³ΌκΉμ?
</p>
</div>
</article>
<article class="card">
<figure class="card__header">
<img src="img/card_bg08.jpg" alt="νμ€ν06">
</figure>
<div class="card__body">
<div class="card__body__header">
<h3 class="tit">μ€μΌ νμ€ν</h3>
<a href="#" class="btn">
<span aria-hidden="true">
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<rect width="24" height="24" rx="5" fill="white"/>
<rect width="24" height="24" rx="5" fill="#884A4A"/>
<path d="M6 11C5.44772 11 5 11.4477 5 12C5 12.5523 5.44772 13 6 13V11ZM18.7071 12.7071C19.0976 12.3166 19.0976 11.6834 18.7071 11.2929L12.3431 4.92893C11.9526 4.53841 11.3195 4.53841 10.9289 4.92893C10.5384 5.31946 10.5384 5.95262 10.9289 6.34315L16.5858 12L10.9289 17.6569C10.5384 18.0474 10.5384 18.6805 10.9289 19.0711C11.3195 19.4616 11.9526 19.4616 12.3431 19.0711L18.7071 12.7071ZM6 13L18 13V11L6 11V13Z" fill="white"/>
</svg>
</span>
</a>
</div>
<p class="desc">
νμ€νλ μ΄ν리μμ μ ν΅ μμ μ€ νλλ‘ λ©΄μ΄ μ£Ό μ리 μ¬λ£μΈ μμμ
λλ€. νμ€νλ₯Ό λ μμλ³ΌκΉμ?
</p>
</div>
</article>
<article class="card">
<figure class="card__header">
<img src="img/card_bg11.jpg" alt="νμ€ν07">
</figure>
<div class="card__body">
<div class="card__body__header">
<h3 class="tit">λ‘μ νμ€ν</h3>
<a href="#" class="btn">
<span aria-hidden="true">
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<rect width="24" height="24" rx="5" fill="white"/>
<rect width="24" height="24" rx="5" fill="#884A4A"/>
<path d="M6 11C5.44772 11 5 11.4477 5 12C5 12.5523 5.44772 13 6 13V11ZM18.7071 12.7071C19.0976 12.3166 19.0976 11.6834 18.7071 11.2929L12.3431 4.92893C11.9526 4.53841 11.3195 4.53841 10.9289 4.92893C10.5384 5.31946 10.5384 5.95262 10.9289 6.34315L16.5858 12L10.9289 17.6569C10.5384 18.0474 10.5384 18.6805 10.9289 19.0711C11.3195 19.4616 11.9526 19.4616 12.3431 19.0711L18.7071 12.7071ZM6 13L18 13V11L6 11V13Z" fill="white"/>
</svg>
</span>
</a>
</div>
<p class="desc">
νμ€νλ μ΄ν리μμ μ ν΅ μμ μ€ νλλ‘ λ©΄μ΄ μ£Ό μ리 μ¬λ£μΈ μμμ
λλ€. νμ€νλ₯Ό λ μμλ³ΌκΉμ?
</p>
</div>
</article>
<article class="card">
<figure class="card__header">
<img src="img/card_bg09.jpg" alt="νμ€ν08">
</figure>
<div class="card__body">
<div class="card__body__header">
<h3 class="tit">ν¬λ¦Ό νμ€ν</h3>
<a href="#" class="btn">
<span aria-hidden="true">
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<rect width="24" height="24" rx="5" fill="white"/>
<rect width="24" height="24" rx="5" fill="#884A4A"/>
<path d="M6 11C5.44772 11 5 11.4477 5 12C5 12.5523 5.44772 13 6 13V11ZM18.7071 12.7071C19.0976 12.3166 19.0976 11.6834 18.7071 11.2929L12.3431 4.92893C11.9526 4.53841 11.3195 4.53841 10.9289 4.92893C10.5384 5.31946 10.5384 5.95262 10.9289 6.34315L16.5858 12L10.9289 17.6569C10.5384 18.0474 10.5384 18.6805 10.9289 19.0711C11.3195 19.4616 11.9526 19.4616 12.3431 19.0711L18.7071 12.7071ZM6 13L18 13V11L6 11V13Z" fill="white"/>
</svg>
</span>
</a>
</div>
<p class="desc">
νμ€νλ μ΄ν리μμ μ ν΅ μμ μ€ νλλ‘ λ©΄μ΄ μ£Ό μ리 μ¬λ£μΈ μμμ
λλ€. νμ€νλ₯Ό λ μμλ³ΌκΉμ?
</p>
</div>
</article>
</div>
</section>
β’ imgνκ·Έμ μμ± μ€ altμμ μ΄λ―Έμ§μ λν μ€λͺ μ λ£μ΄μ€μΌ μκ° λ° μ²κ° μ₯μ μΈλ€λ μ€ν¬λ¦°λ¦¬λκΈ°λ₯Ό ν΅ν΄ μ΄ν΄ κ°λ₯
β’ μ€ν¬λ¦°λ¦¬λκΈ°κ° svgκ°μ μ½μ§ μκ² νκΈ° μν΄ μμ± aria-hidden="true"λ₯Ό μΆκ°
β’ img νκ·Έμ κ°μ κ·Έλ¦Ό, λν μλ£ νκ·Έλ€μ figure νκ·Έμμ λ£μ΄μ£Όλ κ²μ΄ μΉ νμ€μ μ€μν κ²
< CSS μμ€ : μ€νμΌ μ μ©νκΈ° >
ꡬ쑰 μ§μμ μμλλ‘ css μ€νμΌμ μ μ©μμΌ λ΄ μλ€. μ΄ λ λμμΈ μμμ 보며 λ§ν¬μ λ μμλ₯Ό ν° λ©μ΄λ¦¬ λΆν° μ€νμΌμ μ μ©μμΌ λκ°λ κ²μ΄ μ€μν©λλ€.
Css μ€νμΌ νμ
νκΈ°
1. λ¨Όμ μ 체 μ΄κΈ°νμ ν°νΈ μ€μ μ ν΄μ£Όλ κ²μ΄ μ’λ€.
2. 컨ν
μ΄λ μ€μ μ ν΅ν΄ λ©μΈ νλ©΄ ν¬κΈ°μ μ¬λ°±μ μ€μ ν΄μ€ λ€ λ©μΈ μ½ν
μΈ μΈ μΉμ
μκ² μ€νμΌμ μ μ©
3. μΉμ
μ μ€νμΌ μ μ©μ΄ λλ ν μΉ΄λ μμμ μ€νμΌμ μ μ©μν¨λ€.(μ€νμΌμ΄ λκ°κΈ° λλ¬Έμ λΆλͺ¨μμλ₯Ό λμΌνκ² νμ¬ λΉ λ₯΄κ³ ν¨μ¨μ μΈ μμ
μ ν μ μλλ‘ νλ€.)
/* fonts */
@import url('https://webfontworld.github.io/gmarket/GmarketSans.css');
.gmarket {
font-family: 'GmarketSans';
font-weight: 400;
}
/* reset */
* {
margin: 0;
padding: 0;
}
a {
text-decoration: none; /* ν
μ€νΈ ν¨κ³Όλ₯Ό μ΄κΈ°ν */
}
img {
width: 100%; /* μ΄λ―Έμ§κ° λ°μΌλ‘ λμ€λ κ²μ λ§μμ€λ€. */
}
h1, h2, h3, h4, h5, h6 {
font-weight: normal; /* ν
μ€νΈ κ΅΅κΈ°λ₯Ό μ΄κΈ°ν */
}
/* common */
.container {
width: 1160px;
padding: 0 20px;
margin: 0 auto;
}
.section {
padding: 120px 0;
}
.section > h2 {
font-size: 50px;
line-height: 1;
text-align: center;
margin-bottom: 20px;
}
.section > p {
font-size: 22px;
font-weight: 300;
color: #666;
text-align: center;
margin-bottom: 70px;
}
/* cardType */
.card__inner {
display: flex;
flex-wrap: wrap;
justify-content: space-between; /* μ€μ¬μ κΈ°μ€μΌλ‘ κ°κ²©μ λ¨μ΄λ¨λ¦°λ€.*/
}
.card {
width: 23.5%;
}
.card__body {
padding: 16px 0 20px 0;
}
.card__body .card__body__header {
display: flex;
flex-wrap: wrap;
justify-content: space-between; /* μ€μ¬μ κΈ°μ€μΌλ‘ κ°κ²©μ λ¨μ΄λ¨λ¦°λ€.*/
}
.card__body .tit {
font-size: 24px;
margin-bottom: 10px;
}
.card__body .desc {
font-size: 18px;
line-height: 1.4;
color: #666;
margin-bottom: 50px;
font-weight: 300;
}
.card__body .btn {
width: 24px;
height: 24px;
border-radius: 5px;
background-color: #884A4A;
display: flex;
flex-wrap: wrap;
}
!μ€λμ ν¬μΈνΈ!
aria-hidden="true"
μ€ν¬λ¦°λ¦¬λκΈ°κ° svgμ κ°μ΄ λ΄μ©μ΄ μλ μμμ κ°μ μ½μ§ μκ² νκΈ° μν΄ μ¬μ©νλ μμ±
<!-- μμ -->
<span aria-hidden="true">
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<rect width="24" height="24" rx="5" fill="white"/>
<rect width="24" height="24" rx="5" fill="#884A4A"/>
<path d="M6 11C5.44772 11 5 11.4477 5 12C5 12.5523 5.44772 13 6 13V11ZM18.7071 12.7071C19.0976 12.3166 19.0976 11.6834 18.7071 11.2929L12.3431 4.92893C11.9526 4.53841 11.3195 4.53841 10.9289 4.92893C10.5384 5.31946 10.5384 5.95262 10.9289 6.34315L16.5858 12L10.9289 17.6569C10.5384 18.0474 10.5384 18.6805 10.9289 19.0711C11.3195 19.4616 11.9526 19.4616 12.3431 19.0711L18.7071 12.7071ZM6 13L18 13V11L6 11V13Z" fill="white"/>
</svg>
</span>
결과보기
'SITE' μΉ΄ν κ³ λ¦¬μ λ€λ₯Έ κΈ
[SITE] μΉμ¬μ΄νΈ - μ΄λ―Έμ§ μ ν03 (4) | 2022.08.22 |
---|---|
[SITE] μ΄λ―Έμ§ μ ν λ§λ€κΈ° 02 (3) | 2022.08.18 |
[SITE] μΉμ¬μ΄νΈ - μ΄λ―Έμ§ μ ν01 (2) | 2022.08.17 |
[SITE] μΉμ¬μ΄νΈ - μΉ΄λ μ ν03 (5) | 2022.08.11 |
μΉμ¬μ΄νΈ - μΉ΄λ μ ν01 (4) | 2022.08.10 |
λκΈ