๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ
WebSite

์›น์‚ฌ์ดํŠธ ๋งŒ๋“ค๊ธฐ : ์ „์ฒด ์‚ฌ์ดํŠธ ์œ ํ˜•01

by ์ฝ”ํŒŒ์นด 2022. 9. 14.
728x90

๋ ˆ์ด์•„์›ƒ : ์ „์ฒด ์‚ฌ์ดํŠธ ์œ ํ˜•01

์ง€๊ธˆ๊นŒ์ง€ ์นด๋“œ ์œ ํ˜•, ํ…์ŠคํŠธ ์œ ํ˜•, ์ด๋ฏธ์ง€/ํ…์ŠคํŠธ ์œ ํ˜• ๋“ฑ ๋‹ค์–‘ํ•œ ์œ ํ˜•์˜ ๋ ˆ์ด์•„์›ƒ์„ ์ž‘์—…ํ•ด ๋ณด์•˜์Šต๋‹ˆ๋‹ค. ์ด๋ฒˆ์—๋Š” ์ž‘์—…ํ–ˆ๋˜ ์œ ํ˜•๋“ค์„ ๋ชจ๋‘ ํ•œ ๊ณณ์— ๋ชจ์•„ ์ „์ฒด์ ์ธ ์‚ฌ์ดํŠธ ํ•œ ํŽ˜์ด์ง€๋ฅผ ๋งŒ๋“ค๊ณ , ๋ฏธ๋””์–ด ์ฟผ๋ฆฌ๊นŒ์ง€ ์ž‘์—…ํ•ด ๋ณด๋„๋ก ํ•˜๊ฒ ์Šต๋‹ˆ๋‹ค.


HTML ์†Œ์Šค

HTML ์†Œ์Šค๋Š” ์ง€๊ธˆ๊นŒ์ง€ ์ž‘์—…ํ•œ ๋ชจ๋“  ๊ฒƒ๋“ค์„ ํ•œ ๊ณณ์— ๋ชจ์€ ๊ฒƒ๊ณผ ๊ฐ™์Šต๋‹ˆ๋‹ค. ํ—ค๋” ๋ฉ”๋‰ด๋Š” ์›น์—์„œ๋Š” ์ผ๋ฐ˜์ ์ธ ๋ฉ”๋‰ด ํ˜•ํƒœ๋กœ, ๋ชจ๋ฐ”์ผ์—์„œ๋Š” ํ–„๋ฒ„๊ฑฐ ๋ฉ”๋‰ด๋กœ ์ž‘์—…ํ•ด ์ฃผ์—ˆ์Šต๋‹ˆ๋‹ค. ๊ฐ ๋ฉ”๋‰ด๋ฅผ ํด๋ฆญํ–ˆ์„ ๋•Œ, ๊ฐ๊ฐ์˜ ์œ„์น˜๋กœ ์ด๋™ํ•  ์ˆ˜ ์žˆ๋„๋ก ๊ฐ ์˜์—ญ์€ section ํƒœ๊ทธ๋กœ ์ž‘์—…ํ•ด ์ฃผ์—ˆ์Šต๋‹ˆ๋‹ค. ์Šฌ๋ผ์ด๋“œ ์˜์—ญ์„ ๋‹ค์‹œ ์ž‘์—…ํ•ด์ค€ ์ด์œ ๋Š” swiper๋ฅผ ์‚ฌ์šฉํ•˜๊ธฐ ์œ„ํ•จ์ž…๋‹ˆ๋‹ค. ๋“œ๋ž˜๊ทธ๋ฅผ ํ†ตํ•œ ์ด๋ฏธ์ง€ ์Šฌ๋ผ์ด๋“œ ํšจ๊ณผ๋ฅผ ์‚ฌ์šฉํ•˜๊ธฐ ์œ„ํ•ด swiper๋ฅผ ์ด์šฉํ–ˆ๊ณ , swiper์˜ style์— ๋งž์ถ”์–ด ํด๋ž˜์Šค๋ฅผ ์ƒˆ๋กญ๊ฒŒ ๋ถ€์—ฌํ•ด ์ฃผ์—ˆ์Šต๋‹ˆ๋‹ค.

HTML
<div id="skip">
    <a href="#">ํ—ค๋” ์˜์—ญ ๋ฐ”๋กœ๊ฐ€๊ธฐ</a>
    <a href="#">์Šฌ๋ผ์ด๋“œ ์˜์—ญ ๋ฐ”๋กœ๊ฐ€๊ธฐ</a>
    <a href="#">์ด๋ฏธ์ง€ ์˜์—ญ ๋ฐ”๋กœ๊ฐ€๊ธฐ</a>
    <a href="#">์ด๋ฏธ์ง€/ํ…์ŠคํŠธ ์˜์—ญ ๋ฐ”๋กœ๊ฐ€๊ธฐ</a>
    <a href="#">์นด๋“œ ์˜์—ญ ๋ฐ”๋กœ๊ฐ€๊ธฐ</a>
    <a href="#">๋ฐฐ๋„ˆ ์˜์—ญ ๋ฐ”๋กœ๊ฐ€๊ธฐ</a>
    <a href="#">ํ…์ŠคํŠธ ์˜์—ญ ๋ฐ”๋กœ๊ฐ€๊ธฐ</a>
    <a href="#">ํ‘ธํ„ฐ ์˜์—ญ ๋ฐ”๋กœ๊ฐ€๊ธฐ</a>
</div>
<!-- //skip (for ์›นํ‘œ์ค€ ์ค€์ˆ˜) -->

