롯데월드 민속체험관 홈페이지 만들어보기
코드를 블로그에 올리기에 너무 길어서 느낀점만 기재
header
.wrap{
width: 100%;
min-width: 1200px;
}
.inner{
width: 1170px;
margin: auto;
box-sizing: border-box;
/* background-color: aqua; */
}
/* header */
header{
width: 100%;
position: sticky;
top: 0px;
z-index: 10;
background-color: white;
}
header>.inner{
height: 115px;
position: relative;
}
header>.inner>h1{
position: absolute;
top: 15px;
left: 0;
}
header>.inner>.top-menu{
display: flex;
justify-content: end;
}
header>.inner>.top-menu>li{
padding: 10px 15px;
position: relative;
font-size: small;
}
header>.inner>.nav>ul{
display: flex;
justify-content: center;
height: 79px;
}
header>.inner>.nav>ul>li{
margin: 0 40px;
}
header>.inner>nav>ul>li>a{
font-size: large;
line-height: 79px;
font-weight: bold;
}
header>.inner ul>li>a:hover{
color: green;
}
.bold{
font-weight: 700;
color: rgb(65, 65, 65);
}
header>.inner .bold:hover{
color: black;
font-weight: 700;
}
.before::before{
content: " ";
background-color: rgb(0, 0, 0);
width: 1px;
height: 13px;
position: absolute;
top:35%;
left:0;
}
main-img
/* main-image */
section{
width: 100%;
height: 725px;
background-image: url(../민속박물관/img/202005111050316900.jpg);
background-size: cover;
background-position: center;
display: flex;
justify-content: center;
align-items: center;
}
section>ul{
width: 95%;
display: flex;
justify-content: space-between;
}
section>ul>li img:hover{
font-weight: 700;
}
/* main */
main>.con-box{
width: 100%;
}
main>.con-box>.inner{
padding: 120px 0;
}
con1
/* 운영시간 */
main>.con1>.inner{
height: 100px;
padding: 10px;
}
main>.con1>.inner{
text-align: center;
position: relative;
}
main>.con1>.inner>a>img{
position: absolute;
top: 35px;
left: 230px;
}
main>.con1>.inner>a>.time{
display: flex;
justify-content: center;
line-height: 80px;
}
main>.con1>.inner>a>.time>.ti{
display: flex;
justify-content: center;
padding-right: 30px;
font-size: 20px;
position: relative;
}
main>.con1>.inner>a>.time>p{
font-size: 20px;
margin-right: 20px;
}
main>.con1>.inner>a>.time>.ti>p{
margin-left: 10px;
}
main>.con1>.inner>a>.time>.last{
margin-right: 0;
}
main>.con1>.inner>a>.time>.ti>.before::before{
content: " ";
background-color: rgb(0, 0, 0);
width: 1px;
height: 20px;
position: absolute;
top:38%;
left:0;
}
main>.con1>.inner>a>.time>.ti:first-child{
font-weight: 300;
}
con2
/* 상설전시 특별전시 */
main>.con2{
background-image: url(../민속박물관/img/mainCon1_bg.jpg);
background-size: cover;
background-position: center;
}
main>.con2>.inner{
/* height: 890px; */
text-align: center;
margin: 0 auto;
}
main>.con2>.inner>h1{
font-size: 36px;
margin-bottom: 50px;
margin-top: 50px;
color: white;
}
main>.con2>.inner>h3{
font-size: 16px;
margin-bottom: 50px;
color: white;
}
main>.con2>.inner>ul{
display: flex;
justify-content: space-between;
}
main>.con2>.inner>ul>li .img{
width: 574px;
height: 420px;
background-size: cover;
background-position: center;
}
main>.con2>.inner>ul>li .img1{
background-image: url(../민속박물관/img/mainCon1_img1.jpg);
}
main>.con2>.inner>ul>li .img2{
background-image: url(../민속박물관/img/mainCon1_img2.jpg);
}
main>.con2>.inner>ul>li p{
height: 82px;
font-size: 20px;
color: white;
line-height: 82px;
font-weight: 700;
}
main>.con2>.inner>ul>li{
border: 3px solid rgba(255, 255, 255, 0);
transition: 0.4s;
}
main>.con2>.inner>ul>li:hover{
border : 3px solid white
}
con3
/* 다양한 프로그램 */
main>.con3{
background-image: url(img/mainCon2_bg.jpg);
background-size: cover;
background-position: center;
}
main>.con3>.inner{
text-align: center;
}
main>.con3>.inner>h1{
font-size: 36px;
margin-bottom: 30px;
}
main>.con3>.inner>h3{
font-size: 16x;
margin-bottom: 50px;
}
main>.con3>.inner>ul{
display: flex;
justify-content: space-between;
}
main>.con3>.inner>ul .img{
width: 375px;
height: 246px;
}
main>.con3>.inner>ul .textArea{
width: 375px;
height: 77px;
}
main>.con3>.inner>ul .textArea>p{
line-height: 77px;
font-size: 20px;
font-weight: 700;
background-color: white;
}
main>.con3>.inner>ul>li:hover{
box-shadow: 15px 15px 30px rgb(163, 163, 163);
}
main>.con3>.inner>ul>li:hover .textArea p{
background-color: rgb(1, 99, 1);
color: white;
}
con4
/* news */
main>.con4{
width: 100%;
}
main>.con4>.inner{
}
main>.con4>.inner>h1{
font-size: 36px;
margin-bottom: 30px;
text-align: center;
}
main>.con4>.inner>h3{
font-size: 16x;
margin-bottom: 50px;
text-align: center;
}
main>.con4>.inner>.news{
display: flex;
justify-content: space-between;
}
main>.con4>.inner>.news>.left{
border: 1px solid gray;
width: 492px;
padding: 40px 40px 20px 40px;
position: relative;
}
main>.con4>.inner>.news>.left>.more{
width: 20px;
position: absolute;
top: 40px;
right: 40px;
height: 20px;
background-image: url(../민속박물관/img/newsMoreBt_icon.png);
}
main>.con4>.inner>.news>.left>.more::before{
content: "더보기";
position: absolute;
top:0px;
right: 25px;
width: 50px;
font-size: small;
padding-top: 2px;
font-weight: 300;
}
main>.con4>.inner>.news>.left>h3{
font-size: 25px;
font-weight: 700;
margin-bottom: 20px;
}
main>.con4>.inner>.news>.left>.leftA{
border-bottom: 1px solid gray;
display: block;
padding-bottom: 20px;
}
main>.con4>.inner>.news>.left>.leftA>p{
font-size: 20px;
font-weight: 500;
margin-bottom: 63px;
}
main>.con4>.inner>.news>.left>.leftA>span{
color: gray;
font-weight: 300;
}
main>.con4>.inner>.news>.left>ul{
margin-top: 27px;
}
main>.con4>.inner>.news>.left>ul>li{
display: flex;
justify-content: space-between;
margin: 20px 0;
}
main>.con4>.inner>.news>.left>ul>li>a{
width: 405px;
overflow: hidden;
font-weight: 300;
text-overflow: ellipsis;
text-wrap: nowrap;
}
main>.con4>.inner>.news>.left>ul>li>a:hover{
text-decoration: underline;
}
main>.con4>.inner>.news>.left>ul>li>span{
color: gray;
font-weight: 300;
}
main>.con4>.inner>.news>.right{
width: 574px;
/* background-color: blanchedalmond; */
}
main>.con4>.inner>.news>.right>.top{
display: flex;
justify-content: space-between;
/* background-color: aqua; */
}
main>.con4>.inner>.news>.right>.top>.r1{
width: 276px;
height: 188px;
background-image: url(../민속박물관/img/mainCon3_util1_img1.png);
background-size: auto;
background-repeat: no-repeat;
background-position: 50% 40%;
padding: 128px 40px 40px 40px;
box-sizing: border-box;
border: 1px solid gray;
font-size: 16px;
font-weight: 500;
text-align: center;
}
main>.con4>.inner>.news>.right>.top>.r2{
width: 276px;
height: 188px;
background-image: url(../민속박물관/img/mainCon3_util1_img2.png);
background-size: auto;
background-repeat: no-repeat;
background-position: 50% 40%;
padding: 128px 40px 40px 40px;
box-sizing: border-box;
border: 1px solid gray;
font-size: 16px;
font-weight: 500;
text-align: center;
}
main>.con4>.inner>.news>.right>.bt{
background-image: url(../민속박물관/img/mainCon3_banner.jpg);
background-size: cover;
background-position: center;
width: 574px;
height: 192px;
padding: 40px;
box-sizing: border-box;
margin-top: 20px;
}
main>.con4>.inner>.news>.right>.bt>p{
font-size: 30px;
color: white;
font-weight: 300;
}
main>.con4>.inner>.news>.right>.bt>.more>a{
color: white;
font-size: 15px;
font-weight: 700;
}
main>.con4>.inner>.news>.right>.bt>.more{
margin-top: 15px;
}
main>.con4>.inner>.news>.right>.bt>.more>a::after{
content: url(img/mainCon3_banner_icon.png);
margin-left: 10px;
}
footer
footer>.inner{
padding: 50px 0px 130px;
}
footer>.inner>.top{
padding-bottom: 30px;
border-bottom: 1px solid gray;
}
footer>.inner>.top a{
font-size: 15px;
color: gray;
}
footer>.inner>.top .red{
font-size: 15px;
color: rgb(228, 19, 19);
}
footer>.inner>.bottom{
margin-top: 30px;
display: flex;
justify-content: space-between;
}
footer>.inner>.bottom>.left{
margin-right: 110px;
}
footer>.inner>.bottom>.left .txt{
margin-left: 11px;
padding-left: 11px;
}
footer>.inner>.bottom>.left>div>p>span{
color: gray;
}
footer>.inner>.bottom>.left .p2{
margin-top: 10px;
}
footer>.inner>.bottom>.left .copy{
margin-top: 30px;
font-size: 13px;
color: gray;
}
footer>.inner>.bottom .site>select{
width: 210px;
padding-left: 20px;
height: 45px;
padding-right: 35px;
border: 1px solid gray;
font-size: 15px;
color: gray;
}
'화면 수업 정리' 카테고리의 다른 글
HTML,CSS,JS 9일차 (0) | 2024.08.06 |
---|---|
HTML,CSS,JS 8일차 (0) | 2024.08.05 |
HTML,CSS,JS 6일차 (0) | 2024.08.01 |
HTML,CSS,JS 5일차 (0) | 2024.07.31 |
HTML,CSS,JS 4일차 (0) | 2024.07.30 |