λ μ΄μμ : μΉ΄λ μ ν03
μ΄λ²μλ λ€μκ³Ό κ°μ 3κ°μ μΉ΄λκ° μλ λ μ΄μμ μ νμ μμ ν΄ λ³΄λλ‘ νκ² μ΅λλ€.
CSS μμ€
ν°νΈλ μμ€μ½μ΄ λλ¦Όμ μ¬μ©νκ³ , 컨ν μ΄λ μμ 3κ°μ μΉ΄λλ₯Ό λ§λ€μ΄ display:flexλ‘ κ°λ‘ μ λ ¬μ ν΄ μ£Όμμ΅λλ€. blind ν¨κ³Όλ ir ν¨κ³Όμ λ§μ°¬κ°μ§λ‘, κΈμκ° λμ 보μ΄μ§ μκ² μμ νμ§λ§, μ€ν¬λ¦° 리λκΈ°μμλ μ½νκ²λ λ§λ€μ΄ μΉ μ κ·Όμ±μ μ€μνκ²λ ν©λλ€.
/* fonts */
@import url('https://webfontworld.github.io/score/SCoreDream.css');
.score {
font-family: 'SCoreDream';
font-weight: 400;
}
/* reset */
* {
margin: 0;
padding: 0;
}
a {
text-decoration: none;
color: #000;
}
img {
width: 100%;
}
h1,
h2,
h3,
h4,
h5,
h6 {
font-weight: normal;
}
/* common */
.container {
width: 1160px;
padding: 0 20px;
margin: 0 auto;
min-width:1160px;
}
.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;
}
/* blind ν¨κ³Ό(μΉ μ κ·Όμ± μ€μ)*/
.blind{
position:absolute;
clip:rect(0 0 0 0);
width:1px;
height:1px;
margin:-1px;
overflow:hidden
}
/* cardType03 */
body {
background-color: #1E39A2;
}
.card__inner {
display: flex;
}
.card__inner .card {
width: 33.3333%;
background-color: white;
padding: 26px;
}
.card__inner .card:nth-child(1) {
border-right: 1px solid #eee;
}
.card__inner .card:nth-child(2) {
border-right: 1px solid #eee;
}
.card__header {
position: relative;
}
.card__header img {
border-radius: 10px;
box-shadow: 4px 4px 5px 0 rgba(0, 0, 0, 0.05);
margin-bottom: 20px;
}
.card__header figcaption {
position: absolute;
right: 10px;
top: 10px;
width: 100.8px;
padding: 6px 12px;
border-radius: 50px;
background-color: #FFC738;
text-align: center;
font-size: 14px;
color: #7b7b7b;
}
.card__body h3 {
font-size: 20px;
line-height: 1.4;
margin-bottom: 10px;
}
.card__body p {
color: #666;
font-size: 16px;
line-height: 1.7;
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-line-clamp: 3;
-webkit-box-orient: vertical;
margin-bottom: 30px;
}
.card__footer {
display: flex;
justify-content: flex-end;
}
.card__footer h4 {
text-align: center;
color: #dd2a2a;
}
.card__footer em {
display: block;
color: #666;
font-style: normal;
}
.card__footer span {
width: 40px;
height: 40px;
border-radius: 50%;
overflow: hidden;
margin-left: 10px;
margin-top: 3px;
box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.25);
}
HTML μμ€
κ°κ°μ μΉ΄λλ header, body, footer μΈ κ°μ§ μμμΌλ‘ λλμ΄ μμ νμμ΅λλ€. footer μμλ display:flexλ₯Ό μ¬μ©νμ¬ μ λ ¬μ ν΄ μ£Όμμ΅λλ€. figcaption νκ·Έλ figure νκ·Έ μμμ, λ€λ₯Έ μ½ν μΈ μ λν μ€λͺ νΉμ λ²λ‘λ₯Ό λνλ λλ€.
<section id="cardType03" class="card__wrap score section">
<h2 class="blind">μ€μ§μ΄μ μμ </h2>
<div class="card__inner container">
<article class="card">
<figure class="card__header">
<img src="img/card03_bg01.jpg" alt="κ° νμ΄λ μλΌ μ€μ§μ΄">
<figcaption>Squid</figcaption>
</figure>
<div class="card__body">
<h3>κ° νμ΄λ μλΌ μ€μ§μ΄ : μ€μ§μ΄μ νμμ μΆνν©λλ€!</h3>
<p>μλΌ μ€μ§μ΄κ° νμ΄λ¬μ΅λλ€. μ¬ν κ²½μ΄λ‘μ§ μμ μκ° μμ΅λλ€. μ€μ§μ΄λ₯Ό
μΆνν΄ μ£Όμμ΅λλ€. μ€μ§μ΄μΌ, μΆνν΄. κ·Έλλ μλΌλ κ·μ½κ² μκ²Όλ€μ.</p>
</div>
<div class="card__footer">
<h4>μ€μ§μ΄ν λ°μ¬ <em>Usman Yosaf</em></h4>
<span><img src="img/card03_icon01.png" alt="Usman Yosaf λ°μ¬λ"></span>
</div>
</article>
<article class="card">
<figure class="card__header">
<img src="img/card03_bg02.jpg" alt="λΉμ μ λ°λΌλ³΄κ³ μλ μ€μ§μ΄">
<figcaption>Squid</figcaption>
</figure>
<div class="card__body">
<h3>μ©μ©ν μ²μλ
μ€μ§μ΄ : μ€μ§μ΄μ λμ λ§μ£Όμ³ 보μΈμ</h3>
<p>μ€μ§μ΄λ₯Ό λ°λΌλ³΄κ³ μμλ μ© κΈ°λΆμ΄ μ’μ§λ μμ΅λλ€. μ μ λ κ² μκ²ΌμκΉμ? κ·Έλ¬λ μ€μ§μ΄μ κΈ°λΆλ λ§μ°¬κ°μ§μΈ κ² κ°μ΅λλ€. λ€μ μμκ° μλ€μ.</p>
</div>
<div class="card__footer">
<h4>μ€μ§μ΄ν λ°μ¬ <em>Usman Yosaf</em></h4>
<span><img src="img/card03_icon01.png" alt="Usman Yosaf λ°μ¬λ"></span>
</div>
</article>
<article class="card">
<figure class="card__header">
<img src="img/card03_bg03.jpg" alt="λμ΄μ Έμ νλ³μ λ§λ €μ§λ μ€μ§μ΄">
<figcaption>Squid</figcaption>
</figure>
<div class="card__body">
<h3>λ°μΉ λ§λ₯Έ μ±μ²΄ μ€μ§μ΄ : μ΅κ³ μ μμ£Όκ° λ©λλ€</h3>
<p>λ²λ₯΄μ₯머리 μλ μ€μ§μ΄λ€μ λ°μΉ λ§λ¦° λ€μ λ§μλ μμ£Όλ‘ λ§λ€μ΄ μ¬λλ€μκ² μμλ₯Ό κ°μΆκ² ν©λλ€. μ°λ¦¬λ 곧 μμ ν λ¨Έλ λ§₯μ£Όμμ λ§λ μ μμ΅λλ€.</p>
</div>
<div class="card__footer">
<h4>μ€μ§μ΄ν λ°μ¬ <em>Usman Yosaf</em></h4>
<span><img src="img/card03_icon01.png" alt="Usman Yosaf λ°μ¬λ"></span>
</div>
</article>
</div>
</section>
κ²°κ³Ό
'WebSite' μΉ΄ν κ³ λ¦¬μ λ€λ₯Έ κΈ
μΉμ¬μ΄νΈ λ§λ€κΈ° : μ΄λ―Έμ§ μ ν λ μ΄μμ02 (5) | 2022.08.17 |
---|---|
μΉμ¬μ΄νΈ λ§λ€κΈ° : μ΄λ―Έμ§ μ ν λ μ΄μμ01 (4) | 2022.08.17 |
μΉμ¬μ΄νΈ λ§λ€κΈ° : μΉ΄λ μ ν λ μ΄μμ02 (12) | 2022.08.09 |
μΉμ¬μ΄νΈ λ§λ€κΈ° : μΉ΄λ μ ν λ μ΄μμ01 (12) | 2022.08.08 |
λ μ΄μμ(Layout) μ ν05 (7) | 2022.07.29 |
λκΈ