๋ฐ์ํ
์ฌ์ดํธ ๋ง๋ค๊ธฐ : ์ด๋ฏธ์ง/ํ ์คํธ ์ ํ STUDY 01
์ด๋ฒ ํฌ์คํ ์์๋ Figma์์ ๋ง๋ ์ด๋ฏธ์ง/ํ ์คํธ ์ ํ์ HTML๊ณผ CSS ์ฝ๋๋ก ์ฎ๊ธฐ๋ ์์ ์ ํด๋ณด๋๋ก ํ๊ฒ ์ต๋๋ค.
Figma
๋จผ์ ๋ง๋ค๊ณ ์ ํ๋ ์น ์ฌ์ดํธ์ ๋ชจ์์ Figma๋ผ๋ ํ๋ก๊ทธ๋จ์ ์ด์ฉํ์ฌ ์๋์ ๊ฐ์ด ๋ง๋ค์ด์ฃผ๋๋ก ํ์.
HTML ์์ค
์น ํ์ค ์ค์๋ฅผ ์ํด ์๋งจํฑ ํ๊ทธ๋ฅผ ์ ๊ทน ์ฌ์ฉํ๋๋ก ํ์.
<body>
<section id="imgTextType" class="imgText__wrap nexon section gray">
<h2 class="blind">์ ์ฉํ ์ฌ์ดํธ ์ดํด๋ณด๊ธฐ</h2>
<div class="imgText__inner container">
<div class="imgText__txt">
<span>์ด๋ฏธ์ง ํ
์คํธ ์ ํ 01</span>
<h3>์ ์ฉํ ์ฌ์ดํธ ์ดํด๋ณด๊ธฐ</h3>
<p>์น๋์์ด๋, ์น ํผ๋ธ๋ฆฌ์
, ํ๋ก ํธ์ค๋ ๊ฐ๋ฐ์๋ฅผ ์ํ ์ ์ฉํ ์ฌ์ดํธ์
๋๋ค.</p>
<ul>
<li><a href="/">ํํ ๋ฆฌ์ผ ์ฌ์ดํธ</a></li>
<li><a href="/">๋ ํผ๋ฐ์ค ์ฌ์ดํธ</a></li>
<li><a href="/">์นํฐํธ ์ฌ์ดํธ</a></li>
<li><a href="/">CSS ์ฌ์ดํธ</a></li>
<li><a href="/">WebGL ์ฌ์ดํธ</a></li>
<li><a href="/">Youtube ์ฌ์ดํธ</a></li>
</ul>
</div>
<div class="imgText__img img1">
<a href="/">๋ ํผ๋ฐ์ค ์ฌ์ดํธ</a>
</div>
<div class="imgText__img img2">
<a href="/" class="blue">ํํ ๋ฆฌ์ผ ์ฌ์ดํธ</a>
</div>
</div>
</section>
</body>
CSS ์์ค
reset์์ margin๊ฐ๊ณผ padding๊ฐ์ 0์ผ๋ก ์ด๊ธฐํ ์ํค๋ ์์ ๋ถํฐ ์์ํ๋ค.
<style>
/* fonts */
@import url('https://webfontworld.github.io/NexonLv1Gothic/NexonLv1Gothic.css');
.nexon {
font-family: 'NexonLv1Gothic';
font-weight: 400;
}
/* reset */
* {
margin: 0;
padding: 0;
}
h1, h2, h3, h4, h5, h6 {
font-weight: normal;
}
a {
text-decoration: none;
color: #000;
}
img {
width: 100%; /* ์ด๋ฏธ์ง ํ์ด๋์จ ๊ฑฐ ์ง์ด๋ฃ๊ธฐ */
}
li {
list-style: none;
}
/* ๋ธ๋ผ์ธ๋ ํจ๊ณผ */
.blind {
position: absolute;
clip: rect(0 0 0 0);
width: 1px;
height: 1px;
margin: -1px;
overflow: hidden;
}
/* common */
.container {
width: 1160px;
padding: 0 20px;
margin: 0 auto;
min-width: 1160px; /* ๋ฐ์ํ ํ ๋ ์์ ์ค ๊ฒ */
}
.section {
padding: 120px 0;
}
.section > h1 {
font-size: 50px;
line-height: 1;
text-align: center;
margin-bottom: 20px;
}
.section > p {
font-size: 22px;
font-weight: 300;
text-align: center;
margin-bottom: 70px;
color: #666;
}
.gray {
background-color: #f5f5f5;
}
/* imgTextType */
.imgText__inner {
display: flex;
justify-content: space-between;
}
.imgText__inner > div {
width: 32%;
height: 500px;
}
.imgText__txt {}
.imgText__txt span {
font-size: 16px;
color: #666;
text-decoration: underline;
text-underline-position: under;
margin-bottom: 20px;
display: block;
}
.imgText__txt h3 {
font-size: 50px;
font-weight: 300;
word-break: keep-all;
line-height: 1.4;
margin-bottom: 20px;
}
.imgText__txt p {
font-size: 18px;
font-weight: 300;
line-height: 1.5;
color: #666;
margin-bottom: 10px;
}
.imgText__txt ul {
font-size: 18px;
font-weight: 300;
line-height: 1.6;
}
.imgText__txt ul li {
position: relative;
padding-left: 20px;
}
.imgText__txt ul li a {
color: #666;
}
.imgText__txt ul li::before {
content: '';
width: 5px;
height: 5px;
border-radius: 50%;
position: absolute;
left: 5px;
top: 9px;
background: #666;
}
.imgText__img {
border-radius: 10px;
position: relative;
}
.imgText__img a {
position: absolute;
left: 30px;
bottom: 30px;
background-color: #7c2b39;
color: #fff;
font-size: 18px;
padding: 10px 30px;
border-radius: 30px;
display: inline-block;
}
.imgText__img a.blue {
background-color: #2b387c;
}
.imgText__img.img1 {
background: url(img/imgText_bg01.jpg) no-repeat center / cover;
}
.imgText__img.img2 {
background: url(img/imgText_bg02.jpg) no-repeat center / cover;
}
</style>
์ต์ข ๊ฒฐ๊ณผ
๋ฐ์ํ
'Site' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
[์ฌ์ดํธ ๋ง๋ค๊ธฐ] ๋ฐฐ๋ ์ ํ 01 (6) | 2022.09.05 |
---|---|
[์ฌ์ดํธ ๋ง๋ค๊ธฐ] ์ฌ๋ผ์ด๋ ์ ํ 01 (7) | 2022.09.05 |
[์ฌ์ดํธ ๋ง๋ค๊ธฐ] ํค๋ ์ ํ 01 (4) | 2022.09.01 |
[์ฌ์ดํธ ๋ง๋ค๊ธฐ] ํ ์คํธ ์ ํ 03 (6) | 2022.09.01 |
[์ฌ์ดํธ ๋ง๋ค๊ธฐ] ํ ์คํธ ์ ํ 02 (3) | 2022.09.01 |
๋๊ธ