mirror of
https://github.com/istiyakaminsanto/tailShape.git
synced 2025-12-24 10:17:00 +00:00
93 lines
3.8 KiB
HTML
93 lines
3.8 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>Login 2</title>
|
|
</head>
|
|
<body>
|
|
|
|
|
|
|
|
<button class="dark_mode_button_custom_style" id="dark_mood_toogler">
|
|
d
|
|
</button>
|
|
|
|
<!-- login 2 start -->
|
|
<section class="section_divider" id="login_2">
|
|
<div>Login 2</div>
|
|
</section>
|
|
<div class="flex items-center justify-center p-5 bg-gray-200 sm:px-6">
|
|
<div class="w-full max-w-sm p-4 bg-white rounded-md shadow-md sm:p-6">
|
|
<div class="flex items-center justify-center">
|
|
<span class="text-xl font-medium text-gray-900">Login</span>
|
|
</div>
|
|
<form class="mt-4">
|
|
<label for="email" class="block">
|
|
<span class="text-sm text-gray-700">Email</span>
|
|
<input type="email" id="email" name="email" autocomplete="username"
|
|
class="block w-full px-3 py-2 mt-1 text-gray-700 border rounded-md form-input focus:border-indigo-600"
|
|
required />
|
|
</label>
|
|
<label for="password" class="block mt-3">
|
|
<span class="text-sm text-gray-700">Password</span>
|
|
<input type="password" id="password" name="password" autocomplete="current-password"
|
|
class="block w-full px-3 py-2 mt-1 text-gray-700 border rounded-md form-input focus:border-indigo-600"
|
|
required />
|
|
</label>
|
|
<div class="flex items-center justify-between mt-4">
|
|
<div>
|
|
<label class="inline-flex items-center">
|
|
<input type="checkbox" class="text-indigo-600 border form-checkbox" />
|
|
<span class="mx-2 text-sm text-gray-600">Remember me</span>
|
|
</label>
|
|
</div>
|
|
<div>
|
|
<a class="block text-sm text-indigo-700 fontme hover:underline" href="#">Forgot your password?</a>
|
|
</div>
|
|
</div>
|
|
<div class="mt-6">
|
|
<button type="submit"
|
|
class="w-full px-4 py-2 text-sm text-center text-white bg-indigo-600 rounded-md hover:bg-indigo-500">Sign
|
|
in</button>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<!-- login 2 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> |