home강의 홈으로
Section 5. 파이널 프로젝트
Lesson 4. 메인과 about

👉 완성본 보기


<main> <section id="about" class="section"> <header class="section__header"> <strong class="section__tag"> about </strong> <h1 class="section__title"> 얄코강좌는 </h1> </header> <div class="about"> <div class="about__card"> <img class="about__icon" src="./images/about_1.svg" alt=""> <h2 class="about__title _1"> 빠른 강의 </h2> <p class="about__text"> 군더더기 없는 진행으로 <br> 여러분의 시간을 절약합니다. </p> </div> <div class="about__card"> <img class="about__icon" src="./images/about_2.svg" alt=""> <h2 class="about__title _2"> 손쉬운 학습 </h2> <p class="about__text"> 강의 페이지를 활용해서 <br> 편리하게 실습할 수 있습니다. </p> </div> <div class="about__card"> <img class="about__icon" src="./images/about_3.svg" alt=""> <h2 class="about__title _3"> 플레이그라운드 </h2> <p class="about__text"> 강의를 위해 제작한 도구가 <br> 반복학습을 도와줍니다. </p> </div> </div> </section> </main>

3-main.css


.section { padding: 64px 16px; text-align: center; } .section__tag { font-size: var(--font-size-tag); color: var(--color-sub); } .section__title { font-size: var(--font-size-title); font-weight: bold; color: var(--color-text); }

데스크탑

main { display: grid; grid-template-columns: 1fr 1fr; }




4-about.css


1. 섹션 설정

#about { background-color: var(--color-light-bg); }

데스크탑

#about { grid-column: 1 / -1; }

2. 카드들 레이아웃

.about { display: inline-flex; gap: 1em; margin-top: 48px; }

모바일

.about { flex-direction: column; width: 100%; }

3. 카드와 아이콘

.about__card { padding: 48px; text-align: center; color: white; background-color: var(--color-dark); border-radius: 12px; } .about__icon { width: 120px; opacity: 0.25; }

데스크탑

.about__card { width: 320px; cursor: pointer; transition: all 350ms; }

4. 카드 안의 텍스트

.about__title { margin-top: 0.6em; font-size: var(--font-size-larger); font-weight: bold; } .about__title._1 { color: #FFB974; } .about__title._2 { color: #6BB0F3; } .about__title._3 { color: #FFBDCE; } .about__text { margin-top: 0.8em; font-size: var(--font-size-text); }

5. 영역에 마우스 오버시 해당 카드 외 축소

데스크탑

.about:hover .about__card:not(:hover) { transform: scale(0.9); }

6. 흐림 필터

데스크탑

/* 흐림 필터링을 위한 덮개 */ .about:hover .about__card:not(:hover)::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }

7. 롤오버된 카드

데스크탑

.about__card:hover { transform: scale(1.04); } .about__card:hover .about__icon { opacity: 1; }

🤔얄코에게 질문하기질문은 반.드.시 이리로 보내주세요! ( 강의사이트 질문기능 ✖ )

강의에서 이해가 안 되거나 실습상 문제가 있는 부분,
설명이 잘못되었거나 미흡한 부분을 메일로 알려주세요!

답변드린 뒤 필요할 경우 본 페이지에
관련 내용을 추가/수정하도록 하겠습니다.

이메일 주소
yalco@yalco.kr
메일 제목 (반드시 아래 제목을 붙여넣어주세요!)
[질문] 제대로 파는 HTML & CSS (유료 파트) 5-4

🛑질문 전 필독!!

  • 구글링을 먼저 해 주세요. 들어오는 질문의 절반 이상은 구글에 검색해 보면 1분 이내로 답을 찾을 수 있는 내용들입니다.
  • 오류 메시지가 있을 경우 이를 구글에 복붙해서 검색해보면 대부분 짧은 시간 내 해결방법을 찾을 수 있습니다.
  • 강의 페이지에 추가사항 등 놓친 부분이 없는지 확인해주세요. 자주 들어오는 질문은 페이지에 추가사항으로 업데이트됩니다.
  • "유료파트의 강의페이지는 어디 있나요?" - 각 영상의 시작부분 검은 화면마다 해당 챕터의 강의페이지 링크가 있습니다.
  • 질문을 보내주실 때는 문제가 어떻게 발생했고 어떤 상황인지 등을 구체적으로 적어주세요. 스크린샷을 첨부해주시면 더욱 좋습니다.
🌏 Why not change the world?