프런트엔드-HTML

HTML 구조 설계

강사: 최퍼블리셔 · 작성자: 이종춘 · 작성일: 2026-06-15 23:05:40 · 조회수: 5

샘플4 = 교육 / 강의 사이트형
목록으로
<!DOCTYPE html>
<html lang="ko">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>교육 사이트 샘플</title>

<style>
*{
margin:0;
padding:0;
box-sizing:border-box;
}

body{
font-family:Arial, sans-serif;
color:#111;
background:#fff;
}

a{
text-decoration:none;
color:inherit;
}

.wrap{
max-width:1200px;
width:100%;
margin:0 auto;
padding:0 20px;
}

/* Header */
.header{
height:80px;
background:#fff;
border-bottom:1px solid #eee;
}

.header .wrap{
height:80px;
display:flex;
justify-content:space-between;
align-items:center;
}

.logo{
font-size:26px;
font-weight:800;
color:#ff6b00;
}

.menu{
display:flex;
gap:40px;
}

.menu a{
font-size:16px;
font-weight:700;
}

/* Hero */
.hero{
background:#fff4ec;
padding:100px 0;
}

.hero .wrap{
display:flex;
justify-content:space-between;
align-items:center;
gap:50px;
}

.hero_text{
width:50%;
}

.hero_text span{
display:inline-block;
margin-bottom:20px;
color:#ff6b00;
font-weight:800;
}

.hero_text h1{
font-size:52px;
line-height:1.25;
margin-bottom:25px;
}

.hero_text p{
font-size:18px;
line-height:1.7;
color:#555;
margin-bottom:35px;
}

.btn{
display:inline-block;
padding:16px 34px;
background:#ff6b00;
color:#fff;
border-radius:8px;
font-weight:800;
}

