728x90
๋ฐ์ํ
์ฌ๋ผ์ด๋ ์ ํ
์น์ฌ์ดํธ ์ฌ๋ผ์ด๋ ์ ํ์ ๋๋ค. ์ด๋ฒ์๋ ์์ด์ฝ์ ์ด๋ฏธ์ง ์คํ๋ผ์ดํธ ๊ธฐ๋ฒ๊ณผ irํจ๊ณผ๋ฅผ ์ ์ฉํ์์ต๋๋ค.
HTML
html ์์ค์ ๋๋ค.
<body>
<section id="sliderType" class="slider__wrap">
<h2 class="blind">์ฌ๋ผ์ด๋ ์์ญ</h2>
<div class="slider__inner">
<div class="slider">
<div class="slider__img">
<div class="desc">
<span>DEVELOPER</span>
<h3>NEW PROJECT</h3>
<p>
๋๋ฌด ๋ฌด๋ฆฌํ์ง ๋ง์์! ์ด๋ฏธ ๋น์ ์ ์ํ๊ณ ์๊ณ !
์์ผ๋ก๋ ์ ํ ์ ์์ด์! <br>
</p>
<div class="btn">
<a href="#">์์ธํ๋ณด๊ธฐ</a>
<a href="#" class="black">์ฌ์ดํธ๋ณด๊ธฐ</a>
</div>
</div>
</div>
<div class="slider__arrow">
<a href="#" class="left"><span class="ir">์ด์ ์ด๋ฏธ์ง</span></a>
<a href="#" class="right"><span class="ir">๋ค์ ์ด๋ฏธ์ง</span></a>
</div>
<div class="slider__dot">
<a href="#" class="dot active"><span class="ir">1</span></a>
<a href="#" class="dot"><span class="ir">2</span></a>
<a href="#" class="dot"><span class="ir">3</span></a>
<a href="#" class="play"><span class="ir">ํ๋ ์ด</span></a>
<a href="#" class="stop"><span class="ir">์ ์ง</span></a>
</div>
</div>
</div>
</section>
</body>
CSS
css ์์ค์ ๋๋ค.
/* slider */
.slider__inner {
margin-top: 40px;
}
.slider {}
.slider__img {
background: url(../site1/assets/img/slider_bg01.jpg) no-repeat center / cover;
}
.slider__img .desc {
width: 1160px;
margin: 0 auto;
padding: 100px 20px;
}
.slider__img .desc span {
font-size: 16px;
background-color: #fff;
padding: 1px 14px 0 14px;
text-transform: uppercase;
margin-bottom: 10px;
display: inline-block;
border-radius: 30px;
}
.slider__img .desc h3 {
font-size: 110px;
font-weight: 300;
line-height: 1;
color: #fff;
text-transform: uppercase;
margin-bottom: 16px;
margin-left: -8px;
}
.slider__img .desc p {
font-size: 20px;
font-weight: 300;
color: #fff;
line-height: 1.45;
margin-bottom: 130px;
}
.slider__img .desc .btn {}
.slider__img .desc .btn a {
font-size: 16px;
background-color: #fff;
padding: 11px 50px;
display: inline-block;
}
.slider__img .desc .btn a.black {
background-color: #000;
color: #fff;
}
.slider {
position: relative;
}
.slider__arrow {}
.slider__arrow a {
position: absolute;
top: 50%;
width: 30px;
height: 56px;
background-image: url(../site1/assets/img/slider_icon.svg);
transform: translateY(-50%);
}
.slider__arrow a.left {
left: 20px;
}
.slider__arrow a.right {
right: 20px;
background-position: -50px 0;
}
.slider__dot {
position: absolute;
left: 50%;
transform: translateX(-50%);
bottom: 25px;
}
.slider__dot a {
display: inline-block;
width: 16px;
height: 16px;
background-image: url(../site1/assets/img/slider_icon.svg);
background-position: -20px -70px;
}
.slider__dot a.active {
background-position: 0 -70px;
}
.slider__dot a.play {
background-position: -40px -70px;
}
.slider__dot a.stop {
background-position: -60px -70px;
}
728x90
๋ฐ์ํ
'Site ์ ์' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
08. ํธํฐ ์ ํ 1 (2) | 2022.09.06 |
---|---|
07. ๋ฐฐ๋ ์ ํ 1 (2) | 2022.09.06 |
05. ์ด๋ฏธ์ง/ํ ์คํธ ์ ํ 1 (3) | 2022.09.01 |
04. ํค๋ ์ ํ 1 (1) | 2022.09.01 |
03. ํ ์คํธ ์ ํ 3 (4) | 2022.09.01 |
๋๊ธ