Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding /live to website #41

Merged
merged 42 commits into from
Oct 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
afc38b5
migrate from clerk user metadata
joshuasilva414 Sep 15, 2024
297823d
Merge remote-tracking branch 'upstream/dev' into dev
christianhelp Sep 24, 2024
3f0730e
adds hackkit credits
christianhelp Sep 24, 2024
169c9b9
Added text saying only accepted files are PDF. Might want to make it …
jacobellerbrock Sep 30, 2024
52db3b5
Upgrade Next Safe Action (#118)
joshuasilva414 Oct 2, 2024
a4d6525
fix registration default
christianhelp Oct 5, 2024
089490c
Added "Presented by SWIVEL"
jacobellerbrock Oct 7, 2024
56fcc55
Update README.md
Lermatroid Oct 8, 2024
ae09168
Fixed text overflow on user dashboard (#25)
mjanderson1227 Oct 9, 2024
1d27be5
Revert "Fixed text overflow on user dashboard (#25)" (#26)
christianhelp Oct 13, 2024
e712b3e
fixes overflow
christianhelp Oct 13, 2024
5641aeb
adds guilds
christianhelp Oct 13, 2024
8cda4ad
fixes schedule default
christianhelp Oct 14, 2024
aec7a29
Add event location (#124)
joshuasilva414 Oct 14, 2024
e438128
fixed xs screen size overriding all other sizes (#28)
mjanderson1227 Oct 14, 2024
adb3472
updates bot name
christianhelp Oct 15, 2024
ba4aa3c
Merge remote-tracking branch 'origin/dev' into dev
christianhelp Oct 15, 2024
97bc773
updates user profile
christianhelp Oct 15, 2024
9d8e2a1
updates media query size
christianhelp Oct 15, 2024
7644a1a
Adding Team Section (#29)
jacobellerbrock Oct 21, 2024
f4d1cc4
Merge branch 'production' into dev
jacobellerbrock Oct 22, 2024
2123259
Merging in new schedule enhancements (#128)
jacobellerbrock Oct 22, 2024
e99bf9c
updates from prod
christianhelp Oct 23, 2024
638fd57
Fix Hackathon Check-In Scanner (#130)
christianhelp Oct 24, 2024
11c5602
fix admin link check
christianhelp Oct 24, 2024
19d324c
Satisfies User Settings w/ New Schema (#112)
jacobellerbrock Oct 24, 2024
8ff9c0f
Merge remote-tracking branch 'upstream/dev' into dev
christianhelp Oct 24, 2024
601bcc3
test update image
christianhelp Oct 24, 2024
3c7d9df
mobile optimize pass
christianhelp Oct 24, 2024
b24fe59
I made cool schedule (#33)
joshuasilva414 Oct 24, 2024
804be3f
fix current event logic
joshuasilva414 Oct 24, 2024
ec33cbe
fix current event display
joshuasilva414 Oct 24, 2024
bba616c
adds survival guide
christianhelp Oct 25, 2024
6f23635
small event layout change
christianhelp Oct 25, 2024
e0c5ecf
updates theming
christianhelp Oct 25, 2024
45fb503
Merge remote-tracking branch 'origin/production' into dev
christianhelp Oct 25, 2024
ae8a7db
updates settings
christianhelp Oct 25, 2024
de03fe0
updates build command
christianhelp Oct 25, 2024
06279b0
Added sponsors section to the website (#37)
mjanderson1227 Oct 26, 2024
a9f0221
Improved hacker dashboard color palette and fixed font issues (#38)
mjanderson1227 Oct 26, 2024
473eb98
Merge remote-tracking branch 'origin/production' into dev
christianhelp Oct 26, 2024
d98d575
Adding /live to broadcast livestream (#40)
jacobellerbrock Oct 26, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions apps/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@
"embla-carousel-react": "8.1.7",
"framer-motion": "^11.3.8",
"gsap": "^3.12.5",
"hls.js": "^1.5.17",
"jiti": "^1.21.6",
"lucide-react": "^0.411.0",
"nanoid": "^5.0.7",
Expand Down
4 changes: 4 additions & 0 deletions apps/web/public/img/sponsors/CYMANII.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions apps/web/public/img/sponsors/DELL.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added apps/web/public/img/sponsors/GROQ.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions apps/web/public/img/sponsors/HEB.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions apps/web/public/img/sponsors/KLESSE.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added apps/web/public/img/sponsors/MATRIX.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added apps/web/public/img/sponsors/SCHROEDER.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 14 additions & 0 deletions apps/web/public/img/sponsors/SWIVEL Knockout-b.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions apps/web/public/img/sponsors/SWIVEL.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions apps/web/public/img/sponsors/UTSA_CS.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions apps/web/public/img/sponsors/UTSA_DATA_SCIENCE.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 4 additions & 4 deletions apps/web/src/app/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@

--radius: 0.5rem;

--gradient-color-1: #f7f5f5;
--gradient-color-2: #f7f5f5;
--gradient-color-3: #dcdcdc;
--gradient-color-4: #dcdcdc;
--gradient-color-1: #3f63c8;
--gradient-color-2: #1a46b3;
--gradient-color-3: #001773;
--gradient-color-4: #11377d;
}

.dark {
Expand Down
50 changes: 50 additions & 0 deletions apps/web/src/app/live/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
"use client";
import React, { useEffect, useRef } from "react";
import Hls from "hls.js";

export default function LivePage() {
const streamUrl =
"https://82934cf9c8696bd2.mediapackage.us-east-1.amazonaws.com/out/v1/0909ac7915bf450da5267c52f49797cb/index.m3u8";

const videoRef = useRef(null);

useEffect(() => {
// Initialize HLS only if supported
if (Hls.isSupported()) {
const hls = new Hls();
hls.loadSource(streamUrl);
hls.attachMedia(videoRef.current!);

hls.on(Hls.Events.MANIFEST_PARSED, () => {
// TODO: WILL FIX LATER
// @ts-ignore
videoRef.current.play();
});

return () => {
hls.destroy();
};
} else {
// @ts-ignore
if (videoRef.current.canPlayType("application/vnd.apple.mpegurl")) {
// For Safari browsers where HLS is natively supported
// @ts-ignore
videoRef.current.src = streamUrl;
// @ts-ignore
videoRef.current.play();
}
}
}, [streamUrl]);

return (
<div>
<video
ref={videoRef}
controls
width="1920"
height="1080"
style={{ maxWidth: "100%" }}
/>
</div>
);
}
2 changes: 2 additions & 0 deletions apps/web/src/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import About from "@/components/landing/About";

import Partners from "@/components/landing/Partners";
import Footer from "@/components/landing/Footer";
import { Sponsors } from "@/components/landing/Sponsors";
import MLHBadge from "@/components/landing/MLHBadge";
import Team from "@/components/landing/Team";
import { Oswald } from "next/font/google";
Expand Down Expand Up @@ -52,6 +53,7 @@ export default function Home() {
</div>
<Hero />
<About />
<Sponsors />
{/* <Partners /> */}
<WorkWithUs />
<Team />
Expand Down
2 changes: 1 addition & 1 deletion apps/web/src/components/dash/overview/ServerBubbles.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export function TitleBubble() {
{c.hackathonName}
</h1> */}
<h1 className="bg-gradient-to-b from-orange-600 via-yellow-300 to-orange-600 bg-clip-text font-bttf text-4xl text-transparent sm:text-7xl lg:text-5xl xl:text-6xl">
{"RowdyHacks"}
{"rowdyhacks"}
</h1>
<h2 className="text-center font-mono text-xs text-orange-500 sm:text-base">
{`${format(c.startDate, "h:mma, MMM d, yyyy")}`} @{" "}
Expand Down
62 changes: 62 additions & 0 deletions apps/web/src/components/landing/SponsorItem.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
import Image from "next/image";
import Link from "next/link";
import { Partner } from "@/lib/utils/shared/types";

const capitalize = (input: string) =>
input.charAt(0).toUpperCase() + input.slice(1);

const tierColorMap = {
title: "text-[#E817C6]",
gold: "text-yellow-600",
silver: "text-gray-400",
bronze: "text-[#a97142]",
partner: "text-[#17C6E8]",
} as const;

export function SponsorItem({ name, logo, tier, url }: Partner) {
const textColor = tierColorMap[tier];
const isTitle = tier === "title";

return (
<Link
href={url}
className={`group flex flex-col justify-center text-center ${
isTitle ? "w-full max-w-2xl" : "w-full"
}`}
>
<div>
<div className="relative z-50 rounded-xl border-2 border-[#ea580c] bg-white transition-transform lg:group-hover:-translate-y-6">
<div
className={`flex items-center justify-center p-4 ${
isTitle ? "h-96" : "h-60"
}`}
>
<Image
src={logo}
height={isTitle ? 300 : 200}
width={isTitle ? 300 : 200}
alt={`${name}'s Logo`}
className="object-contain"
/>
</div>
</div>
<div
className={`invisible ${textColor} relative ${
isTitle ? "bottom-32" : "bottom-20"
} z-10 transition-all duration-200 ease-linear lg:group-hover:visible lg:group-hover:bottom-0`}
>
<h1
className={`mb-2 font-semibold ${
isTitle ? "text-6xl" : "text-2xl"
}`}
>
{name}
</h1>
<h1 className={isTitle ? "text-4xl" : "text-xl"}>
{capitalize(tier)} Sponsor
</h1>
</div>
</div>
</Link>
);
}
48 changes: 48 additions & 0 deletions apps/web/src/components/landing/Sponsors.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
import { SponsorItem } from "./SponsorItem";
import { Partner } from "@/lib/utils/shared/types";
import partners from "./partners.json";

export async function Sponsors() {
const partnerList: Partner[] = partners.partners as Partner[];

const titleSponsors = partnerList.filter((p) => p.tier === "title");
const otherSponsors = partnerList.filter((p) => p.tier !== "title");

return (
<section className="mt-20 font-oswald">
<div className="rounded-xl px-8 py-10">
<div className="mb-28 py-10">
<h1 className="flex justify-center bg-gradient-to-b from-orange-600 via-yellow-300 to-orange-600 bg-clip-text text-center font-bttf text-4xl text-transparent sm:text-5xl md:text-6xl">
a huge thanks to our rowdyhacks partners
</h1>
</div>

{titleSponsors.length > 0 && (
<div className="mb-16 flex flex-wrap justify-center gap-8">
{titleSponsors.map(({ name, url, logo, tier }) => (
<SponsorItem
key={name}
name={name}
url={url}
logo={logo}
tier={tier}
/>
))}
</div>
)}

<div className="grid grid-cols-1 gap-8 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4 xl:grid-cols-5">
{otherSponsors.map(({ name, url, logo, tier }) => (
<SponsorItem
key={name}
name={name}
url={url}
logo={logo}
tier={tier}
/>
))}
</div>
</div>
</section>
);
}
Loading
Loading