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

05. ์ด๋ฏธ์ง€/ํ…์ŠคํŠธ ์œ ํ˜• 1

by Youcodein 2022. 9. 1.
728x90
๋ฐ˜์‘ํ˜•

์ด๋ฏธ์ง€/ํ…์ŠคํŠธ ์œ ํ˜• 01

์ด๋ฏธ์ง€/ํ…์ŠคํŠธ ์œ ํ˜• ๋ ˆ์ด์•„์›ƒ ์‚ฌ์ดํŠธ์ž…๋‹ˆ๋‹ค.

๋ ˆ์ด์•„์›ƒ ์„ค์ •

figma๋กœ ๊ทธ๋ฆฌ๋“œ์™€ ์‚ฌ์ดํŠธ์˜ ๋ ˆ์ด์•„์›ƒ์„ ์žก์Šต๋‹ˆ๋‹ค.

HTML

html ์†Œ์Šค์ž…๋‹ˆ๋‹ค.

<body>
    <section id="imgTextType" class="imgText__wrap nexon section gray">
        <h2 class="blind">์œ ์šฉํ•œ ์‚ฌ์ดํŠธ ์‚ดํŽด๋ณด๊ธฐ</h2>
        <div class="imgtext__inner container">
            <div class="imgText__txt">
                <span>์ด๋ฏธ์ง€ ํ…์ŠคํŠธ ์œ ํ˜•01</span>
                <h3>์œ ์šฉํ•œ ์‚ฌ์ดํŠธ ์‚ดํŽด๋ณด๊ธฐ</h3>
                <p>์›น๋””์ž์ด๋„ˆ, ์›น ํผ๋ธ”๋ฆฌ์…”, ํ”„๋ก ํŠธ์•ค๋“œ ๊ฐœ๋ฐœ์ž๋ฅผ ์œ„ํ•œ ์œ ์šฉํ•œ ์‚ฌ์ดํŠธ์ž…๋‹ˆ๋‹ค.</p>
                <ul>
                    <li><a href="/">ํŠœํ† ๋ฆฌ์–ผ ์‚ฌ์ดํŠธ</a></li>
                    <li><a href="/">๋ ˆํผ๋Ÿฐ์Šค ์‚ฌ์ดํŠธ</a></li>
                    <li><a href="/">์›นํฐํŠธ ์‚ฌ์ดํŠธ</a></li>
                    <li><a href="/">CSS ์‚ฌ์ดํŠธ</a></li>
                    <li><a href="/">WebGL ์‚ฌ์ดํŠธ</a></li>
                    <li><a href="/">Youtube ์‚ฌ์ดํŠธ</a></li>
                </ul>
            </div>
            <div class="imgText__img img1">
                <a href="/">๋ ˆํผ๋Ÿฐ์Šค ์‚ฌ์ดํŠธ</a>
            </div>
            <div class="imgText__img img2">
                <a href="/" class="blue">ํŠœํ† ๋ฆฌ์–ผ ์‚ฌ์ดํŠธ</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%;
}

li {
    list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: normal;
}

/* ๋ธ”๋ผ์ธ๋“œ ํšจ๊ณผ */

.blind {
    position: absolute;
    clip: rect(0 0 0 0);
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
}

/* common */
.mb70 {
    margin-bottom: 70px !important;
}

.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;
}

.section>span {
    display: block;
    text-align: center;
    font-size: 16px;
    text-decoration: underline;
    margin-bottom: 16px;
}
.gray {
    background-color: #f5f5f5;
}

/* imageText */
.imgtext__inner {
    display: flex;
    justify-content: space-between;
}

.imgtext__inner>div {
    width: 32%;
    height: 500px;
}

.imgText__txt {}
.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: 300;
    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;
}

.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: #666;
}

.imgText__img {
    border-radius: 10px;
    position: relative;
}
.imgText__img a {
    position: absolute;
    left: 30px;
    bottom: 30px;
    background-color: #7c2b39;
    color: #fff;
    font-size: 18px;
    padding: 10px 30px;
    border-radius: 30px;
    display: inline-block;
}

.imgText__img a.blue {
    background: #2b387c;
}

.imgText__img.img1 {
    background: url(img/imgText_bg01.jpg) no-repeat center / cover;
}
.imgText__img.img2 {
    background: url(img/imgText_bg02.jpg) no-repeat center / cover;
}
728x90
๋ฐ˜์‘ํ˜•

'Site ์ œ์ž‘' ์นดํ…Œ๊ณ ๋ฆฌ์˜ ๋‹ค๋ฅธ ๊ธ€

07. ๋ฐฐ๋„ˆ ์œ ํ˜• 1  (2) 2022.09.06
06. ์Šฌ๋ผ์ด๋“œ ์œ ํ˜• 1  (2) 2022.09.06
04. ํ—ค๋” ์œ ํ˜• 1  (1) 2022.09.01
03. ํ…์ŠคํŠธ ์œ ํ˜• 3  (4) 2022.09.01
03. ํ…์ŠคํŠธ ์œ ํ˜• - 2  (2) 2022.08.31

๋Œ“๊ธ€