Files
tailShape/public/componets/others/11_other.html
2022-03-04 22:10:05 +06:00

97 lines
3.6 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://demos.creative-tim.com/notus-js/assets/vendor/@fortawesome/fontawesome-free/css/all.min.css">
<script src="https://cdn.jsdelivr.net/gh/alpinejs/alpine@v2.8.2/dist/alpine.min.js" defer></script>
<title>Other 11 </title>
</head>
<body>
<button class="dark_mode_button_custom_style" id="dark_mood_toogler">
d
</button>
<!-- other 11 start -->
<section class="section_divider">
<div>Other 11 (notification 5) </div>
</section>
<!-- notification 5 -->
<div class="flex items-center justify-center my-10 bg-gray-100 ">
<div class="bg-white dark:bg-gray-800 rounded-lg shadow-xl border p-8 w-3xl">
<div class="mb-4">
<h1 class="font-semibold text-gray-800 dark:text-emerald-200">Friend Requests</h1>
</div>
<div class="flex justify-center items-center mb-8">
<div class="w-1/5">
<img class="w-12 h-12 rounded-full border border-gray-100 shadow-sm" src="https://randomuser.me/api/portraits/men/20.jpg" alt="user image" />
</div>
<div class="w-4/5">
<div>
<span class="font-semibold text-gray-800 dark:text-emerald-400">Ezio Dani</span>
<span class="text-gray-400">wants to be your friend</span>
</div>
<div class="font-semibold">
<a href="" class="text-blue-600 mr-2">Accept</a>
<a href="" class="text-gray-400">Decline</a>
</div>
</div>
</div>
<div class="flex justify-center items-center">
<div class="w-1/5">
<img class="w-12 h-12 rounded-full border border-gray-100 shadow-sm" src="https://randomuser.me/api/portraits/women/20.jpg" alt="user image" />
</div>
<div class="w-4/5">
<div>
<span class="font-semibold text-gray-800 dark:text-emerald-400">Bianca Chen</span>
<span class="text-gray-400">wants to be your friend</span>
</div>
<div class="font-semibold">
<a href="" class="text-blue-600 mr-2">Accept</a>
<a href="" class="text-gray-400">Decline</a>
</div>
</div>
</div>
</div>
</div>
<!-- notification 5 -->
<!-- other 11 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');
}
})
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>