Files
tailShape/public/componets/login/1_login.html
2022-03-01 16:47:05 +06:00

94 lines
4.0 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 1</title>
</head>
<body>
<button class="dark_mode_button_custom_style" id="dark_mood_toogler">
d
</button>
<!-- login 1 start -->
<section class="section_divider" id="login_1">
<div>Login 1</div>
</section>
<div class="flex items-center justify-center p-5 sm:px-6">
<div class="w-full max-w-sm p-4 bg-gray-900 rounded-md shadow-md sm:p-6">
<div class="flex items-center justify-center">
<span class="text-xl font-medium text-white">Login</span>
</div>
<form class="mt-4">
<label for="email" class="block">
<span class="text-sm text-white">Email</span>
<input type="email" id="email" name="email" autocomplete="username"
class="block w-full px-3 py-2 mt-1 text-white bg-gray-700 rounded-md focus:outline-none focus:shadow-outline focus:bg-gray-800"
required />
</label>
<label for="password" class="block mt-3">
<span class="text-sm text-white">Password</span>
<input type="password" id="password" name="password" autocomplete="current-password"
class="block w-full px-3 py-2 mt-1 text-white bg-gray-700 rounded-md focus:outline-none focus:shadow-outline focus:bg-gray-800"
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 focus:outline-none focus:shadow-outline" />
<span class="mx-2 text-sm text-white">Remember me</span>
</label>
</div>
<div>
<a class="block text-sm text-indigo-200 hover:underline focus:outline-none focus: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-500 rounded-md hover:bg-indigo-700 focus:outline-none focus:bg-indigo-700 ">Sign
in</button>
</div>
</form>
</div>
</div>
<!-- login 1 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>