whatisthis?

Project. ๋ฐ˜์‘ํ˜• ํŽ˜์ด์ง€ - (5) Curriculum Section ๋ณธ๋ฌธ

PROJECT/WEB

Project. ๋ฐ˜์‘ํ˜• ํŽ˜์ด์ง€ - (5) Curriculum Section

thisisyjin 2022. 3. 2. 19:11

(5) Curriculum Section

 

 

๐Ÿ“Œ HTML + CSS ์ž‘์„ฑ

 

- html ๋งˆํฌ์—… ๊ตฌ์„ฑ

desktop์—์„œ๋Š” ์ด๋ฏธ์ง€๊ฐ€ ๋“ฑ์žฅํ•จ.

 

row๋Š” ๋‘์ค„๋กœ,

col-12(col-md-6) ๋‘๊ฐœ์”ฉ ๊ตฌ์„ฑํ•จ.

 

<section class="curriculum section">
  <div class="container">
    <div class="row align-items-center">
      <div class="col-12 col-md-6">
        <strong class="section-category">Curriculum</strong>
        <h1 class="section-title">Dive into the web development</h1>
        <p class="section-desc">
          Dive into the software development <br />
          environment and the basics of computing, networks, and data
          structures.
        </p>
        <a href="#" class="fill-button">Apply now</a>
      </div>
      <div class="col-12 col-md-6">
        <div class="curriculum-image">
          <img src="./assets/img-curriculum.png" alt="Curriculum" />
        </div>
      </div>
    </div>
    <div class="row">
      <div class="col-12 col-md-6">
        <p class="curriculum-detail-desc">
          <strong>Real-World Projects.</strong> Solve challenges that
          professional engineers face as you work individually and in teams
          with designers.
        </p>
      </div>
      <div class="col-12 col-md-6">
        <p class="curriculum-detail-desc">
          <strong>Instructor Support.</strong> Get guidance, feedback, and
          more during scheduled one-on-one check-ins.
        </p>
      </div>
    </div>
  </div>
</section>

 

- ์Šคํƒ€์ผ ์ ์šฉ์€?

์ด์ „์— program ๋งŒ๋“ค ๋•Œ ๋ชจ๋“ˆ์„ ๋งŒ๋“ค์–ด๋’€๊ธฐ ๋•Œ๋ฌธ์— ๊ทธ๋Œ€๋กœ ํด๋ž˜์Šค๋งŒ ์ ์šฉํ•˜๋ฉด ๋œ๋‹ค.

 

 

style.css

/* Curriculum Page */

.curriculum .section-category {
  color: #0189d1;
}

.curriculum-image {
  display: none;
}

.curriculum-detail-desc {
  font-size: 15px;
  line-height: 1.466666667;
  color: #2b292d;
  letter-spacing: -0.01em;
}

.curriculum .section-desc {
  margin-bottom: 32px;
}

.curriculum .row:first-child {
  margin-bottom: 48px;
}

.curriculum .row:last-child .col-12:first-child {
  margin-bottom: 40px;
}

+) ๋ฏธ๋””์–ด์ฟผ๋ฆฌ ๋ถ€๋ถ„ (desktop)

/* >= 768px (Desktop) */

@media screen and (min-width: 768px) {

			/* ๐Ÿ”บ ์ƒ๋žต */

 	/* Curriculum */

  .curriculum .row:first-child {
    margin-bottom: 24px;
  }

  .curriculum .row:last-child .col-12:first-child {
    margin-bottom: 0;
  }

  .curriculum .section-desc {
    margin-bottom: 72px;
  }

  .curriculum-detail-desc {
    font-size: 18px;
    line-height: 1.44444444;
  }

  .curriculum-image {
    display: block;
  }

  .curriculum-image img {
    display: block;
    width: 100%;
    max-width: 425px;
    height: auto;
  }
}

 

mobile์—์„œ๋Š” display: none์œผ๋กœ

div>img ์ž์ฒด๋ฅผ ์ˆจ๊ฒจ๋ฒ„๋ฆฌ๊ณ ,

 

desktop์—์„œ๋Š” (๋ฏธ๋””์–ด์ฟผ๋ฆฌ) display: block์œผ๋กœ div๊ฐ€ ๋ณด์ด๊ฒŒ ํ•œ ํ›„,

img์˜ width*height ๋ฅผ ์กฐ์ •ํ•ด์ค€๋‹ค.

 

** ์—ฌ๊ธฐ์„œ max-width๋Š”

์ฒ˜์Œ์—” width: 100% ๋กœ ๊ฐ€๋‹ค๊ฐ€ ์–ด๋Š์ˆœ๊ฐ„ ์ปค์ง€๋ฉด 425px์„ ์•ˆ ๋„˜๋„๋ก ํ•ด์ฃผ๋Š” ๊ฒƒ.

 

 

 

๋“œ๋””์–ด ๋‹ค ์ž˜ ์ ์šฉ๋œ๋‹ค!

 

 

 

 

 

 

+) ์‚ฌ๋‹ด

 

์ž๊พธ ์ด์ƒํ•œ ๋ถ€๋ถ„์—์„œ ์‹ค์ˆ˜๋ฅผ ํ•ด์„œ ์‹œ๊ฐ„์„ ๋งŽ์ด ๋‚ ๋ ธ๋‹ค ๐Ÿ˜ฅ

๋‹ค์Œ๋ถ€ํ„ด ์ด๋Ÿฐ์ผ ์žˆ์–ด๋„ ๋‹นํ™ฉํ•˜์ง€๋ง์ž. ์Šฌํผํ•˜์ง€๋ง์ž.

 

 


๐Ÿ”ป Design File

 

Figma

Created with Figma

www.figma.com

 

๐Ÿ”ปReference Lecture

 

๊น€๋ฒ„๊ทธ์˜ HTML&CSS๋Š” ์žฌ๋ฐŒ๋‹ค - ๊ตฌ๋ฆ„EDU

HTML&CSS๋ฅผ ํ•œ๋ฒˆ์—! ํƒ„ํƒ„ํ•œ ๊ฐœ๋…์ดํ•ด๋ถ€ํ„ฐ ์‹ค์Šต๊นŒ์ง€ ํ•œ ๊ฐ•์˜๋กœ ๋๋‚ด๊ธฐ, ์‹ค๋ฌด ๊ฐ€๋Šฅํ•œ ์‹ค๋ ฅ์œผ๋กœ ๐Ÿ˜Ž

edu.goorm.io