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

[SITE] ์›น์‚ฌ์ดํŠธ - ํ‘ธํ„ฐ ์œ ํ˜• 01

by _ํ† ๋งคํ†  2022. 9. 6.
728x90

FooterType01

์›นํŽ˜์ด์ง€ ์‹ค์Šต์„ ์œ„ํ•œ ํ‘ธํ„ฐ ์œ ํ˜•์„ ์‹ค์Šตํ•ด๋ณด๊ฒ ์Šต๋‹ˆ๋‹ค! ์ด๋ฒˆ ํ‘ธํ„ฐ ์œ ํ˜•์€ ํ…์ŠคํŠธ์™€ ๋น„์Šทํ•œ ์œ ํ˜•์œผ๋กœ ์›น์‚ฌ์ดํŠธ ๊ฐ€์žฅ ํ•˜๋‹จ์— ์œ„์น˜ํ•ฉ๋‹ˆ๋‹ค.
๊ทธ๋Ÿผ ์•„๋ž˜์˜ ์ฝ”๋“œ๋ฅผ ๋ณด๋ฉฐ ํ•จ๊ป˜ ์‹ค์Šต ํ•ด๋ณด๊ฒ ์Šต๋‹ˆ๋‹ค ~ ๐Ÿ˜†


< figma : ๋””์ž์ธ ํ•˜๊ธฐ >

์ด๋ฒˆ ์œ ํ˜•์€ ๋ฐฐ๋„ˆ ํƒ€์ž…์œผ๋กœ ์ปจ์…‰์— ๋งž๋Š” ๋ ˆ์ด์•„์›ƒ๊ณผ ๋””์ž์ธ์„ ์„ค์ •ํ•˜์‹œ๋ฉด ๋ฉ๋‹ˆ๋‹ค. ์•„๋ž˜์˜ ํ”ผ๊ทธ๋งˆ๋ฅผ ์ฐธ๊ณ ํ•˜์—ฌ HTML, CSS๋ฅผ ์„ค์ •ํ•ด๋ด…์‹œ๋‹ค. ๐Ÿ˜‡


< HTML ์†Œ์Šค : ๋ ˆ์•„์•„์›ƒ ๊ตฌ์กฐ ํŒŒ์•…ํ•˜๊ธฐ >

๋””์ž์ธํ•œ ์›น ํŽ˜์ด์ง€ ์‹œ์•ˆ์„ ๋ณด๋ฉฐ ํŽ˜์ด์ง€ ๊ตฌ์กฐ๋ฅผ ํŒŒ์•…ํ•œ ํ›„ ์›น ํ‘œ์ค€์„ฑ๊ณผ ์ ‘๊ทผ์„ฑ์— ๋งž๋Š”์‹œ๋ฉ˜ํ‹ฑํ•œ ๋งˆํฌ์—…์„ ํ•ด์ค๋‹ˆ๋‹ค.

TIP !
โ€ข ์„น์…˜, ์•„ํ‹ฐํด๊ณผ ๊ฐ™์€ ์‹œ๋ฉ˜ํ‹ฑ ํƒœ๊ทธ์—๋Š” ๊ผญ ํ—ค๋”ฉ ํƒœ๊ทธ๋ฅผ ํ•จ๊ป˜ ์‚ฌ์šฉํ•ด์ฃผ์–ด์•ผ ์›นํ‘œ์ค€์„ ์ค€์ˆ˜ํ•˜๊ฒŒ ๋ฉ๋‹ˆ๋‹ค.
โ€ข ์„น์…˜ ์˜์—ญ์— ์›นํ‘œ์ค€ ์ค€์ˆ˜๋ฅผ ์œ„ํ•ด ์„ ์–ธํ•œ h2ํƒœ๊ทธ๊ฐ€ ์‚ฌ์šฉ์ž ๋ˆˆ์— ๋ณด์ด์ง€ ์•Š๋„๋ก ๋ธ”๋ผ์ธ๋“œ ์†์„ฑ์„ ์ฃผ๊ธฐ ์œ„ํ•ด ์„ ํƒ์ž๋กœ ๋ธ”๋ผ์ธ๋“œ๋ฅผ ์„ค์ •ํ•ฉ๋‹ˆ๋‹ค.
โ€ข ๊ฐ ํ‘ธํ„ฐ ๋ฉ”๋‰ด๋กœ ํฐ ํ‹€์„ ์žก์€ ๋’ค ๊ทธ์•ˆ์—์„œ ๊ฐ๊ฐ์˜ ๋ฉ”๋‰ด ๊ตฌ์กฐ๋ฅผ ์„ค์ •ํ•ฉ๋‹ˆ๋‹ค. ๋‹ค์Œ์œผ๋กœ ์นดํ”ผ๋ผ์ด๋“œ ๋“ฑ์˜ ํ…์ŠคํŠธ๋ฅผ ์ž‘์—…ํ•ฉ๋‹ˆ๋‹ค.

