Created
May 23, 2023 14:32
-
-
Save mpakus/0d733a19273238c6f1457b29f595cc0c to your computer and use it in GitHub Desktop.
tailwind-td.html
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/tailwind.min.css" rel="stylesheet"> | |
<style> | |
.sidebar { | |
width: 5rem; /* Adjust the width as needed */ | |
height: 100vh; | |
background-color: #ffffff; | |
} | |
.top-right-icon { | |
position: absolute; | |
top: 1rem; | |
right: 1rem; | |
} | |
.transparent-strip { | |
position: absolute; | |
top: 0; | |
right: 0; | |
width: 20%; | |
height: 100vh; | |
background-color: rgba(0, 0, 0, 0.5); | |
} | |
</style> | |
</head> | |
<body> | |
<div class="flex"> | |
<div class="sidebar flex flex-col justify-center items-center"> | |
<!-- Add your icons here --> | |
<img src="path/to/icon1.png" alt="Icon 1" class="w-8 h-8"> | |
<img src="path/to/icon2.png" alt="Icon 2" class="w-8 h-8"> | |
<img src="path/to/icon3.png" alt="Icon 3" class="w-8 h-8"> | |
</div> | |
<div class="flex-grow"> | |
<div class="top-right-icon"> | |
<img src="path/to/user-icon.png" alt="User Icon" class="w-8 h-8"> | |
</div> | |
<div class="transparent-strip"> | |
<ul class="flex flex-col mt-8 ml-4"> | |
<li class="mb-4"> | |
<a href="#" class="text-white flex items-center"> | |
<img src="path/to/icon4.png" alt="Icon 4" class="w-4 h-4 mr-2"> | |
Link 1 | |
</a> | |
</li> | |
<li class="mb-4"> | |
<a href="#" class="text-white flex items-center"> | |
<img src="path/to/icon5.png" alt="Icon 5" class="w-4 h-4 mr-2"> | |
Link 2 | |
</a> | |
</li> | |
<!-- Add more list items as needed --> | |
</ul> | |
</div> | |
</div> | |
</div> | |
</body> | |
</html> |
Maknoun
commented
Apr 28, 2025
<style>
body {
margin: 0;
padding: 0;
font-family: 'Poppins', sans-serif;
}
.slide {
width: 1280px;
min-height: 720px;
overflow: hidden;
position: relative;
}
.gradient-bg {
background: linear-gradient(135deg, #f0f8ff 0%, #e6f7ff 50%, #e0f7fa 100%);
}
.title {
font-size: 48px;
font-weight: 700;
background: linear-gradient(90deg, #0277bd, #00796b);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
line-height: 1.2;
}
.subtitle {
font-size: 28px;
color: #455a64;
}
.accent-bar {
height: 6px;
background: linear-gradient(90deg, #0277bd, #00796b);
width: 100%;
}
.objective-box {
background-color: rgba(255, 255, 255, 0.8);
border-left: 5px solid #0277bd;
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}
.icon-circle {
width: 60px;
height: 60px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
}
</style>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment