whatisthis?

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

PROJECT/WEB

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

thisisyjin 2022. 3. 2. 15:40

(4) Program Section

 

 

 

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

 

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

 

๋””์ž์ธ์„ ๋ณด๋‹ˆ ์ œ๋ชฉ+๋ณธ๋ฌธ ๋ถ€๋ถ„์€ col-12 ์—์„œ col-10์œผ๋กœ ์ค„์–ด๋“ค๊ณ ,

์•„๋ž˜ ์ด๋ฏธ์ง€ ์„ธ๊ฐœ๋Š”

๋ชจ๋ฐ”์ผ์ผ๋•Œ๋Š” col-12 ์„ธ๊ฐœ์ด๊ณ ,

๋ฐ์Šคํฌํƒ‘์ผ๋• col-md-4 ๊ฐ€ ๋˜๋„๋ก ์„ค์ •.

 

- ์ถ”ํ›„์— ๋งˆํฌ์—…ํ•  ๋ถ€๋ถ„์ธ Curriculum ๋ถ€๋ถ„๊ณผ Program ๋ถ€๋ถ„์ด ๋งค์šฐ ๋น„์Šทํ•˜๋‹ค.

>> strong, heading, p๋ถ€๋ถ„์„ ๋ชจ๋“ˆํ™”ํ•ด์„œ ์‚ฌ์šฉํ•˜์ž!

 

<section class="program">
  <div class="container">
    <div class="row justify-content-center">
      <div class="col-12 col-md-10">
        <strong class="section-category">Program</strong>
        <h1 class="section-title">
          Frontend Dev. <br />
          Immersive Course
        </h1>
        <p class="section-desc">
          Your best course for career transformation in front-end
          developement. This full-time bootcamp features expert instruction,
          one-on-one career coaching, and connections to top employers to
          get you hired.
        </p>
      </div>
      <div class="col-12 col-md-4"></div>
      <div class="col-12 col-md-4"></div>
      <div class="col-12 col-md-4"></div>
    </div>
  </div>
</section>

 

ํด๋ž˜์Šค๋ช…๋„ program-title์ด ์•„๋‹ˆ๋ผ

section-title๋กœ ์ž‘์„ฑํ•ด์„œ ๋‚˜์ค‘์— ์‚ฌ์šฉํ•  ์ˆ˜ ์žˆ๊ฒŒ.

 

.section-category {
  display: block;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}

.section-title {
  color: #2b292d;
  font-size: 34px;
  line-height: 1.0588235;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

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

์ผ์น˜ํ•˜๋Š” ๋ถ€๋ถ„์„ ์Šคํƒ€์ผ๋ง ํ•ด์ค€๋‹ค.

(์ด ๋˜ํ•œ fill-button๊ณผ ๋งˆ์ฐฌ๊ฐ€์ง€๋กœ css ์ƒ๋‹จ์— ์ ์–ด์ฃผ์ž.)

 

 

 

/* Program Page */

.program .section-category {
  color: #009b4d;
}

program ์—์„œ๋งŒ ํ•ด๋‹นํ•˜๋Š” ์Šคํƒ€์ผ์„ ์ ์šฉํ•ด์ฃผ๊ณ ,

 

/* >= 768px (Desktop) */

@media screen and (min-width: 768px) {
  /* ๐Ÿ”บ์ดํ•˜ ์ƒ๋žต */

  /* Program */

  .program {
    text-align: center;
  }
}

 

desktop์ผ๋•Œ text-align์ด center๊ฐ€ ๋˜๋ฏ€๋กœ ๋ฏธ๋””์–ด์ฟผ๋ฆฌ๋„ ๋“ฑ๋กํ•ด์ฃผ์ž.

 

์šฐ์„ ์€ ์™„์„ฑํ–ˆ์œผ๋‚˜, ๊ฐ€์šด๋ฐ ์ •๋ ฌ์ด ์•ˆ๋งž๋Š” ๋Š๋‚Œ์ด๋ผ ํ™•์ธํ•ด๋ณด๋‹ˆ

 

col-md-10์„ ํ•ด๋†”์„œ ๋‘์นธ์ด ๋น„๊ฒŒ๋˜์—ˆ๊ณ ,

์šฐ๋ฆฌ๋Š” ์ด๊ฑธ ๊ฐ€์šด๋ฐ์ •๋ ฌ ํ•ด์ค˜์•ผํ•œ๋‹ค.

๋‘์นธ์ด ๋นˆ ๋ชจ์Šต

 

๋‹คํ–‰ํžˆ๋„ bootstrap์—์„œ ์ œ๊ณตํ•˜๋Š” ํด๋ž˜์Šค์ค‘

justify-content-center์„ ์‚ฌ์šฉํ•˜๋ฉด ๋œ๋‹ค!

 

(row๊ฐ€ ์• ์ดˆ์— flex๋ฅผ ์ด์šฉํ•œ๊ฒƒ์ด๋ฏ€๋กœ)

 

 

์•ˆ์— ์•„์ดํ…œ์„ ๊ฐ€์šด๋ฐ์ •๋ ฌํ•˜๊ณ ์‹ถ์€ row์— justify-content-center๋ผ๋Š” ํด๋ž˜์Šค๋ฅผ ์ถ”๊ฐ€ํ•ด์ฃผ๋ฉด ๋œ๋‹ค.

 

<div class="row justify-content-center">

 

 

 

 

+) ์ถ”๊ฐ€ - ์ „์ฒด์— padding ์ฃผ๊ธฐ

 

section.program ์ „์ฒด์— ํŒจ๋”ฉ์„ ์œ„์•„๋ž˜๋กœ ์ค˜์•ผํ•จ.

๊ทผ๋ฐ ์ž˜ ์‚ดํŽด๋ณด๋‹ˆ ํŒจ๋”ฉ๋„ ๋งˆ์ฐฌ๊ฐ€์ง€๋กœ curriculum ๋ถ€๋ถ„๊ณผ ์ผ์น˜ํ•จ. >> ๋ชจ๋“ˆํ™” ์‹œํ‚ค์ž!

 

์ด๋ฒˆ์—๋Š” section.programํƒœ๊ทธ์— section์ด๋ผ๋Š” ํด๋ž˜์Šค๋ฅผ ์ถ”๊ฐ€ํ•˜์ž.

<section class="program section">

 

๊ทธ๋ฆฌ๊ณ  ๋งˆ์ฐฌ๊ฐ€์ง€๋กœ style.css ์ƒ๋‹จ ๋ถ€๋ถ„์—

.section {
  padding: 80px 0;
}

์Šคํƒ€์ผ์„ ์ž‘์„ฑํ•ด์ค€๋‹ค.

 

 

desktop์ผ๋• padding์ด ์œ„:80px, ์•„๋ž˜:96px์ด๋ฏ€๋กœ (๋””์ž์ธ์‹œ์•ˆ ์ฐธ๊ณ )

๋ฏธ๋””์–ด์ฟผ๋ฆฌ๋ฅผ ์ ์šฉ์‹œ์ผœ์ฃผ์ž.

/* >= 768px (Desktop) */

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

	/* ๐Ÿ”บ ์ƒ๋žต */
    
 .section {
    padding-bottom: 96px;
  }
}

 

 

 

์ง€๊ธˆ๊นŒ์ง€ ์ง„ํ–‰์‚ฌํ•ญ

 


๐Ÿ”ป Design File

 

Figma

Created with Figma

www.figma.com

 

๐Ÿ”ปReference Lecture

 

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

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

edu.goorm.io