<!-- header -->
<header id="headerType" class="header__wrap nexon">
    <div class="header__inner">
        <div class="header__logo">
            <a href="#">CUTE</a>
        </div>
        <nav class="header__menu">
            <ul>
                <li class="active"><a href="#sliderType">MAIN</a></li>
                <li><a href="#imageType">DOG</a></li>
                <li><a href="#imgTextType">CAT</a></li>
                <li><a href="#cardType">MORE</a></li>
                <li><a href="#bannerType">BANNER</a></li>
                <li><a href="#textType">ETC</a></li>
                <li><a href="#footerType">FOOTER</a></li>
            </ul>
        </nav>
        <div class="header__member">
            <a href="#">๋กœ๊ทธ์ธ</a>
        </div>
    </div>
</header>
<!-- //header -->

<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>ANIMAL</span>
                        <h3>CUTE ANIMAL</h3>
                        <p>
                            ์ˆ™์ œ์— ์ง€์นœ ์ด๋“ค์„ ์œ„ํ•œ ํž๋ง ๊ณต๊ฐ„์ž…๋‹ˆ๋‹ค.<br />
                            ๊ท€์—ฌ์šด ๋™๋ฌผ๋“ค์„ ๋ณด๋ฉฐ ์ž ์‹œ๋‚˜๋งˆ ํ˜„์‹ค๋„ํ”ผ๋ฅผ ํ•ฉ์‹œ๋‹ค.
                        </p>
                        <div class="btn">
                            <a href="#">์ž์„ธํžˆ ๋ณด๊ธฐ</a>
                            <a href="#" class="black">์‚ฌ์ดํŠธ ๋ณด๊ธฐ</a>
                        </div>
                    </div>
                </div>
                <div class="slider__arrow"> -->
        <!-- blind๋Š” ๋‹จ์ˆœ ๊ธ€์ž ์ˆจ๊น€, ir์€ ์ด๋ฏธ์ง€์˜ altํšจ๊ณผ ๋Œ€์ฒด -->
        <!-- <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 class="swiper mySwiper">
            <div class="swiper-wrapper">
                <div class="swiper-slide">
                    <div class="desc">
                        <span>ANIMAL</span>
                        <h3>CUTE ANIMAL</h3>
                        <p>
                            ์ˆ™์ œ์— ์ง€์นœ ์ด๋“ค์„ ์œ„ํ•œ ํž๋ง ๊ณต๊ฐ„์ž…๋‹ˆ๋‹ค.<br />
                            ๊ท€์—ฌ์šด ๋™๋ฌผ๋“ค์„ ๋ณด๋ฉฐ ์ž ์‹œ๋‚˜๋งˆ ํ˜„์‹ค๋„ํ”ผ๋ฅผ ํ•ฉ์‹œ๋‹ค.
                        </p>
                        <div class="btn">
                            <a href="#">์ž์„ธํžˆ ๋ณด๊ธฐ</a>
                            <a href="#" class="black">์‚ฌ์ดํŠธ ๋ณด๊ธฐ</a>
                        </div>
                    </div>
                </div>
                <div class="swiper-slide">
                    <div class="desc">
                        <span>ANIMAL</span>
                        <h3>CUTE ANIMAL</h3>
                        <p>
                            ์ˆ™์ œ์— ์ง€์นœ ์ด๋“ค์„ ์œ„ํ•œ ํž๋ง ๊ณต๊ฐ„์ž…๋‹ˆ๋‹ค.<br />
                            ๊ท€์—ฌ์šด ๋™๋ฌผ๋“ค์„ ๋ณด๋ฉฐ ์ž ์‹œ๋‚˜๋งˆ ํ˜„์‹ค๋„ํ”ผ๋ฅผ ํ•ฉ์‹œ๋‹ค.
                        </p>
                        <div class="btn">
                            <a href="#">์ž์„ธํžˆ ๋ณด๊ธฐ</a>
                            <a href="#" class="black">์‚ฌ์ดํŠธ ๋ณด๊ธฐ</a>
                        </div>
                    </div>
                </div>
                <div class="swiper-slide">
                    <div class="desc">
                        <span>ANIMAL</span>
                        <h3>CUTE ANIMAL</h3>
                        <p>
                            ์ˆ™์ œ์— ์ง€์นœ ์ด๋“ค์„ ์œ„ํ•œ ํž๋ง ๊ณต๊ฐ„์ž…๋‹ˆ๋‹ค.<br />
                            ๊ท€์—ฌ์šด ๋™๋ฌผ๋“ค์„ ๋ณด๋ฉฐ ์ž ์‹œ๋‚˜๋งˆ ํ˜„์‹ค๋„ํ”ผ๋ฅผ ํ•ฉ์‹œ๋‹ค.
                        </p>
                        <div class="btn">
                            <a href="#">์ž์„ธํžˆ ๋ณด๊ธฐ</a>
                            <a href="#" class="black">์‚ฌ์ดํŠธ ๋ณด๊ธฐ</a>
                        </div>
                    </div>
                </div>
            </div>
            <div class="swiper-pagination"></div>
            <div class="swiper-button-next"></div>
            <div class="swiper-button-prev"></div>
        </div>
    </div>
</section>
<!-- //sliderType -->

