프런트엔드-HTML

HTML 구조 설계

강사: 최퍼블리셔 · 작성자: 이종춘 · 작성일: 2026-06-16 16:46:57 · 조회수: 16

실무형 10번 = 웹퍼블리셔 포트폴리오 완성형
구성은 Header + Hero + Project Card + Skill + Contact Modal + 반응형 햄버거
목록으로
<!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:#f7f7f7;}
a{text-decoration:none;color:inherit;}
button{font-family:inherit;}
.wrap{max-width:1200px;width:100%;margin:0 auto;padding:0 20px;}

.header{
height:80px;
background:#fff;
border-bottom:1px solid #eee;
position:relative;
z-index:20;
}

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

.logo{
font-size:26px;
font-weight:900;
color:#111;
}

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

.menu a{
font-weight:700;
}

.ham{
display:none;
background:none;
border:0;
font-size:28px;
cursor:pointer;
}

.hero{
padding:110px 0;
background:#111;
color:white;
}

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

.hero_text{
width:55%;
}

.hero_text span{
display:inline-block;
margin-bottom:20px;
color:#8cffc1;
font-weight:900;
}

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

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

.btn{
display:inline-block;
padding:16px 34px;
background:#8cffc1;
color:#111;
border-radius:8px;
font-weight:900;
cursor:pointer;
}

