-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdigest.txt
More file actions
3602 lines (3134 loc) · 112 KB
/
digest.txt
File metadata and controls
3602 lines (3134 loc) · 112 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
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
Directory structure:
└── src/
├── assets/
│ └── images/
│ ├── cta/
│ ├── entertainment/
│ ├── icons/
│ ├── speaker-profile-pics/
│ └── sponsors/
│ ├── music/
│ ├── skydiving/
│ ├── team/
│ ├── venue/
│ └── website/
├── components/
│ ├── accordion/
│ │ ├── Accordion.astro
│ │ └── AccordionItem.astro
│ ├── common/
│ │ ├── CtaSection.astro
│ │ ├── EntertainmentCard.astro
│ │ ├── LinkIconButton.astro
│ │ └── Section.astro
│ ├── home/
│ │ ├── EntertainmentSwiper.astro
│ │ ├── FAQSection.astro
│ │ ├── HomeHeader.astro
│ │ └── SpeakerCard.astro
│ ├── location-table/
│ │ ├── LocationTable.astro
│ │ ├── LocationTableItem.astro
│ │ ├── data/
│ │ │ └── index.ts
│ │ └── types/
│ │ └── index.ts
│ ├── schedule/
│ │ └── ScheduleItem.astro
│ ├── site-nav/
│ │ ├── SiteNav.astro
│ │ └── Tabs.astro
│ ├── sponsors/
│ │ ├── SponsorItem.astro
│ │ ├── SponsorSection.astro
│ │ ├── data/
│ │ │ └── index.ts
│ │ └── types/
│ │ └── index.ts
│ └── typography/
│ ├── BodyText.astro
│ ├── Heading.astro
│ └── Subheading.astro
├── data/
│ └── index.ts
├── game/
│ ├── Camera.ts
│ ├── Experience.ts
│ ├── Renderer.ts
│ ├── script.ts
│ ├── sources.ts
│ ├── Utils/
│ │ ├── Debug.ts
│ │ ├── GameControls.ts
│ │ ├── RapierDebugRenderer.ts
│ │ ├── Resources.ts
│ │ ├── Sizes.ts
│ │ └── Time.ts
│ ├── World/
│ │ ├── Environment.ts
│ │ ├── Floor.ts
│ │ ├── Ostrich.ts
│ │ └── World.ts
│ └── stores/
│ ├── gameControlsStore.ts
│ ├── sceneStore.ts
│ └── types/
│ └── index.ts
├── layouts/
│ └── Layout.astro
├── pages/
│ ├── game.astro
│ ├── index.astro
│ ├── schedule.astro
│ └── sponsors.astro
├── styles/
│ └── global.css
├── test/
│ └── setup.ts
└── types/
└── index.ts
================================================
File: components/accordion/Accordion.astro
================================================
<div class="w-full max-w-2xl xl:max-w-4xl">
<div class="bg-stone-800 shadow-md rounded-lg overflow-hidden">
<slot />
</div>
</div>
<script>
document.addEventListener("astro:page-load", (): void => {
// Get all accordion headers
const accordionHeaders: NodeListOf<HTMLElement> =
document.querySelectorAll(".accordion-header");
// Add click event listener to each header
accordionHeaders.forEach((header: HTMLElement): void => {
header.addEventListener("click", (): void => {
// Toggle the active class on the header
header.classList.toggle("active");
// Get the icon within this header
const icon: HTMLElement | null =
header.querySelector(".accordion-icon");
// Toggle the rotation of the icon
if (icon) {
if (header.classList.contains("active")) {
icon.classList.add("rotate-180");
} else {
icon.classList.remove("rotate-180");
}
}
// Get the content panel that follows this header
const content: HTMLElement | null =
header.nextElementSibling as HTMLElement | null;
// Toggle the visibility of the content
if (content) {
if (content.style.maxHeight) {
content.style.maxHeight = "";
content.classList.add("hidden");
} else {
content.classList.remove("hidden");
content.style.maxHeight = `${content.scrollHeight}px`;
}
}
});
});
});
</script>
================================================
File: components/accordion/AccordionItem.astro
================================================
---
interface Props {
question: string;
open?: boolean;
}
const { question, open } = Astro.props;
---
<div class="border-b border-stone-700 last:border-b-0">
<button
class="accordion-header w-full px-6 py-4 xl:text-3xl text-left font-medium text-stone-300 flex justify-between items-center hover:bg-stone-700 transition-colors"
>
<span class="w-[90%]">{question}</span>
<svg
class="accordion-icon w-5 h-5 transform transition-transform duration-200"
fill="none"
stroke="currentColor"
viewBox="0 0 24 24"
xmlns="http://www.w3.org/2000/svg"
>
<path
stroke-linecap="round"
stroke-linejoin="round"
stroke-width="2"
d="M19 9l-7 7-7-7"></path>
</svg>
</button>
<div class={`accordion-content px-6 py-4 ${open ? "" : "hidden"}`}>
<slot />
</div>
</div>
================================================
File: components/common/CtaSection.astro
================================================
---
import { Picture } from "astro:assets";
import ctaPattern from "@/assets/images/cta/cta-pattern.jpg";
import nbLogoGold from "@/assets/images/cta/nb_logo--gold.png";
import activitiesV from "@/assets/images/cta/cta_v-image.png";
import Heading from "@/components/typography/Heading.astro";
import Subheading from "@/components/typography/Subheading.astro";
---
<section class="outer-padding">
<div class="relative h-[600px] rounded md:rounded-lg lg:rounded-xl xl:rounded-2xl overflow-hidden">
<Picture
src={nbLogoGold}
formats={["avif", "webp", "jpg"]}
alt="absolute top-1/2 -translate-y-1/2 z-10"
class="absolute top-1/2 -translate-y-1/2 z-20 w-[90%] left-1/2 -translate-x-1/2"
/>
<Picture
src={activitiesV}
formats={["avif", "webp", "jpg"]}
alt="absolute top-1/2 -translate-y-1/2 z-20"
class="absolute top-1/2 -translate-y-1/2 w-[95%] left-1/2 -translate-x-1/2 z-10"
/>
<div class="absolute inset-0">
<Picture
src={ctaPattern}
formats={["avif", "webp", "jpg"]}
alt="absolute inset-0"
class="object-cover w-full h-full"
/>
</div>
<Heading level={2}>
We hope to see you there, anon!
</Heading>
<Subheading headingLevel={2}>
July 15—17 2025, Mobile, Alabama
</Subheading>
</div>
</section>
================================================
File: components/common/EntertainmentCard.astro
================================================
---
import LinkIconButton from "@/components/common/LinkIconButton.astro";
import BodyText from "@/components/typography/BodyText.astro";
import Heading from "@/components/typography/Heading.astro";
import type { Entertainment } from "@/types";
import { Picture } from "astro:assets";
interface Props extends Entertainment {}
const { image, title, url, date, description } = Astro.props;
---
<article>
<Picture
alt=""
formats={["avif", "webp"]}
src={image}
class="mb-4 rounded-xl"
/>
<div class="flex flex-col gap-3 mb-4">
<Heading level={3}>
{title}
</Heading>
<p class="text-(--nb-white) text-sm md:text-base font-mono">{date}</p>
</div>
<div class="flex flex-col mb-4">
<BodyText>
{description}
</BodyText>
{url && <LinkIconButton url={url} className="mt-6" />}
</div>
</article>
================================================
File: components/common/LinkIconButton.astro
================================================
---
interface Props {
url: string;
className?: string;
}
const { url, className } = Astro.props;
---
<a
href={url}
target="_blank"
rel="noopener noreferrer"
class={`size-10 min-w-10 min-h-10 max-w-10 max-h-10 rounded-lg bg-stone-700 flex items-center justify-center ${className}`}
>
<svg
xmlns="http://www.w3.org/2000/svg"
fill="none"
viewBox="0 0 24 24"
stroke-width="1.5"
stroke="currentColor"
class="size-6 stroke-(--nb-white)"
>
<path
stroke-linecap="round"
stroke-linejoin="round"
d="M12 21a9.004 9.004 0 0 0 8.716-6.747M12 21a9.004 9.004 0 0 1-8.716-6.747M12 21c2.485 0 4.5-4.03 4.5-9S14.485 3 12 3m0 18c-2.485 0-4.5-4.03-4.5-9S9.515 3 12 3m0 0a8.997 8.997 0 0 1 7.843 4.582M12 3a8.997 8.997 0 0 0-7.843 4.582m15.686 0A11.953 11.953 0 0 1 12 10.5c-2.998 0-5.74-1.1-7.843-2.918m15.686 0A8.959 8.959 0 0 1 21 12c0 .778-.099 1.533-.284 2.253m0 0A17.919 17.919 0 0 1 12 16.5c-3.162 0-6.133-.815-8.716-2.247m0 0A9.015 9.015 0 0 1 3 12c0-1.605.42-3.113 1.157-4.418"
></path>
</svg>
</a>
================================================
File: components/common/Section.astro
================================================
---
import Heading from '@/components/typography/Heading.astro';
import Subheading from '@/components/typography/Subheading.astro';
interface Props {
title: string;
subheadline?: string;
className?: string;
headerClassName?: string;
}
const { title, subheadline, className = "", headerClassName } = Astro.props;
---
<section
class={className ? `${className} outer-padding section-y-padding` : "outer-padding"}
>
<header class={headerClassName ? headerClassName : ""}>
<Heading level={2}
>
{title}
</Heading>
{
subheadline && (
<Subheading headingLevel={2}>
{subheadline}
</Subheading>
)
}
</header>
<slot />
</section>
================================================
File: components/home/EntertainmentSwiper.astro
================================================
---
import EntertainmentCard from "@/components/common/EntertainmentCard.astro";
import Heading from "@/components/typography/Heading.astro";
import Subheading from "@/components/typography/Subheading.astro";
import { ENTERTAINMENT_DATA } from "@/data";
// Import Swiper styles
import "swiper/css";
import "swiper/css/navigation";
import "swiper/css/pagination";
---
<div class="swiper entertainment-swiper w-full section-y-padding">
<div
class="outer-padding flex flex-col sm:flex-row gap-4 sm:gap-8 md:gap-12 items-end justify-between mb-4 md:mb-8 lg:mb-12 xl:mb-16"
>
<div>
<Heading level={2}> The Line Up </Heading>
<Subheading headingLevel={2}>
Nostbama 2025 is going to be jam-packed with opportunities to meet and
have fun with all those disembodied avatars. Not just plebs but devs
too. And when we say bonding we mean 'Literally strap yourself to a
fellow Nostriche and jump out of a plane with him' bonding.
</Subheading>
</div>
<div class="hidden sm:flex justify-start lg:justify-end gap-2">
<button
class="bg-(--nb-white) cursor-pointer hover:bg-white transition-all active:[&_svg]:-translate-x-1 hover:[&_svg]:-translate-x-0.5 swiper-left h-10 lg:h-12 px-4 lg:px-6 xl:h-16 xl:px-10 rounded-full inline-flex items-center justify-center"
>
<svg
xmlns="http://www.w3.org/2000/svg"
fill="none"
viewBox="0 0 40 40"
class="size-8 lg:size-10 xl:size-12 transition-transform"
>
<!-- SVG path content unchanged -->
<g fill="#000001" clip-path="url(#a)">
<path
d="M22.862 29.525h1.9v3.813h5.712v1.9H17.137v-1.9h5.725v-3.813ZM34.29 31.425V12.388h-1.9v-1.913h1.9v-1.9h5.712v26.663h-5.713v-1.9h-3.812v-1.913h3.812Zm3.812 0v-3.8h-1.913v3.8h1.913Z"
></path>
<path
d="M15.238 33.338v-1.913h1.9v1.913h-1.9ZM22.86 27.625v1.9h-7.624v1.9h-1.9v-3.8h9.525ZM22.863 27.625v-3.813h1.9v3.813h-1.9ZM24.762 20v-5.712h1.9V20h-1.9Z"
></path>
<path
d="M17.136 16.188v-1.9h1.912V18.1h-5.712v3.813h5.712V18.1h1.9V20h3.813v1.913h-1.9v1.9h-9.525v3.812h-1.913V18.1H1.898v-1.912h15.238Z"
></path>
<path d="M0 16.188v-3.8h1.9v3.8H0ZM22.863 14.288v-1.9h1.9v1.9h-1.9Z"
></path>
<path
d="M17.136 14.288h-1.9v-1.9H1.898v-1.913h13.338v-1.9h1.9v5.713ZM30.477 10.475v-1.9h1.912v1.9h-1.912ZM26.664 8.575v-1.9h3.813v1.9h-3.813ZM17.137 8.575v-1.9h1.912v1.9h-1.912ZM19.05 6.675V4.763h7.613v1.912h-7.612Z"
></path>
</g>
<defs>
<clipPath id="a">
<path fill="#fff" d="M0 0v40h40V0z"></path>
</clipPath>
</defs>
</svg>
</button>
<button
class="bg-(--nb-white) cursor-pointer hover:bg-white transition-all active:[&_svg]:translate-x-1 hover:[&_svg]:translate-x-0.5 swiper-right h-10 lg:h-12 px-4 lg:px-6 xl:h-16 xl:px-10 rounded-full inline-flex items-center justify-center"
>
<svg
xmlns="http://www.w3.org/2000/svg"
fill="none"
viewBox="0 0 40 40"
class="size-8 lg:size-10 xl:size-12 transition-transform"
>
<!-- SVG path content unchanged -->
<g fill="#000001" clip-path="url(#a)">
<path
d="M17.138 29.525h-1.9v3.813H9.526v1.9h13.337v-1.9h-5.725v-3.813ZM5.71 31.425V12.388h1.9v-1.913h-1.9v-1.9H-.001v26.663h5.713v-1.9h3.812v-1.913H5.711Zm-3.812 0v-3.8h1.913v3.8H1.898Z"
></path>
<path
d="M24.762 33.338v-1.913h-1.9v1.913h1.9ZM17.14 27.625v1.9h7.624v1.9h1.9v-3.8H17.14ZM17.137 27.625v-3.813h-1.9v3.813h1.9ZM15.238 20v-5.712h-1.9V20h1.9Z"
></path>
<path
d="M22.864 16.188v-1.9h-1.912V18.1h5.712v3.813h-5.712V18.1h-1.9V20h-3.813v1.913h1.9v1.9h9.525v3.812h1.913V18.1h9.525v-1.912H22.864Z"
></path>
<path
d="M40 16.188v-3.8h-1.9v3.8H40ZM17.137 14.288v-1.9h-1.9v1.9h1.9Z"
></path>
<path
d="M22.864 14.288h1.9v-1.9h13.338v-1.913H24.764v-1.9h-1.9v5.713ZM9.523 10.475v-1.9H7.611v1.9h1.912ZM13.336 8.575v-1.9H9.523v1.9h3.813ZM22.863 8.575v-1.9h-1.912v1.9h1.912ZM20.95 6.675V4.763h-7.613v1.912h7.612Z"
></path>
</g>
<defs>
<clipPath id="a">
<path fill="#fff" d="M40 0v40H0V0z"></path>
</clipPath>
</defs>
</svg>
</button>
</div>
</div>
<div class="swiper-wrapper">
<!-- Slides -->
{
ENTERTAINMENT_DATA.map((data) => (
<div class="swiper-slide">
<EntertainmentCard {...data} />
</div>
))
}
</div>
<div class="swiper-scrollbar"></div>
</div>
<script>
// Import Swiper and modules
import Swiper from "swiper";
import { Navigation, Pagination, Scrollbar } from "swiper/modules"; // Added Scrollbar here
// --- 1. Variable to hold the Swiper instance ---
// Needs to be outside the function scope to persist reference
let entertainmentSwiperInstance: Swiper | null = null;
// --- 2. Function to setup (or re-setup) Swiper ---
function setupEntertainmentSwiper() {
// Find the container element for this specific Swiper
const swiperContainer: HTMLDivElement | null = document.querySelector(
".entertainment-swiper"
);
// Only proceed if the container element exists on the current page
if (swiperContainer) {
// --- 3. Destroy previous instance if it exists ---
// This prevents conflicts and memory leaks when navigating
if (entertainmentSwiperInstance) {
console.log("Destroying previous Entertainment Swiper instance.");
entertainmentSwiperInstance.destroy(true, true); // destroy(deleteInstance, cleanupStyles)
entertainmentSwiperInstance = null;
}
// --- 4. Initialize the new Swiper instance ---
console.log("Initializing Entertainment Swiper.");
const remValue = parseFloat(
getComputedStyle(document.documentElement).fontSize
);
entertainmentSwiperInstance = new Swiper(swiperContainer, {
modules: [Navigation, Pagination, Scrollbar], // Ensure Scrollbar module is included if using el
// Optional parameters
spaceBetween: 0,
loop: true,
centeredSlides: false, // loop=true often works best with centeredSlides=false or specific slide counts
slidesPerView: "auto", // More flexible than fixed numbers across breakpoints if using CSS width/max-width
// Using 'auto' slidesPerView might simplify breakpoints if slides have max-width via CSS
// width: null, // Usually not needed when using slidesPerView:'auto' or breakpoints
breakpoints: {
// It might be simpler to control slide width via CSS and use slidesPerView: 'auto'
// But keeping your original breakpoints for now:
320: {
slidesPerView: 1.15,
spaceBetween: remValue * 1.5,
slidesOffsetBefore: remValue,
},
640: {
slidesPerView: 1.25,
spaceBetween: remValue,
slidesOffsetBefore: remValue,
},
768: {
slidesPerView: 1.5,
spaceBetween: remValue * 1.5,
slidesOffsetBefore: remValue * 1.5,
},
1024: {
slidesPerView: 2.2,
spaceBetween: remValue * 2,
slidesOffsetBefore: remValue * 2,
},
1280: {
slidesPerView: 2.2,
spaceBetween: remValue * 2.5,
slidesOffsetBefore: remValue * 2.5,
},
1536: {
slidesPerView: 2.4,
spaceBetween: remValue * 3,
slidesOffsetBefore: remValue * 3,
},
},
// If we need pagination (ensure the element exists in your HTML)
pagination: {
el: ".swiper-pagination", // Make sure <div class="swiper-pagination"></div> exists
clickable: true, // Often desired for pagination
},
// Navigation arrows (ensure the elements exist in your HTML)
navigation: {
// NOTE: Your classes seem reversed (left button assigned to nextEl), check if intentional
nextEl: ".swiper-right",
prevEl: ".swiper-left",
},
// And if we need scrollbar (ensure the element exists in your HTML)
scrollbar: {
el: ".swiper-scrollbar", // Make sure <div class="swiper-scrollbar"></div> exists
hide: false, // Or true, depending on preference
draggable: true,
},
});
} else {
// If the container isn't on the page, make sure any old instance is destroyed
// (e.g., navigating from a page with this swiper to one without)
// WHY IS THIS CHECK HERE?
// Because 'entertainmentSwiperInstance' still holds the Swiper object
// created when the *previous* page (Page A) was loaded,
// even though we are now on Page B where the container doesn't exist.
if (entertainmentSwiperInstance) {
console.log(
"Entertainment Swiper container not found, destroying instance."
);
entertainmentSwiperInstance.destroy(true, true);
entertainmentSwiperInstance = null;
}
}
}
// --- 5. Listen for Astro's page load event ---
// This runs on initial load AND after every client-side navigation
document.addEventListener("astro:page-load", setupEntertainmentSwiper);
// Optional: Cleanup before swapping if needed (usually destroy on load is enough)
// document.addEventListener('astro:before-swap', () => {
// if (entertainmentSwiperInstance) {
// entertainmentSwiperInstance.destroy(true, true);
// entertainmentSwiperInstance = null;
// }
// });
</script>
<style>
.swiper-slide {
max-width: 640px;
}
</style>
================================================
File: components/home/FAQSection.astro
================================================
---
import Accordion from "@/components/accordion/Accordion.astro";
import AccordionItem from "@/components/accordion/AccordionItem.astro";
import { venueLocations } from "@/components/location-table/data";
import LocationTable from "@/components/location-table/LocationTable.astro";
import LocationTableItem from "@/components/location-table/LocationTableItem.astro";
import BodyText from "@/components/typography/BodyText.astro";
---
<Accordion>
<AccordionItem question="How much does it cost?">
<BodyText>
Attending the events on the 15th is <span class="font-medium text-white"
>completely free</span
>. The rest of the stuff sounds expensive, kinda. NGL. Sky-diving costs
$279 per person.
</BodyText>
</AccordionItem>
<AccordionItem question="What's the nearest airport?">
<BodyText>
I don't know, I'm not from there. JFK? That's a big one isn't it?
</BodyText>
</AccordionItem>
<AccordionItem question="How do I register for sky-diving?">
<BodyText>
Registration ends June 9th so contact <a
href="https://njump.me/npub1yrkexvt88h6cgd32gdcfm55auuz6rw6c70xj478gcz6lstz5czvs9s77xh"
class="text-orange-400 hover:text-orange-600 hover:underline transition-colors"
>DankSwoops</a
> ASAP on Nostr.
</BodyText>
</AccordionItem>
<AccordionItem question="What about accommodation?">
<BodyText> Yes, you'll probably need something like that. </BodyText>
</AccordionItem>
<AccordionItem
question="I'm a dev/musician/stripper and I want to talk/perform/strip at this event. Who do I contact?"
>
<BodyText>
You should contact the event organisers: <a
href="https://njump.me/npub16secklpnqey3el04fy2drfftsz5k26zlwdsnz84wtul2luwj8fdsugjdxk"
class="text-orange-400 hover:text-orange-600 hover:underline transition-colors"
>Sergio</a
>, <a
href="https://njump.me/npub1unm5skfa9x4drpq43pu2g00w6pzwvfhsa23z4j6aee7vghaygmkqwjtxhc"
class="text-orange-400 hover:text-orange-600 hover:underline transition-colors"
>Mallory</a
> or <a
href="https://njump.me/npub1ualvtyga8hj6kgw9mwe72ns9pn6c8kd66qruv98eafeuawg7yt0shdwmqx"
class="text-orange-400 hover:text-orange-600 hover:underline transition-colors"
>Riddler</a
> on Nostr.
</BodyText>
</AccordionItem>
<AccordionItem question="Where am I going again?">
<BodyText>
We're going here. Please confirm exact locations (Orange Beach, Riddler's
house) with the event organisers <a
href="https://njump.me/npub16secklpnqey3el04fy2drfftsz5k26zlwdsnz84wtul2luwj8fdsugjdxk"
class="text-orange-400 hover:text-orange-600 hover:underline transition-colors"
>Sergio</a
>, <a
href="https://njump.me/npub1unm5skfa9x4drpq43pu2g00w6pzwvfhsa23z4j6aee7vghaygmkqwjtxhc"
class="text-orange-400 hover:text-orange-600 hover:underline transition-colors"
>Mallory</a
> or <a
href="https://njump.me/npub1ualvtyga8hj6kgw9mwe72ns9pn6c8kd66qruv98eafeuawg7yt0shdwmqx"
class="text-orange-400 hover:text-orange-600 hover:underline transition-colors"
>Riddler</a
> on Nostr.
</BodyText>
<div class="w-full">
<LocationTable>
{
venueLocations.map((loc) => (
<LocationTableItem
venueName={loc.venueName}
address={loc.address}
mapLink={loc.mapLink}
venueWebsite={loc.venueWebsite}
/>
))
}
</LocationTable>
</div>
</AccordionItem></Accordion
>
================================================
File: components/home/HomeHeader.astro
================================================
---
import { Picture } from "astro:assets";
import homeHero from "@/assets/images/home-hero.jpeg";
import nbLogo from "@/assets/images/nb_logo--3d.png";
import homeCollage from "@/assets/images/home-collage.png";
import Heading from "@/components/typography/Heading.astro";
import Subheading from "@/components/typography/Subheading.astro";
---
<header class="outer-padding mt-2 lg:mt-8 xl:mt-12">
<div
class="relative w-full min-h-[400px] h-[50vh] md:min-h-[550px] md:h-[70vh] lg:min-h-[660px] lg:h-[70vh] xl:min-h-[800px] xl:h-[70vh] rounded md:rounded-lg lg:rounded-xl xl:rounded-2xl overflow-hidden mb-3 xl:mb-12"
>
<div class="absolute inset-0">
<Picture
src={homeHero}
alt="Collage of psychedelic imagery of ostriches and shapes"
formats={["avif", "webp"]}
widths={[640, 768, 1024, 1280, 1536, 1920, 2560]}
sizes="100vw"
loading="eager"
fetchpriority="high"
class="object-cover w-full h-full"
/>
</div>
<Picture
src={nbLogo}
alt="Nostrbama Logo"
formats={["avif", "webp"]}
widths={[200, 400, 600, 800, 1200, 1600]}
sizes="(max-width: 768px) 80vw, 67vw"
loading="lazy"
decoding="async"
class="z-10 absolute max-w-2/3 left-1/2 -translate-x-1/2 top-1/2 -translate-y-1/2 w-4/5"
/>
</div>
<div>
<Heading level={1}>
Welcome to Nostrbama 2025, the BEST Nostr Conference in the Gulf States!
</Heading>
<Subheading headingLevel={1}>
Join us for 3 days and nights of fun events, from Live Music to Skydiving.
<span class="text-(--nb-white)">July 15-17 2025, Mobile, Alabama</span> right
in the heart of the Gulf Coast. Check out our <a
class="text-orange-400 underline"
href="/schedule">Schedule</a
> and <a class="text-orange-400 underline" href="/sponsors">Sponsors</a> sections
for more info, and we hope to see you there!
</Subheading>
</div>
</header>
<!-- <p
class="text-3xl md:text-5xl sm:text-4xl lg:text-6xl xl:text-5xl text-stone-300 leading-tight md:leading-[1.1] mb-5 text-balance"
>
Join us for 3 days and nights of fun events, from Live Music to
Skydiving.
<span class="text-(--nb-white)">July 15-17 2025, Mobile, Alabama</span> right
in the heart of the Gulf Coast. Check out our <a
class="text-orange-400 underline" href="/schedule">Schedule</a
> and <a class="text-orange-400 underline" href="/sponsors">Sponsors</a> sections for more info,
and we hope to see you there!
</p> <div class="grid items-center xl:gap-12">
<Picture
src={homeCollage}
formats={["avif", "webp"]}
alt="Four-image collage: 1) An oversized ostrich walks past the USS Alabama battleship. 2) A wide-eyed ostrich with its beak open faces the camera against a vivid sky. 3) An ostrich bends over, peering into the window of a yellow taxi. 4) A confused ostrich stands on a street in front of a historic red-brick building with balconies."
class="rounded-md lg:rounded-2xl"
/>
</div> -->
================================================
File: components/home/SpeakerCard.astro
================================================
---
import LinkIconButton from "@/components/common/LinkIconButton.astro";
import BodyText from "@/components/typography/BodyText.astro";
import Heading from "@/components/typography/Heading.astro";
import type { Speaker } from "@/types";
import { Picture } from "astro:assets";
import { lazy } from "astro:schema";
interface Props extends Speaker {}
const { speakerName, title, njumpUrl, bio, profilePic } = Astro.props;
// Widths targeting sharp images up to 2x density across layouts
const imageWidths = [320, 560, 640, 820, 960, 1120, 1640];
// Sizes describing the image's layout width at different viewports
const imageSizes = "(max-width: 640px) 90vw, (max-width: 1790px) 820px, 560px";
---
<article class="mb-10">
<!-- row 1 -->
<Picture
alt={`Profile picture of ${speakerName}`}
formats={["avif", "webp"]}
src={profilePic}
class="rounded-xl w-full aspect-square object-cover mb-4"
widths={imageWidths}
sizes={imageSizes}
loading="lazy"
decoding="async"
/>
<!-- row-2 -->
<div class="flex justify-between items-center gap-2">
<Heading level={3} className="lg:mb-0">{speakerName}</Heading>
<LinkIconButton url={njumpUrl} />
</div>
<!-- row-3 -->
<p class="text-(--nb-white) lg:text-lg font-mono">{title}</p>
<!-- row-4 -->
<BodyText>
{bio}
</BodyText>
</article>
<style>
article {
display: grid;
grid-template-rows: subgrid;
grid-row: span 4;
}
</style>
================================================
File: components/location-table/LocationTable.astro
================================================
<table class="w-full border-collapse">
<colgroup>
<col style="width: 35%" />
<col style="width: 65%" />
</colgroup>
<tbody class="text-stone-400 text-sm">
<slot />
</tbody>
</table>
================================================
File: components/location-table/LocationTableItem.astro
================================================
---
import type { Location } from "@/components/location-table/types";
import BodyText from "@/components/typography/BodyText.astro";
interface Props extends Location {}
const { venueName, mapLink, address, venueWebsite } = Astro.props;
---
<tr class="border-b border-stone-700">
<td class="py-4 align-top"
><BodyText className="text-stone-300">{venueName}</BodyText></td
>
<td class="py-4 flex flex-col gap-3">
<BodyText>{address}</BodyText>
<BodyText>
<a
href={mapLink}
target="_blank"
rel="noreferrer noopener"
class="underline">Map link</a
>
</BodyText>
{
venueWebsite && (
<BodyText>
<a
href={venueWebsite}
target="_blank"
rel="noreferrer noopener"
class="underline"
>
{venueWebsite}
</a>
</BodyText>
)
}
</td>
</tr>
================================================
File: components/location-table/data/index.ts
================================================
import type { Location } from "@/components/location-table/types";
export const venueLocations: Location[] = [
{
venueName: "The Haberdasher",
address: "The Hatch at The Haberdasher, 113 Dauphin St.",
mapLink: "https://www.openstreetmap.org/?#map=19/30.691881/-88.041717",
venueWebsite: "https://www.thehabmobile.com/",
},
{
venueName: "Red or White Wine",
address: "1104 Dauphin St, Mobile, AL 36604",
mapLink: "https://maps.app.goo.gl/CnxvoGDJsRgFWPGB7",
venueWebsite: "https://www.thehabmobile.com/",
},
{
venueName: "Orange Beach",
address: "Alabama",
mapLink: "https://maps.app.goo.gl/WNMTc3c4o42TbZ628",
},
];
================================================
File: components/location-table/types/index.ts
================================================
export type Location = {
venueName: string;
address: string;
mapLink: string;
venueWebsite?: string;
};
================================================
File: components/schedule/ScheduleItem.astro
================================================
---
import { Image } from "astro:assets";
import Heading from "@/components/typography/Heading.astro";
import Subheading from "@/components/typography/Subheading.astro";
import type { ImageMetadata } from "astro";
interface Props {
image: ImageMetadata;
imageAlt: string;
subheading: string;
location: string;
}
const { image, imageAlt, subheading, location } = Astro.props;
---
<article
class="grid gap-6 md:grid-cols-[0.25fr_1fr] md:gap-16 xl:gap-[20%] border-t border-b border-stone-700 py-8 last:border-t-0"
>
<Image src={image} alt={imageAlt} class="rounded-lg" />
<!-- titles -->
<div class="flex flex-col gap-8 max-w-[1200px]">
<header class="">
<slot name="heading" />
<Subheading headingLevel={2}>{subheading}</Subheading>
</header>
<!-- details -->
<div
class="border-t font-mono py-4 flex flex-col md:flex-row gap-6 md:gap-16 text-sm border-b border-stone-700"
>
<div class="w-full">
<p class="mb-2">Time</p>
<slot name="time" />
</div>
<div class="w-full">
<p class="mb-2">Location</p>
<p class="text-(--nb-white) text-base">
{location}
</p>
</div>
</div>
<!-- blurb -->
<slot name="bodyText" />
</div>
</article>
================================================
File: components/site-nav/SiteNav.astro
================================================
---
import Tabs from "@/components/site-nav/Tabs.astro";
---
<nav
class="absolute rounded-full bottom-5 sm:top-5 inline-flex flex-col items-center w-full lg:left-1/2 lg:-translate-x-1/2 z-50 text-white"
>
<Tabs />
</nav>
================================================
File: components/site-nav/Tabs.astro
================================================
---
// No props needed for this basic version, but you could pass initialTab etc.
// Define TABS data here or import it. For simplicity, defining here:
const TABS = [
{
name: "Home",