.hero_img{
width:50%;
height:380px;
background:
linear-gradient(135deg,#ff6b00,#ffb36b);
border-radius:30px;
display:flex;
justify-content:center;
align-items:center;
color:white;
font-size:42px;
font-weight:800;
}

/* Section */
.section{
padding:90px 0;
}

.section_title{
text-align:center;
margin-bottom:50px;
}

.section_title h2{
font-size:38px;
margin-bottom:15px;
}

.section_title p{
font-size:17px;
color:#666;
}

/* Lecture Card */
.lecture_wrap{
display:flex;
gap:30px;
}

.lecture_card{
width:calc(100% / 3);
border:1px solid #eee;
border-radius:22px;
overflow:hidden;
background:white;
transition:.3s;
}

.lecture_card:hover{
transform:translateY(-10px);
box-shadow:0 15px 30px rgba(0,0,0,.1);
}

.lecture_img{
height:230px;
background:#ddd;
}

.lecture_img img{
width:100%;
height:100%;
object-fit:cover;
display:block;
}

.lecture_text{
padding:30px;
}

.label{
display:inline-block;
padding:7px 12px;
background:#fff4ec;
color:#ff6b00;
border-radius:30px;
font-size:13px;
font-weight:800;
margin-bottom:15px;
}

.lecture_text h3{
font-size:23px;
margin-bottom:15px;
}

.lecture_text p{
font-size:15px;
line-height:1.7;
color:#666;
margin-bottom:20px;
}

.price{
font-size:22px;
font-weight:800;
color:#ff6b00;
}

/* Review */
.review{
background:#111;
color:white;
padding:90px 0;
}

.review_box{
display:flex;
justify-content:space-between;
align-items:center;
gap:50px;
}

.review_text{
width:45%;
}

.review_text span{
color:#ffb36b;
font-weight:800;
}

.review_text h2{
font-size:40px;
line-height:1.3;
margin:20px 0;
}

.review_text p{
color:#ccc;
line-height:1.8;
}

.review_cards{
width:55%;
display:flex;
gap:20px;
}

.review_card{
width:50%;
background:#222;
border-radius:22px;
padding:35px;
}

.review_card h3{
font-size:22px;
color:#ffb36b;
margin-bottom:15px;
}

.review_card p{
color:#ddd;
line-height:1.7;
font-size:15px;
}

/* Footer */
.footer{
height:100px;
background:#f5f5f5;
color:#777;
display:flex;
justify-content:center;
align-items:center;
}

/* Mobile */
@media(max-width:768px){

.header{
height:auto;
padding:20px 0;
}

.header .wrap{
height:auto;
flex-direction:column;
gap:20px;
}

.menu{
gap:20px;
flex-wrap:wrap;
justify-content:center;
}

.hero{
padding:70px 0;
}

.hero .wrap{
flex-direction:column;
}

.hero_text,
.hero_img{
width:100%;
}

.hero_text h1{
font-size:36px;
}

.hero_img{
height:260px;
font-size:32px;
}

.lecture_wrap{
flex-direction:column;
}

.lecture_card{
width:100%;
}

.review_box{
flex-direction:column;
}

.review_text,
.review_cards{
width:100%;
}

.review_cards{
flex-direction:column;
}

.review_card{
width:100%;
}
}
</style>
</head>

<body>

<header class="header">
<div class="wrap">

<div class="logo">LEARN AI</div>

<nav class="menu">
<a href="#">Course</a>
<a href="#">Mentor</a>
<a href="#">Review</a>
<a href="#">Apply</a>
</nav>

</div>
</header>

<section class="hero">
<div class="wrap">

<div class="hero_text">
<span>ONLINE CLASS PLATFORM</span>

<h1>
실무 중심으로 배우는<br>
AI & 웹 디자인 강의
</h1>

<p>
처음 시작하는 사람도 따라올 수 있도록
기초부터 프로젝트 제작까지 단계별로 학습합니다.
</p>

<a href="#" class="btn">강의 신청하기</a>
</div>

<div class="hero_img">
CLASS
</div>

</div>
</section>

<section class="section">
<div class="wrap">

<div class="section_title">
<h2>Popular Courses</h2>
<p>지금 가장 많이 듣는 실무형 강의입니다.</p>
</div>

<div class="lecture_wrap">

<div class="lecture_card">
<div class="lecture_img">
<img src="https://images.unsplash.com/photo-1516321318423-f06f85e504b3" alt="피그마 강의">
</div>

<div class="lecture_text">
<span class="label">Design</span>
<h3>Figma UI 디자인</h3>
<p>
화면 구성, 컴포넌트, 스타일가이드를
실무형 방식으로 학습합니다.
</p>
<div class="price">₩49,000</div>
</div>
</div>

<div class="lecture_card">
<div class="lecture_img">
<img src="https://images.unsplash.com/photo-1498050108023-c5249f4df085" alt="퍼블리싱 강의">
</div>

<div class="lecture_text">
<span class="label">Publishing</span>
<h3>HTML/CSS 퍼블리싱</h3>
<p>
웹페이지 구조와 반응형 레이아웃을
직접 구현하며 익힙니다.
</p>
<div class="price">₩59,000</div>
</div>
</div>

<div class="lecture_card">
<div class="lecture_img">
<img src="https://images.unsplash.com/photo-1555949963-aa79dcee981c" alt="자바스크립트 강의">
</div>

<div class="lecture_text">
<span class="label">JavaScript</span>
<h3>JS 인터랙션 기초</h3>
<p>
클릭 이벤트, classList, value,
localStorage를 단계별로 배웁니다.
</p>
<div class="price">₩69,000</div>
</div>
</div>

</div>

</div>
</section>

<section class="review">
<div class="wrap">

<div class="review_box">

<div class="review_text">
<span>STUDENT REVIEW</span>

<h2>
배우고 끝나는 강의가 아닌<br>
직접 만드는 수업
</h2>

<p>
실습 중심 커리큘럼으로 디자인부터 퍼블리싱,
JavaScript 인터랙션까지 연결해서 학습합니다.
</p>
</div>

<div class="review_cards">

<div class="review_card">
<h3>“구조가 보이기 시작했어요.”</h3>
<p>
막연했던 HTML/CSS 흐름이
프로젝트를 만들면서 조금씩 이해됐습니다.
</p>
</div>

<div class="review_card">
<h3>“따라 만들기 좋아요.”</h3>
<p>
기초부터 실습까지 단계별로 구성되어
처음 배우는 사람도 도전할 수 있습니다.
</p>
</div>

</div>

</div>

</div>
</section>

<footer class="footer">
COPYRIGHT 2026. LEARN AI. ALL RIGHTS RESERVED.
</footer>

</body>
</html>
#샘플4 = 교육 / 강의 사이트형

첨부 파일

0개
첨부된 파일이 없습니다.

댓글 / 답글

0개
댓글을 작성하려면 로그인하세요.
아직 댓글이 없습니다.