forked from recodehive/awesome-github-profiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdashboard.html
134 lines (125 loc) · 4.08 KB
/
dashboard.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Dashboard</title>
<link rel="stylesheet" href="dashboard.css">
</head>
<body>
<div id="preloader">
<div class="loader-wrapper">
<img src="recode-hive.png" alt="Logo" class="logo">
<div class="loader"></div>
</div>
</div>
<style>
#preloader {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: #ffffff;
display: flex;
justify-content: center;
align-items: center;
z-index: 9999;
}
/* Loader and Logo Wrapper */
.loader-wrapper {
position: relative;
display: flex;
justify-content: center;
align-items: center;
}
/* Logo styling */
.logo {
width: 100px; /* Adjust the size to your preference */
height: auto;
z-index: 2; /* Ensure the logo appears above the spinner */
animation: fadeIn 2s ease forwards;
}
/* Fixed Diamond-shaped spinner with rotating color */
.loader {
width: 120px;
height: 120px;
background-color: transparent;
border: 10px solid transparent; /* Transparent border for all sides */
border-top: 10px solid #b0b0b0; /* Lighter gray border */
border-right: 10px solid #404040; /* Darker gray (black) border */
border-radius: 10px;
position: absolute;
transform: rotate(45deg); /* Rotate the square to create a diamond shape */
animation: spinColor 1.5s linear infinite; /* Only color will spin */
box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.3); /* Subtle shadow for depth */
}
/* Spinner color animation */
@keyframes spinColor {
0% {
border-top-color: #b0b0b0; /* Lighter gray */
border-right-color: #404040; /* Darker gray */
}
50% {
border-top-color: #404040; /* Transition to darker gray */
border-right-color: #b0b0b0; /* Lighter gray */
}
100% {
border-top-color: #b0b0b0; /* Back to original */
border-right-color: #404040; /* Darker gray */
}
}
/* Fade-in effect for the logo */
@keyframes fadeIn {
0% {
opacity: 0;
}
100% {
opacity: 1;
}
}
</style>
<script>
window.addEventListener('load', function() {
const preloader = document.getElementById('preloader');
const content = document.getElementById('content');
// Set a small timeout for better user experience
setTimeout(function() {
// Hide preloader
preloader.style.opacity = '0';
preloader.style.transition = 'opacity 1s ease-in-out';
// Show content after preloader fades out
setTimeout(function() {
preloader.style.display = 'none';
content.style.display = 'block';
}, 1000); // Delay for content display after preloader fade-out
}, 500); // Initial delay before preloader starts fading out
});
</script>
<div class="container">
<nav>
<a href="index.html" class="homeBtn">Home</a>
</nav>
<div class="dashboard-content">
<h1>Welcome,User</h1>
<section id="achievements" class="section">
<H1>DASHBOARD</H1>
<h2>Achievements</h2>
<ul>
<li>100 Days Coding Challenge - Completed</li>
<li>200 Days Coding Challenge - In Progress</li>
<li>Top Performer in Python - 2023</li>
</ul>
</section>
<section id="projects" class="section">
<h2>Projects</h2>
<ul>
<li><a href="#">Ambulance Monitoring System</a></li>
<li><a href="#">Landing Page Animation</a></li>
<li><a href="#">Portfolio Website</a></li>
</ul>
</section>
</div>
</div>
</body>
</html>