mirror of
https://github.com/istiyakaminsanto/tailShape.git
synced 2026-01-06 08:57:03 +00:00
66 lines
2.5 KiB
HTML
66 lines
2.5 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">
|
|
<script defer src="https://unpkg.com/alpinejs@3.x.x/dist/cdn.min.js" defer></script>
|
|
<title>About page 2</title>
|
|
</head>
|
|
<body>
|
|
<button class="dark_mode_button_custom_style" id="dark_mood_toogler">
|
|
d
|
|
</button>
|
|
|
|
<!-- cusotom hero section -->
|
|
|
|
<!-- <section class="flex flex-col items-center py-20 bg-gray-200">
|
|
<div class="flex justify-center flex-col py-20 bg-gray-200 rounded">
|
|
<div class="mb-3 text-3xl font-semibold text-gray-800 text-center">
|
|
Bussiness News
|
|
</div>
|
|
<div class="text-lg text-gray-400 w-2/4 mx-auto text-center">
|
|
Lorem ipsum dolor sit amet consectetur adipisicing elit. Voluptate doloremque recusandae similique impedit nobis, minima autem incidunt a at voluptatum explicabo ratione illum, eum quis!
|
|
</div>
|
|
</div>
|
|
<div class="-mt-10 overflow-hidden relative">
|
|
<img class="rounded drop-shadow-lg hover:scale-110 transition-all duration-500" src="https://source.unsplash.com/random/?office?work/" height="500" alt="">
|
|
<a href="f#" class="absolute text-green-800 z-[1000]"> blog lorem22</a>
|
|
</div>
|
|
</section> -->
|
|
|
|
<!-- cusotom hero section -->
|
|
|
|
|
|
|
|
|
|
<!-- 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> |