<section id="imageType" class="card__wrap nexon section">
    <h2>๊ท€์—ฌ์šด ๋Œ•๋Œ•์ด</h2>
    <p>๋ญ๋‹ˆ๋ญ๋‹ˆํ•ด๋„ ๊ท€์—ฌ์šด ๋™๋ฌผ ํ•˜๋ฉด ๊ฐ•์•„์ง€์ฃ . ์šฐ์„  ๊ฐ•์•„์ง€๋“ค์„ ๋ณด์„ธ์š”.</p>
    <div class="image__inner container">
        <div class="image img1">
            <h3 class="image__title">Shih Tzu</h3>
            <p class="image__desc">
                ํ‘œ์ •์ด ์•ฝ๊ฐ„ ๋ฉ์ฒญํ•ด ๋ณด์ด๋Š” ๊ฒŒ ์ •๋ง ๊ท€์—ฝ์Šต๋‹ˆ๋‹ค.<br />
                ์‹ค์ œ๋กœ๋„ ๋ฉ์ฒญํ•  ๊ฒƒ ๊ฐ™์Šต๋‹ˆ๋‹ค.
            </p>
            <a class="image__btn" href="#" title="์ž์„ธํžˆ ๋ณด๊ธฐ">
                <div class="more">์ž์„ธํžˆ ๋ณด๊ธฐ</div>
            </a>
        </div>
        <div class="image img2">
            <h3 class="image__title">French Bulldog</h3>
            <p class="image__desc">
                ๋ณผ์ˆ˜๋ก ๋งค๋ ฅ์žˆ๋Š” ๊ฒฌ์ข…์ž…๋‹ˆ๋‹ค.<br />
                ์นจ์„ ์•„์ฃผ ์ค„์ค„ ํ˜๋ฆฐ๋‹ค๊ณ  ํ•ฉ๋‹ˆ๋‹ค.
            </p>
            <a class="image__btn blue" href="#" title="์ž์„ธํžˆ ๋ณด๊ธฐ">
                <div class="more">์ž์„ธํžˆ ๋ณด๊ธฐ</div>
            </a>
        </div>
    </div>
</section>
<!-- //imageType -->

<section id="imgTextType" class="imgText__wrap nexon section">
    <h2 class="blind">๊ณ ์–‘์ด๊ฐ€ ๋น ์ง€๋ฉด ์„ญํ•˜๋‹ค</h2>
    <div class="imgText__inner container">
        <div class="imgText__txt">
            <span>๊ณ ์–‘์ด ์˜์—ญ</span>
            <h3>๊ณ ์–‘์ด๊ฐ€ ๋น ์ง€๋ฉด ์„ญํ•˜๋‹ค</h3>
            <p>๊ณ ์–‘์ด๊ฐ€ ์„ฑ๊ฒฉ์€ ๋‚˜์˜๋‹ค์ง€๋งŒ, <br />๊ฐ•์•„์ง€๋“ค๋„ ๋‹ค ์ข‹์€ ๋…€์„๋“ค๋งŒ์€ ์•„๋‹ˆ์ž–์•„์š”.</p>
            <ul>
                <li><a href="#">Persian</a></li>
                <li><a href="#">Siamese</a></li>
                <li><a href="#">Sphynx</a></li>
                <li><a href="#">ragdoll</a></li>
                <li><a href="#">Scottish Fold</a></li>
                <li><a href="#">Turkish angora</a></li>
            </ul>
        </div>
        <div class="imgText__img img1">
            <a href="#">์˜ท์ž๋ฝ ๋ฌผ์–ด๋œฏ๊ธฐ๊ธฐ</a>
        </div>
        <div class="imgText__img img2">
            <a class="blue" href="#">๋ƒฅ๋ƒฅํŽ€์น˜ ํ›„๋“œ๋ ค ๋งž๊ธฐ</a>
        </div>
    </div>
</section>
<!-- //imgTextType -->

