λ³Έλ¬Έ λ°”λ‘œκ°€κΈ°
SITE

[SITE] μ›Ήμ‚¬μ΄νŠΈ - ν…μŠ€νŠΈμœ ν˜•03

by _토맀토 2022. 9. 1.
728x90

TextType03

μ›ΉνŽ˜μ΄μ§€ μ‹€μŠ΅μ„ μœ„ν•œ ν…μŠ€νŠΈ μœ ν˜•μ„ μ‹€μŠ΅ν•΄λ³΄κ² μŠ΅λ‹ˆλ‹€! 이번 μœ ν˜•μ€ μ§€λ‚œ μœ ν˜•λ“€μ— λΉ„ν•΄ 쑰금 더 심화 λ²„μ „μž…λ‹ˆλ‹€...!
그럼 μ•„λž˜μ˜ μ½”λ“œλ₯Ό 보며 ν•¨κ»˜ μ‹€μŠ΅ ν•΄λ³΄κ² μŠ΅λ‹ˆλ‹€ 🫠 🫠


< figma : λ””μžμΈ ν•˜κΈ° >

λ ˆμ΄μ•„μ›ƒ κ·Έλ¦¬λ“œ 및 μ•ˆλ‚΄μ„ μ„ μ΄μš©ν•˜μ—¬ λ ˆμ΄μ•„μ›ƒ λ””μžμΈμ„ μ™„μ„±ν•©λ‹ˆλ‹€!

이젠 μ΅μˆ™ν•΄μ§„ μ΄λ―Έμ§€μŠ€ν”„λΌμ΄νŠΈ κΈ°λŠ₯을 μœ„ν•΄ ν”„λ ˆμž„μ„ μΆ”κ°€ν•˜μ—¬ ν”„λ‘œν•„ μ•„μ΄μ½˜μ„ 60px / 별점 μ•„μ΄μ½˜ 102px μ”© λ°°μΉ˜μ‹œμΌ°μŠ΅λ‹ˆλ‹€. κΌ­ 간격을 잘 λ§žμΆ°μ£Όμ„Έμš”~! πŸ˜‡


< HTML μ†ŒμŠ€ : λ ˆμ•„μ•„μ›ƒ ꡬ쑰 νŒŒμ•…ν•˜κΈ° >

! TIP !
β€’ ꡬ쑰λ₯Ό λ¨Όμ € κΌΌκΌΌν•˜κ²Œ νŒŒμ•…ν•˜μ—¬ 큰 덩어리뢀터 λ§ˆν¬μ—…μ„ ν•˜λŠ” 것이 κ°€μž₯ μ€‘μš”ν•©λ‹ˆλ‹€.(μ›Ήν‘œμ€€ μ€€μˆ˜ ν•„μˆ˜!)
β€’ μ›Ήν‘œμ€€κ³Ό μ›Ή μ ‘κ·Όμ„±, ν˜Έν™˜μ„±μ„ λ†“μΉ˜μ§€ μ•Šλ„λ‘ ν•©λ‹ˆλ‹€.
β€’ 곡톡 μ„ νƒμžμ™€ 각각의 μ„ νƒμžλ₯Ό ν•„μš”ν•œ 곳에 잘 κ΅¬λ³„ν•˜μ—¬ 넣도둝 ν•©λ‹ˆλ‹€.

