-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
271 lines (260 loc) · 10.3 KB
/
index.html
File metadata and controls
271 lines (260 loc) · 10.3 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
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
---
layout: default
---
<div
x-data="{
open_id: 0,
activeSection: 'top',
is_open_mobile_nav: false,
at_top: true,
init() {
let ticking = false;
const handleScroll = () => {
if (!ticking) {
requestAnimationFrame(() => {
this.updateActiveSection();
this.at_top = window.scrollY < 100;
ticking = false;
});
ticking = true;
}
};
window.addEventListener('scroll', handleScroll);
setTimeout(() => {
this.updateActiveSection();
this.at_top = window.scrollY < 100;
}, 100);
},
scrollToSection(sectionId) {
const element = document.getElementById(sectionId);
if (element) {
element.scrollIntoView({
behavior: 'smooth',
block: 'start'
});
this.activeSection = sectionId;
this.is_open_mobile_nav = false;
}
},
updateActiveSection() {
const sections = ['top', 'speakers', 'schedule', 'sponsors', 'venue', 'party', 'coscup'];
const scrollPos = window.scrollY;
const windowHeight = window.innerHeight;
const documentHeight = document.body.scrollHeight;
if (scrollPos < document.getElementById('top').offsetHeight) {
this.activeSection = 'top';
return;
}
let currentSection = 'speakers';
for (let i = 1; i < sections.length; i++) {
const section = document.getElementById(sections[i]);
if (section) {
if (section.offsetTop <= scrollPos && section.offsetTop + section.offsetHeight >= scrollPos) {
currentSection = sections[i];
}
}
}
if (scrollPos + windowHeight >= documentHeight - 500) {
currentSection = 'coscup';
}
this.activeSection = currentSection;
}
}"
class="relative overflow-x-hidden"
x-cloak
>
<a href="https://coscup.org/" target="_blank">
<div class="absolute flex justify-center box-content right-0 md:w-40 md:py-5 px-20 w-28 py-2 bg-white rotate-45 translate-x-[30%] md:translate-y-[25%] translate-y-[50%]">
{% include images/coscup_x5F_Logo.svg %}
</div>
</a>
<div
class="hidden md:block fixed top-1/2 left-0 w-full max-w-screen h-full max-h-[304px] transition-opacity duration-300"
>
{% include images/cityBg.svg %}
</div>
<!-- mobile navigation -->
{% include sp_nav.html %}
<!-- desktop navigation -->
<div class="relative md:pl-16 md:pr-10 md:grid grid-cols-5 gap-x-5">
{% include pc_nav.html %}
<div class="col-span-4 relative z-10 space-y-10">
{% include speakers.html %}
<div id="schedule" x-data="{ day: 1 }">
<!-- Day Selector -->
<div class="grid md:grid-cols-2 items-center justify-items-center bg-blue-light text-blue-normal font-bold text-base mb-6">
<div x-on:click="day = 1" x-bind:class="{ 'bg-red-normal-active text-blue-light': day == 1 }" class="cursor-pointer hover:bg-red-normal-hover hover:text-blue-light text-center w-full py-2.5 px-3.5 border border-blue-normal transition-colors">
<span class="uppercase text-xl" x-bind:class="{ 'text-blue-light': day == 1, 'text-blue-normal': day != 1 }">Saturday</span><br>
<span class="uppercase text-sm" x-bind:class="{ 'text-blue-light': day == 1, 'text-blue-normal': day != 1 }">9 Aug, 2025</span>
</div>
<div x-on:click="day = 2" x-bind:class="{ 'bg-red-normal-active text-blue-light': day == 2 }" class="cursor-pointer hover:bg-red-normal-hover hover:text-blue-light text-center w-full py-2.5 px-3.5 border border-blue-normal transition-colors">
<span class="uppercase text-xl" x-bind:class="{ 'text-blue-light': day == 2, 'text-blue-normal': day != 2 }">Sunday</span><br>
<span class="uppercase text-sm" x-bind:class="{ 'text-blue-light': day == 2, 'text-blue-normal': day != 2 }">10 Aug, 2025</span>
</div>
</div>
<!-- Schedule Tables -->
<div x-show="day == 1">
{% include schedule.html day=1%}
</div>
<div x-show="day == 2">
{% include schedule.html day=2%}
</div>
</div>
{% include sponsors.html %}
<section id="venue">
<div
class="mb-5 md:pl-16 pl-5 flex gap-2 md:hidden items-center"
>
<h2 class="md:text-3xl text-xl font-bold text-red-normal-active">
VENUE
</h2>
<div class="mb-3">{% include icons/decorateTitleMobile.svg %}</div>
</div>
<div class="relative">
<p
class="absolute top-4 md:left-10 left-5 md:text-2xl text-xl font-extrabold text-blue-light text-shadow-[3px_3px_6px_rgba(0,0,0,0.3)]"
>
National Taiwan University of<br />
Science and Technology<br />
台灣科技大學 活動中心 4 樓
</p>
<img
src="/assets/images/venueImage.jpg"
alt="venue"
class="w-full h-full object-cover"
/>
</div>
<table class="border-collapse w-full">
<thead>
<tr class="*:py-3 bg-blue-normal">
<th
class="flex gap-2 items-center justify-center border border-white md:text-2xl text-xl text-blue-light"
>
<span> {% include icons/decorateTitleLeftIcon2.svg %} </span>
場地資訊 Venue Info
<span>{% include icons/decorateTitleRightIcon2.svg %}</span>
</th>
</tr>
</thead>
<tbody>
<tr
class="*:py-3 md:*:pl-15 *:pl-5 text-lg bg-blue-light *:border *:border-white"
>
<td class="flex gap-2 items-start justify-between">
<p class="text-blue-dark font-extrabold whitespace-nowrap">
地點
</p>
<p class="grow text-blue-normal md:text-xl text-base">
台灣科技大學 活動中心 4 樓<br />
National Taiwan University of Science and Technology
</p>
</td>
<td class="flex gap-2 items-start justify-between">
<p class="text-blue-dark font-extrabold whitespace-nowrap">
地址
</p>
<p class="grow text-blue-normal md:text-xl text-base">
106台北市大安區基隆路四段43號<br />
No. 43, Sec. 4, Keelung Rd., Da'an Dist., Taipei City 106335,
Taiwan (R.O.C.)
</p>
</td>
</tr>
</tbody>
</table>
<iframe
width="100%"
height="400"
frameborder="0"
style="border: 0"
referrerpolicy="no-referrer-when-downgrade"
src="https://www.google.com/maps/embed/v1/place?key=AIzaSyCno9j7YCsQoeRLGJLFQLZmLftf-m5KqXE&q=National+Taiwan+University+of+Science+and+Technology,Taipei+Taiwan"
allowfullscreen
>
</iframe>
</section>
<section id="party">
<div
class="mb-5 md:pl-16 pl-5 flex gap-2 md:hidden items-center"
>
<h2 class="md:text-3xl text-xl font-bold text-red-normal-active">
PARTY
</h2>
<div class="mb-3">{% include icons/decorateTitleMobile.svg %}</div>
</div>
<img
src="/assets/images/codeparty-tw-2025.jpg"
alt="party"
class="w-full h-full object-cover"
/>
<table class="border-collapse w-full">
<thead>
<tr class="*:py-3 bg-blue-normal">
<th
class="flex gap-2 items-center justify-center border border-white md:text-2xl text-xl text-blue-light"
>
<span> {% include icons/decorateTitleLeftIcon2.svg %} </span>
Event Info
<span>{% include icons/decorateTitleRightIcon2.svg %}</span>
</th>
</tr>
</thead>
<tbody>
<tr
class="*:py-3 md:*:pl-15 *:pl-5 text-lg bg-blue-light *:border *:border-white"
>
<td class="flex gap-2 items-start justify-between">
<p class="text-blue-dark font-extrabold whitespace-nowrap">
Schedule
</p>
<p class="grow text-blue-normal md:text-xl text-base">
8/9(Sat)18:30~21:30
</p>
</td>
<td class="flex gap-2 items-start justify-between">
<p class="text-blue-dark font-extrabold whitespace-nowrap">
Location
</p>
<p class="grow text-blue-normal md:text-xl text-base">
PicCollage Office(3F, No. 102, Guangfu S. Road, Daan Dist., Taipei)
</p>
</td>
<td class="flex gap-2 items-start justify-between">
<p class="text-blue-dark font-extrabold whitespace-nowrap">
Registration
</p>
<p class="grow text-blue-normal md:text-xl text-base">
Please <a href="https://rubytaiwan.kktix.cc/events/codeparty2025" target="_blank">Register Here</a> to Join the Code Party.
</p>
</td>
</tr>
</tbody>
</table>
</section>
<section id="coscup">
<div
class="mb-5 md:pl-16 pl-5 flex gap-2 md:hidden items-center"
>
<h2 class="md:text-3xl text-xl font-bold text-red-normal-active">
COSCUP
</h2>
<div class="mb-3">{% include icons/decorateTitleMobile.svg %}</div>
</div>
<div
class="relative w-full h-fit flex justify-center items-center overflow-hidden"
>
<a
href="https://coscup.org/2025"
target="_blank"
class="absolute flex flex-row justify-center items-center text-blue-light md:text-xl text-base font-bold px-12 md:py-2.5 py-1.5 gap-2.5 left-1/2 -translate-x-1/2 top-[60%] bg-green-normal hover:bg-green-normal-active border border-green-light rounded-full"
>Visit</a
>
<span class="object-cover w-screen md:w-full md:shrink-0">
{% include images/coscupBg.svg %}
</span>
</div>
</section>
</div>
</div>
{% include speaker_modals.html %}
</div>