<section id="cardType" class="card__wrap nexon section">
    <h2>More Cute Animal</h2>
    <p>๋” ๋‹ค์–‘ํ•œ ๋™๋ฌผ์„ ์›ํ•˜์‹œ๋‚˜์š”? ์–ด๋–ค ๋™๋ฌผ์„ ์ข‹์•„ํ•˜์„ธ์š”?</p>
    <div class="card__inner container">
        <article class="card">
            <figure class="card__header">
                <img src="assets/img/card_bg01.jpg" alt="๋Œ๊ณ ๋ž˜" />
            </figure>
            <div class="card__body">
                <h3 class="tit">Dolphin</h3>
                <p class="desc">๋Œ๊ณ ๋ž˜๊ฐ€ ๊ทธ๋ ‡๊ฒŒ ์˜์•…ํ•œ ๋™๋ฌผ์ด๋ผ๊ณ  ํ•˜์ฃ . ๊ทผ๋ฐ ์‚ฌ์‹ค ๊ทธ ์ปค๋‹ค๋ž€ ๋ฐ”๋‹ท์†์— ๋ฉ์ฒญํ•œ ๋ฌผ๊ณ ๊ธฐ๋“ค ์‚ฌ์ด์—์„œ
                ์ €๋งŒ ๋˜‘๋˜‘ํ•œ ๋Œ๊ณ ๋ž˜๋ผ๋ฉด ์ €๋ผ๋„ ๋‹ค๋ฅธ ๋ฌผ๊ณ ๊ธฐ๋“ค์„ ์žฅ๋‚œ๊ฐ์œผ๋กœ ์ƒ๊ฐํ•  ๊ฒƒ ๊ฐ™์Šต๋‹ˆ๋‹ค. ์ง€๊ฐ€ ๋ฐ”๋‹ค์˜ ์™•์ด์•ผ ๋ญ์•ผ...
                ์ข‹์€ ๋™๋ฌผ์ธ์ง€ ๋‚˜์œ ๋™๋ฌผ์ธ์ง€ ํ—ท๊ฐˆ๋ฆฌ๋„ค์š”.</p>
                <a class="brn" href="#"> ๋”๋ณด๊ธฐ </a>
            </div>
        </article>
        <article class="card">
            <figure class="card__header">
                <img src="assets/img/card_bg02.jpg" alt="๋ผ์ฟค" />
            </figure>
            <div class="card__body">
                <h3 class="tit">Raccoon</h3>
                <p class="desc">๋ผ์ฟค์ธ์ง€ ๋„ˆ๊ตฌ๋ฆฌ์ธ์ง€ ๊ตฌ๋ณ„ ๋ฐฉ๋ฒ•์€ ์žˆ๋‹ค์ง€๋งŒ ๊ตณ์ด ๋”ฐ์ง€๊ณ  ์‹ถ์ง€๋Š” ์•Š๋„ค์š”. ๋ผ์ฟค์˜ ๋งค๋ ฅํฌ์ธํŠธ๋Š” ์—ญ์‹œ ๋ฐœ๋ฐ”๋‹ฅ์ด์ฃ .
                ๋ผ์ฟค ์นดํŽ˜์—์„œ ์•…์ˆ˜ํ•˜๋‹ค๊ฐ€ ํŒ”์ฐŒ๋ฅผ ๋นผ์•—๊ฒผ๋˜ ์•ˆ ์ข‹์€ ๊ธฐ์–ต์ด ๋– ์˜ค๋ฅด๋„ค์š”. ์ €๋Š” ํŒ”์ฐŒ๋ฅผ ๋ผ๋ฉด ์•ˆ ๋˜๋‚˜ ๋ด…๋‹ˆ๋‹ค.</p>
                <a class="brn" href="#"> ๋”๋ณด๊ธฐ </a>
            </div>
        </article>
        <article class="card">
            <figure class="card__header">
                <img src="assets/img/card_bg03.jpg" alt="๋ผ์ง€" />
            </figure>
            <div class="card__body">
                <h3 class="tit">Pig</h3>
                <p class="desc">์•„๊ธฐ ๋ผ์ง€๋Š” ์ฐธ ๊ท€์—ฝ๋„ค์š”. ์ œ๊ฐ€ ์ตœ๊ทผ์— ํ˜์˜ค์Šค๋Ÿฌ์šด ๋ผ์ง€ ๋จธ๋ฆฌ ์‚ฌ์ง„์„ ๋ณด๊ณ , ํ™˜์žฅํ•˜๋˜ ์ˆœ๋Œ“๊ตญ์„ ๋ช‡ ๋‹ฌ์งธ ๋Š๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค.
                ์ œ๊ฐ€ ๋น„์œ„๊ฐ€ ๋‚˜์œ ํŽธ์€ ์•„๋‹Œ๋ฐ ์ง„์งœ... ๊ถ๊ธˆํ•˜์‹œ๋ฉด, ์•„๋ž˜ ๋”๋ณด๊ธฐ๋ฅผ ํด๋ฆญํ•˜์‹œ๋ฉด ์•„๋ฌด๊ฒƒ๋„ ์•ˆ ๋‚˜์˜ต๋‹ˆ๋‹ค.</p>
                <a class="brn" href="#"> ๋”๋ณด๊ธฐ </a>
            </div>
        </article>
    </div>
</section>
<!-- //cardType -->

<section id="bannerType" class="banner__wrap nexon">
    <h2 class="blind">๋ฐฐ๋„ˆ ์˜์—ญ</h2>
    <div class="banner__inner">
        <h3 class="title">์ž˜ ๋ณด์…จ๋‚˜์š”?</h3>
        <p class="desc">
            ์ด์ œ ํ˜„์‹ค์„ ์ง์‹œํ•˜์‹œ๊ณ , ์•„๋ž˜์˜ ์ฃผ์†Œ๋ฅผ ๋ˆŒ๋Ÿฌ ๊นƒํ—ˆ๋ธŒ๋กœ ์ด๋™ํ•˜์„ธ์š”.
            <a href="#" title="๊นƒํ—ˆ๋ธŒ ํŽ˜์ด์ง€๋กœ ์ด๋™">github.com</a>
        </p>
        <span class="small">Get out and do homework!</span>
    </div>
</section>
<!-- //bannerType -->

