diff --git a/assets/css/css/aae-notice-black-friday.css b/assets/css/css/aae-notice-black-friday.css new file mode 100644 index 0000000..f81d184 --- /dev/null +++ b/assets/css/css/aae-notice-black-friday.css @@ -0,0 +1,569 @@ +@import url("https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&display=swap"); +* { + box-sizing: border-box; + margin: 0; + padding: 0; + font-family: "DM Sans", sans-serif; +} + +@font-face { + font-family: GlareRegular; + src: url(PPFragment-GlareRegular); +} +/* Keyframe Animations */ +@keyframes backgroundPulse { + 0%, 100% { + background-size: 100% 100%; + filter: brightness(1); + } + 50% { + background-size: 102% 102%; + filter: brightness(1.05); + } +} +@keyframes float { + 0%, 100% { + transform: translateY(0px) rotate(0deg); + } + 50% { + transform: translateY(-10px) rotate(5deg); + } +} +@keyframes shake { + 0%, 100% { + transform: rotate(0deg); + } + 10% { + transform: rotate(-8deg); + } + 20% { + transform: rotate(8deg); + } + 30% { + transform: rotate(-8deg); + } + 40% { + transform: rotate(8deg); + } + 50% { + transform: rotate(0deg); + } +} +@keyframes buttonShake { + 0%, 100% { + transform: rotate(0deg) scale(1); + } + 25% { + transform: rotate(-5deg) scale(1.05); + } + 75% { + transform: rotate(5deg) scale(1.05); + } +} +@keyframes fallingSlow { + 0% { + top: -10%; + transform: translateX(0) rotate(0deg); + opacity: 0; + } + 10% { + opacity: 1; + } + 90% { + opacity: 1; + } + 100% { + top: 110%; + transform: translateX(100px) rotate(360deg); + opacity: 0; + } +} +@keyframes fallingFast { + 0% { + top: -10%; + transform: translateX(0) rotate(0deg); + opacity: 0; + } + 10% { + opacity: 1; + } + 90% { + opacity: 1; + } + 100% { + top: 110%; + transform: translateX(-80px) rotate(-360deg); + opacity: 0; + } +} +@keyframes fallFromRight { + 0% { + top: -10%; + right: -5%; + transform: rotate(0deg); + opacity: 0; + } + 10% { + opacity: 1; + } + 90% { + opacity: 1; + } + 100% { + top: 110%; + right: 10%; + transform: rotate(360deg); + opacity: 0; + } +} +@keyframes fallFromLeft { + 0% { + top: -10%; + left: -5%; + transform: rotate(0deg); + opacity: 0; + } + 10% { + opacity: 1; + } + 90% { + opacity: 1; + } + 100% { + top: 110%; + left: 15%; + transform: rotate(-360deg); + opacity: 0; + } +} +@keyframes diagonalRightToLeft { + 0% { + top: -10%; + right: -10%; + transform: rotate(0deg) scale(0.8); + opacity: 0; + } + 10% { + opacity: 1; + } + 90% { + opacity: 1; + } + 100% { + top: 110%; + left: -10%; + transform: rotate(-180deg) scale(1); + opacity: 0; + } +} +@keyframes diagonalLeftToRight { + 0% { + top: -10%; + left: -10%; + transform: rotate(0deg) scale(0.8); + opacity: 0; + } + 10% { + opacity: 1; + } + 90% { + opacity: 1; + } + 100% { + top: 110%; + right: -10%; + transform: rotate(180deg) scale(1); + opacity: 0; + } +} +@keyframes spiralFall { + 0% { + top: -10%; + left: 50%; + transform: rotate(0deg) translateX(0); + opacity: 0; + } + 10% { + opacity: 1; + } + 25% { + transform: rotate(90deg) translateX(50px); + } + 50% { + transform: rotate(180deg) translateX(0); + } + 75% { + transform: rotate(270deg) translateX(-50px); + } + 90% { + opacity: 1; + } + 100% { + top: 110%; + left: 50%; + transform: rotate(360deg) translateX(0); + opacity: 0; + } +} +@keyframes floatingGhost { + 0% { + top: -10%; + left: -5%; + transform: translateY(0) rotate(0deg); + opacity: 0; + } + 10% { + opacity: 0.8; + } + 50% { + transform: translateY(-20px) rotate(10deg); + } + 90% { + opacity: 0.8; + } + 100% { + top: 110%; + left: 95%; + transform: translateY(0) rotate(-5deg); + opacity: 0; + } +} +@keyframes zigzagFall { + 0% { + top: -10%; + left: 20%; + opacity: 0; + } + 10% { + opacity: 1; + } + 25% { + left: 30%; + } + 50% { + left: 20%; + } + 75% { + left: 35%; + } + 90% { + opacity: 1; + } + 100% { + top: 110%; + left: 25%; + opacity: 0; + } +} +@keyframes titleGlow { + 0%, 100% { + text-shadow: 0 0 5px rgba(246, 80, 44, 0.3); + } + 50% { + text-shadow: 0 0 20px rgba(246, 80, 44, 0.6), 0 0 30px rgba(246, 80, 44, 0.4); + } +} +@keyframes slideInLeft { + 0% { + opacity: 0; + transform: translateX(-50px); + } + 100% { + opacity: 1; + transform: translateX(0); + } +} +@keyframes fadeInUp { + 0% { + opacity: 0; + transform: translateY(20px); + } + 100% { + opacity: 1; + transform: translateY(0); + } +} +.aae-halloween-container h1, .aae-halloween-container h2, .aae-halloween-container h3, .aae-halloween-container h4, .aae-halloween-container h5, .aae-halloween-container h6 { + margin: 0; + padding: 0; +} + +.aae-halloween-wrapper { + background-color: #000; + background-image: url("../../images/notice/black-friday-bg-2025.png"); + background-repeat: no-repeat; + background-size: 100% 100%; + padding: 5px 0 0px 0; + position: relative; + animation: backgroundPulse 8s ease-in-out infinite; + overflow: hidden; +} +@media (max-width: 1366px) { + .aae-halloween-wrapper { + background-size: cover; + } +} +@media (max-width: 767px) { + .aae-halloween-wrapper { + padding-top: 15px; + padding-bottom: 20px; + } +} + +.falling-element { + position: absolute; + font-size: 30px; + pointer-events: none; + z-index: 10; +} + +/* Top to Bottom - Center variations */ +.falling-element:nth-child(1) { + left: 10%; + animation: fallingSlow 8s linear infinite; + animation-delay: 0s; +} + +.falling-element:nth-child(2) { + left: 30%; + animation: fallingFast 6s linear infinite; + animation-delay: 0s; + font-size: 25px; +} + +.falling-element:nth-child(3) { + left: 50%; + animation: floatingGhost 10s ease-in-out infinite; + animation-delay: 0s; + font-size: 35px; +} + +.falling-element:nth-child(4) { + left: 70%; + animation: fallingSlow 7s linear infinite; + animation-delay: 0s; + font-size: 28px; +} + +.falling-element:nth-child(5) { + left: 85%; + animation: zigzagFall 9s linear infinite; + animation-delay: 0s; + font-size: 32px; +} + +.aae-halloween-item { + display: grid; + grid-template-columns: 0.15fr 1fr; + align-items: center; +} +@media (max-width: 1200px) { + .aae-halloween-item { + grid-template-columns: 0.2fr 1fr; + } +} +@media (max-width: 767px) { + .aae-halloween-item { + grid-template-columns: 1fr; + gap: 30px; + } +} + +.aae-halloween-logo { + display: flex; + align-items: center; + justify-content: end; + padding-right: 35px; + animation: shake 2s ease-in-out infinite; +} +@media (max-width: 767px) { + .aae-halloween-logo { + padding-right: 0; + justify-content: center; + } +} +@media (min-width: 1366px) and (max-width: 1500px) { + .aae-halloween-logo { + margin-left: 15px; + padding-right: 25px; + } +} + +.aae-halloween-logo img { + animation: slideInLeft 0.8s ease-out; +} + +.aae-halloween-content { + position: relative; + padding-left: 40px; +} +@media (min-width: 1366px) and (max-width: 1500px) { + .aae-halloween-content { + padding-left: 30px; + } +} +@media (max-width: 767px) { + .aae-halloween-content { + padding-left: 15px; + } +} +.aae-halloween-content::before { + content: ""; + width: 1px; + height: 112px; + left: 0; + top: 50%; + transform: translateY(-50%); + position: absolute; + background: linear-gradient(189deg, rgba(102, 102, 102, 0) 0%, rgba(102, 102, 102, 0.4) 50%, rgba(102, 102, 102, 0) 100%); +} +@media (max-width: 767px) { + .aae-halloween-content::before { + display: none; + } +} + +.aae-halloween-title { + font-style: normal; + font-weight: 400; + font-size: 24px; + line-height: 1.23; + text-transform: capitalize; + color: #fff; + margin-bottom: 15px; + animation: fadeInUp 0.8s ease-out 0.2s both; +} +.aae-halloween-title span { + color: #f6502c; + position: relative; + animation: titleGlow 2s ease-in-out infinite; +} +.aae-halloween-title span::before { + content: ""; + position: absolute; + bottom: 0; + left: -8px; + background-image: url("../../images/notice/bottom-line.png"); + background-repeat: no-repeat; + width: 88px; + height: 3px; +} + +.aae-halloween-text { + font-family: "DM Sans"; + font-style: normal; + font-weight: 400; + font-size: 15px; + line-height: 1.5; + letter-spacing: -0.01em; + color: #D5D5D5; + margin-bottom: 20px; + animation: fadeInUp 0.8s ease-out 0.4s both; +} +@media (max-width: 1440px) { + .aae-halloween-text { + max-width: 85%; + } +} +@media (max-width: 1366px) { + .aae-halloween-text { + max-width: 100%; + } +} +.aae-halloween-text a { + color: #fff; + transition: 0.2s ease-in-out; +} +.aae-halloween-text a:hover { + color: #f6502c; + text-decoration: none; +} + +.aae-halloween-btns { + display: flex; + gap: 16px; + animation: fadeInUp 0.8s ease-out 0.6s both; + padding-top: 5px; +} + +.aae-halloween-btn { + --halloween-bg: #f6502c; + --white: #fff; + --black: #000; + font-family: "DM Sans"; + font-style: normal; + font-weight: 600; + font-size: 14px; + line-height: 1; + letter-spacing: -0.01em; + color: var(--white); + background-color: var(--halloween-bg); + text-decoration: none; + padding: 8px 16px; + border: 1px solid transparent; + transition: 0.3s ease-in-out; + border-radius: 4px; + display: inline-flex; + align-items: center; + gap: 5px; +} +.aae-halloween-btn.outline { + background: transparent; + color: var(--white); + border: 1px solid var(--white); +} +.aae-halloween-btn.outline:hover { + background: var(--halloween-bg); + color: var(--white); + border: 1px solid transparent; + animation: buttonShake 0.5s ease-in-out; +} +.aae-halloween-btn:hover { + animation: buttonShake 0.5s ease-in-out; + color: var(--white); + box-shadow: 0 4px 18px #B18871; +} + +.aae-notice.notice { + padding: 0 !important; +} + +.aae-halloween-end-shape { + position: absolute; + right: 132px; + bottom: 0; +} +@media (max-width: 1366px) { + .aae-halloween-end-shape { + display: none; + } +} +@media (max-width: 1440px) { + .aae-halloween-end-shape { + right: 25px; + top: 40px; + } +} +@media (max-width: 767px) { + .aae-halloween-end-shape { + display: none; + } +} + +.aae-halloween-close { + position: absolute; + right: 10px; + top: 6px; + text-decoration: none; +} +.aae-halloween-close span { + color: #fff; + font-size: 14px; + padding: 2px; + border-radius: 50%; + border: 1px solid #fff; +} +.aae-halloween-close span:hover { + color: #f6502c; + border: 1px solid #f6502c; +} \ No newline at end of file diff --git a/assets/css/css/aae-notice-black-friday.min.css b/assets/css/css/aae-notice-black-friday.min.css new file mode 100644 index 0000000..b776236 --- /dev/null +++ b/assets/css/css/aae-notice-black-friday.min.css @@ -0,0 +1 @@ +@import url(https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&display=swap);*{box-sizing:border-box;margin:0;padding:0;font-family:"DM Sans",sans-serif}@font-face{font-family:GlareRegular;src:url(PPFragment-GlareRegular)}@keyframes backgroundPulse{0%,100%{background-size:100% 100%;filter:brightness(1)}50%{background-size:102% 102%;filter:brightness(1.05)}}@keyframes float{0%,100%{transform:translateY(0) rotate(0)}50%{transform:translateY(-10px) rotate(5deg)}}@keyframes shake{0%,100%{transform:rotate(0)}10%{transform:rotate(-8deg)}20%{transform:rotate(8deg)}30%{transform:rotate(-8deg)}40%{transform:rotate(8deg)}50%{transform:rotate(0)}}@keyframes buttonShake{0%,100%{transform:rotate(0) scale(1)}25%{transform:rotate(-5deg) scale(1.05)}75%{transform:rotate(5deg) scale(1.05)}}@keyframes fallingSlow{0%{top:-10%;transform:translateX(0) rotate(0);opacity:0}10%{opacity:1}90%{opacity:1}100%{top:110%;transform:translateX(100px) rotate(360deg);opacity:0}}@keyframes fallingFast{0%{top:-10%;transform:translateX(0) rotate(0);opacity:0}10%{opacity:1}90%{opacity:1}100%{top:110%;transform:translateX(-80px) rotate(-360deg);opacity:0}}@keyframes fallFromRight{0%{top:-10%;right:-5%;transform:rotate(0);opacity:0}10%{opacity:1}90%{opacity:1}100%{top:110%;right:10%;transform:rotate(360deg);opacity:0}}@keyframes fallFromLeft{0%{top:-10%;left:-5%;transform:rotate(0);opacity:0}10%{opacity:1}90%{opacity:1}100%{top:110%;left:15%;transform:rotate(-360deg);opacity:0}}@keyframes diagonalRightToLeft{0%{top:-10%;right:-10%;transform:rotate(0) scale(.8);opacity:0}10%{opacity:1}90%{opacity:1}100%{top:110%;left:-10%;transform:rotate(-180deg) scale(1);opacity:0}}@keyframes diagonalLeftToRight{0%{top:-10%;left:-10%;transform:rotate(0) scale(.8);opacity:0}10%{opacity:1}90%{opacity:1}100%{top:110%;right:-10%;transform:rotate(180deg) scale(1);opacity:0}}@keyframes spiralFall{0%{top:-10%;left:50%;transform:rotate(0) translateX(0);opacity:0}10%{opacity:1}25%{transform:rotate(90deg) translateX(50px)}50%{transform:rotate(180deg) translateX(0)}75%{transform:rotate(270deg) translateX(-50px)}90%{opacity:1}100%{top:110%;left:50%;transform:rotate(360deg) translateX(0);opacity:0}}@keyframes floatingGhost{0%{top:-10%;left:-5%;transform:translateY(0) rotate(0);opacity:0}10%{opacity:.8}50%{transform:translateY(-20px) rotate(10deg)}90%{opacity:.8}100%{top:110%;left:95%;transform:translateY(0) rotate(-5deg);opacity:0}}@keyframes zigzagFall{0%{top:-10%;left:20%;opacity:0}10%{opacity:1}25%{left:30%}50%{left:20%}75%{left:35%}90%{opacity:1}100%{top:110%;left:25%;opacity:0}}@keyframes titleGlow{0%,100%{text-shadow:0 0 5px rgba(246,80,44,.3)}50%{text-shadow:0 0 20px rgba(246,80,44,.6),0 0 30px rgba(246,80,44,.4)}}@keyframes slideInLeft{0%{opacity:0;transform:translateX(-50px)}100%{opacity:1;transform:translateX(0)}}@keyframes fadeInUp{0%{opacity:0;transform:translateY(20px)}100%{opacity:1;transform:translateY(0)}}.aae-halloween-container h1,.aae-halloween-container h2,.aae-halloween-container h3,.aae-halloween-container h4,.aae-halloween-container h5,.aae-halloween-container h6{margin:0;padding:0}.aae-halloween-wrapper{background-color:#000;background-image:url(../../images/notice/black-friday-bg-2025.png);background-repeat:no-repeat;background-size:100% 100%;padding:5px 0 0 0;position:relative;animation:backgroundPulse 8s ease-in-out infinite;overflow:hidden}@media (max-width:1366px){.aae-halloween-wrapper{background-size:cover}}@media (max-width:767px){.aae-halloween-wrapper{padding-top:15px;padding-bottom:20px}}.falling-element{position:absolute;font-size:30px;pointer-events:none;z-index:10}.falling-element:nth-child(1){left:10%;animation:fallingSlow 8s linear infinite;animation-delay:0s}.falling-element:nth-child(2){left:30%;animation:fallingFast 6s linear infinite;animation-delay:0s;font-size:25px}.falling-element:nth-child(3){left:50%;animation:floatingGhost 10s ease-in-out infinite;animation-delay:0s;font-size:35px}.falling-element:nth-child(4){left:70%;animation:fallingSlow 7s linear infinite;animation-delay:0s;font-size:28px}.falling-element:nth-child(5){left:85%;animation:zigzagFall 9s linear infinite;animation-delay:0s;font-size:32px}.aae-halloween-item{display:grid;grid-template-columns:.15fr 1fr;align-items:center}@media (max-width:1200px){.aae-halloween-item{grid-template-columns:.2fr 1fr}}@media (max-width:767px){.aae-halloween-item{grid-template-columns:1fr;gap:30px}}.aae-halloween-logo{display:flex;align-items:center;justify-content:end;padding-right:35px;animation:shake 2s ease-in-out infinite}@media (max-width:767px){.aae-halloween-logo{padding-right:0;justify-content:center}}@media (min-width:1366px) and (max-width:1500px){.aae-halloween-logo{margin-left:15px;padding-right:25px}}.aae-halloween-logo img{animation:slideInLeft .8s ease-out}.aae-halloween-content{position:relative;padding-left:40px}@media (min-width:1366px) and (max-width:1500px){.aae-halloween-content{padding-left:30px}}@media (max-width:767px){.aae-halloween-content{padding-left:15px}}.aae-halloween-content::before{content:"";width:1px;height:112px;left:0;top:50%;transform:translateY(-50%);position:absolute;background:linear-gradient(189deg,rgba(102,102,102,0) 0,rgba(102,102,102,.4) 50%,rgba(102,102,102,0) 100%)}@media (max-width:767px){.aae-halloween-content::before{display:none}}.aae-halloween-title{font-style:normal;font-weight:400;font-size:24px;line-height:1.23;text-transform:capitalize;color:#fff;margin-bottom:15px;animation:fadeInUp .8s ease-out .2s both}.aae-halloween-title span{color:#f6502c;position:relative;animation:titleGlow 2s ease-in-out infinite}.aae-halloween-title span::before{content:"";position:absolute;bottom:0;left:-8px;background-image:url(../../images/notice/bottom-line.png);background-repeat:no-repeat;width:88px;height:3px}.aae-halloween-text{font-family:"DM Sans";font-style:normal;font-weight:400;font-size:15px;line-height:1.5;letter-spacing:-.01em;color:#d5d5d5;margin-bottom:20px;animation:fadeInUp .8s ease-out .4s both}@media (max-width:1440px){.aae-halloween-text{max-width:85%}}@media (max-width:1366px){.aae-halloween-text{max-width:100%}}.aae-halloween-text a{color:#fff;transition:.2s ease-in-out}.aae-halloween-text a:hover{color:#f6502c;text-decoration:none}.aae-halloween-btns{display:flex;gap:16px;animation:fadeInUp .8s ease-out .6s both;padding-top:5px}.aae-halloween-btn{--halloween-bg:#f6502c;--white:#fff;--black:#000;font-family:"DM Sans";font-style:normal;font-weight:600;font-size:14px;line-height:1;letter-spacing:-.01em;color:var(--white);background-color:var(--halloween-bg);text-decoration:none;padding:8px 16px;border:1px solid transparent;transition:.3s ease-in-out;border-radius:4px;display:inline-flex;align-items:center;gap:5px}.aae-halloween-btn.outline{background:0 0;color:var(--white);border:1px solid var(--white)}.aae-halloween-btn.outline:hover{background:var(--halloween-bg);color:var(--white);border:1px solid transparent;animation:buttonShake .5s ease-in-out}.aae-halloween-btn:hover{animation:buttonShake .5s ease-in-out;color:var(--white);box-shadow:0 4px 18px #b18871}.aae-notice.notice{padding:0!important}.aae-halloween-end-shape{position:absolute;right:132px;bottom:0}@media (max-width:1366px){.aae-halloween-end-shape{display:none}}@media (max-width:1440px){.aae-halloween-end-shape{right:25px;top:40px}}@media (max-width:767px){.aae-halloween-end-shape{display:none}}.aae-halloween-close{position:absolute;right:10px;top:6px;text-decoration:none}.aae-halloween-close span{color:#fff;font-size:14px;padding:2px;border-radius:50%;border:1px solid #fff}.aae-halloween-close span:hover{color:#f6502c;border:1px solid #f6502c} \ No newline at end of file diff --git a/assets/images/notice/black-friday-bg-2025.png b/assets/images/notice/black-friday-bg-2025.png new file mode 100644 index 0000000..1b544f9 Binary files /dev/null and b/assets/images/notice/black-friday-bg-2025.png differ diff --git a/assets/images/notice/black-friday-offer.png b/assets/images/notice/black-friday-offer.png new file mode 100644 index 0000000..4b60b7b Binary files /dev/null and b/assets/images/notice/black-friday-offer.png differ diff --git a/assets/images/notice/black-friday-shape-1.png b/assets/images/notice/black-friday-shape-1.png new file mode 100644 index 0000000..08dccd5 Binary files /dev/null and b/assets/images/notice/black-friday-shape-1.png differ diff --git a/assets/images/notice/hallowen-bg.png b/assets/images/notice/hallowen-bg-2025.png similarity index 100% rename from assets/images/notice/hallowen-bg.png rename to assets/images/notice/hallowen-bg-2025.png diff --git a/assets/src/notices/css/aae-notice-black-friday.css b/assets/src/notices/css/aae-notice-black-friday.css new file mode 100644 index 0000000..c237050 --- /dev/null +++ b/assets/src/notices/css/aae-notice-black-friday.css @@ -0,0 +1,558 @@ +@import url("https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&display=swap"); +* { + box-sizing: border-box; + margin: 0; + padding: 0; + font-family: "DM Sans", sans-serif; +} +@font-face { + font-family: GlareRegular; + src: url(PPFragment-GlareRegular); +} + +/* Keyframe Animations */ +@keyframes backgroundPulse { + 0%, 100% { + background-size: 100% 100%; + filter: brightness(1); + } + 50% { + background-size: 102% 102%; + filter: brightness(1.05); + } +} + +@keyframes float { + 0%, 100% { + transform: translateY(0px) rotate(0deg); + } + 50% { + transform: translateY(-10px) rotate(5deg); + } +} + +@keyframes shake { + 0%, 100% { + transform: rotate(0deg); + } + 10% { + transform: rotate(-8deg); + } + 20% { + transform: rotate(8deg); + } + 30% { + transform: rotate(-8deg); + } + 40% { + transform: rotate(8deg); + } + 50% { + transform: rotate(0deg); + } +} + +@keyframes buttonShake { + 0%, 100% { + transform: rotate(0deg) scale(1); + } + 25% { + transform: rotate(-5deg) scale(1.05); + } + 75% { + transform: rotate(5deg) scale(1.05); + } +} + +@keyframes fallingSlow { + 0% { + top: -10%; + transform: translateX(0) rotate(0deg); + opacity: 0; + } + 10% { + opacity: 1; + } + 90% { + opacity: 1; + } + 100% { + top: 110%; + transform: translateX(100px) rotate(360deg); + opacity: 0; + } +} + +@keyframes fallingFast { + 0% { + top: -10%; + transform: translateX(0) rotate(0deg); + opacity: 0; + } + 10% { + opacity: 1; + } + 90% { + opacity: 1; + } + 100% { + top: 110%; + transform: translateX(-80px) rotate(-360deg); + opacity: 0; + } +} + +@keyframes fallFromRight { + 0% { + top: -10%; + right: -5%; + transform: rotate(0deg); + opacity: 0; + } + 10% { + opacity: 1; + } + 90% { + opacity: 1; + } + 100% { + top: 110%; + right: 10%; + transform: rotate(360deg); + opacity: 0; + } +} + +@keyframes fallFromLeft { + 0% { + top: -10%; + left: -5%; + transform: rotate(0deg); + opacity: 0; + } + 10% { + opacity: 1; + } + 90% { + opacity: 1; + } + 100% { + top: 110%; + left: 15%; + transform: rotate(-360deg); + opacity: 0; + } +} + +@keyframes diagonalRightToLeft { + 0% { + top: -10%; + right: -10%; + transform: rotate(0deg) scale(0.8); + opacity: 0; + } + 10% { + opacity: 1; + } + 90% { + opacity: 1; + } + 100% { + top: 110%; + left: -10%; + transform: rotate(-180deg) scale(1); + opacity: 0; + } +} + +@keyframes diagonalLeftToRight { + 0% { + top: -10%; + left: -10%; + transform: rotate(0deg) scale(0.8); + opacity: 0; + } + 10% { + opacity: 1; + } + 90% { + opacity: 1; + } + 100% { + top: 110%; + right: -10%; + transform: rotate(180deg) scale(1); + opacity: 0; + } +} + +@keyframes spiralFall { + 0% { + top: -10%; + left: 50%; + transform: rotate(0deg) translateX(0); + opacity: 0; + } + 10% { + opacity: 1; + } + 25% { + transform: rotate(90deg) translateX(50px); + } + 50% { + transform: rotate(180deg) translateX(0); + } + 75% { + transform: rotate(270deg) translateX(-50px); + } + 90% { + opacity: 1; + } + 100% { + top: 110%; + left: 50%; + transform: rotate(360deg) translateX(0); + opacity: 0; + } +} + +@keyframes floatingGhost { + 0% { + top: -10%; + left: -5%; + transform: translateY(0) rotate(0deg); + opacity: 0; + } + 10% { + opacity: 0.8; + } + 50% { + transform: translateY(-20px) rotate(10deg); + } + 90% { + opacity: 0.8; + } + 100% { + top: 110%; + left: 95%; + transform: translateY(0) rotate(-5deg); + opacity: 0; + } +} + +@keyframes zigzagFall { + 0% { + top: -10%; + left: 20%; + opacity: 0; + } + 10% { + opacity: 1; + } + 25% { + left: 30%; + } + 50% { + left: 20%; + } + 75% { + left: 35%; + } + 90% { + opacity: 1; + } + 100% { + top: 110%; + left: 25%; + opacity: 0; + } +} + +@keyframes titleGlow { + 0%, 100% { + text-shadow: 0 0 5px rgba(246, 80, 44, 0.3); + } + 50% { + text-shadow: 0 0 20px rgba(246, 80, 44, 0.6), 0 0 30px rgba(246, 80, 44, 0.4); + } +} + +@keyframes slideInLeft { + 0% { + opacity: 0; + transform: translateX(-50px); + } + 100% { + opacity: 1; + transform: translateX(0); + } +} + +@keyframes fadeInUp { + 0% { + opacity: 0; + transform: translateY(20px); + } + 100% { + opacity: 1; + transform: translateY(0); + } +} +.aae-halloween-container{ + h1,h2,h3,h4,h5,h6{ + margin: 0; + padding: 0; + } +} +.aae-halloween-wrapper { + background-color: #000; + background-image: url("../../images/notice/black-friday-bg-2025.png"); + background-repeat: no-repeat; + background-size: 100% 100%; + padding: 5px 0 0px 0; + position: relative; + animation: backgroundPulse 8s ease-in-out infinite; + overflow: hidden; + @media (max-width:1366px){ + background-size: cover; + } + @media (max-width:767px){ + padding-top: 15px; + padding-bottom: 20px; + } +} + +.falling-element { + position: absolute; + font-size: 30px; + pointer-events: none; + z-index: 10; +} + +/* Top to Bottom - Center variations */ +.falling-element:nth-child(1) { + left: 10%; + animation: fallingSlow 8s linear infinite; + animation-delay: 0s; +} + +.falling-element:nth-child(2) { + left: 30%; + animation: fallingFast 6s linear infinite; + animation-delay: 0s; + font-size: 25px; +} + +.falling-element:nth-child(3) { + left: 50%; + animation: floatingGhost 10s ease-in-out infinite; + animation-delay: 0s; + font-size: 35px; +} + +.falling-element:nth-child(4) { + left: 70%; + animation: fallingSlow 7s linear infinite; + animation-delay: 0s; + font-size: 28px; +} + +.falling-element:nth-child(5) { + left: 85%; + animation: zigzagFall 9s linear infinite; + animation-delay: 0s; + font-size: 32px; +} + +.aae-halloween-item { + display: grid; + grid-template-columns: 0.15fr 1fr; + align-items: center; + @media (max-width: 1200px) { + grid-template-columns: .2fr 1fr; + } + @media (max-width: 767px) { + grid-template-columns: 1fr; + gap: 30px; + } +} +.aae-halloween-logo { + display: flex; + align-items: center; + justify-content: end; + padding-right: 35px; + animation: shake 2s ease-in-out infinite; + @media (max-width:767px){ + padding-right: 0; + justify-content: center; + } + + @media (min-width: 1366px) and (max-width: 1500px){ + margin-left: 15px; + padding-right: 25px; + } +} +.aae-halloween-logo img { + animation: slideInLeft 0.8s ease-out; +} +.aae-halloween-content { + position: relative; + padding-left: 40px; + + @media (min-width: 1366px) and (max-width: 1500px){ + padding-left: 30px; + } + + @media (max-width:767px){ + padding-left: 15px; + } + &::before { + content: ""; + width: 1px; + height: 112px; + left: 0; + top: 50%; + transform: translateY(-50%); + position: absolute; + background: linear-gradient( + 189deg, + rgba(102, 102, 102, 0) 0%, + rgba(102, 102, 102, 0.4) 50%, + rgba(102, 102, 102, 0) 100% + ); + @media (max-width: 767px) { + display: none; + } + } +} +.aae-halloween-title { + font-style: normal; + font-weight: 400; + font-size: 24px; + line-height: 1.23; + text-transform: capitalize; + color: #fff; + margin-bottom: 15px; + animation: fadeInUp 0.8s ease-out 0.2s both; + span{ + color: #f6502c; + position: relative; + animation: titleGlow 2s ease-in-out infinite; + &::before{ + content: ""; + position: absolute; + bottom: 0; + left: -8px; + background-image: url('../../images/notice/bottom-line.png'); + background-repeat: no-repeat; + width: 88px; + height: 3px; + } + } +} +.aae-halloween-text { + font-family: "DM Sans"; + font-style: normal; + font-weight: 400; + font-size: 15px; + line-height: 1.5; + letter-spacing: -0.01em; + color: #D5D5D5; + margin-bottom: 20px; + animation: fadeInUp 0.8s ease-out 0.4s both; + @media (max-width:1440px){ + max-width: 85%; + } + @media (max-width:1366px){ + max-width: 100%; + } + a{ + color: #fff; + transition: 0.2s ease-in-out; + &:hover{ + color: #f6502c; + text-decoration: none; + } + } +} +.aae-halloween-btns { + display: flex; + gap: 16px; + animation: fadeInUp 0.8s ease-out 0.6s both; + padding-top: 5px; +} +.aae-halloween-btn { + --halloween-bg: #f6502c; + --white: #fff; + --black: #000; + font-family: "DM Sans"; + font-style: normal; + font-weight: 600; + font-size: 14px; + line-height: 1; + letter-spacing: -0.01em; + color: var(--white); + background-color: var(--halloween-bg); + text-decoration: none; + padding: 8px 16px; + border: 1px solid transparent; + transition: 0.3s ease-in-out; + border-radius: 4px; + display: inline-flex; + align-items: center; + gap: 5px; + &.outline{ + background: transparent; + color: var(--white); + border: 1px solid var(--white); + &:hover{ + background: var(--halloween-bg); + color: var(--white); + border: 1px solid transparent; + animation: buttonShake 0.5s ease-in-out; + } + } + &:hover { + animation: buttonShake 0.5s ease-in-out; + color: var(--white); + box-shadow: 0 4px 18px #B18871; + } +} + +.aae-notice.notice { + padding: 0 !important; +} +.aae-halloween-end-shape { + position: absolute; + right: 132px; + bottom: 0; + @media (max-width:1366px){ + display: none; + } + @media (max-width:1440px){ + right: 25px; + top: 40px; + } + @media (max-width:767px){ + display: none; + } +} + +.aae-halloween-close { + position: absolute; + right: 10px; + top: 6px; + text-decoration: none; + span { + color: #fff; + font-size: 14px; + padding: 2px; + border-radius: 50%; + border: 1px solid #fff; + + &:hover { + color: #f6502c; + border: 1px solid #f6502c; + } + } +} \ No newline at end of file diff --git a/inc/admin/Notices/Notices.php b/inc/admin/Notices/Notices.php index 0d9ef3e..f5a793d 100644 --- a/inc/admin/Notices/Notices.php +++ b/inc/admin/Notices/Notices.php @@ -68,7 +68,7 @@ public function __construct() { */ public function enqueue_scripts() { wp_register_style( 'aae-notice', WCF_ADDONS_URL . 'assets/css/css/notice.css', array(), WCF_ADDONS_VERSION ); - wp_register_style( 'aae-notice-halloween', WCF_ADDONS_URL . 'assets/css/css/halloween-2025.css', array(), WCF_ADDONS_VERSION ); + wp_register_style( 'aae-notice-black-friday', WCF_ADDONS_URL . 'assets/css/css/aae-notice-black-friday.css', array(), WCF_ADDONS_VERSION ); wp_register_script( 'aae-notice', WCF_ADDONS_URL . 'assets/js/js/notice.js', array( 'jquery' ), WCF_ADDONS_VERSION, true ); } @@ -80,14 +80,22 @@ public function enqueue_scripts() { public function add_admin_notices() { $installed_time = absint( get_option( 'aae_installed' ) ); $current_time = absint( wp_date( 'U' ) ); + + $timezone = wp_timezone(); + + // Define your start and end dates in the same timezone + $start_time = ( new \DateTime( '2025-11-06 00:00:00', $timezone ) )->getTimestamp(); + $end_time = ( new \DateTime( '2025-12-05 23:59:59', $timezone ) )->getTimestamp(); + $plugin_file = WP_PLUGIN_DIR . '/animation-addons-for-elementor-pro/animation-addons-for-elementor-pro.php'; - if ( !file_exists( $plugin_file ) ) { - wp_enqueue_style( 'aae-notice-halloween' ); + + if ( file_exists( $plugin_file ) && $current_time >= $start_time && $current_time <= $end_time ) { + wp_enqueue_style( 'aae-notice-black-friday' ); $this->add( array( - 'message' => __DIR__ . '/views/halloween-2025.php', - 'notice_id' => 'aae_halloween', - 'style' => 'border-left-color: #FC6848; border-radius: 6px; overflow: hidden;', + 'message' => __DIR__ . '/views/black-friday-2025.php', + 'notice_id' => 'aae_black_friday_2025_notice', + 'style' => 'border-left-color: #000000; border-radius: 6px; overflow: hidden;', 'dismissible' => false, ) ); diff --git a/inc/admin/Notices/views/black-friday-2025.php b/inc/admin/Notices/views/black-friday-2025.php new file mode 100644 index 0000000..a29667e --- /dev/null +++ b/inc/admin/Notices/views/black-friday-2025.php @@ -0,0 +1,60 @@ + +
+
+ + Black Friday!', 'animation-addons-for-elementor' ), + 'Animation Addons for Elementor Pro', + '70% discount' + ) + ); + ?> + +
+ +