-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
241 lines (201 loc) · 6.69 KB
/
index.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
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>BMCIT Club</title>
<link rel="icon" href="./images/bmc-it-club-circle-logo.png" type="image/x-icon">
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
height: 100svh;
width: 100vw;
display: flex;
align-items: center;
justify-content: center;
overflow: hidden;
}
.circle-outer {
stroke-dasharray: 471.24;
stroke-dashoffset: 471.24;
animation: draw-circle 1s ease-out forwards;
}
.circle-inner {
stroke-dasharray: 314.16;
stroke-dashoffset: -314.16;
animation: draw-circle 1s ease-out forwards;
}
@keyframes draw-circle {
to {
stroke-dashoffset: 0;
}
}
.preloader {
position: relative;
animation: rotate-div 6s ease-out forwards;
}
@keyframes rotate-div {
0% {
transform: rotateZ(0deg) scale(1);
}
50% {
transform: rotateZ(360deg) scale(1.5);
}
100% {
transform: rotateZ(360deg) scale(2);
}
}
.ribbon-left,
.ribbon-right {
position: absolute;
top: 50%;
transform: translateY(-50%);
opacity: 0;
}
.ribbon-left {
left: -100vw;
animation: moveInFromLeft 2s ease-out forwards, showText 0.5s ease-in 2s forwards;
}
.ribbon-right {
right: -100vw;
/* Start off-screen on the right */
animation: moveInFromRight 2s ease-out forwards, showText 0.5s ease-in 2s forwards;
}
@keyframes moveInFromLeft {
to {
left: 75px;
/* Move to the center */
opacity: 1;
transform: translate(-100%, -50%);
}
}
@keyframes moveInFromRight {
to {
right: 75px;
/* Move to the center */
opacity: 1;
transform: translate(100%, -50%);
}
}
@keyframes showText {
to {
opacity: 1;
}
}
/* Initially hide the text */
.ribbon-left text,
.ribbon-right text {
opacity: 0;
}
/* Show the text after animation */
.ribbon-left text,
.ribbon-right text {
animation: showText 0.5s ease-in 2.5s forwards;
}
.text {
font-size: 1.35rem;
fill: black;
font-weight: bold;
opacity: 0;
font-family: Arial Helvetica, sans-serif;
animation: showText 0.5s ease-in 2.5s forwards;
}
#curve {
fill: transparent;
}
.igniting .text {
font-size: 0.65rem;
font-weight: bold;
}
@keyframes fadeIn {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
@keyframes spin {
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
}
.animated-image {
animation: fadeIn 1s ease-in forwards, spin 2s linear 1s forwards;
animation-delay: 2s, 2s;
opacity: 0;
transform-origin: 50% 50%;
}
.main-content {
display: none;
}
.main-content h1 {
color: #0049af;
}
</style>
</head>
<body>
<!-- <img src="./images/bmcitclub_logo.jpg" alt="bmcitclub_logo" width="300px"> -->
<div class="preloader">
<svg width="80" height="40" xmlns="http://www.w3.org/2000/svg" class="ribbon-left">
<!-- Left Ribbon -->
<polygon points="0,0 60,0 60,32 0,32 16,16" fill="#0049af" />
<text x="20" y="20" fill="white" font-family="Arial" font-size="14" font-weight="bold">Estd</text>
</svg>
<svg width="200" height="200">
<defs>
<clipPath id="inner-circle-clip">
<circle cx="100" cy="100" r="50" />
</clipPath>
</defs>
<!-- Outer Circle -->
<circle cx="100" cy="100" r="75" fill="none" stroke="#0649ab" stroke-width="3" class="circle-outer" />
<!-- Inner Circle -->
<circle cx="100" cy="100" r="50" fill="none" stroke="#0649ab" stroke-width="3" class="circle-inner" />
<!-- Image clipped to the innermost circle -->
<image href="./images/inside-people.png" x="50" y="50" width="100" height="100" class="animated-image"
clip-path="url(#inner-circle-clip)" />
<!-- igniting the nation -->
<svg width="200" height="200" class="bmc-text">
<path id="curve" d="M 45 100 A 50 50 0 0 1 155 100" fill="transparent" />
<text class="text" text-anchor="middle">
<textPath class="text__path" xlink:href="#curve" startOffset="50%">BMC IT Club</textPath>
</text>
</svg>
<svg width="200" height="200" class="igniting">
<path id="curved" d="M 35 100 A 50 50 0 0 0 165 100" fill="transparent" />
<text class="text" text-anchor="middle">
<textPath class="text__path" xlink:href="#curved" startOffset="50%">Igniting technological
excellence</textPath>
</text>
</svg>
</svg>
<svg width="80" height="40" xmlns="http://www.w3.org/2000/svg" class="ribbon-right">
<!-- Right Ribbon -->
<polygon points="80,0 20,0 20,32 80,32 64,16" fill="#0049af" />
<text x="28" y="20" fill="white" font-family="Arial" font-size="14" font-weight="bold">2080</text>
</svg>
</div>
<div class="main-content">
<h1>BMC IT Club <strong>Webpage</strong> </h1>
<h2>Coming Soon ...</h2>
</div>
<script>
const preloader = document.querySelector('.preloader');
const mainContent = document.querySelector('.main-content');
window.addEventListener('load', () => {
setTimeout(() => {
preloader.style.display = "none";
mainContent.style.display = "block";
}, 6000);
});
</script>
</body>
</html>