http://greenweb.dothome.co.kr/samsung/
Document
나만의 보험찾기 보장별, 인생시기별로 내게 딱 맞는 보험을 찾아보세요.
greenweb.dothome.co.kr
1) html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
<script src="https://kit.fontawesome.com/9fc5dd465c.js" crossorigin="anonymous"></script>
<link rel="stylesheet" href="css/reset.css">
<link rel="stylesheet" href="../css/style2.css">
</head>
<body>
<!-- 상단영역 -->
<div id="header">
<div class="inner_wrap">
<div class="logo_area">
<h1><img src="./images/logo.png" alt=""></h1>
<ul>
<li><a href="#">개인</a></li>
<li><a href="#">기업</a></li>
</ul>
</div>
<div class="nav">
<ul>
<li><a href="#">MY삼성생명</a></li>
<li><a href="#">전체상품</a></li>
<li><a href="#">라이프&</a></li>
<li><a href="#">고객센터</a></li>
</ul>
<div>
<ul>
<li><a href="#">로그인</a></li>
<!-- <li><a href="#">인증센터</a></li> -->
</ul>
</div>
<button><i class="fas fa-search"></i></button>
<button><i class="fas fa-bars"></i></button>
</div>
</div>
</div>
<!-- 상단영역 /-->
<!-- 메인영역 -->
<div id="main_content">
<!-- 비주얼 -->
<div class="inner_wrap clearboth" id="visual">
<!--왼쪽 로그인부분 -->
<div class="left_">
<div id="login">
<a href="#" class="login_button">삼성생명 로그인</a>
<ul class="btn_group clearboth">
<li><a href="#">인증센터</a></li>
<li><a href="#">이용등록</a></li>
</ul>
</div>
<ul class="clearboth" id="iconul">
<li><a href="#"><i><img src="images/icon01.png" alt=""></i><span>나의계약</span></a></li>
<li><a href="#"><i><img src="images/icon02.png" alt=""></i><span>보험금청구</span></a></li>
<li><a href="#"><i><img src="images/icon03.png" alt=""></i><span>보험료납입</span></a></li>
<li><a href="#"><i><img src="images/icon04.png" alt=""></i><span>보홈계약대출</span></a></li>
<li><a href="#"><i><img src="images/icon05.png" alt=""></i><span>변액펀드변경</span></a></li>
<li><a href="#"><i><img src="images/icon06.png" alt=""></i><span>분할/만기보험금</span></a></li>
<li><a href="#"><i><img src="images/icon07.png" alt=""></i><span>IPR가입</span></a></li>
<li><a href="#"><i><img src="images/icon08.png" alt=""></i><span>종합자산관리</span></a></li>
<li><a href="#"><i><img src="images/icon09.png" alt=""></i><span>다이렉트보험</span></a></li>
<li><a href="#"><i><img src="images/icon10.png" alt=""></i><span>소비자포털</span></a></li>
<li><a href="#"><i><img src="images/icon11.png" alt=""></i><span>컬설팅신청 동의라운지</span></a></li>
<li><a href="#"><i><img src="images/icon12.png" alt=""></i><span>회사지원 연금가입</span></a></li>
</ul>
</div>
<!--왼쪽 로그인부분 /-->
<!--오른쪽 이미지부분 -->
<div class="right_">
<div><img src="images/main_visual02.png" alt=""></div>
<h2>국가고객만족도 생명보험부문 1위</h2>
<p>고객님의 사랑으로 삼성생명이 2019년 NSCI 생명보험부문 16년 연속 1위를 수상하였습니다.</p>
</div>
<!--오른쪽 이미지부분 / -->
</div>
<!-- 비주얼 /-->
<!-- 보험상품 -->
<div id="insurance_story">
<div class="inner_wrap">
<h2 class="main_tit">소소한 일상 속 든든한 보험이야기<span>보험상품</span></h2>
<ul class="text-box clearboth">
<li class="story_box">
"돈보다 소중한 걸 지키려니 돈이 필요하구나."
</li>
<li class="story_box">
"매일 같이 등원하는 별이가 세상에서 제일 예쁘데요."
</li>
<li class="story_box">
"내 안에 살던 예술가가 깨어났어요."
</li>
<li class="story_box">
"아내가 이제 조신하게 살림하래요."
</li>
</ul>
</div>
<div class="link_div">
<ul>
<li>
<a href="">
<span><i class="fas fa-home"></i></span>
<p>종기/종신보험</p>
</a>
</li>
<li>
<a href="">
<span><i class="fas fa-heart"></i></span>
<p>종기/종신보험</p>
</a>
</li>
<li>
<a href="">
<span><i class="fas fa-piggy-bank"></i></span>
<p>연금/저축보험</p>
</a>
</li>
<li>
<a href="">
<span><i class="fas fa-seedling"></i></span>
<p>자녀보험</p>
</a>
</li>
<li>
<a href="">
<span><i class="fas fa-laptop"></i></span>
<p>다이렉트 보험</p>
</a>
</li>
</ul>
</div>
</div>
<!-- 보험상품 /-->
<!-- 라이프매거진 -->
<div id="life" class="inner_wrap">
<h2 class="main_tit">내 삶을 레밸업할 인생정보가 가득<span>라이프 매거진</span></h2>
<ul class="clearboth">
<li>
<img src="images/photo01.jpg" alt="">
<p>오늘을 살까? 내일을 준비할까?</p>
</li>
<li>
<img src="images/photo02.jpg" alt="">
<p>오늘을 살까? 내일을 준비할까?</p>
</li>
<li>
<img src="images/photo03.jpg" alt="">
<p>오늘을 살까? 내일을 준비할까?</p>
</li>
<li>
<img src="images/photo04.jpg" alt="">
<p>오늘을 살까? 내일을 준비할까?</p>
</li>
</ul>
</div>
<!-- 라이프매거진 /-->
<!-- 광고 -->
<div id="main_banner">
<div class="inner_wrap">
<ul class="clearboth">
<li class="clearboth">
<div>
<h3>나만의 보험찾기</h3>
<p>보장별, 인생시기별로<br> 내게 딱 맞는 보험을 찾아보세요.</p>
</div>
<span>
<img src="images/02icon02.png" alt="">
</span>
</li>
<li class="clearboth">
<div>
<h3>내보험 종합진단</h3>
<p>모든 보험사에 가입한<br> 내보험 다 모아 한번에 진단 받아보세요.</p>
</div>
<span>
<img src="images/02icon01.png" alt="">
</span>
</li>
</ul>
</div>
</div>
<!-- 광고 /-->
<!-- 커뮤니티 -->
<div class="inner_wrap clearboth" id="main_community">
<!-- 왼쪽 div-->
<div class="left_div">
<h2 class="main_tit">자주묻는 질문</h2>
<ul>
<li><strong>Q</strong><span>이용등록이란 무엇인가요? 왜 해야 하나요?</span></li>
<li><strong>Q</strong><span>1회용 인증이란 무엇인요? </span></li>
<li><strong>Q</strong><span>보험금 청구는 어떻게 하나요?</span></li>
<li><strong>Q</strong><span>전자금융거래계좌 등록이나 변경은 어떻게 하나요?</span></li>
<li><strong>Q</strong><span>부활 보험료를 카드로 납입 할 수 있나요?</span></li>
<li><strong>Q</strong><span>자동이체 신청, 변경, 해지 절차를 알려주세요</span></li>
</ul>
</div>
<!-- 왼쪽 div /-->
<!-- 오른쪽 div-->
<div class="right_div">
<div class="event">
<h2 class="main_tit">이벤트</h2>
<div>
<h3>이불밖은 위험해 보험이 필요해!</h3>
<p>인터넷으로 바로! 간단하게 가입</p>
</div>
</div>
<div class="notice">
<h2 class="main_tit">공지</h2>
<ul>
<li><span>2020.09.06</span>보험게약대출 가능 금액 상향 조정 안내</li>
<li><span>2020.09.04</span>새롭게 개편된 삼성생명은 '이용등록'부터 시작해 주세요</li>
<li><span>2020.09.01</span>(재공지) ios앱 최신 버전 업데이트 - 정상화</li>
</ul>
</div>
</div>
<!-- 오른쪽 div /-->
</div>
<!-- 커뮤니티 /-->
<!-- 추천상품 -->
<div class="inner_wrap" id="recommand">
<h2 class="main_tit">추천 금융상품</h2>
<ul class="clearboth">
<li>
<p>삼성생명 펀드 전문가가 선정한 분기별 우수 펀드</p>
<strong>추천펀드</strong>
</li>
<li>
<p>필요할 때 바로바로 보장은 그래도 편리하게</p>
<strong>보험계약대출</strong>
</li>
<li>
<p>소중한 은퇴자산을 든든하게 지켜드리는</p>
<strong>퇴직연금</strong>
</li>
<li>
<p>아파트 구입 시 부족한 자금 생활에 필요한 가계자금</p>
<strong>주택담보대출</strong>
</li>
</ul>
</div>
<!-- 추천상품 /-->
</div>
<!-- 메인컨텐츠 /-->
<!-- 하단영역 -->
<div id="footer">
<div id="footer_menu">
<div class="inner_wrap">
<ul class="clearboth">
<li>약관/정책안내</li>
<li>안내/유의사항</li>
<li>각족신고정보</li>
<li>고객센터 1588-3114</li>
<li>패밀리/그룹사/업무시스템</li>
</ul>
</div>
</div>
<div id="footer_copy" class="inner_wrap">
<div class="clearboth">
<img src="images/footer_logo.png" alt="">
<ul class="clearboth">
<li><a href="#">개인정보 처리방침</a></li>
<li><a href="#">인증센터</a></li>
<li><a href="#">공시실</a></li>
<li><a href="#">소비자포털</a></li>
<li><a href="#">컨설턴트</a></li>
<li><a href="#">회사소개</a></li>
<li><a href="#">English</a></li>
</ul>
</div>
<address>
서울틀별시 서초구 서초대로 74길 11 삼성생명보험주식회사 대표이사 전영묵 사업자 등록번호 104-11-12345<br/>
(c) SAMSUNG LIFE INSURANCE.
</address>
</div>
</div>
<!-- 하단영역 /-->
</body>
</html>
2) scss
//reset
* { margin: 0; padding: 0; box-sizing: border-box;}
a { text-decoration: none; color: inherit;}
body {
font-size: 14px;
line-height: 1.6;
font-family: '나눔고딕',sans-serif;
}
$dpadding: 16px;
$gray: #ccc;
$lightblue: #f2f8ff;
$blue: #007aff;
$white: #fff;
$lightpuple: #dfe6f9;
@mixin default-width ($wid: 1200px) {
width: 100%;
max-width: $wid;
margin: 0 auto;
}
@mixin flexlayout ($d: row, $w: nowrap, $j: space-between, $a: center) {
display: flex;
flex-flow: $d $w;
justify-content: $j;
align-items: $a;
}
#header {
padding: $dpadding 0;
border-bottom: 1px solid $gray;
margin-bottom: $dpadding*4;
}
.inner_wrap {
@include default-width();
@include flexlayout();
.logo_area {
@include flexlayout();
ul {
@include flexlayout();
margin-left: $dpadding;
border: 1px solid $gray;
li:nth-child(2) {
background: $gray
}
li {
padding: $dpadding/4;
font-size: 13px;
}
}
}
.nav {
@include flexlayout();
ul {
@include flexlayout();
}
> ul li {
padding: $dpadding;
}
> div li {
border: 1px solid $gray;
padding: 2px 13px;
}
button {
padding: $dpadding/5;
margin-left: 7px;
}
}
}
.clearboth::after {
content: "";
display: block;
clear: both;
}
#visual {
margin-bottom: 50px;
@include flexlayout();
.left_ {
width: 30%;
#login {
background: $lightblue;
width: 100%;
height: 160px;
border-radius: 10px;
@include flexlayout($d: column, $j: center);
.btn_group {
color: $blue;
padding: 10px $dpadding;
border: 1px solid $blue;
margin-top: 10px;
background: $white;
border-radius: 10px;
li {
float: left;
padding: 0 40px;
}
li:first-child {
border-right: 1px solid $blue;
}
}
.login_button {
background: $blue;
text-align: center;
padding: $dpadding 80px;
border-radius: 10px;
color: $white;
font-size: 20px;
}
}
#iconul {
@include flexlayout($w: wrap);
li {
text-align: center;
padding: 8px;
img {
width: 70%;
}
width: 25%;
span {
display: block;
}
}
}
}
.right_ {
width: 70%;
img {
width: 100%
}
h2 {
padding: 10px 0;
}
}
> div {
@include flexlayout(column);
}
}
.main_tit {
padding-top: 80px;
font-size: 30px;
span {
font-size: 35px
}
}
#insurance_story {
background: $lightpuple;
position: relative;
padding-bottom: 120px;
> div {
@include flexlayout($d: column);
.text-box {
@include flexlayout();
width: 100%;
> li:nth-child(even) {
margin-top: 80px;
}
li:not(:last-child) {
margin-right: 30px;
}
li {
font-size: 12px;
background: $white;
padding: 20px;
font-size: 18px;
box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
border-top-left-radius: 30px;
border-top-right-radius: 30px;
border-bottom-left-radius: 30px;
}
}
}
.link_div {
@include default-width();
background: $white;
border-radius: 30px;
position: absolute;
bottom: -80px;
left: 50%;
transform: translate(-50%,0);
ul {
@include flexlayout();
padding: $dpadding*2;
border-radius: 30px;
box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
li {
text-align: center;
padding: 0 30px;
padding-top: 10px;
span {
color: $white;
border-radius: 100px;
padding: 15px;
}
&:nth-child(1) span {
background: #6175ba;
}
&:nth-child(2) span {
background: #439f88;
}
&:nth-child(3) span {
background: #8a6eb8;
}
&:nth-child(4) span {
background: #6f9c47;
}
&:nth-child(5) span {
background: #508ed9;
}
p {
padding-top: 30px;
}
}
}
}
}
#life {
@include flexlayout(column);
margin-top: 50px;
ul {
@include flexlayout();
margin-top: 30px;
li {
img {
width: 100%;
border-top-right-radius: 20px;
border-top-left-radius: 20px;
}
width: 25%;
border: 1px solid #ccc;
border-radius: 20px;
p {
padding: 30px 40px;
}
&:not(:last-child) {
margin-right: 3%;
}
}
}
}
#main_banner {
background: $lightblue;
margin-top: 60px;
ul {
@include flexlayout();
width: 100%;
li {
@include flexlayout();
width: 100%;
padding: 80px 30px;
h3 {
padding-bottom: 30px;
font-size: 25px;
}
span {
background: $white;
border-radius: 100px;
}
}
}
}
#main_community {
@include flexlayout($w: wrap);
.left_div {
width: 45%;
li {
background: #eee;
margin: 10px 0;
padding: 15px 20px;
border-radius: 10px;
strong {
color: $blue;
padding-right: 10px;
}
}
}
.right_div {
width: 45%;
.event {
width: 100%;
div {
height: 200px;
background: $lightpuple;
background-image: url('../samsung/images/banner01.png');
background-size: contain;
background-repeat: no-repeat;
background-position: right;
margin-top: 10px;
padding: 20px;
border-radius: 20px;
padding-bottom: 120px;
h3 {
font-size: 30px;
width: 300px;
}
p {
padding-top: 40px;
font-size: 15px;
}
}
}
}
.notice {
ul {
margin-top: 10px;
li {
width: 100%;
}
}
}
}
#recommand {
@include flexlayout($d: column, $a: flex-start);
ul {
@include flexlayout();
width: 100%;
margin-top: 20px;
color: $white;
li {
background: #508ed9;
padding: 20px 30px;
width: 22%;
border-radius: 20px;
strong {
font-size: 25px;
}
p {
padding-bottom: 20px;
}
}
}
}
#footer {
padding-bottom: 40px;
#footer_menu {
background: #eee;
margin-top: 70px;
ul {
@include flexlayout();
width: 100%;
li {
width: 100%;
padding: 20px 0;
font-size: 14px;
padding-left: 20px;
border-right: 1px solid #ccc;
&:first-child {
border-left: 1px solid #ccc;
}
}
}
}
#footer_copy {
text-align: center;
font-size: 13px;
@include flexlayout($d: column);
> div {
@include flexlayout();
width: 100%;
padding: 40px 60px;
padding-bottom: 20px;
img {
width: 40%
}
ul {
@include flexlayout();
width: 100%;
li {
padding: 0 10px;
width: 100%;
}
}
}
}
}
3) header, #inxurance_story 부분 scss (teach)
$maincolor: #007aff;
$bgcolor1: #dfe6f9;
@mixin flexlayout ($dir: row, $wrap: nowrap, $justify: space-between, $align: center) {
display: flex;
flex-direction: $dir;
flex-wrap: $wrap;
justify-content: $justify;
align-items: $align;
}
#header {
border-bottom: 1px solid #ccc;
text-align: center;
div {
@include flexlayout();
height: 80px;
h1 {
background: url('../samsung/images/logo.png') center center/100% no-repeat; //url할 때 경로 잘 파악해서 넣기
width: 180px;
height: 40px;
font-size: 0;
margin-right: 20px;
}
}
.logo_area {
ul {
@include flexlayout();
border: 1px solid #ccc;
li {
line-height: 36px;
padding: 0 6px;
font-size: 13px;
&:nth-child(2) {
background: #ccc;
}
}
}
}
.nav {
> ul {
@include flexlayout();
li {
padding: 0 16px;
}
}
> div {
position: relative;
width: 70px;
height: 20px;
ul {
position: absolute;
top: 0;
left: 0;
width: 60px;
border: 1px solid #ccc;
font-size: 12px;
line-height: 22px;
li {
&:nth-child(2) {
display: none;
}
}
&:hover {
border-color: $maincolor;
li {
&:nth-child(2) {
display: block;
}
&:hover {
background: $maincolor;
a {color: #fff;}
}
}
}
}
}
}
}
.inner_wrap {
width: 100%;
max-width: 1200px;
margin: 0 auto;
}
.main_tit {
padding: 60px 0 20px;
text-align: center;
font-size: 32px;
span {
font-size: 42px;
font-weight: bold;
}
}
#insurance_story {
background: $bgcolor1;
position: relative;
padding-bottom: 120px;
.text-box {
@include flexlayout($align: flex-start);
height: 180px;
li {
background: #fff;
width: 22%;
padding: 30px;
border-radius: 40px 40px 0 40px;
box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
&:nth-child(even) {
align-self: flex-end;
}
}
}
.link_div {
width: 100%;
max-width: 1200px;
position: absolute;
left: 50%;
bottom: -50px;
transform: translate(-50%, 0);
background: #fff;
height: 100px;
border-radius: 24px;
box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
ul {
@include flexlayout();
text-align: center;
li {
width: 18%;
padding-top: 15px;
span {
display: inline-block;
width: 50px;
height: 50px;
border-radius: 50%;
color: #fff;
line-height: 50px;
}
&:nth-child(1) span {
background: #6175ba;
}
&:nth-child(2) span {
background: #439f88;
}
&:nth-child(3) span {
background: #8a6eb8;
}
&:nth-child(4) span {
background: #6f9c47;
}
&:nth-child(5) span {
background: #508ed9;
}
}
}
}
}
4) reset.css
* { margin: 0; padding: 0; box-sizing: border-box;}
a {text-decoration: none; color:inherit; }
img { vertical-align: top; }
table {
border-collapse: collapse;
}
li { list-style: none;}
h1, h2, h3, h4, h5, h6 {
font-weight: normal;
}
address {
font-style: normal;
}
input, select {
outline: none;
}
'노력이 좋아서' 카테고리의 다른 글
<step24>'css_animation' (0) | 2022.04.21 |
---|---|
<step23>'sccs_호텔 홈페이지 따라하기' (0) | 2022.04.20 |
<step22>'scss_연습하기' (0) | 2022.04.19 |
<step22>'scss_이자녹스 홈페이지 따라하기' (0) | 2022.04.19 |
<step21>'scss_기초' (0) | 2022.04.18 |