text stringlengths 3 8.33k | repo stringclasses 52
values | path stringlengths 6 141 | language stringclasses 35
values | sha stringlengths 64 64 | chunk_index int32 0 273 | n_tokens int32 1 896 |
|---|---|---|---|---|---|---|
"use client";
import { useCallback, useState } from "react";
import { ArrowLeftIcon, ArrowRightIcon } from "@/components/shared/icons";
const PROPS = [
{
title: "Access emerging talent",
description: "Pre-vetted engineers, developers, and strategists ready to work.",
},
{
title: "Collaborate on cha... | young_ai_leaders_linz | src/components/sections/partner-value-props.tsx | TypeScript | e9953f122d7f1bbff22dc57924f18e411f41bdc97103e414ebc21857f6772563 | 0 | 896 |
== active ? 1 : 0.2 }}
>
<dt className="body-md">{p.title}</dt>
<dd className="body-md text-secondary mt-1">{p.description}</dd>
</button>
</div>
))}
</div>
<div className="mt-auto flex gap-2 pt-6">
... | young_ai_leaders_linz | src/components/sections/partner-value-props.tsx | TypeScript | cfcc74995ae71a800b17ec03f3cd618bff7d29547e32a8dcc06959dc8b49abbe | 1 | 299 |
import Image from "next/image";
interface Partner {
name: string;
logo?: string;
scale?: number;
}
const PARTNERS: Partner[] = [
{ name: "AI for Good (UN/ITU)", logo: "/logos/ai_for_good.png", scale: 1.1 },
{ name: "City of Linz", logo: "/logos/linz.png", scale: 0.7 },
{ name: "JKU Linz", logo: "/logos/JK... | young_ai_leaders_linz | src/components/sections/partners-strip.tsx | TypeScript | 35227283d03d1098dffca1eaf661b8930068aeab1d01bd1ce6f5f5670cae8dc2 | 0 | 736 |
"use client";
import type { ReactNode } from "react";
import { useReveal } from "@/hooks/use-reveal";
interface Pillar {
title: string;
description: string;
icon?: ReactNode;
}
export function Pillars({ items, className }: { items: Pillar[]; className?: string }) {
const { ref, revealed } = useReveal(0.2);
... | young_ai_leaders_linz | src/components/sections/pillars.tsx | TypeScript | 3bd2010833cde8373026fbb4c48e1d707e9b8d8264fbed76255558cd89686326 | 0 | 340 |
"use client";
import { useCallback, useState } from "react";
import { ArrowLeftIcon, ArrowRightIcon } from "@/components/shared/icons";
interface Program {
title: string;
description: string;
placeholder: string;
}
const PROGRAMS: Program[] = [
{
title: "AI Academy",
description:
"Workshops an... | young_ai_leaders_linz | src/components/sections/programs-switcher.tsx | TypeScript | 7d5d61fe989aa41fc82fa1eff065342db030d31160cf650dfa8ff5e1bc49f332 | 0 | 896 |
type="button"
role="tab"
id={`program-tab-${i}`}
aria-selected={i === active}
aria-controls={`program-panel-${i}`}
tabIndex={i === active ? 0 : -1}
onClick={() => setActive(i)}
className="block ... | young_ai_leaders_linz | src/components/sections/programs-switcher.tsx | TypeScript | c6e2ac442e373618634896e401d958d13f50e10f4808e1209121f64fe9569db6 | 1 | 480 |
"use client";
import { useEffect, useRef } from "react";
import { useReveal } from "@/hooks/use-reveal";
const STATS = [
{ value: "100+", label: "Hubs worldwide" },
{ value: "5,500+", label: "Hackathon applicants" },
{ value: "9+", label: "Institutional partners" },
];
export function StatsSection() {
const... | young_ai_leaders_linz | src/components/sections/stats-section.tsx | TypeScript | c692f4d789693711cb178dd5ad712b61e4e37837ca5f80d34a0940f304fed61c | 0 | 696 |
"use client";
import Image from "next/image";
import Link from "next/link";
import { ArrowOutIcon } from "@/components/shared/icons";
import { APPLY_URL, SOCIAL_LINKS } from "@/content/site";
import { useReveal } from "@/hooks/use-reveal";
import { useTypewriter } from "@/hooks/use-typewriter";
const TYPING_PHRASES ... | young_ai_leaders_linz | src/components/shared/footer.tsx | TypeScript | e2cf4612a5ce56ccacc5ed655afc684e59c9b5aa5afb27c8134d7e088de2f4a5 | 0 | 896 |
to top</span>
<BackToTopIcon />
</button>
</nav>
<div className="hidden lg:block">
<button
type="button"
className="body-sm hover:text-secondary flex cursor-pointer items-center gap-1 duration-100"
... | young_ai_leaders_linz | src/components/shared/footer.tsx | TypeScript | 53990cff3749e97cea2a4c419fe5255aa01e77405120c0ad5f03acd6f0aed83b | 1 | 709 |
"use client";
import Image from "next/image";
import Link from "next/link";
import { usePathname } from "next/navigation";
import { useEffect, useRef, useState } from "react";
import { MenuIcon } from "@/components/shared/icons";
import { APPLY_URL, NAV_LINKS } from "@/content/site";
const HOME_NAV_SCROLL_RANGE_PX =... | young_ai_leaders_linz | src/components/shared/header.tsx | TypeScript | cce44d4cac1f8e86f118d2d7ed1581f764de2e5bbdc78af7210c9dd3954795b1 | 0 | 896 |
4 py-6 md:hidden">
{NAV_LINKS.map((link) => (
<Link
key={link.label}
href={link.href}
className="body-md"
onClick={() => setMenuOpen(false)}
>
{link.label}
</Link>
))}
<a
h... | young_ai_leaders_linz | src/components/shared/header.tsx | TypeScript | b04ab106c5bdd7b0aaf8fbe20f1f324bd23c4d7544354305d4e2b035a9f31441 | 1 | 120 |
import type { SVGProps } from "react";
export function ArrowOutIcon({ className, ...props }: SVGProps<SVGSVGElement>) {
return (
<svg
width="16"
height="16"
viewBox="0 0 24 24"
fill="none"
xmlns="http://www.w3.org/2000/svg"
className={className}
{...props}
>
<p... | young_ai_leaders_linz | src/components/shared/icons.tsx | TypeScript | 4f593de29efbd25c3b613e077d5d4b8b3811e1fa5c15a57c6a2527efcf06ace2 | 0 | 840 |
"use client";
import { usePathname } from "next/navigation";
import { useLayoutEffect } from "react";
export function ScrollToTop() {
const pathname = usePathname();
useLayoutEffect(() => {
window.scrollTo({ top: 0, left: 0, behavior: "instant" });
}, [pathname]);
return null;
}
| young_ai_leaders_linz | src/components/shared/scroll-to-top.tsx | TypeScript | df80d7b298ec2b6501610eedde96a91bd9e4a40b9114231e29acfeadad060598 | 0 | 77 |
"use client";
import { useEffect } from "react";
export function SmoothScroll() {
useEffect(() => {
let lenis: { raf: (time: number) => void; destroy: () => void } | null = null;
let rafId = 0;
import("lenis").then(({ default: Lenis }) => {
lenis = new Lenis({
duration: 1.2,
easin... | young_ai_leaders_linz | src/components/shared/smooth-scroll.tsx | TypeScript | 7f972008c2001370a1442845811365daaa0f589b3d2f6d0895ac350b8553b334 | 0 | 186 |
"use client";
import { useEffect, useRef } from "react";
/**
* Wraps a section with a theme-dark CSS class scope. When the wrapped section
* scrolls into the upper half of the viewport, the body is given the
* `theme-dark` class, flipping CSS variables and triggering the 500ms color
* transition globally. When it... | young_ai_leaders_linz | src/components/shared/theme-band.tsx | TypeScript | 8ded017295c2945b8ac2b161994e0d0709abb3203ff7ce06317ad3ca4b3c5f2d | 0 | 361 |
import { z } from "zod";
const envSchema = z.object({
NEXT_PUBLIC_SITE_URL: z.string().url().default("https://youngaileaderslinz.at"),
NODE_ENV: z.enum(["development", "production", "test"]).default("development"),
POSTGRES_URL: z.string().optional(),
PAYLOAD_SECRET: z.string().min(32).optional(),
BLOB_READ_... | young_ai_leaders_linz | src/config/env.ts | TypeScript | cc659367021e757c064dbfd618954f353f2bdc304e0731d7e0e951c5c5a997b0 | 0 | 166 |
import { InstagramIcon, Linkedin01Icon, TiktokIcon } from "@hugeicons/core-free-icons";
import { HugeiconsIcon } from "@hugeicons/react";
export const APPLY_URL =
"https://docs.google.com/forms/d/e/1FAIpQLScPMYklf0RthaF-W_tQjiPMNaB8oxb0uT3IDmEkz2-hQnF7sA/viewform";
export const NAV_LINKS = [
{ label: "About", hre... | young_ai_leaders_linz | src/content/site.tsx | TypeScript | 77666b50c90595c8ae619ca4604c8905e076497c515ea8c4c54a3c103bea7763 | 0 | 283 |
import type { GlobalConfig } from "payload";
export const AboutPage: GlobalConfig = {
slug: "about-page",
access: {
read: () => true,
},
fields: [
{
name: "title",
type: "text",
required: true,
defaultValue: "About Us",
},
{
name: "subtitle",
type: "textarea"... | young_ai_leaders_linz | src/globals/about-page.ts | TypeScript | 586365099eda5c59a9aa84fa40500af13099f78299496ef35be85ae62ab7dcfa | 0 | 232 |
import type { GlobalConfig } from "payload";
export const FooterContent: GlobalConfig = {
slug: "footer-content",
access: {
read: () => true,
},
fields: [
{
name: "typingPhrases",
type: "array",
fields: [
{
name: "phrase",
type: "text",
required: ... | young_ai_leaders_linz | src/globals/footer-content.ts | TypeScript | f70722b7d842b4a44bd2ffde308a5f84aef04694e4b44cc1bc8ec21e13e5781e | 0 | 243 |
import type { GlobalConfig } from "payload";
export const HomePage: GlobalConfig = {
slug: "home-page",
access: {
read: () => true,
},
fields: [
{
name: "heroTitle",
type: "text",
required: true,
defaultValue: "Young AI Leaders Linz",
},
{
name: "heroSubtitle",
... | young_ai_leaders_linz | src/globals/home-page.ts | TypeScript | e5d519b4bede36bc4a9fc2ebba9b87844502fd24168a6d7c63205704baf57248 | 0 | 350 |
import type { GlobalConfig } from "payload";
export const Navigation: GlobalConfig = {
slug: "navigation",
access: {
read: () => true,
},
fields: [
{
name: "mainNav",
type: "array",
fields: [
{
name: "label",
type: "text",
required: true,
... | young_ai_leaders_linz | src/globals/navigation.ts | TypeScript | d85c79fb906689a298f2bbe05fbdc3de6e41e1976db3f45c596d5eef0a241bf6 | 0 | 288 |
import type { GlobalConfig } from "payload";
export const SiteSettings: GlobalConfig = {
slug: "site-settings",
access: {
read: () => true,
},
fields: [
{
name: "siteName",
type: "text",
required: true,
defaultValue: "Young AI Leaders Linz",
},
{
name: "applyUrl",
... | young_ai_leaders_linz | src/globals/site-settings.ts | TypeScript | bc7765ac0b1da21fe76bff3d24550d885e5e7b0f4a029218226d5ef1c8f99092 | 0 | 189 |
"use client";
import { useEffect, useRef, useState } from "react";
export function useReveal(threshold = 0.15) {
const ref = useRef<HTMLDivElement | null>(null);
const [revealed, setRevealed] = useState(false);
useEffect(() => {
const el = ref.current;
if (!el) return;
const obs = new IntersectionO... | young_ai_leaders_linz | src/hooks/use-reveal.ts | TypeScript | e1158b4450716e9137795819fe4b87707ee70084b1ffd361885978e8a23b5038 | 0 | 147 |
"use client";
import { useEffect, useState } from "react";
export function useTypewriter(phrases: string[], typeSpeed = 60, pauseMs = 2200) {
const [text, setText] = useState("");
const [phraseIdx, setPhraseIdx] = useState(0);
const [erasing, setErasing] = useState(false);
useEffect(() => {
const phrase ... | young_ai_leaders_linz | src/hooks/use-typewriter.ts | TypeScript | a8594f13d7b9f81c9f5b3e4bf4f2deaf78ce744fdaab131f4cb0c8aa26f3149d | 0 | 294 |
import configPromise from "@payload-config";
import { getPayload as getPayloadInstance } from "payload";
export async function getPayload() {
return getPayloadInstance({ config: configPromise });
}
| young_ai_leaders_linz | src/lib/payload.ts | TypeScript | 9529c32cd9b31224db7e700814bf2401cded345d7daaeb974028f8be5e7f003a | 0 | 39 |
import { getPayload } from "@/lib/payload";
export async function getSiteSettings() {
const payload = await getPayload();
return payload.findGlobal({ slug: "site-settings" });
}
export async function getNavigation() {
const payload = await getPayload();
return payload.findGlobal({ slug: "navigation" });
}
ex... | young_ai_leaders_linz | src/lib/queries.ts | TypeScript | 7f6836891a814b4d5fb31c61b28bc79546b0e1b48a4ac8404420bea689cae2b1 | 0 | 253 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.