<section id="textType" class="text__Wrap nexon section">
    <span>๊ธ€๋กœ๋Š” ํ‘œํ˜„ํ•˜๊ธฐ ํž˜๋“  ๊ท€์—ฌ์›€</span>
    <h2>๋„ค ๋ฐœ ๋‹ฌ๋ฆฐ ๋™๋ฌผ๋“ค์€ ๋‹ค ๊ท€์—ฝ๋‹ค</h2>
    <div class="text__inner container">
        <div class="text t1">
            <h3 class="text__title">Sloth</h3>
            <p class="text__desc">๋‚จ์•„๋ฉ”๋ฆฌ์นด, ์ค‘์•™ ์•„๋ฉ”๋ฆฌ์นด์˜ ์—ด๋Œ€๋ฆผ์— ์„œ์‹ํ•˜๋Š” ๋™๋ฌผ์ž…๋‹ˆ๋‹ค. ์ƒ์• ์˜ ๋Œ€๋ถ€๋ถ„์„ ๋‚˜๋ฌด์— ๋งค๋‹ฌ๋ ค ๋ณด๋‚ธ๋‹ค๊ณ  ํ•ฉ๋‹ˆ๋‹ค.
            ์ฃผ*ํ”ผ์•„๊ฐ€ ์ƒ๊ฐ๋‚ฉ๋‹ˆ๋‹ค. ๋ชป์ƒ๊ธด ๋…€์„...</p>
            <a class="text__btn" href="#">๋”๋ณด๊ธฐ</a>
        </div>
        <div class="text t2">
            <h3 class="text__title">Chameleon</h3>
            <p class="text__desc">๋ณ€ํ™”ํ•˜๋Š” ๋ชธ์˜ ์ƒ‰์ด ํŠน์ง•์ธ ๋™๋ฌผ์ž…๋‹ˆ๋‹ค. ์„ธ๊ณ„ ๊ฐœ์ฒด ์ˆ˜์˜ ์ ˆ๋ฐ˜์ด ๋งˆ๋‹ค๊ฐ€์Šค์นด๋ฅด ์„ฌ์— ์‚ฐ๋‹ค๊ณ  ํ•ฉ๋‹ˆ๋‹ค.
            ์„ธ๊ณ„ ๊ฐœ์ฒด ์ˆ˜๋Š” ์–ด๋–ป๊ฒŒ ์ธก์ •ํ–ˆ์„๊นŒ์š”? ๊ดœํžˆ ์ด๋Ÿฐ ๊ฒŒ ๊ถ๊ธˆํ•ฉ๋‹ˆ๋‹ค.</p>
            <a class="text__btn" href="#">๋”๋ณด๊ธฐ</a>
        </div>
        <div class="text t3">
            <h3 class="text__title">Meerkat</h3>
            <p class="text__desc">๋‚จ์•„ํ”„๋ฆฌ์นด ๊ณตํ™”๊ตญ๊ณผ ์•™๊ณจ๋ผ ์‚ฌ๋ง‰์— ์„œ์‹ํ•ฉ๋‹ˆ๋‹ค. ๋‘ ์†์„ ๋ชจ์œผ๊ณ  ํƒœ์–‘์—ด์„ ํก์ˆ˜ํ•œ๋‹ค๊ณ  ํ•ฉ๋‹ˆ๋‹ค.
            ๋ฏธ์–ด์บฃ ์šธ์Œ์†Œ๋ฆฌ ๋“ค์–ด๋ณด์…จ๋‚˜์š”? ์•ฝ๊ฐ„ ์ถฉ๊ฒฉ์ ์ž…๋‹ˆ๋‹ค.</p>
            <a class="text__btn" href="#">๋”๋ณด๊ธฐ</a>
        </div>
        <div class="text t4">
            <h3 class="text__title">Koala</h3>
            <p class="text__desc">ํ˜ธ์ฃผ์— ์„œ์‹ํ•˜๋Š” ์œ ๋Œ€๋ฅ˜์ž…๋‹ˆ๋‹ค. ๋ฌด๋ฆฌ๋ฅผ ๋งŒ๋“ค์ง€ ์•Š๊ณ  ํ˜ผ์ž ์ƒํ™œํ•œ๋‹ค๊ณ  ํ•ฉ๋‹ˆ๋‹ค. ๊ทธ๋ƒฅ ์นœ๊ตฌ๊ฐ€ ์—†๋Š” ๊ฑด ์•„๋‹๊นŒ์š”?
            ์ด๊ฑด ์–ด์ฉŒ๋ฉด... ์ œ ์ด์•ผ๊ธฐ์ผ์ง€๋„ ๋ชจ๋ฆ…๋‹ˆ๋‹ค.</p>
            <a class="text__btn" href="#">๋”๋ณด๊ธฐ</a>
        </div>
        <div class="text t5">
            <h3 class="text__title">Penguin</h3>
            <p class="text__desc">ํŽญ๊ท„์€ ํŽญ๊ท„๋ชฉ ํŽญ๊ท„๊ณผ์— ์†ํ•˜๋Š” ๋‚ ์ง€ ๋ชปํ•˜๋Š” ์ƒˆ์˜ ์ด์นญ์ž…๋‹ˆ๋‹ค. ๋ฌด๋ฆฌ์—์„œ ์ƒํ™œํ•˜๋Š” ์‚ฌํšŒ์„ฑ์žˆ๋Š” ๋™๋ฌผ๋กœ ์œ ๋ช…ํ•ฉ๋‹ˆ๋‹ค.
            ์ฝ”์•Œ๋ผ์™€๋Š” ์•„์ฃผ ์ •๋ฐ˜๋Œ€๋„ค์š”. ์ธ์‹ธ ๋™๋ฌผ.</p>
            <a class="text__btn" href="#">๋”๋ณด๊ธฐ</a>
        </div>
        <div class="text t6">
            <h3 class="text__title">Alpaca</h3>
            <p class="text__desc">์•ŒํŒŒ์นด๋Š” ๋ณธ๋ž˜ ์ง‘๋‹จ ์ƒํ™œ์„ ํ•˜๋Š” ๋™๋ฌผ์ด๋ผ ํ‚ค์šธ ๋•Œ๋Š” ๋ฐ˜๋“œ์‹œ ๋‘๋งˆ๋ฆฌ ์ง์„ ๋งŒ๋“ค์–ด์„œ ํ‚ค์›Œ์•ผ ํ•œ๋‹ค๊ณ  ํ•ฉ๋‹ˆ๋‹ค.
            ์–˜๊ฐ€ ๊ทธ ์นจ ๋ฑ‰๋Š” ์•  ๋งž์ฃ ? ๋”๋Ÿฝ๊ฒŒ ์นจ์„...</p>
            <a class="text__btn" href="#">๋”๋ณด๊ธฐ</a>
        </div>
    </div>
</section>
<!-- //textType -->

