๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ
Site ์ œ์ž‘

06. ์Šฌ๋ผ์ด๋“œ ์œ ํ˜• 1

by Youcodein 2022. 9. 6.
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

๋Œ“๊ธ€