Files
tailShape/public/componets/blog/1_blog.html

122 lines
6.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>Blog 1</title>
</head>
<body>
<button class="dark_mode_button_custom_style" id="dark_mood_toogler">
d
</button>
<!-- blog 1 start -->
<section class="section_divider" id="blog_1">
<div>Blog 1</div>
</section>
<section class="py-6 sm:py-12 dark:bg-gray-800 dark:text-gray-100">
<div class="container p-6 mx-auto space-y-8">
<div class="space-y-2 text-center">
<h2 class="text-3xl font-bold">Partem reprimique an pro</h2>
<p class="font-serif text-sm dark:text-gray-400">Qualisque erroribus usu at, duo te agam soluta mucius.</p>
</div>
<div class="grid grid-cols-1 gap-x-4 gap-y-8 md:grid-cols-2 lg:grid-cols-4">
<article class="flex flex-col dark:bg-gray-900">
<a rel="noopener noreferrer" href="#" aria-label="Te nulla oportere reprimique his dolorum">
<img alt="" class="object-cover w-full h-52 dark:bg-gray-500" src="https://source.unsplash.com/200x200/?fashion?1">
</a>
<div class="flex flex-col flex-1 p-6">
<a rel="noopener noreferrer" href="#" aria-label="Te nulla oportere reprimique his dolorum"></a>
<a rel="noopener noreferrer" href="#" class="text-xs tracking-wider uppercase hover:underline dark:text-green-400">Convenire</a>
<h3 class="flex-1 py-2 text-lg font-semibold leading-snug">Te nulla oportere reprimique his dolorum</h3>
<div class="flex flex-wrap justify-between pt-3 space-x-2 text-xs dark:text-gray-400">
<span>June 1, 2020</span>
<span>2.1K views</span>
</div>
</div>
</article>
<article class="flex flex-col dark:bg-gray-900">
<a rel="noopener noreferrer" href="#" aria-label="Te nulla oportere reprimique his dolorum">
<img alt="" class="object-cover w-full h-52 dark:bg-gray-500" src="https://source.unsplash.com/200x200/?fashion?2">
</a>
<div class="flex flex-col flex-1 p-6">
<a rel="noopener noreferrer" href="#" aria-label="Te nulla oportere reprimique his dolorum"></a>
<a rel="noopener noreferrer" href="#" class="text-xs tracking-wider uppercase hover:underline dark:text-green-400">Convenire</a>
<h3 class="flex-1 py-2 text-lg font-semibold leading-snug">Te nulla oportere reprimique his dolorum</h3>
<div class="flex flex-wrap justify-between pt-3 space-x-2 text-xs dark:text-gray-400">
<span>June 2, 2020</span>
<span>2.2K views</span>
</div>
</div>
</article>
<article class="flex flex-col dark:bg-gray-900">
<a rel="noopener noreferrer" href="#" aria-label="Te nulla oportere reprimique his dolorum">
<img alt="" class="object-cover w-full h-52 dark:bg-gray-500" src="https://source.unsplash.com/200x200/?fashion?3">
</a>
<div class="flex flex-col flex-1 p-6">
<a rel="noopener noreferrer" href="#" aria-label="Te nulla oportere reprimique his dolorum"></a>
<a rel="noopener noreferrer" href="#" class="text-xs tracking-wider uppercase hover:underline dark:text-green-400">Convenire</a>
<h3 class="flex-1 py-2 text-lg font-semibold leading-snug">Te nulla oportere reprimique his dolorum</h3>
<div class="flex flex-wrap justify-between pt-3 space-x-2 text-xs dark:text-gray-400">
<span>June 3, 2020</span>
<span>2.3K views</span>
</div>
</div>
</article>
<article class="flex flex-col dark:bg-gray-900">
<a rel="noopener noreferrer" href="#" aria-label="Te nulla oportere reprimique his dolorum">
<img alt="" class="object-cover w-full h-52 dark:bg-gray-500" src="https://source.unsplash.com/200x200/?fashion?4">
</a>
<div class="flex flex-col flex-1 p-6">
<a rel="noopener noreferrer" href="#" aria-label="Te nulla oportere reprimique his dolorum"></a>
<a rel="noopener noreferrer" href="#" class="text-xs tracking-wider uppercase hover:underline dark:text-green-400">Convenire</a>
<h3 class="flex-1 py-2 text-lg font-semibold leading-snug">Te nulla oportere reprimique his dolorum</h3>
<div class="flex flex-wrap justify-between pt-3 space-x-2 text-xs dark:text-gray-400">
<span>June 4, 2020</span>
<span>2.4K views</span>
</div>
</div>
</article><!---->
</div>
</div>
</section>
<!-- blog 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>