-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
248 lines (235 loc) · 15.4 KB
/
index.html
File metadata and controls
248 lines (235 loc) · 15.4 KB
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
242
243
244
245
246
247
248
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<meta name="generator" content="Astro v3.5.5">
<title>
HackSphere
</title>
<script src="https://kit.fontawesome.com/0b92670209.js" crossorigin="anonymous"></script>
<link rel="stylesheet" href="style.css" />
<link rel="shortcut icon" href="code breakers logo.png">
<style>
@import"https://fonts.googleapis.com/css2?family=Dela+Gothic+One&display=swap";
@import"https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap";
@import"https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap";
@import"https://fonts.googleapis.com/css2?family=Tiro+Devanagari+Hindi&display=swap";
@import"https://fonts.googleapis.com/css2?family=Oswald:wght@200;300;400;500;600;700&display=swap";
* {
padding: 0;
margin: 0;
box-sizing: border-box;
scroll-behavior: smooth
}
body {
background: black;
font-family: Poppins, sans-serif;
overflow-x: hidden;
cursor: none
}
.text-gradient-blue-purple {
-webkit-background-clip: text;
background-clip: text;
color: transparent;
background-image: linear-gradient(90deg, #7661f1, #e747af)
}
.floating-icon {
position: absolute;
font-size: 24px;
color: #fff
}
.main-scrollbar::-webkit-scrollbar {
width: 0
}
.custom-scrollbar::-webkit-scrollbar {
width: 5px
}
.custom-scrollbar::-webkit-scrollbar-thumb {
background-color: #0e0e0e;
border-radius: 5px
}
.custom-scrollbar::-webkit-scrollbar-track {
background-color: #0000;
border-radius: 3px
}
</style>
<script type="module">const s = document.getElementById("cursor"); document.body.onmouseenter = () => { s?.classList.remove("opacity-0") }; document.body.onmouseleave = () => { s?.classList.add("opacity-0") }; const y = (e, t, n) => { if (!s) return; const o = e.pageX - s.offsetWidth / 2, c = e.pageY - s.offsetHeight / 2, v = { transform: `translate(${o}px, ${c}px) scale(${n ? 7 : t ? 3 : 1})` }; s.animate(v, { duration: 800, fill: "forwards" }) }; window.onmousemove = e => { const t = e.target instanceof HTMLElement && e.target.closest(".interactable") !== null || !1, n = e.target instanceof HTMLElement && e.target.closest(".hero-title") !== null || !1, o = e.target instanceof HTMLImageElement, c = e.target instanceof HTMLImageElement && e.target.id === "tark-logo"; c && console.log("over tark logo"), o && !c ? (s?.classList.remove("mix-blend-difference"), s?.classList.add("w-4")) : (s?.classList.add("mix-blend-difference"), s?.classList.remove("w-4")), y(e, t, n) }; const i = document.getElementById("scrollToTop"); function g() { i && (window.scrollY >= window.innerHeight - 250 ? (i.classList.remove("pointer-events-none"), i.classList.remove("opacity-0"), i.classList.add("opacity-100")) : (i.classList.remove("opacity-100"), i.classList.add("opacity-0"), i.classList.add("pointer-events-none"))) } window.addEventListener("scroll", g); i?.addEventListener("click", () => { window.scrollTo({ top: 0, behavior: "smooth" }) }); var w = !0, f = "Invariant failed"; function d(e, t) { if (!e) { if (w) throw new Error(f); var n = typeof t == "function" ? t() : t, o = n ? "".concat(f, ": ").concat(n) : f; throw new Error(o) } } const x = 800, p = .1; class L { x; y; z; xPrev; yPrev; constructor(t = 0, n = 0, o = 0) { this.x = t, this.y = n, this.z = o, this.xPrev = t, this.yPrev = n } update(t, n, o) { this.xPrev = this.x, this.yPrev = this.y, this.z += o * .0675, this.x += this.x * (o * .0225) * this.z, this.y += this.y * (o * .0225) * this.z, (this.x > t / 2 || this.x < -t / 2 || this.y > n / 2 || this.y < -n / 2) && (this.x = Math.random() * t - t / 2, this.y = Math.random() * n - n / 2, this.xPrev = this.x, this.yPrev = this.y, this.z = 0) } draw(t) { t.lineWidth = this.z, t.beginPath(), t.moveTo(this.x, this.y), t.lineTo(this.xPrev, this.yPrev), t.stroke() } } const m = Array.from({ length: x }, () => new L(0, 0, 0)); let l = 0; const a = document.querySelector("#starfield-canvas"); d(a, "canvas should not be null"); const r = a.getContext("2d"), h = document.querySelector("#starfield"); d(h, "container should not be null"); const b = new ResizeObserver(P); b.observe(h); function P() { d(r, "canvas context should not be null"), l > 0 && cancelAnimationFrame(l); const { clientWidth: e, clientHeight: t } = h, n = window.devicePixelRatio || 1; a.width = e * n, a.height = t * n, a.style.width = `${e}px`, a.style.height = `${t}px`, r.scale(n, n); for (const o of m) o.x = Math.random() * e - e / 2, o.y = Math.random() * t - t / 2, o.z = 0; r.translate(e / 2, t / 2), r.fillStyle = "rgba(0, 0, 0, 0.4)", r.strokeStyle = "white", l = requestAnimationFrame(u) } function u() { d(r, "canvas context should not be null"); const { clientWidth: e, clientHeight: t } = h; for (const n of m) n.update(e, t, p), n.draw(r); r.fillRect(-e / 2, -t / 2, e, t), l = requestAnimationFrame(u) }
</script>
</head>
<body class="main-scrollbar">
<div id="cursor"
class="opacity-0 hidden md:block pointer-events-none absolute z-50 aspect-square w-16 bg-white rounded-full mix-blend-difference transition-all duration-700 ease-in-out">
</div>
<button id="scrollToTop"
class="pointer-events-none opacity-0 fixed bottom-2 md:bottom-6 lg:bottom-8 right-2 md:right-6 lg:right-8 aspect-square rounded-md p-2 w-12 z-50 bg-black bg-opacity-40 hover:bg-opacity-60 text-white tranisiton-all duration-700 ease-in-out">
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor"
class="w-full h-full">
<path stroke-linecap="round" stroke-linejoin="round" d="M4.5 15.75l7.5-7.5 7.5 7.5"></path>
</svg>
</button>
<div class="min-h-[100dvh] relative flex flex-col gap-4 items-center justify-center p-4">
<div id="starfield" class="absolute inset-0 -z-50">
<canvas id="starfield-canvas"></canvas>
</div>
<h2 class="text-3xl md:text-5xl font-bold text-white">
<span class="font-hindi text-4xl md:text-6xl">The CodeBreakers</span>
presents
</h2>
<div class="hero-title flex flex-col gap-8">
<h1 class="text-6xl md:text-7xl font-black font-hero text-gradient-blue-purple text-center">
Hack Sphere
</h1>
<h3 class="text-xl md:text-3xl lg:text-5xl font-black font-hero text-gradient-blue-purple text-center">
16 Jan <br /> 9:00 AM - 5:00 PM
</h3>
</div>
<a href="/problem.html" target="_blank"
class="interactable font-arcade text-white text-center text-xl md:text-3xl mt-8 md:mt-12 lg:mt-16 transition-all duration-700 ease-in-out">
PROBLEM<br>STATEMENTS
</a>
<div
class="absolute bottom-0 md:bottom-4 lg:bottom-8 w-full h-20 md:h-24 lg:h-28 flex align-items-center p-4 md:px-12 lg:px-24">
<a href="https://instagram.com/" target="_blank" class="interactable aspect-square h-full rounded-full">
<img id="tark-logo" src="/assets/code breakers logo.png" alt="Tark"
class="w-full h-full object-cover rounded-full">
</a>
<div class="h-full flex flex-grow justify-end items-center gap-4 md:gap-8 lg:gap-12 text-md md:text-xl">
<a href="#about" class="interactable text-white hover:underline">
Know More
</a>
<a href="#team" class="interactable text-white hover:underline">
</a>
</div>
</div>
</div>
<div id="about"
class="w-full min-h-screen text-white bg-black flex flex-col items-center md:flex-row gap-4 p-4 py-12 md:p-24 lg:p-32">
<div class="w-full md:w-1/5 lg:w-1/3 flex items-center md:justify-center px-4">
<h1
class="interactable text-3xl md:text-5xl lg:text-7xl font-hero font-bold text-purple-500 md:-rotate-90 md:-translate-y-1/2 whitespace-nowrap lg:whitespace-normal">
About The Event
</h1>
</div>
<div class="w-full md:w-4/5 lg:w-1/2 flex flex-col gap-8 p-4">
<p class="text-lg md:text-xl lg:text-2xl">
Welcome to <span class="interactable text-purple-500 font-bold">HackSphere </span>, the premier event
hosted by The CodeBreakers Club, RCOEM. As pioneers in merging technical
expertise with the art of Development, we present a groundbreaking
8-hour Developer Hackathon . Our event serves as a platform for budding engineers
to showcase their problem-solving abilities while honing crucial
skills essential for industry success. Join us for an
unforgettable 8 hour journey where innovation, technical acumen,
and persuasive articulation converge to shape the future of our
aspiring professionals.
</p>
<a href="https://docs.google.com/forms/d/e/1FAIpQLSc48ezQoMk1tesF_rNcbdxDOJssB61IfhFdO__mMNKbRbs-xw/viewform"
target="_blank"
class="interactable w-fit bg-purple-500 hover:bg-purple-600 hover:scale-110 text-white text-xl md:text-3xl text-center md:text-left font-bold p-2 px-6 rounded transition-all duration-700 ease-in-out">
Register Now
</a>
</div>
</div>
<div id="team"
class="w-full min-h-screen bg-topography bg-cover flex flex-col items-center justify-center gap-2 md:gap-4 p-8">
<h1 class="text-3xl md:text-5xl font-hero font-bold text-white mt-8">
Our Past Events
</h1>
<div class="w-max grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 items-center gap-4 md:gap-6 p-8">
<div
class="relative w-64 h-[26rem] bg-white bg-opacity-20 backdrop-blur-md shadow-lg shadow-black flex flex-col rounded-xl">
<img class="w-full h-60 rounded-t-xl object-cover" src="/assets/1.png"
alt="Harsh Diwase">
<div class="rounded-b-xl text-white flex flex-col gap-2 p-4">
<h1 class="text-2xl font-bold">Fizz Buzz</h1>
<p class="text-md">Solving the Questions</p>
</div>
</div>
<div
class="relative w-64 h-[26rem] bg-white bg-opacity-20 backdrop-blur-md shadow-lg shadow-black flex flex-col rounded-xl">
<img class="w-full h-60 rounded-t-xl object-cover" src="/assets/2.png"
alt="Muskan Jaiswal">
<div class="rounded-b-xl text-white flex flex-col gap-2 p-4">
<h1 class="text-2xl font-bold">Code Blazze</h1>
<p class="text-md">Final Round</p>
</div>
</div>
<div
class="relative w-64 h-[26rem] bg-white bg-opacity-20 backdrop-blur-md shadow-lg shadow-black flex flex-col rounded-xl">
<img class="w-full h-60 rounded-t-xl object-cover"
src="/assets/3.png"
alt="Naman Sarda">
<div class="rounded-b-xl text-white flex flex-col gap-2 p-4">
<h1 class="text-2xl font-bold">Code Blazze</h1>
<p class="text-md">First Round</p>
</div>
</div>
<div
class="relative w-64 h-[26rem] bg-white bg-opacity-20 backdrop-blur-md shadow-lg shadow-black flex flex-col rounded-xl">
<img class="w-full h-60 rounded-t-xl object-cover"
src="/assets/10.png"
alt="Kunal Dewangan">
<div class="rounded-b-xl text-white flex flex-col gap-2 p-4">
<h1 class="text-2xl font-bold">Code Blazze</h1>
<p class="text-md">Updating the Leaderboard</p>
</div>
</div>
<div
class="relative w-64 h-[26rem] bg-white bg-opacity-20 backdrop-blur-md shadow-lg shadow-black flex flex-col rounded-xl">
<img class="w-full h-60 rounded-t-xl object-cover"
src="/assets/5.png"
alt="Nupur Hada">
<div class="rounded-b-xl text-white flex flex-col gap-2 p-4">
<h1 class="text-2xl font-bold">Fizzbuzz</h1>
<p class="text-md">Introduction to the Event</p>
</div>
</div>
<div
class="relative w-64 h-[26rem] bg-white bg-opacity-20 backdrop-blur-md shadow-lg shadow-black flex flex-col rounded-xl">
<img class="w-full h-60 rounded-t-xl object-cover"
src="/assets/6.png"
alt="Vidhi Rathi">
<div class="rounded-b-xl text-white flex flex-col gap-2 p-4">
<h1 class="text-2xl font-bold">FizzBuzz</h1>
<p class="text-md">Head-On Competition</p>
</div>
</div>
<div
class="relative w-64 h-[26rem] bg-white bg-opacity-20 backdrop-blur-md shadow-lg shadow-black flex flex-col rounded-xl">
<img class="w-full h-60 rounded-t-xl object-cover"
src="/assets/7.png"
alt="Rushabh Singwi">
<div class="rounded-b-xl text-white flex flex-col gap-2 p-4">
<h1 class="text-2xl font-bold">Fizzbuzz</h1>
<p class="text-md">Buzzer Round</p>
</div>
</div>
<div
class="relative w-64 h-[26rem] bg-white bg-opacity-20 backdrop-blur-md shadow-lg shadow-black flex flex-col rounded-xl">
<img class="w-full h-60 rounded-t-xl object-cover"
src="/assets/8.png"
alt="Mushan Khan">
<div class="rounded-b-xl text-white flex flex-col gap-2 p-4">
<h1 class="text-2xl font-bold">Code Blazze</h1>
<p class="text-md">Bidding Round</p>
<div class="absolute bottom-4 flex gap-4 text-3xl">
</div>
</div>
</div>
</div>
</div>
<footer
class="w-full h-28 md:h-20 bg-neutral-800 text-white flex flex-col md:flex-row justify-between items-center p-4 md:p-8 md:px-24 lg:px-32">
<div class="w-2/3 text-xl flex justify-evenly md:justify-end md:gap-12">
<a href="https://in.linkedin.com/company/thecodebreakers-rcoem" target="_blank">
<i class="fa-brands fa-linkedin"></i>
</a>
<a href="https://www.instagram.com/thecodebreakers?igsh=MThneDU3MzFqa2lmaw==" target="_blank">
<i class="fa-brands fa-instagram"></i>
</a>
</div>
</footer>
<script data-cfasync="false" src="./index.js"></script>
</body>
</html>