<footer id="footerType" class="footer__wrap nexon section gray">
    <h2 class="blind">ํ‘ธํ„ฐ ์˜์—ญ</h2>
    <div class="footer__inner container">
        <div class="footer__menu">
            <div>
                <h3>์‚ฌ์ดํŠธ</h3>
                <ul>
                    <li><a href="#">์›นํ‘œ์ค€ ์‚ฌ์ดํŠธ</a></li>
                    <li><a href="#">์›นํ‘œ์ค€ ์‚ฌ์ดํŠธ</a></li>
                    <li><a href="#">์›นํ‘œ์ค€ ์‚ฌ์ดํŠธ</a></li>
                    <li><a href="#">์›นํ‘œ์ค€ ์‚ฌ์ดํŠธ</a></li>
                </ul>
            </div>
            <div>
                <h3>ํ—ค๋” ์˜์—ญ</h3>
                <ul>
                    <li><a href="#">๋ฉ”๋‰ด ์œ ํ˜•01</a></li>
                    <li><a href="#">๋ฉ”๋‰ด ์œ ํ˜•02</a></li>
                </ul>
            </div>
            <div>
                <h3>์Šฌ๋ผ์ด๋“œ ์˜์—ญ</h3>
                <ul>
                    <li><a href="#">์Šฌ๋ผ์ด๋“œ ์œ ํ˜•01</a></li>
                    <li><a href="#">์Šฌ๋ผ์ด๋“œ ์œ ํ˜•02</a></li>
                </ul>
            </div>
            <div>
                <h3>์ด๋ฏธ์ง€ ์˜์—ญ</h3>
                <ul>
                    <li><a href="#">์ด๋ฏธ์ง€ ์œ ํ˜•01</a></li>
                    <li><a href="#">์ด๋ฏธ์ง€ ์œ ํ˜•02</a></li>
                    <li><a href="#">์ด๋ฏธ์ง€/ํ…์ŠคํŠธ ์œ ํ˜•01</a></li>
                    <li><a href="#">์ด๋ฏธ์ง€/ํ…์ŠคํŠธ ์œ ํ˜•02</a></li>
                    <li><a href="#">ํ…์ŠคํŠธ ์œ ํ˜•01</a></li>
                </ul>
            </div>
            <div>
                <h3>์ปจํ…์ธ  ์˜์—ญ</h3>
                <ul>
                    <li><a href="/">์นด๋“œ ์œ ํ˜•01</a></li>
                    <li><a href="/">์นด๋“œ ์œ ํ˜•02</a></li>
                    <li><a href="/">์นด๋“œ ์œ ํ˜•03</a></li>
                </ul>
            </div>
            <div>
                <h3>ํ‘ธํ„ฐ ์˜์—ญ</h3>
                <ul>
                    <li><a href="/">ํ‘ธํ„ฐ ๋ฉ”๋‰ด ์œ ํ˜•01</a></li>
                    <li><a href="/">ํ‘ธํ„ฐ ์ปจํ…ํŠธ ์œ ํ˜•02</a></li>
                    <li><a href="/">ํ‘ธํ„ฐ ์ด๋ฉ”์ผ ์œ ํ˜•03</a></li>
                </ul>
            </div>

        </div>
        <div class="footer__right">
            2022 LEEHAEUN. Portfolio is Power<br>
            All rights reserved.
        </div>
    </div>
