mirror of
https://github.com/istiyakaminsanto/tailShape.git
synced 2025-12-26 19:37:03 +00:00
82 lines
3.4 KiB
HTML
82 lines
3.4 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en" class="dark">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<link rel="stylesheet" href="../../../dist/tailshape.css">
|
|
|
|
<link rel="stylesheet" href="https://unpkg.com/swiper/swiper-bundle.min.css" />
|
|
<script src="https://unpkg.com/swiper/swiper-bundle.min.js"></script>
|
|
|
|
<script src="https://cdn.jsdelivr.net/gh/alpinejs/alpine@v2.8.2/dist/alpine.min.js" defer>
|
|
</script><script defer src="https://unpkg.com/alpinejs@3.4.2/dist/cdn.min.js"></script>
|
|
<title> CTA 17</title>
|
|
|
|
</head>
|
|
<body>
|
|
|
|
|
|
|
|
|
|
<!-- start cta 17 -->
|
|
<section class="section_divider" id="cta_17">
|
|
CTA 17
|
|
</section>
|
|
<section class="flex justify-center">
|
|
|
|
<div class="w-full max-w-3xl grid grid-cols-7 rounded-lg shadow-lg bg-white font-oswald overflow-hidden">
|
|
|
|
<div class="col-span-7 md:col-span-3 relative w-full h-44 md:h-full bg-red-500">
|
|
<img src="https://fancytailwind.com/static/music1-59ae9969ef29408305c6bfca033d6724.jpg" alt="" class="absolute top-0 left-0 w-full h-full object-cover object-center filter sepia mix-blend-hard-light" />
|
|
</div>
|
|
|
|
<div class="col-span-7 md:col-span-4 relative py-5 px-8 w-full h-full flex flex-col items-center justify-center">
|
|
<span class="text-sm text-gray-300 font-semibold uppercase tracking-wider">Join the squad</span>
|
|
<h2 class="py-5 uppercase text-center space-y-2">
|
|
<span class="block text-4xl sm:text-5xl text-gray-900 font-semibold tracking-wide">Get 20% OFF</span>
|
|
<span class="block text-base sm:text-lg text-gray-700 tracking-wide">Your next order</span>
|
|
</h2>
|
|
<div class="py-5 w-full max-w-xs inline-flex flex-col space-y-4 uppercase">
|
|
<a href="#link" class="py-2 rounded-sm bg-red-500 text-center text-white tracking-wide hover:bg-red-600">Yes, please</a>
|
|
<a href="#link" class="py-2 rounded-sm bg-gray-200 text-center text-gray-700 tracking-wide hover:bg-gray-300">No, thanks</a>
|
|
</div>
|
|
<span class="mt-5 text-xs text-gray-300 font-semibold uppercase tracking-wider">Limited offer, don't miss out!</span>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</section>
|
|
|
|
<!-- end cta 17 -->
|
|
|
|
|
|
|
|
<!-- start of script section -->
|
|
<script type="text/javascript">
|
|
let toogler = document.getElementById("dark_mood_toogler");
|
|
let doc_html_el = document.getElementsByTagName('html')[0];
|
|
|
|
doc_html_el.addEventListener('keyup',(e)=>{
|
|
// key 220 is the backward slash , need to press ctrl+ \ to activate or deactivate darkmode
|
|
if(e.ctrlKey && e.keyCode =='220'){
|
|
doc_html_el.className =='' ? doc_html_el.classList.add('dark'):doc_html_el.classList.remove('dark');
|
|
|
|
}
|
|
})
|
|
doc_html_el.addEventListener('keyup',(e)=>{
|
|
// key 191 is the forward slash , need to press ctrl+ / to show or hide the darkmode button
|
|
if(e.ctrlKey && e.keyCode =='191'){
|
|
toogler.style.display =='block'? toogler.style.display = 'none':toogler.style.display ='block';
|
|
|
|
}
|
|
})
|
|
toogler.addEventListener('click',()=>{
|
|
doc_html_el.className =='' ? doc_html_el.classList.add('dark'):doc_html_el.classList.remove('dark');
|
|
console.log(doc_html_el.className);
|
|
})
|
|
</script>
|
|
<!-- end of script section -->
|
|
|
|
</body>
|
|
</html> |