프런트엔드-HTML

HTML 구조 설계

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

샘플2 = 골프장 / 예약 사이트형
목록으로
<!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;
}

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:#0b6b3a;
}

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

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

/* Hero */
.hero{
height:520px;
background:
linear-gradient(rgba(0,0,0,.45), rgba(0,0,0,.45)),
url("https://images.unsplash.com/photo-1535131749006-b7f58c99034b")
no-repeat center / cover;

display:flex;
align-items:center;
color:white;
}

.hero_text{
max-width:650px;
}

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

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

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

.btn{
display:inline-block;
padding:16px 34px;
background:#0b6b3a;
color:white;
border-radius:8px;
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{
color:#666;
font-size:17px;
}

/* Course Card */
.course_wrap{
display:flex;
gap:30px;
}

.course{
width:calc(100% / 3);
border-radius:22px;
overflow:hidden;
background:white;
box-shadow:0 10px 25px rgba(0,0,0,.08);
transition:.3s;
}

.course:hover{
transform:translateY(-10px);
}

.course_img{
height:260px;
background:#ddd;
}

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

.course_text{
padding:30px;
}

.course_text h3{
font-size:26px;
margin-bottom:15px;
color:#0b6b3a;
}

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

/* Reservation */
.reserve{
background:#f2f8f4;
padding:90px 0;
}

.reserve_box{
background:white;
border-radius:28px;
padding:50px;
display:flex;
justify-content:space-between;
align-items:center;
gap:40px;
box-shadow:0 15px 35px rgba(0,0,0,.08);
}

.reserve_text{
width:60%;
}

.reserve_text h2{
font-size:38px;
margin-bottom:20px;
}

.reserve_text p{
color:#666;
line-height:1.8;
}

.reserve_btn{
width:220px;
height:60px;
background:#0b6b3a;
color:white;
border-radius:12px;
display:flex;
justify-content:center;
align-items:center;
font-weight:800;
}

/* Footer */
.footer{
height:100px;
background:#111;
color:#fff;
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{
height:480px;
}

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

.hero_text p{
font-size:16px;
}

.course_wrap{
flex-direction:column;
}

.course{
width:100%;
}

.reserve_box{
flex-direction:column;
align-items:flex-start;
padding:35px;
}

.reserve_text{
width:100%;
}

.reserve_text h2{
font-size:30px;
}

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

<body>

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

<div class="logo">GREEN CC</div>

<nav class="menu">
<a href="#">Club</a>
<a href="#">Course</a>
<a href="#">Reservation</a>
<a href="#">Contact</a>
</nav>

</div>
</header>

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

<div class="hero_text">
<span>PREMIUM GOLF CLUB</span>

<h1>
자연과 함께하는<br>
프리미엄 골프 경험
</h1>

<p>
아름다운 코스와 편안한 서비스로
특별한 하루를 만들어드립니다.
</p>

<a href="#" class="btn">실시간 예약하기</a>
</div>

</div>
</section>

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

<div class="section_title">
<h2>Course Guide</h2>
<p>전략과 자연이 어우러진 코스를 만나보세요.</p>
</div>

<div class="course_wrap">

<div class="course">
<div class="course_img">
<img src="https://images.unsplash.com/photo-1587174486073-ae5e5cff23aa" alt="East Course">
</div>
<div class="course_text">
<h3>East Course</h3>
<p>
넓은 페어웨이와 부드러운 동선으로
편안한 라운딩을 즐길 수 있는 코스입니다.
</p>
</div>
</div>

<div class="course">
<div class="course_img">
<img src="https://images.unsplash.com/photo-1593111774240-d529f12cf4bb" alt="West Course">
</div>
<div class="course_text">
<h3>West Course</h3>
<p>
전략적인 플레이가 필요한 코스로
도전적인 라운딩 경험을 제공합니다.
</p>
</div>
</div>

<div class="course">
<div class="course_img">
<img src="https://images.unsplash.com/photo-1535131749006-b7f58c99034b" alt="Valley Course">
</div>
<div class="course_text">
<h3>Valley Course</h3>
<p>
자연 지형을 살린 아름다운 풍경과
여유로운 플레이를 즐길 수 있습니다.
</p>
</div>
</div>

</div>

</div>
</section>

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

<div class="reserve_box">

<div class="reserve_text">
<h2>빠르고 간편한 예약 서비스</h2>
<p>
원하는 날짜와 시간을 선택하여
편리하게 라운딩을 예약할 수 있습니다.
</p>
</div>

<a href="#" class="reserve_btn">
예약 바로가기
</a>

</div>

</div>
</section>

<footer class="footer">
COPYRIGHT 2026. GREEN CC. ALL RIGHTS RESERVED.
</footer>

</body>
</html>
#샘플2 = 골프장 / 예약 사이트형

첨부 파일

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

댓글 / 답글

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