공지사항 | 갤러리
- 강원천문대 2023년 휴관일 안내2023.05.01
- 강원천문대 2023년 온라인 예매 안내2023.05.02
- 강원천문대 휴관일 및 이벤트 안내2023.05.03
- 강원천문대 주차장 이용 및 숙박 안내2023.05.04
2023년 하반기 천체 관측 프로그램 참가 신청 안내 안녕하세요. 강원천문대입니다. 2023년 하반기 천체 관측 프로그램에 참가하실 분들을 모집하고 있습니다. 관심 있는 분들은 많은 연락바랍니다.
닫기@charset "UTF-8";
/* reset */
* {
margin: 0;
padding: 0;
color: #333;
}
a {
text-decoration: none;
color: #333;
}
li {
list-style: none;
}
img {
vertical-align: top;
width: 100%;
}
/* warp */
#warp {
width: 1200px;
margin: 0 auto;
position: relative;
}
/* header */
#header {
width: 100%;
display: flex;
background-color: #0c51a6;
}
#header .logo {
width: 20%;
height: 100px;
}
#header .logo a {
display: inline-block;
color: #fff;
padding: 30px 40px;
}
#header .nav {
width: 80%;
height: 100px;
position: relative;
z-index: 1000;
}
#header .nav > ul {
display: flex;
justify-content: right;
align-items: center;
height: 100%;
}
#header .nav > ul > li {
position: relative;
}
#header .nav > ul > li > a {
color: #fff;
padding: 15px 45px;
background-color: #0a4288;
display: block;
}
#header .nav > ul > li > a:hover {
background-color: #025ece;
}
#header .nav > ul > li > ul {
width: 100%;
position: absolute;
left: 0;
background-color: #fff;
text-align: center;
display: none;
}
#header .nav > ul > li > ul >li > a {
padding: 10px 20px;
display: block;
}
#header .nav > ul > li > ul >li > a:hover {
background-color: #c0dcff;
}
/* slider */
#slider {
width: 100%;
height: 300px;
background-color: #e3e3e3;
}
#slider .sliderWrap {
position: relative;
}
#slider .sliderWrap .slider {
position: absolute;
left: 0;
top: 0;
}
#slider .sliderWrap .slider .text {
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
text-align: center;
background-color: rgba(0,0,0,0.4);
padding: 20px 30px;
}
#slider .sliderWrap .slider .text h2 {
color: #fff;
font-size: 30px;margin-bottom: 5px;
}
#slider .sliderWrap .slider .text p {
color: #fff;
font-size: 16px;
}
/* contents */
#contents {
width: 100%;
display: flex;
}
/* contents : info */
#contents .info {
width: 400px;
height: 200px;
background-color: #e5f1ff;
padding: 20px;
box-sizing: border-box;
}
#contents .info .info-menu {
margin-bottom: 10px;
}
#contents .info .info-menu a {
font-size: 22px;
}
#contents .info .info-menu a.active {
text-decoration: underline;
}
#contents .info .info-cont .notice {
display: none;
}
#contents .info .info-cont .notice li {
display: flex;
}
#contents .info .info-cont .notice li a {
width: 75%;
font-size: 16px;
line-height: 1.8;
}
#contents .info .info-cont .notice li a:hover {
text-decoration: underline;
}
#contents .info .info-cont .notice li span {
width: 25%;
font-size: 16px;
line-height: 1.8;
text-align: right;
}
#contents .info .info-cont .gallery ul {
display: flex;
justify-content: space-between;
}
#contents .info .info-cont .gallery ul li a {
border: 2px solid transparent;
display: block;
}
#contents .info .info-cont .gallery ul li a:hover {
border-color: #0a4288;
}
/* contents : banner */
#contents .banner {
width: 400px;
height: 200px;
background-image: url(../images/banner.jpg);
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
}
#contents .banner h3 {
color: #fff;
font-size: 26px;
}
#contents .banner a {
background-color: rgba(0,0,0,0.4);
padding: 10px 20px;
color: #fff;
border-radius: 50px;
margin-top: 10px;
}
#contents .banner a:hover {
background-color: rgba(0,0,0,1);
}
/* contents : link */
#contents .link {
width: 400px;
height: 200px;
background-image: url(../images/link.jpg);
}
#contents .link h3 {
color: #fff;
padding: 20px;
}
#contents .link a {
width: 100px;
height: 100px;
background-color: rgba(1,52,96,0.8);
display: block;
border-radius: 50%;
text-align: center;
color: #fff;
line-height: 100px;
margin: 0 auto;
}
#contents .link a:hover {
background-color: rgba(1,52,96,1);
}
/* footer */
#footer {
width: 100%;
display: flex;
background-color: #e7e7e7;
}
#footer .footer1 {
width: 20%;
height: 100px;
}
#footer .footer1 h4 {
font-size: 30px;
color: #7f7f7f;
padding: 32px 30px;
}
#footer .footer2 {
width: 80%;
}
#footer .footer2 .footer2-1 {
width: 100%;
height: 50px;
text-align: center;
}
#footer .footer2 .footer2-1 ul {
padding-top: 14px;
}
#footer .footer2 .footer2-1 li {
display: inline-block;
border-right: 1px solid #333;
}
#footer .footer2 .footer2-1 li:last-child {
border: 0;
}
#footer .footer2 .footer2-1 li a {
padding: 10px;
}
#footer .footer2 .footer2-1 li a:hover {
text-decoration: underline;
}
#footer .footer2 .footer2-2 {
width: 100%;
height: 50px;
text-align: center;
padding-top: 10px;
box-sizing: border-box;
}
/* popup */
.popup-view {
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
width: 300px;
height: 300px;
background-color: #8ec1ff;
border: 4px solid #0a4288;
padding: 20px;
display: none;
}
.popup-view h3 {
font-size: 24px;
margin-bottom: 15px;
border-bottom: 2px solid #0a4288;
color: #0a4288;
padding-bottom: 5px;
}
.popup-close {
position: absolute;
left: 50%;
bottom: 20px;
transform: translate(-50%);
background-color: #0a4288;
color: #fff;
padding: 8px 20px;
}
$(function(){
// 슬라이드 : 페이드 효과
let currentIndex = 0;
$(".slider").hide().first().show();
setInterval(function(){
let nextIndes = (currentIndex+1) % 3;
$(".slider").eq(currentIndex).fadeOut(1200);
$(".slider").eq(nextIndes).fadeIn(1200);
currentIndex = nextIndes;
}, 3000);
// 메뉴 : 하나씩 나오기
$(".nav > ul > li").mouseover(function(){
$(this).find(".submenu").stop().slideDown(200);
});
$(".nav > ul > li").mouseout(function(){
$(this).find(".submenu").stop().slideUp(200);
});
// 탭 메뉴
const tabBtn = $(".info-menu > a");
const tabCont = $(".info-cont > div");
tabCont.hide().eq(0).show();
tabBtn.click(function(){
const index = $(this).index();
$(this).addClass("active").siblings().removeClass("active");
tabCont.eq(index).show().siblings().hide();
});
// 팝업
$(".popup-btn").click(function(){
$(".popup-view").show()
});
$(".popup-close").click(function(){
$(".popup-view").hide()
});
});