</footer>

< CSS ์†Œ์Šค : ์Šคํƒ€์ผ ์ ์šฉํ•˜๊ธฐ >

๊ตฌ์กฐ ์งœ์ž„์˜ ์ˆœ์„œ๋Œ€๋กœ css ์Šคํƒ€์ผ์„ ์ ์šฉ์‹œ์ผœ ๋ด…์‹œ๋‹ค. ์ด ๋•Œ ๋””์ž์ธ ์‹œ์•ˆ์„ ์ฐธ๊ณ ํ•˜๋ฉด์„œ html์™€ ๋ฒˆ๊ฐˆ์•„๊ฐ€๋ฉฐ ํฐ ๋ฉ์–ด๋ฆฌ ๋ถ€ํ„ฐ ์Šคํƒ€์ผ์„ ์ ์šฉ์‹œ์ผœ ๋‚˜๊ฐ€๋Š” ๊ฒƒ์ด ์ค‘์š”ํ•ฉ๋‹ˆ๋‹ค.
์†์„ฑ์— ๋Œ€ํ•œ ๋‚ด์šฉ์€ ์ฝ”๋“œ์™€ ์ฃผ์„์„ ๋ณด๋ฉด์„œ ์ดํ•ดํ•ด๋ด…์‹œ๋‹ค!

TIP !
โ€ข ๋จผ์ € ์ „์ฒด ์ดˆ๊ธฐํ™”(Reset)์™€ ํฐํŠธ ๋””ํดํŠธ ์„ค์ •์„ ํ•ด์ฃผ๋Š” ๊ฒƒ์ด ์ข‹์Šต๋‹ˆ๋‹ค.
โ€ข ๊ฐ ์˜์—ญ๊ณผ ์„น์…˜์— ๋ฐ˜๋ณต์ ์œผ๋กœ ๋“ค์–ด๊ฐ€๋Š” ์†์„ฑ๋“ค์€ ๊ณตํ†ต ์†์„ฑ์œผ๋กœ ๋”ฐ๋กœ ์„ค์ •ํ•˜๋Š” ๊ฒƒ์ด ์ข‹์Šต๋‹ˆ๋‹ค.
โ€ข ์ปจํ…Œ์ด๋„ˆ ์„ค์ •์„ ํ†ตํ•ด ๋ฉ”์ธ ํ™”๋ฉด ํฌ๊ธฐ์™€ ์—ฌ๋ฐฑ์„ ์„ค์ •ํ•ด์ค€ ๋’ค ๋ฉ”์ธ ์ฝ˜ํ…์ธ ์ธ ์„น์…˜์—๊ฒŒ ์Šคํƒ€์ผ์„ ์ ์šฉ์‹œํ‚ต๋‹ˆ๋‹ค.
โ€ข ํ‘ธํ„ฐ ๋ฉ”๋‰ด๋Š” display: flex;๋ฅผ ์„ค์ •ํ•œ ๋’ค 16%๋กœ ์˜์—ญ์„ ๋‚˜๋ˆ„์–ด ์ค๋‹ˆ๋‹ค.

/* font */
@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;
}
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 > 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;
}
.gray {
    background-color: #f5f5f5;
}

/* footerType */
.footer__menu {
    display: flex;
    justify-content: space-between;
    margin-bottom: 70px;
}
.footer__menu > div {
    width: 16%;
}
.footer__menu h3 {
    font-size: 18px;
    margin-bottom: 20px;
}
.footer__menu li a {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
    display: block;
}
.footer__right {
    border-top: 1px solid #d9d9d9;
    text-align: center;
    padding-top: 40px;
    color: #666;
    line-height: 1.5;
}

๐ŸŽ‰ ๊ฒฐ๊ณผ๋ณด๊ธฐ ๐ŸŽ‰

728x90

๋Œ“๊ธ€


Lucky Charms Rainbow
js
html
css