home강의 홈으로
Section 5. 파이널 프로젝트
Lesson 6. 커리큘럼

👉 완성본 보기


<section id="curriculum" class="section"> <header class="section__header"> <strong class="section__tag"> curriculum </strong> <h1 class="section__title"> 커리큘럼 </h1> </header> <div class="curriculum"> <ol class="curriculum__list"> <li><span>강의소개</span></li> <li><span>HTML 기초</span></li> <li><span>CSS 기초</span></li> <li><span>HTML 심화</span></li> <li><span>CSS 심화</span></li> <li><span>파이널 프로젝트</span></li> <div class="curriculum__progress"></div> </ol> </div> </section>

6-curriculum.css


1. 섹션과 타이틀

#curriculum { background-color: var(--color-dark); } #curriculum .section__title { color: white; }

데스크탑

#curriculum { grid-column: 1 / -1; padding-bottom: 88px; }

2. 커리큘럼 레이아웃

.curriculum { display: inline-block; position: relative; } .curriculum__list { display: inline-flex; font-size: var(--font-size-larger); font-weight: 100; text-align: left; color: white; }

모바일

.curriculum__list { flex-direction: column; margin-top: 48px; }

데스크탑

.curriculum__list { margin: 56px 0 56px 40px; }

3. 항목들

.curriculum__list li { font-size: 1.1em; } .curriculum__list li::before { content: ''; position: relative; z-index: 1; display: inline-block; width: 30px; height: 30px; vertical-align: middle; box-sizing: border-box; border-radius: 100%; border: 4px solid white; background-color: var(--color-dark); }

모바일

.curriculum__list li { line-height: 100px; cursor: pointer; } .curriculum__list li span { margin-left: 1.6em; }

데스크탑

.curriculum__list li { position: relative; width: 200px; height: 120px; } .curriculum__list li span { /* 글자 수에 관계없이 통일된 위치로 기울어지도록 */ display: inline-block; width: 164px; position: absolute; z-index: 1; top: 84px; left: 14px; opacity: 0.5; transform: rotate(45deg); } .curriculum__list li:hover span { opacity: 1; }

4. 프로세스 바

.curriculum__progress { position: absolute; }

모바일

.curriculum__progress { top: 108px; left: 12px; width: 0px; height: 500px; border-left: 6px dotted white; transform: skewY(-30deg); }

데스크탑

.curriculum__progress { top: 70px; left: 56px; width: 1000px; height: 8px; background-color: rgba(255, 255, 255, 0.1); }

5. 프로그래스 바 롤오버

데스크탑

.curriculum__progress::after { content: ''; position: absolute; top: 0; left: 0; background-color: var(--color-sub); width: 0; height: 8px; transition: all 1s; } .curriculum__list li:hover::before { background-color: var(--color-sub); } .curriculum__list li:nth-child(2):hover ~ .curriculum__progress::after { width: 200px; } .curriculum__list li:nth-child(3):hover ~ .curriculum__progress::after { width: 400px; } .curriculum__list li:nth-child(4):hover ~ .curriculum__progress::after { width: 600px; } .curriculum__list li:nth-child(5):hover ~ .curriculum__progress::after { width: 800px; } .curriculum__list li:nth-child(6):hover ~ .curriculum__progress::after { width: 1000px; }

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

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

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

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

🛑질문 전 필독!!

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