nothing much added the darkmode for the testimonial's and fixed the responsive issue's
This commit is contained in:
202
public/componets/testimonial/12_testimonial.html
Normal file
202
public/componets/testimonial/12_testimonial.html
Normal file
@@ -0,0 +1,202 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<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" defer></script>
|
||||
<title>Testimonial 11</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
|
||||
<button class="dark_mode_button_custom_style" id="dark_mood_toogler">
|
||||
d
|
||||
</button>
|
||||
|
||||
<!-- testimonial 12 start -->
|
||||
|
||||
<section class="section_divider">
|
||||
<div> Testimonail 12</div>
|
||||
</section>
|
||||
|
||||
<style>
|
||||
.swiper-pagination {
|
||||
bottom: 0;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.swiper-container {
|
||||
overflow: hidden;
|
||||
}
|
||||
</style>
|
||||
|
||||
<section class="bg-white dark:bg-gray-800">
|
||||
<div class="max-w-screen-xl py-16 ml-auto sm:pl-6 lg:pl-0 mx-auto">
|
||||
<div class="mt-12 swiper-container">
|
||||
<div class="swiper-wrapper">
|
||||
<div class="swiper-slide">
|
||||
<blockquote class="p-8 bg-gray-100 dark:bg-gray-800 dark:border-2 dark:border-emerald-600 dark:rounded ">
|
||||
<div class="flex items-center">
|
||||
<img
|
||||
src="https://www.hyperui.dev/photos/man-4.jpeg"
|
||||
alt=""
|
||||
class="object-cover w-16 h-16 rounded-full"
|
||||
/>
|
||||
|
||||
<div class="ml-4 text-sm">
|
||||
<p class="font-medium">Jeff Wezos</p>
|
||||
<p class="mt-1">CEO of Shipping Company</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<p class="relative mt-4 text-gray-500">
|
||||
<span class="text-xl">“</span>
|
||||
|
||||
Lorem ipsum dolor sit amet consectetur adipisicing elit. Magni
|
||||
assumenda officiis sit amet itaque eveniet accusantium corporis
|
||||
tempora, soluta perspiciatis rerum, ratione animi nemo inventore
|
||||
repellat, commodi in esse quisquam.
|
||||
|
||||
<span class="text-xl">”</span>
|
||||
</p>
|
||||
</blockquote>
|
||||
</div>
|
||||
|
||||
<div class="swiper-slide">
|
||||
<blockquote class="p-8 bg-gray-100">
|
||||
<div class="flex items-center">
|
||||
<img
|
||||
src="https://www.hyperui.dev/photos/man-4.jpeg"
|
||||
alt=""
|
||||
class="object-cover w-16 h-16 rounded-full"
|
||||
/>
|
||||
|
||||
<div class="ml-4 text-sm">
|
||||
<p class="font-medium">Jeff Wezos</p>
|
||||
<p class="mt-1">CEO of Shipping Company</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<p class="relative mt-4 text-gray-500">
|
||||
<span class="text-xl">“</span>
|
||||
|
||||
Lorem ipsum dolor sit amet consectetur adipisicing elit. Magni
|
||||
assumenda officiis sit amet itaque eveniet accusantium corporis
|
||||
tempora, soluta perspiciatis rerum, ratione animi nemo inventore
|
||||
repellat, commodi in esse quisquam.
|
||||
|
||||
<span class="text-xl">”</span>
|
||||
</p>
|
||||
</blockquote>
|
||||
</div>
|
||||
|
||||
<div class="swiper-slide">
|
||||
<blockquote class="p-8 bg-gray-100">
|
||||
<div class="flex items-center">
|
||||
<img
|
||||
src="https://www.hyperui.dev/photos/man-4.jpeg"
|
||||
alt=""
|
||||
class="object-cover w-16 h-16 rounded-full"
|
||||
/>
|
||||
|
||||
<div class="ml-4 text-sm">
|
||||
<p class="font-medium">Jeff Wezos</p>
|
||||
<p class="mt-1">CEO of Shipping Company</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<p class="relative mt-4 text-gray-500">
|
||||
<span class="text-xl">“</span>
|
||||
|
||||
Lorem ipsum dolor sit amet consectetur adipisicing elit. Magni
|
||||
assumenda officiis sit amet itaque eveniet accusantium corporis
|
||||
tempora, soluta perspiciatis rerum, ratione animi nemo inventore
|
||||
repellat, commodi in esse quisquam.
|
||||
|
||||
<span class="text-xl">”</span>
|
||||
</p>
|
||||
</blockquote>
|
||||
</div>
|
||||
|
||||
<div class="swiper-slide">
|
||||
<blockquote class="p-8 bg-gray-100">
|
||||
<div class="flex items-center">
|
||||
<img
|
||||
src="https://www.hyperui.dev/photos/man-4.jpeg"
|
||||
alt=""
|
||||
class="object-cover w-16 h-16 rounded-full"
|
||||
/>
|
||||
|
||||
<div class="ml-4 text-sm">
|
||||
<p class="font-medium">Jeff Wezos</p>
|
||||
<p class="mt-1">CEO of Shipping Company</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<p class="relative mt-4 text-gray-500">
|
||||
<span class="text-xl">“</span>
|
||||
|
||||
Lorem ipsum dolor sit amet consectetur adipisicing elit. Magni
|
||||
assumenda officiis sit amet itaque eveniet accusantium corporis
|
||||
tempora, soluta perspiciatis rerum, ratione animi nemo inventore
|
||||
repellat, commodi in esse quisquam.
|
||||
|
||||
<span class="text-xl">”</span>
|
||||
</p>
|
||||
</blockquote>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="mt-12 swiper-pagination"></div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<script>
|
||||
const swiper = new Swiper('.slider-container', {
|
||||
loop: true,
|
||||
slidesPerView: 1,
|
||||
spaceBetween: 32,
|
||||
centeredSlides: true,
|
||||
autoplay: {
|
||||
delay: 8000,
|
||||
},
|
||||
breakpoints: {
|
||||
640: {
|
||||
slidesPerView: 1.5,
|
||||
},
|
||||
1024: {
|
||||
slidesPerView: 3,
|
||||
},
|
||||
},
|
||||
})
|
||||
</script>
|
||||
<!-- testimonial 12 end -->
|
||||
|
||||
|
||||
|
||||
<!-- 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');
|
||||
|
||||
}
|
||||
})
|
||||
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>
|
||||
Reference in New Issue
Block a user