.hero_profile{
width:45%;
height:380px;
background:linear-gradient(135deg,#8cffc1,#4ba3ff);
border-radius:30px;
display:flex;
justify-content:center;
align-items:center;
color:#111;
font-size:42px;
font-weight:900;
}

.section{
padding:90px 0;
}

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

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

.title p{
color:#666;
}

.project_wrap{
display:flex;
gap:30px;
}

.project_card{
width:calc(100% / 3);
background:white;
border-radius:24px;
overflow:hidden;
box-shadow:0 12px 30px rgba(0,0,0,.08);
transition:.3s;
}

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

.project_img{
height:250px;
}

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

.project_text{
padding:30px;
}

.project_text h3{
font-size:24px;
margin-bottom:12px;
}

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

.tag_wrap{
display:flex;
flex-wrap:wrap;
gap:8px;
margin-bottom:20px;
}

.tag{
padding:7px 12px;
background:#f0f0f0;
border-radius:30px;
font-size:13px;
font-weight:700;
}

.view_btn{
width:100%;
height:48px;
border:0;
border-radius:8px;
background:#111;
color:white;
font-weight:900;
cursor:pointer;
}

.skill{
background:#fff;
padding:90px 0;
}

.skill_wrap{
display:flex;
gap:30px;
}

.skill_box{
width:calc(100% / 4);
padding:35px 20px;
background:#f7f7f7;
border-radius:22px;
text-align:center;
transition:.3s;
}

.skill_box:hover{
background:#111;
color:white;
}

.skill_box h3{
font-size:24px;
margin-bottom:12px;
}

.skill_box p{
color:#666;
line-height:1.6;
}

.skill_box:hover p{
color:#ccc;
}

.contact{
padding:90px 0;
background:#111;
color:white;
}

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

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

.contact_box p{
color:#ccc;
line-height:1.7;
}

.footer{
height:100px;
background:#000;
color:white;
display:flex;
justify-content:center;
align-items:center;
}

.modal_wrap{
position:fixed;
inset:0;
background:rgba(0,0,0,.6);
display:none;
justify-content:center;
align-items:center;
z-index:50;
}

.modal_wrap.active{
display:flex;
}

.modal{
width:390px;
background:white;
border-radius:22px;
padding:35px;
text-align:center;
}

.modal h3{
font-size:26px;
margin-bottom:20px;
}

.modal input,
.modal textarea{
width:100%;
margin-bottom:12px;
padding:0 15px;
border:1px solid #ddd;
font-family:inherit;
}

.modal input{
height:48px;
}

.modal textarea{
height:120px;
padding-top:15px;
resize:none;
}

.close_btn{
width:100%;
height:48px;
background:#111;
color:white;
border:0;
border-radius:8px;
cursor:pointer;
margin-top:10px;
}

@media(max-width:768px){

.header,
.header .wrap{
height:70px;
}

.ham{
display:block;
}

.menu{
display:none;
position:absolute;
top:70px;
left:0;
width:100%;
background:white;
flex-direction:column;
gap:0;
border-bottom:1px solid #eee;
}

.menu.active{
display:flex;
}

.menu a{
padding:18px 20px;
border-top:1px solid #eee;
}

.hero{
padding:80px 0;
}

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

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

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

.hero_profile{
height:280px;
font-size:34px;
}

.project_wrap,
.skill_wrap{
flex-direction:column;
}

.project_card,
.skill_box{
width:100%;
}

.contact_box{
flex-direction:column;
align-items:flex-start;
}

}
</style>
</head>

<body>

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

<div class="logo">PORTFOLIO</div>

<nav class="menu">
<a href="#">About</a>
<a href="#">Project</a>
<a href="#">Skill</a>
<a href="#">Contact</a>
</nav>

<button class="ham">☰</button>

</div>
</header>

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

<div class="hero_text">
<span>WEB PUBLISHER PORTFOLIO</span>

<h1>
사용자 경험을 생각하는<br>
웹 퍼블리셔
</h1>

<p>
Figma 디자인을 기반으로 HTML, CSS, JavaScript를 활용해
반응형 웹사이트와 인터랙션 UI를 구현합니다.
</p>

<a class="btn open_btn">연락하기</a>
</div>

<div class="hero_profile">
CURSAMAN
</div>

</div>
</section>

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

<div class="title">
<h2>Projects</h2>
<p>디자인과 퍼블리싱을 연결한 실무형 프로젝트입니다.</p>
</div>

<div class="project_wrap">

<div class="project_card">
<div class="project_img">
<img src="https://images.unsplash.com/photo-1498050108023-c5249f4df085" alt="기업형 사이트">
</div>

<div class="project_text">
<h3>기업형 B2B 사이트</h3>
<p>
Header, Hero, Card, CTA 구조를 활용한
기업형 랜딩페이지 구현 프로젝트입니다.
</p>

<div class="tag_wrap">
<span class="tag">HTML</span>
<span class="tag">CSS</span>
<span class="tag">Responsive</span>
</div>

<button class="view_btn open_btn">프로젝트 문의</button>
</div>
</div>

<div class="project_card">
<div class="project_img">
<img src="https://images.unsplash.com/photo-1535131749006-b7f58c99034b" alt="골프 사이트">
</div>

<div class="project_text">
<h3>골프 예약 사이트</h3>
<p>
골프장 소개, 코스 카드, 예약 CTA와
반응형 레이아웃을 구현한 사이트입니다.
</p>

<div class="tag_wrap">
<span class="tag">Figma</span>
<span class="tag">Publishing</span>
<span class="tag">UI</span>
</div>

<button class="view_btn open_btn">프로젝트 문의</button>
</div>
</div>

<div class="project_card">
<div class="project_img">
<img src="https://images.unsplash.com/photo-1516321318423-f06f85e504b3" alt="교육 사이트">
</div>

<div class="project_text">
<h3>교육 플랫폼 사이트</h3>
<p>
강의 카드, 후기 섹션, 신청 버튼을 구성한
교육 서비스형 웹페이지입니다.
</p>

<div class="tag_wrap">
<span class="tag">Card UI</span>
<span class="tag">Flex</span>
<span class="tag">Hover</span>
</div>

<button class="view_btn open_btn">프로젝트 문의</button>
</div>
</div>

</div>

</div>
</section>

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

<div class="title">
<h2>Skills</h2>
<p>웹퍼블리싱 작업에 활용하는 핵심 기술입니다.</p>
</div>

<div class="skill_wrap">

<div class="skill_box">
<h3>HTML</h3>
<p>시맨틱 구조와 웹페이지 기본 구조 작성</p>
</div>

<div class="skill_box">
<h3>CSS</h3>
<p>레이아웃, 반응형, hover 인터랙션 구현</p>
</div>

<div class="skill_box">
<h3>JavaScript</h3>
<p>클릭 이벤트와 간단한 UI 제어 구현</p>
</div>

<div class="skill_box">
<h3>Figma</h3>
<p>UI 시안 제작과 컴포넌트 정리</p>
</div>

</div>

</div>
</section>

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

<div class="contact_box">

<div>
<h2>함께 만들 프로젝트가 있나요?</h2>
<p>
디자인 시안부터 퍼블리싱 구현까지
사용자 경험을 고려한 웹사이트를 제작합니다.
</p>
</div>

<a class="btn open_btn">문의하기</a>

</div>

</div>
</section>

<footer class="footer">
COPYRIGHT 2026. CURSAMAN PORTFOLIO. ALL RIGHTS RESERVED.
</footer>

<div class="modal_wrap">
<div class="modal">
<h3>프로젝트 문의</h3>
<input type="text" placeholder="이름">
<input type="text" placeholder="연락처">
<textarea placeholder="문의 내용"></textarea>
<button class="close_btn">닫기</button>
</div>
</div>

<script>
const hamEl = document.querySelector('.ham');
const menuEl = document.querySelector('.menu');

hamEl.addEventListener('click', () => {
menuEl.classList.toggle('active');
});

const openBtns = document.querySelectorAll('.open_btn');
const modalWrap = document.querySelector('.modal_wrap');
const closeBtn = document.querySelector('.close_btn');

for(let i = 0; i < openBtns.length; i++){
openBtns[i].addEventListener('click', () => {
modalWrap.classList.add('active');
});
}

closeBtn.addEventListener('click', () => {
modalWrap.classList.remove('active');
});
</script>

</body>
</html>
#실무형 10번 = 웹퍼블리셔 포트폴리오 완성형

첨부 파일

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

댓글 / 답글

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