<!-- S : 이벤트 복사영역 여기서부터 -->
<style type="text/css">@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard-dynamic-subset.css');
body {
min-width: 1200px;
margin: 0;
padding: 0;
}
body * {
box-sizing: border-box;
}
.art-container-event {
background: #000000;
color: #ffffff;
font-family: Pretendard, sans-serif !important;
position: relative;
width: 100%;
max-width: 1200px;
margin: 0 auto;
text-align: center;
overflow: hidden;
}
.art-content-inner img {
display: block;
width: 100%;
}
.art-content-inner p,
.art-content-inner ul {
margin: 0;
padding: 0;
}
.art-content-inner a {
text-decoration: unset;
}
/* content */
.mv_wrap {
position: relative;
width: 100%;
overflow: hidden;
}
.mv_wrap p {
position: absolute;
color: #ffffff;
left: 117px;
font-size: 32px;
font-weight: 400;
line-height: 100%;
}
.mv_wrap p:nth-of-type(1) {
top: 90px;
}
.mv_wrap .main_move_txt {
position: absolute;
max-width: 348px;
top: 154px;
left: 112px;
}
.mv_wrap p:nth-of-type(2) {
bottom: 106px;
letter-spacing: -1px;
animation: shining 2s ease-in-out infinite;
}
.mv_wrap p:nth-of-type(2) span {
font-weight: 800;
}
@keyframes shining {
0% {
filter: drop-shadow(0 0 0 rgba(187, 241, 255, 0));
}
50% {
filter: drop-shadow(0 0 8px rgba(187, 241, 255, 0.5));
}
100% {
filter: drop-shadow(0 0 0 rgba(187, 241, 255, 0));
}
}
.content {
padding: 64px 0;
background-color: #D7E0FF;
}
.content_img {
max-width: 97px;
margin: 0 auto !important;
animation: rotateImg 2s ease-in-out infinite;
}
@keyframes rotateImg{
0% { transform: rotate(-5deg) }
50% { transform: rotate(5deg) }
100% { transform: rotate(-5deg) }
}
.content_ttl_wrap {
display: flex;
flex-direction: column;
align-items: center;
gap: 12px;
margin: 20px auto 0 !important;
}
.content_ttl_wrap p:nth-of-type(1) {
font-size: 20px;
font-weight: 400;
line-height: 100%;
letter-spacing: -0.8px;
color: #000000;
}
.content_ttl_wrap p:nth-of-type(2) {
font-size: 32px;
font-weight: 700;
line-height: 100%;
letter-spacing: -1.12px;
color: #000000;
}
.content_txt_wrap {
display: flex;
flex-direction: column;
gap: 16px;
max-width: 530px;
margin: 50px auto 0 !important;
padding: 40px 48px !important;
background-color: rgba(255, 255, 255, 0.5);
border-radius: 20px;
}
.content_txt_wrap li {
display: flex;
gap: 12px;
}
.content_txt_wrap li p:nth-of-type(1) {
font-size: 20px;
font-weight: 700;
line-height: 100%;
letter-spacing: -0.6px;
color: #5A6AF4;
}
.content_txt_wrap li p:nth-of-type(2) {
font-size: 20px;
font-weight: 400;
line-height: 100%;
letter-spacing: -1px;
color: #000000;
}
.content_txt_wrap li p:nth-of-type(2) span {
font-weight: 600;
}
.content_caution {
display: flex;
justify-content: center;
align-items: center;
width: 416px;
height: 64px;
margin: 30px auto 0 !important;
}
.content_caution_btn {
display: flex;
justify-content: center;
align-items: center;
gap: 5px;
text-decoration: none;
}
.content_caution_btn_img {
width: 16px;
height: 16px;
}
.content_caution_btn_txt {
font-size: 16px;
font-weight: 600;
line-height: 100%;
letter-spacing: -0.64px;
color: #000000;
}
.banner_link {
display: flex;
justify-content: center;
align-items: center;
gap: 60px;
padding: 60px 0;
background-color: #000000;
}
.banner_link img {
max-width: 80px !important;
}
.banner_link .banner_txt {
display: flex;
justify-content: center;
align-items: center;
gap: 10px;
font-size: 20px;
font-weight: 400;
line-height: 1;
letter-spacing: -1px;
color: #ffffff;
}
.banner_link .banner_txt::after {
content: '';
display: block;
width: 7px;
height: 14px;
background-image: url(https://image.a-rt.com/art/editor/202602/1772672781319.png);
background-repeat: no-repeat;
background-size: cover;
background-position: center;
}
/* modal */
.md-cnt.notice {
visibility: hidden;
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
font-family: 'Pretendard', sans-serif !important;
background-color: #fff;
color: #000000;
padding: 30px;
width: 800px;
height: auto;
z-index: 1000;
}
.md-cnt.notice .md-tit .main {
font-size: 28px;
font-weight: 600;
letter-spacing: -0.05em;
line-height: 1;
border-bottom: 2px solid #000;
padding-bottom: 30px;
}
.md-cnt.notice .md-txt {
font-size: 18px;
letter-spacing: -0.05em;
line-height: 1.8;
text-align: left;
padding-top: 30px;
}
.md-cnt.notice .md-txt ul {
list-style: inside;
list-style-type: '- ';
text-indent: -12px;
padding-left: 12px;
}
.md-cnt.notice .md-txt li .spot {
color: #ee1c25;
font-weight: 600;
}
.md-cnt.notice .btn-close {
position: absolute;
top: 30px;
right: 30px;
background: url('https://image.a-rt.com/art/editor/202511/1762162521400.png') no-repeat center/contain;
width: 27px;
height: 27px;
text-indent: 100%;
white-space: nowrap;
overflow: hidden;
}
#dim {
display: none;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.5);
z-index: 999;
cursor: pointer;
}
.md-open {
overflow-y: hidden;
padding-right: 17px;
}
</style>
<!-- s : art-container-event -->
<div class="art-container-event">
<div class="art-content-inner">
<div class="mv_wrap"><img alt="" src="https://image.a-rt.com/art/editor/202603/1773130304929.jpg" />
<p>03.17 ~ 03.19</p>
<div class="main_move_txt"><img alt="담아야만 보이는 혜택가" src="https://image.a-rt.com/art/editor/202603/1773130313016.png" /></div>
<p><span>장바구니</span> 담고 <span>할인</span>받기</p>
</div>
<div class="content">
<div class="content_img"><img alt="" src="https://image.a-rt.com/art/editor/202603/1773130291942.png" /></div>
<div class="content_ttl_wrap">
<p>장바구니 담고</p>
<p>20% 할인 받기</p>
</div>
<ul class="content_txt_wrap">
<li>
<p>01</p>
<p><span>선물하기 or 바로구매</span> 클릭</p>
</li>
<li>
<p>02</p>
<p>사이즈 선택 후, <span>장바구니</span> 클릭</p>
</li>
<li>
<p>03</p>
<p>장바구니에서 <span>할인가 확인</span>하고 주문</p>
</li>
</ul>
<div class="content_caution"><a class="btn-md content_caution_btn" data-href="#modal1" href="javascript:void(0);"><span class="content_caution_btn_img"> <img alt="" src="https://image.a-rt.com/art/editor/202602/1770189886046.png" /> </span> <span class="content_caution_btn_txt">유의사항</span> </a></div>
<!-- 모달창 -->
<div aria-labelledby="mdTit1" aria-modal="true" class="md-cnt notice" id="modal1" role="dialog">
<div class="md-tit">
<h4 class="main" id="mdTit1">유의사항</h4>
</div>
<div class="md-txt">
<ul>
<li>본 프로모션은 온라인 회원 대상 혜택입니다.</li>
<li>할인가는 장바구니 및 결제 페이지에서 최종 확인 가능합니다.</li>
<li>상품당 1일 구매 수량이 제한될 수 있습니다.</li>
<li>본 프로모션은 쿠폰과 중복으로 적용되지 않습니다.</li>
<li>본 프로모션은 온라인몰 전용으로 진행됩니다.</li>
<li>내부 사정에 따라 프로모션 내용이 일부 변경 및 조기 종료될 수 있습니다.</li>
</ul>
</div>
<button class="btn-close" data-link="last" type="button">닫기</button></div>
</div>
<a class="banner_link" href="https://abcmart.a-rt.com/promotion/planning-display/detail?plndpNo=2000006745" target="_blank"><img alt="" src="https://image.a-rt.com/art/editor/202602/1772673247922.png" /> <span class="banner_txt">ABC마트에서 모든 카테고리 만나보기</span> </a></div>
</div>
<!-- e : art-container-event --><!-- 모달 스크립트 --><script>
$(document).ready(function () {
$('.btn-md').on('click', function () {
const openBtn = $(this);
const mdCnt = $($(this).attr('data-href'));
const closeBtn = mdCnt.find('.btn-close');
const first = mdCnt.find('[data-link="first"]');
const last = mdCnt.find('[data-link="last"]');
const mainHeight = $('.art-container-event').outerHeight();
$('body').css({
height: mainHeight
}).addClass('md-open');
mdCnt.siblings().attr({
'aria-hidden': true,
inert: ''
});
mdCnt.before('<div id="dim"></div>');
const dim = $('#dim');
dim.stop().fadeIn().next().css('visibility', 'visible');
first.on('keydown', function (e) {
if (e.shiftKey && e.keyCode === 9) {
e.preventDefault();
last.focus();
}
});
last.on('keydown', function (e) {
if (!e.shiftKey && e.keyCode === 9) {
e.preventDefault();
first.focus();
}
});
closeBtn.on('click', function () {
$(this).parent('.md-cnt').find('iframe').attr('src', $(this).parent('.md-cnt').find('iframe')
.attr('src'));
$('body').css({
height: ''
}).removeClass('md-open');
dim.stop().fadeOut(function () {
$(this).remove();
});
mdCnt.css('visibility', 'hidden').siblings().removeAttr('aria-hidden inert');
openBtn.focus();
});
dim.on('click', function () {
closeBtn.trigger('click');
});
$(window).on('keydown', function (e) {
if (e.keyCode === 27) closeBtn.click();
});
});
});
</script><!-- E : 이벤트 복사영역 여기까지 -->