<!-- footer -->
<section id="footerType" class="footer__wrap nexon section">
    <h2 class="blind">ํ‘ธํ„ฐ ์˜์—ญ</h2>
    <div class="footer__inner container">
        <div class="footer__menu">
            <div>
                <h3>CUTE</h3>
                <ul>
                    <li><a href="#">MAIN</a></li>
                    <li><a href="#">DOG</a></li>
                    <li><a href="#">CAT</a></li>
                    <li><a href="#">BANNER</a></li>
                    <li><a href="#">ETC</a></li>
                </ul>
            </div>
            <div>
                <h3>DOG</h3>
                <ul>
                    <li><a href="#">Shih Tzu</a></li>
                    <li><a href="#">French Bulldog</a></li>
                </ul>
            </div>
            <div>
                <h3>CAT</h3>
                <ul>
                    <li><a href="#">Bite</a></li>
                    <li><a href="#">Punch</a></li>
                </ul>
            </div>
            <div>
                <h3>MORE</h3>
                <ul>
                    <li><a href="#">Dolphin</a></li>
                    <li><a href="#">Raccoon</a></li>
                    <li><a href="#">Pig</a></li>
                </ul>
            </div>
            <div>
                <h3>ETC</h3>
                <ul>
                    <li><a href="#">Sloth</a></li>
                    <li><a href="#">Chameleon</a></li>
                    <li><a href="#">Meerkat</a></li>
                    <li><a href="#">Koala</a></li>
                    <li><a href="#">Penguin</a></li>
                    <li><a href="#">Alpaca</a></li>
                </ul>
            </div>
        </div>
        <div class="footer__right">
            2022 mo0647. Portfolio is Power<br />
            All rights reserved.
        </div>
    </div>
</section>
<!-- //footer -->

CSS ์†Œ์Šค

CSS๋Š” ๊ณตํ†ต์  ์Šคํƒ€์ผ ์‹œํŠธ์ธ fonts, reset, common์„ ๋จผ์ € ์ž‘์—…ํ•ด ์ฃผ๊ณ , ๊ฐ๊ฐ์˜ ์„น์…˜๋ณ„๋กœ ์Šคํƒ€์ผ ์‹œํŠธ๋ฅผ ๊ฐœ๋ณ„์ ์œผ๋กœ ์ž‘์—…ํ•ด ์ฃผ์—ˆ์Šต๋‹ˆ๋‹ค.

header
.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;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 10000;
    background: #fff;
}
.header__logo {
    width: 15%;
    font-size: 30px;
    font-weight: 700;
    text-transform: uppercase;
}
.header__logo em {
    font-size: 18px;
    font-weight: 400;
}
.header__menu {
    width: 70%;
    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,
.header__menu li.active a {
    border-bottom: 5px solid black;
}
.header__member {
    width: 15%;
    text-align: right;
}
.header__member a {
    font-size: 16px;
    border: 1px solid #000;
    padding: 10px 30px;
    border-radius: 50px;
    transition: all 0.3s;
}
.header__member a:hover {
    background-color: #000;
    color: #fff;
}
.header__ham {
    position: absolute;
    right: 10px;
    top: 10px;
    z-index: 1000;
    width: 50px;
    height: 50px;
    display: none;
    cursor: pointer;
}
.header__ham span {
    display: block;
    background: #000;
    width: 30px;
    height: 2px;
    border-radius: 3px;
    margin-left: 10px;
    margin-top: 5px;
    transition: 0.25s margin 0.25s, 0.25s transform;
}
.header__ham span:nth-child(1) {
    margin-top: 18px;
}
.header__ham.active span {
    transition: 0.25s margin, 0.25s transform 0.25s;
}
.header__ham.active span:nth-child(1) {
    margin-top: 25px;
    margin-bottom: -7px;
    transform: rotate(45deg);
}
.header__ham.active span:nth-child(2) {
    transform: rotate(45deg);
}
.header__ham.active span:nth-child(3) {
    margin-top: -2px;
    transform: rotate(135deg);
}

/* media */
@media (max-width: 1300px) {
    .header__ham {
        display: block;
    }
    .header__menu {
        position: fixed;
        right: -100%;
        top: 70px;
        width: auto;
        padding: 10px;
        text-align: center;
        background-color: #fff;
        transition: right 0.4s ease-in;
    }
    .header__menu.overlay {
        right: 0;
    }
    .header__menu li {
        display: block;
        padding: 10px;
        margin: 10px;
    }
    .header__menu li a {
        font-size: 22px;
        opacity: 0;
    }
    .header__menu.overlay li a {
        opacity: 1;
    }
    .header__member {
        margin-right: 50px;
        width: 50%;
    }
    .header__logo {
        width: 50%;
    }
    .header__menu li a:hover,
    .header__menu li.active a {
        border-bottom: 2px solid black;
    }
}
@media (max-width: 600px) {
    .header__menu li a {
        font-size: 3vw;
        opacity: 0;
    }
}
Slider
.swiper-slide {
    background: url(../img/slider01_bg01.jpg) no-repeat center / cover;
}
.swiper-slide .desc {
    width: 1160px;
    margin: 0 auto;
    padding: 100px 0px;
}
.swiper-slide .desc span {
    font-size: 16px;
    background-color: #000;
    color: white;
    padding: 1px 14px 0 14px;
    border-radius: 30px;
    text-transform: uppercase;
    margin-bottom: 10px;
    display: inline-block;
}
.swiper-slide .desc h3 {
    font-size: 110px;
    font-weight: 500;
    line-height: 1;
    color: white;
    text-transform: uppercase;
    margin-bottom: 16px;
    margin-left: -8px;
}
.swiper-slide .desc p {
    font-size: 20px;
    font-weight: 300;
    color: #fff;
    line-height: 1.35;
    margin-bottom: 130px;
}
.swiper-slide .desc .btn {
}
.swiper-slide .desc .btn a {
    font-size: 16px;
    background-color: #fff;
    padding: 11px 50px;
    display: inline-block;
}
.swiper-slide .desc .btn a.black {
    background: #000;
    color: #fff;
}
.swiper-button-next,
.swiper-button-prev {
    width: 30px !important;
    height: 56px !important;
    background-image: url(../img/slider01_icon.svg);
}
.swiper-button-next {
    background-position: -50px 0px;
}
.swiper-button-next:after,
.swiper-button-prev:after {
    opacity: 0;
}
.swiper-pagination-bullet {
    width: 16px !important;
    height: 16px !important;
}
.swiper-pagination-bullet-active {
    background-position: 0px -70px !important;
}

/* media */
@media (max-width: 1280px) {
    .swiper-slide .desc h3 {
        font-size: 70px;
    }
    .swiper-slide .desc {
        width: 100%;
        text-align: center;
    }
}
@media (max-width: 600px) {
    .swiper-slide .desc h3 {
        font-size: 42px;
    }
    .swiper-slide .desc {
        margin: 0 auto;
        padding: 100px 20px;
        box-sizing: border-box;
    }
    .swiper-slide .desc p {
        font-size: 16px;
    }
}
Image
.image__inner {
    display: flex;
    justify-content: space-between;
}
.image {
    width: 49%;
    color: white;
    padding: 200px 30px 30px 30px;
    box-sizing: border-box;
}
.image.img1 {
    background: url(../img/img01_bg01.jpg) no-repeat center / cover;
}
.image.img2 {
    background: url(../img/img01_bg02.jpg) no-repeat center / cover;
}
.image__title {
    font-size: 32px;
    margin-bottom: 10px;
}
.image__desc {
    font-size: 18px;
    font-weight: 300;
    margin-bottom: 10px;
    line-height: 1.5;
}
.image__btn {
    font-size: 16px;
    color: #fff;
    background: #e86e47;
    padding: 10px 20px;
    display: inline-block;
}
.image__btn.blue {
    background: #00a8e5;
}
@media (max-width: 768px) {
    .image__inner {
        flex-direction: column;
    }
    .image {
        width: 100%;
    }
    .image__title {
        font-size: 24px;
        margin-bottom: 10px;
    }
    .image__desc {
        font-size: 16px;
    }
}
Image/Text
.imgText__inner {
    display: flex;
    justify-content: space-between;
}
.imgText__inner > div {
    width: 32%;
    height: 500px;
}
.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: 500;
    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;
    word-break: keep-all;
}
.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-color: #666;
}
.imgText__img {
    border-radius: 10px;
    position: relative;
}
.imgText__img a {
    background-color: #7c2b39;
    color: #fff;
    font-size: 20px;
    position: absolute;
    bottom: 0;
    text-align: center;
    width: 100%;
    padding: 20px 30px;
    box-sizing: border-box;
    display: inline-block;
}
.imgText__img a.blue {
    background-color: #2b387c;
}
.imgText__img.img1 {
    background: url(../img/imgText01_bg01.jpg) no-repeat center / cover;
}
.imgText__img.img2 {
    background: url(../img/imgText01_bg02.jpg) no-repeat center / cover;
}

