mirror of
https://github.com/harvard-edge/cs249r_book.git
synced 2026-05-08 09:57:21 -05:00
62 lines
1.5 KiB
HTML
62 lines
1.5 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>Full-Width Skeleton Loader - Dark Theme</title>
|
|
<style>
|
|
body {
|
|
background-color: #333; /* Dark theme background */
|
|
color: #fff; /* Light text color for dark theme */
|
|
font-family: Arial, sans-serif;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
height: 100vh;
|
|
margin: 0;
|
|
}
|
|
|
|
.skeleton-loader {
|
|
width: 100%; /* Full width */
|
|
max-width: 600px; /* Adjust based on your requirement */
|
|
padding: 20px;
|
|
}
|
|
|
|
.skeleton-loader > div {
|
|
background-color: #4b5563; /* Darker shade for loading effect */
|
|
height: 8px;
|
|
border-radius: 4px;
|
|
margin-bottom: 16px;
|
|
width: 100%; /* Make each line full width */
|
|
animation: pulse 1.5s ease-in-out infinite;
|
|
}
|
|
|
|
/* To maintain the visual variety, you might not want all the lines to be full width */
|
|
.skeleton-loader > div:nth-last-child(1) { width: 90%; }
|
|
.skeleton-loader > div:nth-last-child(2) { width: 95%; }
|
|
|
|
@keyframes pulse {
|
|
0%, 100% {
|
|
opacity: 1;
|
|
}
|
|
50% {
|
|
opacity: .5;
|
|
}
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
|
|
<div role="status" class="skeleton-loader">
|
|
<div></div>
|
|
<div></div>
|
|
<div></div>
|
|
<div></div>
|
|
<div></div>
|
|
<div></div>
|
|
<span class="sr-only"></span>
|
|
</div>
|
|
|
|
</body>
|
|
</html>
|