<section id="textType03" class="section gmak container">
    <h2>멍멍 μœ μΉ˜μ›</h2>
    <p>🐢 멍멍 μœ μΉ˜μ›μ˜ 말썽꾸러기 강아지 학생듀을 μ†Œκ°œν•©λ‹ˆλ‹€. 🐢</p>
    <div class="text__inner">
        <article class="text__box">
            <p>μΉœκ΅¬λ“€κ³Ό μ–΄μšΈλ¦΄ 수 μžˆμ„μ§€ κ±±μ •ν–ˆλŠ”λ° μ„ μƒλ‹˜λ•μ— λ¬΄μ‚¬νžˆ μΉœκ΅¬λ“€μ„ μ‚¬κ·ˆ 수 μžˆμ—ˆμŠ΅λ‹ˆλ‹€. 특히 λ†€μ΄μ‹œκ°„μ— μΉœκ΅¬λ“€κ³Ό μ–΄μšΈλ¦΄ 수 μžˆλ„λ‘ λ„μ™€μ£Όμ…”μ„œ μž¬λ―ΈμžˆλŠ” μ‹œκ°„μ„ 보낼 수 μžˆμ—ˆμŠ΅λ‹ˆλ‹€. 간식
                퀄리티도 μ’‹κ³  맛도 μ’‹μ•˜μŠ΅λ‹ˆλ‹€. μ΄λ ‡κ²Œ μ†Œμ‹¬ν•œ μ €λ₯Ό 잘 λŒλ΄μ£Όμ‹  μ„ μƒλ‹˜ κ°μ‚¬ν•©λ‹ˆλ‹€!</p>
            <span class="icon icon1 ir">μ•„μ΄μ½˜</span>
            <div class="dogname">
                <h2>κΉ€λŒ•λŒ•<em>멍멍 24κΈ°</em></h2>
                <div class="star star1 ir">별</div>
            </div>
            <div class="more"><a href="#">μžμ„Ένžˆ 보기</a></div>
        </article>
        <article class="text__box">
            <p>제일 기얡에 λ‚¨λŠ” ν™œλ™μ€ λ°”λ‘œ 간식 μ‹œκ°„μ΄μ—μš”! 수제둜 λ§Œλ“€μ–΄μ§„ 간식은 간도 λ”± 맞고 건강에도 쒋은 재료둜 λ§Œλ“€μ–΄μ Έμ„œ 양심에 찔리지 μ•Šκ³  맘껏 먹을 수 μžˆμ—ˆμŠ΅λ‹ˆλ‹€~~~! μ„ μƒλ‹˜ λ§›μžˆλŠ” 간식
                늘 정성껏 λ§Œλ“€μ–΄ μ£Όμ…”μ„œ κ°μ‚¬ν•©λ‹ˆλ‹€~!!!!!!!! πŸ˜†</p>
            <span class="icon icon2 ir">μ•„μ΄μ½˜</span>
            <div class="dogname">
                <h2>μ˜€μ™ˆμ™ˆ<em>멍멍 24κΈ°</em></h2>
                <div class="star star2 ir">별</div>
            </div>
            <div class="more"><a href="#">μžμ„Ένžˆ 보기</a></div>
        </article>
        <article class="text__box">
            <p>κ²Œμ„λŸ¬μ„œ 가끔 지각도 ν•˜κ³  말도 잘 μ•ˆλ“€μ—ˆμ§€λ§Œ λκΉŒμ§€ μ €λ₯Ό 잘 μ§€λ„ν•΄μ£Όμ…”μ„œ κ°μ‚¬ν–ˆμŠ΅λ‹ˆλ‹€...γ…Žγ…Žγ…Ž κ·Έ λ•Œλ§Œ μƒκ°ν•˜λ©΄ λ„ˆλ¬΄ μ£„μ†‘ν•˜λ„€μš” γ… γ…  <br>λŒ•λŒ• μœ μΉ˜μ›μ— λ‹€λ‹ˆλ©΄μ„œ λ§Žμ€ 것을 배우고 갈
                수 μžˆμ—ˆμŠ΅λ‹ˆλ‹€. λ§ˆμ§€λ§‰μœΌλ‘œ ν•˜κ³ μ‹Άμ€ 말은 간식 졜고!!!!!</p>
            <span class="icon icon3 ir">μ•„μ΄μ½˜</span>
            <div class="dogname">
                <h2>λ°•λΉ„μˆ‘<em>멍멍 24κΈ°</em></h2>
                <div class="star star3 ir">별</div>
            </div>
            <div class="more"><a href="#">μžμ„Ένžˆ 보기</a></div>
        </article>
    </div>
</section>

< CSS μ†ŒμŠ€ : μŠ€νƒ€μΌ μ μš©ν•˜κΈ° >

ꡬ쑰 μ§œμž„μ˜ μˆœμ„œλŒ€λ‘œ css μŠ€νƒ€μΌμ„ μ μš©μ‹œμΌœ λ΄…μ‹œλ‹€. 이 λ•Œ λ””μžμΈ μ‹œμ•ˆμ„ μ°Έκ³ ν•˜λ©΄μ„œ html와 λ²ˆκ°ˆμ•„κ°€λ©° 큰 덩어리 λΆ€ν„° μŠ€νƒ€μΌμ„ μ μš©μ‹œμΌœ λ‚˜κ°€λŠ” 것이 μ€‘μš”ν•©λ‹ˆλ‹€.
속성에 λŒ€ν•œ λ‚΄μš©μ€ μ½”λ“œμ™€ 주석을 λ³΄λ©΄μ„œ μ΄ν•΄ν•΄λ΄…μ‹œλ‹€!

! TIP !
1. display: flexλ₯Ό 쀄 λ•Œ ꡬ쑰λ₯Ό 잘 νŒŒμ•…ν•˜μ—¬ λ‚˜λˆ„μ–΄μ£Όμ–΄μ•Ό ν•©λ‹ˆλ‹€.
2. κ°€μƒμš”μ†Œλ₯Ό μ‚¬μš©ν•˜μ—¬ 라인을 λ„£μ–΄μ€λ‹ˆλ‹€. μ΄λ•Œ μœ„μΉ˜λŠ” ν¬μ§€μ…˜μ„ μ‚¬μš©ν•˜μ—¬ μ΄λ™ν•΄μ€λ‹ˆλ‹€.
3. 이미지 μŠ€νŠΈλΌμ΄ν”„λ₯Ό μ‚¬μš©ν•  경우 곡톡 μ„ νƒμžμ™€ 각각의 μ„ νƒμžλ₯Ό λΆ€μ—¬ν•©λ‹ˆλ‹€.
4. κ·Έ λ’€ 곡톡 μ„ νƒμžμ—κ²ŒλŠ” url()속성, 각각 μ„ νƒμžμ—κ²ŒλŠ” background-position 속성을 μ‚¬μš©ν•˜μ—¬ μœ„μΉ˜λ₯Ό μ‘°μ •ν•΄μ€λ‹ˆλ‹€.

/* font */
@import url('https://webfontworld.github.io/gmarket/GmarketSans.css');

.gmak {
    font-family: 'GmarketSans';
    font-size: 18px;
}
/* reset */
* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

a {
    text-decoration: none;
    color: #000;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: normal;
}
img {
    width: 100%;
    vertical-align: top;
}

/* 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;
}

.ir {
    display: block;
    overflow: hidden;
    font-size: 0;
    line-height: 0;
    text-indent: -9999px;
}  

body {
    background: #f5f5f5;
}

/* text */
.text__inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between ;
}
.text__box {
    /* width: 373px; */
    width: 32%;
    padding: 30px;
    background: #fff;
    border-radius: 10px;
    position: relative;
}
.text__box > p {
    height: 189px;
    line-height: 1.5;
    margin-bottom: 30px;
}
/* κ°€μƒμš”μ†Œλ₯Ό μ‚¬μš©ν•˜μ—¬ 라인 배치 */
.text__box::before { 
    content: '';
    width: 82%;
    height: 1px;
    background: #edecec;
    position: absolute;
    left: 30px;
    top: 248px;
    align-items: center;
}
.text__box::after {
    content: '';
    width: 82%;
    height: 1px;
    background: #edecec;
    position: absolute;
    left: 30px;
    bottom: 85px;
    align-items: center;
}

/* dogname */
.dogname {
    position: absolute;
    left: 100px;
    bottom: 120px;
}
.dogname > h2 {
    margin-bottom: 10px;
}
.dogname > h2 > em {
    margin-left: 5px;
    font-style: normal;
    font-size: 16px;
    color: #a4a4a4;
}

/* icon */
.star {
    height: 20px;
    width: 102px; 
    background: url(img/text_icons03_1.svg);
}
.star.star2 {background-position: -102px;}
.star.star3 {background-position: -204px;}

.icon {
    display: inline-block;  
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #000;
    margin-top: 30px;
    margin-bottom: 30px;
    background: url(img/text_icons03.svg);
}
.icon.icon2 {background-position: -60px;}
.icon.icon3 {background-position: -120px;}

/* more */
.more {
    text-align: center;
}
.more > a {
    display: inline-block;
    font-size: 14px;
    font-weight: 300;
    padding: 6px 20px;
    margin-top: 30px;
    color: white;
    background: #504ecd;
    text-align: center;
    border-radius: 50px;
}

πŸŽ‰ 결과보기 πŸŽ‰

728x90

λŒ“κΈ€


Lucky Charms Rainbow
js
html
css