ํฐ์คํ ๋ฆฌ ๋ทฐ
SITE
์นด๋์ ํ ์น์ฌ์ดํธ ๋ง๋ค๊ธฐ 02 (Card Type Web Site)
๊น์ฝ๋ฆฐ๐ฉ๐ป๐ป 2022. 8. 9. 16:34
Card Type Web Site
HTML, CSS๋ฅผ ํตํด ์นด๋์ ํ ์น์ฌ์ดํธ ๋ง๋ค๊ธฐ - ๋๋ฒ์งธ
Result
Figma
๋จผ์ , Figma๋ก ๋๋ฒ์งธ ์นด๋์ ํ ์น์ฌ์ดํธ ๋ ์ด์์ ๊ทธ๋ฆฌ๋๋ฅผ ๋ง๋ค์์ต๋๋ค.
HTML
article๋ก ์นด๋์์ญ์ ๋๋๊ณ line๊ตฌ์กฐ์ธ a๋งํฌ๋ฅผ card title ์์ ๋ฃ์ด ๋๋ณด๊ธฐ ๋ฒํผ์ ๋ง๋ค์์ต๋๋ค.
<body>
<section id="cardType" class="card__wrap nexon section">
<h2>์ทจ๋ฏธ ์ด๋ ์ถ์ฒ</h2>
<p>๊ฐ์ฅ ์ข์ํ๋ ์ทจ๋ฏธ๊ฐ ์ด๋์ด ๋ ๋ ๊ฑด๊ฐ ์ฆ์ง ํจ๊ณผ๋ ํฌ๋ค. <br>
๋๊ตฌ๋ ์ฆ๊ธธ ์ ์๋ ์ฌ๋ฐ๋ ์ด๋ ์ถ์ฒ!
</p>
<div class="card_inner container">
<article class="card">
<figure>
<img src="img/card2_bg01.jpg" alt="์๊ฐ์ฌ์ง">
</figure>
<div class="card__body">
<h3 class="tit">์๊ฐ
<a href="/" class="btn">
<span aria-hidden="true">
<svg width="23" height="25" viewBox="0 0 23 25" fill="none" xmlns="http://www.w3.org/2000/svg">
<rect width="23" height="25" rx="5" fill="#3056DE"/>
<path d="M18.7071 13.7071C19.0976 13.3166 19.0976 12.6834 18.7071 12.2929L12.3431 5.92893C11.9526 5.53841 11.3195 5.53841 10.9289 5.92893C10.5384 6.31946 10.5384 6.95262 10.9289 7.34315L16.5858 13L10.9289 18.6569C10.5384 19.0474 10.5384 19.6805 10.9289 20.0711C11.3195 20.4616 11.9526 20.4616 12.3431 20.0711L18.7071 13.7071ZM4 14L18 14V12L4 12L4 14Z" fill="white"/>
</svg>
</span>
</a>
</h3>
<p class="desc">์๊ฐ(yoga)๋ ๊ณ ๋ ์ธ๋์์ ์ ์์ ์ผ๋ก ์ฐ์ ํ ๋ช
์์ ๋ฐฉ๋ฒ์ผ๋ก ํ๋๊ต์ ์ข
๊ต์ · ์์ ์ํ ๋ฐฉ๋ฒ์ ํ๋๋ก๋ ์๋ ค์ ธ์๋ค. </p>
</div>
</article>
<article class="card">
<figure class="card__header">
<img src="img/card2_bg02.jpg" alt="์จ์ดํธ ํธ๋ ์ด๋ ์ฌ์ง">
</figure>
<div class="card__body">
<h3 class="tit">์จ์ดํธ ํธ๋ ์ด๋
<a href="/" class="btn">
<span aria-hidden="true">
<svg width="23" height="25" viewBox="0 0 23 25" fill="none" xmlns="http://www.w3.org/2000/svg">
<rect width="23" height="25" rx="5" fill="#3056DE"/>
<path d="M18.7071 13.7071C19.0976 13.3166 19.0976 12.6834 18.7071 12.2929L12.3431 5.92893C11.9526 5.53841 11.3195 5.53841 10.9289 5.92893C10.5384 6.31946 10.5384 6.95262 10.9289 7.34315L16.5858 13L10.9289 18.6569C10.5384 19.0474 10.5384 19.6805 10.9289 20.0711C11.3195 20.4616 11.9526 20.4616 12.3431 20.0711L18.7071 13.7071ZM4 14L18 14V12L4 12L4 14Z" fill="white"/>
</svg>
</span>
</a>
</h3>
<p class="desc"> ๋ ์ฝ๊ณ , ํธ๋ฆฌํ๋ฉฐ, ๋ฏฟ์ ์ ์๋<br>
์ธํ
๋ฆฌ์ด ์๊ณต, ์ด์ฌ, ์ด์ฌ์ฒญ์, ์๋ฆฌ ์๋น์ค
์ด๋ ต๊ฒ๋ง ๋๊ปด์ก๋ ์๊ณต๋ ์ค๋์์ง์์๋ ์ฌ์์ง๋๋ค.</p>
</div>
</article>
<article class="card">
<figure>
<img src="img/card2_bg03.jpg" alt="ํ๋ผ์ ์๊ฐ ์ฌ์ง">
</figure>
<div class="card__body">
<h3 class="tit">ํ๋ผ์ ์๊ฐ
<a href="/" class="btn">
<span aria-hidden="true">
<svg width="23" height="25" viewBox="0 0 23 25" fill="none" xmlns="http://www.w3.org/2000/svg">
<rect width="23" height="25" rx="5" fill="#3056DE"/>
<path d="M18.7071 13.7071C19.0976 13.3166 19.0976 12.6834 18.7071 12.2929L12.3431 5.92893C11.9526 5.53841 11.3195 5.53841 10.9289 5.92893C10.5384 6.31946 10.5384 6.95262 10.9289 7.34315L16.5858 13L10.9289 18.6569C10.5384 19.0474 10.5384 19.6805 10.9289 20.0711C11.3195 20.4616 11.9526 20.4616 12.3431 20.0711L18.7071 13.7071ZM4 14L18 14V12L4 12L4 14Z" fill="white"/>
</svg>
</span>
</a>
</h3>
<p class="desc">์จ๋ผ์ธ ์ง๋ค์ด์ ์ธํ
๋ฆฌ์ด ๋
ธํ์ฐ ๋ฑ ๋ค์ํ ์ธํ
๋ฆฌ์ด ์ฝํ
์ธ ๋ค์<br>
์ ๊ณตํ์ฌ ๋๊ตฌ๋ ์ฝ๊ฒ ์ฌ๋ฏธ์๊ฒ ๊ณต๊ฐ์ ๋ณํ์ํฌ ์ ์๋๋ก ๋์ต๋๋ค.</p>
</div>
</article>
<article class="card">
<figure>
<img src="img/card2_bg04.jpg" alt="๋ฌ๋ ์ฌ์ง">
</figure>
<div class="card__body">
<h3 class="tit">๋ฌ๋
<a href="/" class="btn">
<span aria-hidden="true">
<svg width="23" height="25" viewBox="0 0 23 25" fill="none" xmlns="http://www.w3.org/2000/svg">
<rect width="23" height="25" rx="5" fill="#3056DE"/>
<path d="M18.7071 13.7071C19.0976 13.3166 19.0976 12.6834 18.7071 12.2929L12.3431 5.92893C11.9526 5.53841 11.3195 5.53841 10.9289 5.92893C10.5384 6.31946 10.5384 6.95262 10.9289 7.34315L16.5858 13L10.9289 18.6569C10.5384 19.0474 10.5384 19.6805 10.9289 20.0711C11.3195 20.4616 11.9526 20.4616 12.3431 20.0711L18.7071 13.7071ZM4 14L18 14V12L4 12L4 14Z" fill="white"/>
</svg>
</span>
</a>
</h3>
<p class="desc">์จ๋ผ์ธ ์ง๋ค์ด์ ์ธํ
๋ฆฌ์ด ๋
ธํ์ฐ ๋ฑ ๋ค์ํ ์ธํ
๋ฆฌ์ด ์ฝํ
์ธ ๋ค์<br>
์ ๊ณตํ์ฌ ๋๊ตฌ๋ ์ฝ๊ฒ ์ฌ๋ฏธ์๊ฒ ๊ณต๊ฐ์ ๋ณํ์ํฌ ์ ์๋๋ก ๋์ต๋๋ค.</p>
</div>
</article>
</div>
<div class="card_inner container">
<article class="card">
<figure>
<img src="img/card2_bg05.jpg" alt="์์ ๊ฑฐ ์ฌ์ง">
</figure>
<div class="card__body">
<h3 class="tit">์์ ๊ฑฐ
<a href="/" class="btn">
<span aria-hidden="true">
<svg width="23" height="25" viewBox="0 0 23 25" fill="none" xmlns="http://www.w3.org/2000/svg">
<rect width="23" height="25" rx="5" fill="#3056DE"/>
<path d="M18.7071 13.7071C19.0976 13.3166 19.0976 12.6834 18.7071 12.2929L12.3431 5.92893C11.9526 5.53841 11.3195 5.53841 10.9289 5.92893C10.5384 6.31946 10.5384 6.95262 10.9289 7.34315L16.5858 13L10.9289 18.6569C10.5384 19.0474 10.5384 19.6805 10.9289 20.0711C11.3195 20.4616 11.9526 20.4616 12.3431 20.0711L18.7071 13.7071ZM4 14L18 14V12L4 12L4 14Z" fill="white"/>
</svg>
</span>
</a>
</h3>
<p class="desc">์๊ฐ(yoga)๋ ๊ณ ๋ ์ธ๋์์ ์ ์์ ์ผ๋ก ์ฐ์ ํ ๋ช
์์ ๋ฐฉ๋ฒ์ผ๋ก ํ๋๊ต์ ์ข
๊ต์ · ์์ ์ํ ๋ฐฉ๋ฒ์ ํ๋๋ก๋ ์๋ ค์ ธ์๋ค. </p>
</div>
</article>
<article class="card">
<figure class="card__header">
<img src="img/card2_bg06.jpg" alt="์ ๋ ์ฌ์ง">
</figure>
<div class="card__body">
<h3 class="tit">์ ๋
<a href="/" class="btn">
<span aria-hidden="true">
<svg width="23" height="25" viewBox="0 0 23 25" fill="none" xmlns="http://www.w3.org/2000/svg">
<rect width="23" height="25" rx="5" fill="#3056DE"/>
<path d="M18.7071 13.7071C19.0976 13.3166 19.0976 12.6834 18.7071 12.2929L12.3431 5.92893C11.9526 5.53841 11.3195 5.53841 10.9289 5.92893C10.5384 6.31946 10.5384 6.95262 10.9289 7.34315L16.5858 13L10.9289 18.6569C10.5384 19.0474 10.5384 19.6805 10.9289 20.0711C11.3195 20.4616 11.9526 20.4616 12.3431 20.0711L18.7071 13.7071ZM4 14L18 14V12L4 12L4 14Z" fill="white"/>
</svg>
</span>
</a>
</h3>
<p class="desc"> ๋ ์ฝ๊ณ , ํธ๋ฆฌํ๋ฉฐ, ๋ฏฟ์ ์ ์๋<br>
์ธํ
๋ฆฌ์ด ์๊ณต, ์ด์ฌ, ์ด์ฌ์ฒญ์, ์๋ฆฌ ์๋น์ค
์ด๋ ต๊ฒ๋ง ๋๊ปด์ก๋ ์๊ณต๋ ์ค๋์์ง์์๋ ์ฌ์์ง๋๋ค.</p>
</div>
</article>
<article class="card">
<figure>
<img src="img/card2_bg07.jpg" alt="๊ถํฌ ์ฌ์ง">
</figure>
<div class="card__body">
<h3 class="tit">๊ถํฌ
<a href="/" class="btn">
<span aria-hidden="true">
<svg width="23" height="25" viewBox="0 0 23 25" fill="none" xmlns="http://www.w3.org/2000/svg">
<rect width="23" height="25" rx="5" fill="#3056DE"/>
<path d="M18.7071 13.7071C19.0976 13.3166 19.0976 12.6834 18.7071 12.2929L12.3431 5.92893C11.9526 5.53841 11.3195 5.53841 10.9289 5.92893C10.5384 6.31946 10.5384 6.95262 10.9289 7.34315L16.5858 13L10.9289 18.6569C10.5384 19.0474 10.5384 19.6805 10.9289 20.0711C11.3195 20.4616 11.9526 20.4616 12.3431 20.0711L18.7071 13.7071ZM4 14L18 14V12L4 12L4 14Z" fill="white"/>
</svg>
</span>
</a>
</h3>
<p class="desc">์จ๋ผ์ธ ์ง๋ค์ด์ ์ธํ
๋ฆฌ์ด ๋
ธํ์ฐ ๋ฑ ๋ค์ํ ์ธํ
๋ฆฌ์ด ์ฝํ
์ธ ๋ค์<br>
์ ๊ณตํ์ฌ ๋๊ตฌ๋ ์ฝ๊ฒ ์ฌ๋ฏธ์๊ฒ ๊ณต๊ฐ์ ๋ณํ์ํฌ ์ ์๋๋ก ๋์ต๋๋ค.</p>
</div>
</article>
<article class="card">
<figure>
<img src="img/card2_bg08.jpg" alt="ํ๋ผํ
์ค ์ฌ์ง">
</figure>
<div class="card__body">
<h3 class="tit">ํ๋ผํ
์ค
<a href="/" class="btn">
<span aria-hidden="true">
<svg width="23" height="25" viewBox="0 0 23 25" fill="none" xmlns="http://www.w3.org/2000/svg">
<rect width="23" height="25" rx="5" fill="#3056DE"/>
<path d="M18.7071 13.7071C19.0976 13.3166 19.0976 12.6834 18.7071 12.2929L12.3431 5.92893C11.9526 5.53841 11.3195 5.53841 10.9289 5.92893C10.5384 6.31946 10.5384 6.95262 10.9289 7.34315L16.5858 13L10.9289 18.6569C10.5384 19.0474 10.5384 19.6805 10.9289 20.0711C11.3195 20.4616 11.9526 20.4616 12.3431 20.0711L18.7071 13.7071ZM4 14L18 14V12L4 12L4 14Z" fill="white"/>
</svg>
</span>
</a>
</h3>
<p class="desc">์จ๋ผ์ธ ์ง๋ค์ด์ ์ธํ
๋ฆฌ์ด ๋
ธํ์ฐ ๋ฑ ๋ค์ํ ์ธํ
๋ฆฌ์ด ์ฝํ
์ธ ๋ค์<br>
์ ๊ณตํ์ฌ ๋๊ตฌ๋ ์ฝ๊ฒ ์ฌ๋ฏธ์๊ฒ ๊ณต๊ฐ์ ๋ณํ์ํฌ ์ ์๋๋ก ๋์ต๋๋ค.</p>
</div>
</article>
</div>
</section>
</body>
CSS
์ด๋ฒ์๋ ์นด๋๊ฐ ์ด 8๊ฐ์์ผ๋ก, card width๋ฅผ ๊ฐ 25%์ฉ ์ฃผ๊ณ ์ค๋ฅธ์ชฝ์ ๊ฐ๊ฒฉ์ 25ํฝ์ ์ ์ฃผ์์ต๋๋ค.
/* fonts */
@import url('https://webfontworld.github.io/NexonLv1Gothic/NexonLv1Gothic.css');
.nexon {
font-family: "NexonLv1Gothic";
font-weight: 400;
}
/* reset */
* {
padding: 0;
margin: 0;
}
a {
text-decoration: none;
color: #000;
}
img {
width: 100%;
}
/* 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; /*line height auto๋ 1์ ์๋ฏธ*/
text-align: center;
margin-bottom: 20px;
}
.section > p {
font-size: 22px;
font-weight: 300;
color: #666;
text-align: center;
margin-bottom: 70px;
}
h1, h2, h3, h4, h5 ,h6 {
font-weight: normal;
}
/* cardType */
.card_inner {
display: flex;
justify-content: space-between
}
.card {
width: 25%;
padding-right: 25px;
}
.card__body { /*ํ
์คํธ๋ถ๋ถ*/
padding-top: 21px;
}
.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 {
float: right;
}
'SITE' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
์ด๋ฏธ์ง ์ ํ 03 (4) | 2022.08.19 |
---|---|
์ด๋ฏธ์ง ์ ํ 02 (3) | 2022.08.17 |
์ด๋ฏธ์ง ์ ํ 01 (3) | 2022.08.17 |
์นด๋์ ํ ์น์ฌ์ดํธ ๋ง๋ค๊ธฐ 03 (Card Type Web Site) (10) | 2022.08.10 |
์นด๋์ ํ ์น์ฌ์ดํธ ๋ง๋ค๊ธฐ 01 (Card Type Web Site) (9) | 2022.08.08 |
๊ณต์ง์ฌํญ