@media(max-width:768px) {
    .imgText__txt h3 {
        font-size: 42px;
    }
    .imgText__txt span {
        display: none;
    }
    .imgText__inner {
        display: block;
    }
    .imgText__inner > div:first-child {
        width: 100%;
        height: 400px;
        text-align: center;
    }
    .imgText__inner > div:nth-child(2), 
    .imgText__inner > div:nth-child(3){
        width: 50%;
        height: 500px;
        float: left;
        margin-bottom: 150px;
        
        border-radius: 0px;
    }
    .imgText__txt ul li::before {
        display: none;
    }
    .imgText__img a {
        font-size: 14px;
    }
}
Card
#cardType img {
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}
.card__inner {
    display: flex;
    justify-content: space-between;
}
.card {
    width: 32%;
    background-color: #f5f5f5;
    border-radius: 10px;
}
.card__body {
    padding: 24px;
}
.card__body .tit {
    color: black;
    font-size: 24px;
    margin-bottom: 10px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    padding-right: 20px;
}
.card__body .desc {
    font-size: 18px;
    line-height: 1.4;
    color: #666;
    margin-bottom: 20px;
    font-weight: 300;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
}
.card__body a {
    text-decoration: underline;
}

@media (max-width: 784px) {
    .card__inner {
        flex-direction: column;
        align-items: center;
    }
    .card {
        width: 100%;
        border-radius: 0px;
    }
    #cardType img {
        border-top-left-radius: 0px;
        border-top-right-radius: 0px;
    }
    .card__body .desc {
        font-size: 16px;
    }
}
Banner
.banner__inner {
    background-image: url(../img/banner01_bg01.jpg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    text-align: center;
    padding: 120px 0;
    color: black;
}
.banner__inner .title {
    font-size: 50px;
    line-height: 1;
    font-weight: 500;
    margin-bottom: 40px;
}
.banner__inner .desc {
    font-size: 24px;
    line-height: 1.5;
    font-weight: 300;
    margin-bottom: 70px;
    word-break: keep-all;
}
.banner__inner .desc a {
    color: black;
    display: block;
}
.banner__inner .desc a:hover {
    text-decoration: underline;
}
.banner__inner .small {
    font-size: 16px;
    text-decoration: underline;
}
@media(max-width: 786px) {
    .banner__inner .title {
        font-size: 42px;
    }
    .banner__inner .desc {
        font-size: 18px;
    }
}
Text
.text__inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}
.text {
    width: 32%;
    margin-bottom: 2%;
    padding: 20px;
    box-sizing: border-box;
    border-radius: 10px;
    transition: background 0.4s;
}
.text:hover {
    background: #f5f5f5;
}
.text:hover .text__title{
    color: #000;
}
.text__title {
    font-size: 24px;
    line-height: 1;
    margin-bottom: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
    position: relative;
    padding-top: 75px;
}
.text__title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: url(../img/text01_icon01.svg);
}
.text.t1 .text__title::before {
    background-position: 0 0;
}
.text.t2 .text__title::before {
    background-position: -60px 0;
}
.text.t3 .text__title::before {
    background-position: -120px 0;
}
.text.t4 .text__title::before {
    background-position: -180px 0;
}
.text.t5 .text__title::before {
    background-position: -240px 0;
}
.text.t6 .text__title::before {
    background-position: -300px 0;
}
.text__desc {
    font-size: 18px;
    font-weight: 300;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3; 
    -webkit-box-orient: vertical;
    color: #666;
    margin-bottom: 20px;
}
.text__btn {
    font-size: 16px;
    line-height: 1;
    text-decoration: underline;
    color: #666;
}

