Files
tailShape/public/componets/timeline/5_timeline.html

147 lines
7.1 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>Timeline 5</title>
</head>
<body>
<button class="dark_mode_button_custom_style" id="dark_mood_toogler">
d
</button>
<!-- timeline 5 start -->
<section class="section_divider" id="timeline_5">
<div>Timeline 5 </div>
</section>
<section class="dark:bg-gray-800">
<div class="w-10/12 md:w-7/12 lg:6/12 mx-auto relative py-20">
<h1 class="text-3xl text-center font-bold text-blue-500">Timeline with Tailwindcss</h1>
<div class="border-l-2 mt-10">
<!-- Card 1 -->
<div class="transform transition cursor-pointer hover:-translate-y-2 ml-10 relative flex items-center px-6 py-4 bg-blue-600 text-white rounded mb-10 flex-col md:flex-row space-y-4 md:space-y-0">
<!-- Dot Follwing the Left Vertical Line -->
<div class="w-5 h-5 bg-blue-600 absolute -left-10 transform -translate-x-2/4 rounded-full z-10 mt-2 md:mt-0"></div>
<!-- Line that connecting the box with the vertical line -->
<div class="w-10 h-1 bg-blue-300 absolute -left-10 z-0"></div>
<!-- Content that showing in the box -->
<div class="flex-auto">
<h1 class="text-lg">Day 1</h1>
<h1 class="text-xl font-bold">Orientation and Briefing on Uniliver basics</h1>
<h3>Classroom</h3>
</div>
<a href="#" class="text-center text-white hover:text-gray-300">Download materials</a>
</div>
<!-- Card 2 -->
<div class="transform transition cursor-pointer hover:-translate-y-2 ml-10 relative flex items-center px-6 py-4 bg-pink-600 text-white rounded mb-10 flex-col md:flex-row space-y-4 md:space-y-0">
<!-- Dot Follwing the Left Vertical Line -->
<div class="w-5 h-5 bg-pink-600 absolute -left-10 transform -translate-x-2/4 rounded-full z-10 mt-2 md:mt-0"></div>
<!-- Line that connecting the box with the vertical line -->
<div class="w-10 h-1 bg-pink-300 absolute -left-10 z-0"></div>
<!-- Content that showing in the box -->
<div class="flex-auto">
<h1 class="text-lg">Day 1</h1>
<h1 class="text-xl font-bold">Orientation and Briefing on Uniliver basics</h1>
<h3>Classroom</h3>
</div>
<a href="#" class="text-center text-white hover:text-gray-300">Download materials</a>
</div>
<!-- Card 3 -->
<div class="transform transition cursor-pointer hover:-translate-y-2 ml-10 relative flex items-center px-6 py-4 bg-green-600 text-white rounded mb-10 flex-col md:flex-row space-y-4 md:space-y-0">
<!-- Dot Follwing the Left Vertical Line -->
<div class="w-5 h-5 bg-green-600 absolute -left-10 transform -translate-x-2/4 rounded-full z-10 mt-2 md:mt-0"></div>
<!-- Line that connecting the box with the vertical line -->
<div class="w-10 h-1 bg-green-300 absolute -left-10 z-0"></div>
<!-- Content that showing in the box -->
<div class="flex-auto">
<h1 class="text-lg">Day 1</h1>
<h1 class="text-xl font-bold">Orientation and Briefing on Uniliver basics</h1>
<h3>Classroom</h3>
</div>
<a href="#" class="text-center text-white hover:text-gray-300">Download materials</a>
</div>
<!-- Card 4 -->
<div class="transform transition cursor-pointer hover:-translate-y-2 ml-10 relative flex items-center px-6 py-4 bg-purple-600 text-white rounded mb-10 flex-col md:flex-row space-y-4 md:space-y-0">
<!-- Dot Follwing the Left Vertical Line -->
<div class="w-5 h-5 bg-purple-600 absolute -left-10 transform -translate-x-2/4 rounded-full z-10 mt-2 md:mt-0"></div>
<!-- Line that connecting the box with the vertical line -->
<div class="w-10 h-1 bg-purple-300 absolute -left-10 z-0"></div>
<!-- Content that showing in the box -->
<div class="flex-auto">
<h1 class="text-lg">Day 1</h1>
<h1 class="text-xl font-bold">Orientation and Briefing on Uniliver basics</h1>
<h3>Classroom</h3>
</div>
<a href="#" class="text-center text-white hover:text-gray-300">Download materials</a>
</div>
<!-- Card 5 -->
<div class="transform transition cursor-pointer hover:-translate-y-2 ml-10 relative flex items-center px-6 py-4 bg-yellow-600 text-white rounded mb-10 flex-col md:flex-row">
<!-- Dot Follwing the Left Vertical Line -->
<div class="w-5 h-5 bg-yellow-600 absolute -left-10 transform -translate-x-2/4 rounded-full z-10 -mt-2 md:mt-0"></div>
<!-- Line that connecting the box with the vertical line -->
<div class="w-10 h-1 bg-yellow-300 absolute -left-10 z-0"></div>
<!-- Content that showing in the box -->
<div class="flex-auto">
<h1 class="text-lg">Day 1</h1>
<h1 class="text-xl font-bold">Orientation and Briefing on Uniliver basics</h1>
<h3>Classroom</h3>
</div>
<a href="#" class="text-center text-white hover:text-gray-300">Download materials</a>
</div>
</div>
</div>
</section>
<!-- timeline 5 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>