Files
tailShape/public/componets/contact/2_contact.html
2022-03-09 20:14:06 +06:00

82 lines
3.4 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>Contact 2 </title>
</head>
<body>
<button class="dark_mode_button_custom_style" id="dark_mood_toogler">
d
</button>
<!-- contact 2 start -->
<section class="section_divider">
<div>Contact 2</div>
</section>
<section class="dark:bg-gray-900 dark:text-gray-100">
<div class="grid max-w-screen-xl grid-cols-1 gap-8 px-8 py-24 mx-auto rounded-lg md:grid-cols-2 md:px-12 xl:px-32 ">
<div class="flex flex-col justify-between">
<div class="space-y-2">
<h2 class="text-4xl font-bold leading-tight lg:text-5xl">Let's talk!</h2>
<div class="dark:text-gray-400">Vivamus in nisl metus? Phasellus.</div>
</div>
<img src="https://www.mambaui.com/assets/svg/doodle.svg" alt="" class="p-6 h-52 md:h-64">
</div>
<form novalidate="" class="space-y-6 ng-untouched ng-pristine ng-valid">
<div>
<label for="name" class="text-sm">Full name</label>
<input id="name" type="text" placeholder="" class="w-full p-3 rounded dark:bg-gray-800">
</div>
<div>
<label for="email" class="text-sm">Email</label>
<input id="email" type="email" class="w-full p-3 rounded dark:bg-gray-800">
</div>
<div>
<label for="message" class="text-sm">Message</label>
<textarea id="message" rows="3" class="w-full p-3 rounded dark:bg-gray-800"></textarea>
</div>
<button type="submit" class="w-full p-3 text-sm font-bold tracking-wide uppercase rounded dark:bg-green-400 dark:text-gray-900">Send Message</button>
</form>
</div>
</section>
<!-- contact 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>