@media(max-width: 768px){
    #textType > span {
        display: none;
    }
    .text__desc {
        font-size: 16px;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 4; 
        -webkit-box-orient: vertical;
    }
    .text {
        width: 50%;
        margin-bottom: 0px;
        padding: 10px;
    }
}
Footer
.footer__wrap {
    background-color: #f5f5f5;
    width: 100%;
    padding: 50px 0;
}
.footer__menu {
    display: flex;
    margin-bottom: 30px;
    justify-content: center;
}
.footer__menu > div {
    width: 185%;
    text-align: center;
}
.footer__menu div h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #000;
}
.footer__menu div li a {
    margin-bottom: 10px;
    display: block;
    font-size: 14px;
    color: #666;
}
.footer__right {
    border-top: 1px solid #d9d9d9;
    text-align: center;
    padding-top: 40px;
    color: #666;
    line-height: 1.5;
}
@media (max-width: 960px) {
    .footer__menu {
        display: none;
    }
    .footer__right {
        padding-top: 0;
        border-top: 0;
    }
    .footer__wrap {
        padding: 40px 0;
    }
}

JAVASCRIPT ์†Œ์Šค

์ž๋ฐ”์Šคํฌ๋ฆฝํŠธ ์†Œ์Šค๋Š” ๋‹ค์Œ๊ณผ ๊ฐ™์Šต๋‹ˆ๋‹ค.

//swiper
var swiper = new Swiper(".mySwiper", {
    navigation: {
        nextEl: ".swiper-button-next",
        prevEl: ".swiper-button-prev",
    },
    autoplay: {
        delay: 2000,
        disableOnInteraction: false, /* ์Šฌ๋ผ์ด๋“œ๋ฅผ ๋“œ๋ž˜๊ทธํ•˜๋ฉด ์ •์ง€๋˜๋Š” ๋ฒ„๊ทธ ์ œ๊ฑฐ */
    },
    pagination: {
        el: ".swiper-pagination",
        type: "bullets",
        clickable: true,
    },
});

// ์„ ํƒ์ž
const btnStop = document.querySelector(".swiper-button-stop");
const btnStart = document.querySelector(".swiper-button-play");
const btnHam = document.querySelector(".header__ham");
const btnMenu = document.querySelector(".header__menu");

// swiper์—์„œ ์žฌ์ƒ ๋ฒ„ํŠผ์„ ๋ˆ„๋ฅด๋ฉด ์Šฌ๋ผ์ด๋“œ ์žฌ์ƒ, ์žฌ์ƒ ๋ฒ„ํŠผ ์ˆจ๊น€, ์ •์ง€ ๋ฒ„ํŠผ ๋‚˜ํƒ€๋‚จ
// swiper์—์„œ ์ •์ง€ ๋ฒ„ํŠผ์„ ๋ˆ„๋ฅด๋ฉด ์Šฌ๋ผ์ด๋“œ ์ •์ง€, ์ •์ง€ ๋ฒ„ํŠผ ์ˆจ๊น€, ์žฌ์ƒ ๋ฒ„ํŠผ ๋‚˜ํƒ€๋‚จ
btnStart.style.display = "none";
btnStop.addEventListener("click", () => {
    swiper.autoplay.stop();
    btnStart.style.display = "block";
    btnStop.style.display = "none";
});
btnStart.addEventListener("click", () => {
    swiper.autoplay.start();
    btnStart.style.display = "none";
    btnStop.style.display = "block";
});

// ํ–„๋ฒ„๊ฑฐ๋ฅผ ํด๋ฆญํ•˜๋ฉด ๋ฉ”๋‰ด๊ฐ€ ๋‚˜ํƒ€๋‚˜๋„๋ก ์„ค์ •
btnHam.addEventListener("click", () => {
    btnHam.classList.toggle("active");
    btnMenu.classList.toggle("overlay");
});

// ํŒจ๋Ÿด๋ž™์Šค ํšจ๊ณผ
window.addEventListener("scroll", () => {
    let scrollTop = window.pageYOffset || window.scrollY || document.documentElement.scrollTop;
    document.querySelectorAll("section").forEach((el, i) => {
        if (scrollTop > el.offsetTop - 500) {
            document.querySelectorAll(".header__menu ul li").forEach((li) => {
                li.classList.remove("active");
            });
            document.querySelector(".header__menu ul li:nth-child(" + (i + 1) + ")").classList.add("active");
        }
    });
});

// ๋ฉ”๋‰ด ์ด๋™ ์‹œ ๋ถ€๋“œ๋Ÿฝ๊ฒŒ~
document.querySelectorAll(".header__inner li a").forEach((li) => {
    li.addEventListener("click", (e) => {
        e.preventDefault();
        document.querySelector(li.getAttribute("href")).scrollIntoView({
            behavior: "smooth",
        });
    });
});

๊ฒฐ๊ณผ : Web

๊ฒฐ๊ณผ : Media

728x90

๋Œ“๊ธ€

๊ฐ์‚ฌํ•ฉ๋‹ˆ๋‹ค. ๐Ÿฆ™

CSS
๊ด‘๊ณ  ์ค€๋น„์ค‘