728x90
๋ฐ์ํ
ํค๋ ์ ํ 01
ํค๋ ์ ํ ๋ ์ด์์ ์ฌ์ดํธ์ ๋๋ค.
๋ ์ด์์ ์ค์
figma๋ก ๊ทธ๋ฆฌ๋์ ์ฌ์ดํธ์ ๋ ์ด์์์ ์ก์ต๋๋ค.
HTML
html ์์ค์ ๋๋ค.
<body>
<section id="headerType01" class="header__wrap nexon">
<div class="header__inner">
<div class="header__logo">
<a href="#">Web <em>site</em></a>
</div>
<div class="header__menu">
<ul>
<li><a href="#">ํค๋ ์์ญ</a></li>
<li><a href="#">์ฌ๋ผ์ด๋ ์์ญ</a></li>
<li><a href="#">๋ฐฐ๋ ์์ญ</a></li>
<li><a href="#">์ปจํ
์ธ ์์ญ</a></li>
<li><a href="#">ํธํฐ ์์ญ</a></li>
</ul>
</div>
<div class="header__member">
<a href="#">๋ก๊ทธ์ธ</a>
</div>
</div>
</section>
</body>
CSS
css ์์ค์ ๋๋ค. figma๋ก ์ค์ ํด๋์ ๋ ์ด์์์ด๋ zaplin์ ๋ณด๋ฉฐ ์ ์ ํ๊ฒ css๋ฅผ ์ค์ ํด์ค๋๋ค.
/* fonts */
@import url('https://webfontworld.github.io/NexonLv1Gothic/NexonLv1Gothic.css');
.nexon {
font-family: 'NexonLv1Gothic';
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;
}
em, i, address {
font-style: 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;
}
/* headerType01 */
.header__inner {
width: 100%;
height: 70px;
display: flex;
align-items: center;
justify-content: space-between;
padding: 0 20px;
box-sizing: border-box;
border-bottom: 1px solid #ccc;
}
.header__logo {
width: 20%;
font-size: 30px;
font-weight: 700;
text-transform: uppercase;
}
.header__logo em {
font-size: 18px;
font-weight: 400;
}
.header__menu {
width: 60%;
text-align: center;
}
.header__menu li {
display: inline;
}
.header__menu li a {
padding: 13px 30px;
margin: 0 5px;
transition: background-color 0.3s;
}
.header__menu li a:hover{
background-color: #f1f1f1;
border-radius: 5px;
}
.header__member {
width: 20%;
text-align: right;
}
.header__member a {
font-size: 16px;
border: 1px solid #000;
padding: 10px 30px;
border-radius: 50px;
transition: background-color 0.3s;
}
.header__member a:hover {
background-color: #000;
color: #fff;
}
728x90
๋ฐ์ํ
'Site ์ ์' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
06. ์ฌ๋ผ์ด๋ ์ ํ 1 (2) | 2022.09.06 |
---|---|
05. ์ด๋ฏธ์ง/ํ ์คํธ ์ ํ 1 (3) | 2022.09.01 |
03. ํ ์คํธ ์ ํ 3 (4) | 2022.09.01 |
03. ํ ์คํธ ์ ํ - 2 (2) | 2022.08.31 |
03. ํ ์คํธ ์ ํ 01 (4) | 2022.08.30 |
๋๊ธ