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
{ "version": 1, "lastRunAtMs": 0, "turnsSinceLastRun": 10, "lastTranscriptMtimeMs": null, "lastProcessedGenerationId": "bfa09d6c-7954-448f-9979-b9b865a18c20", "trialStartedAtMs": null }
hacknation-venture
.cursor/hooks/state/continual-learning.json
JSON
bbb6346c04102262f98c4b048eaa063227c2ff067fe59f7f5481c64113a4130d
0
48
@import "tailwindcss"; @import "tw-animate-css"; @import "shadcn/tailwind.css"; @custom-variant dark (&:is(.dark *)); @theme inline { --color-background: var(--background); --color-foreground: var(--foreground); --font-sans: var(--font-geist-sans); --font-mono: var(--font-geist-mono); --color-sidebar-ring: var(-...
hacknation-venture
app/globals.css
CSS
df2378b544d3249dc4d0d0089c09e0b89805a0d00a619bfde341ac96dd4c28e9
0
896
; --accent: oklch(0.269 0 0); --accent-foreground: oklch(0.985 0 0); --destructive: oklch(0.704 0.191 22.216); --border: oklch(1 0 0 / 10%); --input: oklch(1 0 0 / 15%); --ring: oklch(0.556 0 0); --chart-1: oklch(0.809 0.105 251.813); --chart-2: oklch(0.623 0.214 259.815); --chart-3: oklch(0.546 0.245 262.881)...
hacknation-venture
app/globals.css
CSS
4b291814c382930513b0fb4af09208a0c3ee408125952dc40e3b5b0a11b597a6
1
678
import type { Metadata } from "next"; import { Geist, Geist_Mono } from "next/font/google"; import Header from "@/components/shared/header"; import "./globals.css"; const geistSans = Geist({ variable: "--font-geist-sans", subsets: ["latin"], }); const geistMono = Geist_Mono({ variable: "--font-geist-mono", su...
hacknation-venture
app/layout.tsx
TypeScript
373b19ea68d17ee5b114cfe85b4ecabd8f39c4f15505e5353f926503f835d08a
0
223
import Hero from "@/components/sections/hero"; export default function Home() { return ( <div className="isolate flex-1"> <Hero /> </div> ); }
hacknation-venture
app/page.tsx
TypeScript
28523af02947fd7db2381c99dd2c6fc08ceebcf2882178aae5ffc7f0e887e457
0
44
import Image from "next/image"; import React from "react"; import LaserFlow from "../ui/laser-flow"; const Hero = () => { return ( <div className="max-h-dvh "> <div className="flex flex-col items-center justify-center py-32"> <h1 className="text-7xl font-medium text-center"> ...
hacknation-venture
components/sections/hero.tsx
TypeScript
8f25b5e7f33ab0313e998c4f2e3771c52b84d0f6d1a54622575022fb41fe4986
0
480
import Link from "next/link" import { Button } from "@/components/ui/button" const Header = () => { return ( <header className="fixed top-0 z-50 w-full bg-background justify-between flex px-16 py-4"> <div className="py-2"> <h2 className="text-3xl font-medium"> ...
hacknation-venture
components/shared/header.tsx
TypeScript
d42a2ce3c19d4421567f5a291be38725e16ee5f2a6097d93c8b3f4f822005866
0
153
"use client" import { Button as ButtonPrimitive } from "@base-ui/react/button" import { cva, type VariantProps } from "class-variance-authority" import { cn } from "@/lib/utils" const buttonVariants = cva( "group/button inline-flex shrink-0 items-center justify-center rounded-lg border border-transparent bg-clip-p...
hacknation-venture
components/ui/button.tsx
TypeScript
88044d1391cc7857c0761f8d844e4c0c2f6bb262e88af7680a3f1d4e2240d7fd
0
896
])]:size-3", "icon-sm": "size-7 rounded-[min(var(--radius-md),12px)] in-data-[slot=button-group]:rounded-lg", "icon-lg": "size-9", }, }, defaultVariants: { variant: "default", size: "default", }, } ) function Button({ className, variant = "default", size ...
hacknation-venture
components/ui/button.tsx
TypeScript
71158a8e5029a395fc986e52f9ac174c031851aa873e683d1fb4d0a3f4d7e9f1
1
168
"use client" /** biome-ignore-all lint/correctness/useExhaustiveDependencies: ThreeJS Components */ import React, { useEffect, useRef } from 'react'; import * as THREE from 'three'; type Props = { className?: string; style?: React.CSSProperties; wispDensity?: number; dpr?: number; mouseSmoothTime?...
hacknation-venture
components/ui/laser-flow.tsx
TypeScript
73b1dfb806d131dd4f0866e987833133fcc681e8914628dadff493b7a743dd5c
0
896
fract(p*vec2(123.34,456.21));p+=dot(p,p+34.123);return fract(p.x*p.y);} float vnoise(vec2 p){ vec2 i=floor(p),f=fract(p); float a=h21(i),b=h21(i+vec2(1,0)),c=h21(i+vec2(0,1)),d=h21(i+vec2(1,1)); vec2 u=f*f*(3.0-2.0*f); return mix(mix(a,b,u.x),mix(c,d,u.x),u.y); } float fbm2(v...
hacknation-venture
components/ui/laser-flow.tsx
TypeScript
911d802c469cc8c6407fecd6117e49e5de12ebcfa3b75ebdc09d0ab3643fb563
1
896
return uWIntensity*sum*topF*bGain*span; } void mainImage(out vec4 fc,in vec2 frag){ vec2 C=iResolution.xy*.5; float invW=1.0/max(C.x,1.0); vec2 sc=(512.0/iResolution.xy)*.4; vec2 uv=(frag-C)*sc,off=vec2(uBeamXFrac*iResolution.x*sc.x,uBeamYFrac*iResolution.y*sc.y); vec2 uvc = uv - off; float a=0.0,b...
hacknation-venture
components/ui/laser-flow.tsx
TypeScript
697d8c52d9379039a65df17c6b6f3d321c8d21b8c4de7175b5b4dc9aae53af4b
2
896
+uFogTime*0.9)); float n=fbm2(fuv+vec2(fbm2(fuv+vec2(7.3,2.1)),fbm2(fuv+vec2(-3.7,5.9)))*0.6); n=pow(clamp(n,0.0,1.0),FOG_CONTRAST); float pixW = 1.0 / max(iResolution.y, 1.0); #ifdef GL_OES_standard_derivatives float wL = max(fwidth(L), pixW); #else float wL = pixW; #endif float m0=pow(smoothst...
hacknation-venture
components/ui/laser-flow.tsx
TypeScript
48150f6fe5e405861baa75c4b15bd9fcf2d52a96e4b134e588d37f1eb7fd7039
3
896
number[]>([]); const lastFpsCheckRef = useRef<number>(performance.now()); const emaDtRef = useRef<number>(16.7); const pausedRef = useRef<boolean>(false); const inViewRef = useRef<boolean>(true); const mouseSmoothTimeRef = useRef(mouseSmoothTime); useEffect(() => { mouseSmoothTimeRef.cu...
hacknation-venture
components/ui/laser-flow.tsx
TypeScript
f130166df3b1a509ba8a91dfe892f1f19c0992dc2c599e21b8eb1d4a08b57c07
4
896
); uniforms.iResolution.value.set(w * pr, h * pr, pr); rectRef.current = canvas.getBoundingClientRect(); if (!pausedRef.current) { renderer.render(scene, camera); } }; let resizeRaf = 0; const scheduleResize = () => { ...
hacknation-venture
components/ui/laser-flow.tsx
TypeScript
244c30ab990799989e3b30cd66a572743a1fe821980e0296fe22465e4f0a167a
5
896
Math.max(0.001, dt)); (uniforms.uFlowTime.value as number) += cdt; (uniforms.uFogTime.value as number) += cdt; if (!hasFadedRef.current) { const fadeDur = 1.0; fade = Math.min(1, fade + cdt / fadeDur); uniforms.uFade.value = fade; ...
hacknation-venture
components/ui/laser-flow.tsx
TypeScript
ae6089dbbbeff5e631dd82014803aba26e94af85ff5af0590661ff493e1d88d9
6
600
{ "compilerOptions": { "target": "ES2017", "lib": ["dom", "dom.iterable", "esnext"], "allowJs": true, "skipLibCheck": true, "strict": true, "noImplicitAny": true, "noUnusedLocals": true, "noUnusedParameters": true, "noEmit": true, "esModuleInterop": true, "module": "esnext"...
hacknation-web
tsconfig.json
JSON
c66c413afc5e864c35181885cba0e0eda26592fd32dcddfe9f76fc1319a961a1
0
246
{ "version": 1, "lastRunAtMs": 0, "turnsSinceLastRun": 2, "lastTranscriptMtimeMs": null, "lastProcessedGenerationId": "4763de0d-1ad6-4309-97d5-3e56076a2d20", "trialStartedAtMs": null }
hacknation-web
.cursor/hooks/state/continual-learning.json
JSON
893b0a30e61d6b0033946790cc1ab9621bcc96f3c05f71008efde9192dba2d50
0
51
@import "tailwindcss"; @import "tw-animate-css"; @import "shadcn/tailwind.css"; @custom-variant dark (&:is(.dark *)); :root { --bg-dark: #06060a; --bg-dark-2: #0c0c14; --bg-dark-3: #12121e; --bg-light: #fafaf8; --bg-light-2: #f3f2ee; --text-light-primary: #f2f2f0; --text-light-secondary: #9a9a9f; --...
hacknation-web
app/globals.css
CSS
29c23277c967b739ca94e1032a9b7c2f3d7a26862f793c843bed27d66cfd25d5
0
896
: var(--border-light); --color-primary: var(--primary); --color-primary-foreground: var(--primary-foreground); --color-secondary: var(--secondary); --color-secondary-foreground: var(--secondary-foreground); --color-muted: var(--muted); --color-muted-foreground: var(--muted-foreground); --color-card: var(...
hacknation-web
app/globals.css
CSS
3433fc46552d38383d2ddca92f60e8d74c5e02c22140a249929fe6a087a72a94
1
380
import type { Metadata } from "next"; import { Inter, Instrument_Serif } from "next/font/google"; import "./globals.css"; const inter = Inter({ variable: "--font-inter", subsets: ["latin"], }); const instrumentSerif = Instrument_Serif({ variable: "--font-instrument-serif", weight: "400", style: ["normal", "...
hacknation-web
app/layout.tsx
TypeScript
d6750a021e274b0a4b7a48ab8ad24b83992b76b166661d03b0d4ef1be721bbe5
0
226
import { Navbar } from "@/components/layout/navbar"; import { Footer } from "@/components/layout/footer"; import { Hero } from "@/components/sections/hero"; import { LogoBar } from "@/components/sections/logo-bar"; import { Features } from "@/components/sections/features"; import { Journal } from "@/components/sections...
hacknation-web
app/page.tsx
TypeScript
7fdeba3980af3bf05dc3b314de0279fcc8343d5ff4a555a08c8ff0d6f9fd90eb
0
197
import { FOOTER_LINKS } from "@/lib/constants"; export function Footer() { return ( <footer className="border-t border-border-dark bg-bg-dark"> <div className="mx-auto max-w-6xl px-6 py-16 md:px-8 md:py-20"> {/* Top: logo + tagline */} <div className="mb-12"> <p className="text-lg...
hacknation-web
components/layout/footer.tsx
TypeScript
7295c15df91c65118081510913ea50def43f39c594ae0a7ddf655a006936ade4
0
446
"use client"; import { useState, useEffect } from "react"; import { motion } from "motion/react"; import { HugeiconsIcon } from "@hugeicons/react"; import { Menu01Icon } from "@hugeicons/core-free-icons"; import { Button } from "@/components/ui/button"; import { Sheet, SheetTrigger, SheetContent, SheetHeader, ...
hacknation-web
components/layout/navbar.tsx
TypeScript
32221046a460e9cc8c99139ed418acd1773bdc57ec74e27ce6120654713555d9
0
896
"> <Button variant="outline" className="w-full border-border-dark text-text-light-primary" > Sign in </Button> <Button className="w-full bg-white text-bg-dark hover:bg-white/90"> ...
hacknation-web
components/layout/navbar.tsx
TypeScript
ed8fa7ab153ac93e9f0dbdfd32e2516416fb123079ea05ab6de48e0cfb1493b8
1
100
"use client"; import { Accordion, AccordionItem, AccordionTrigger, AccordionContent, } from "@/components/ui/accordion"; import { FadeIn } from "@/components/shared/fade-in"; import { FAQ_ITEMS } from "@/lib/constants"; export function FAQ() { return ( <section id="faq" className="bg-bg-light py-24 md:p...
hacknation-web
components/sections/faq.tsx
TypeScript
240f612c00c473d89c14177112008ccd1dcb66f03259e3b163a0d667b0b590ce
0
404
"use client"; import { useState } from "react"; import { motion, AnimatePresence } from "motion/react"; import { HugeiconsIcon } from "@hugeicons/react"; import { WellnessIcon, Notebook01Icon, MusicNote04Icon, WindPower01Icon, } from "@hugeicons/core-free-icons"; import { FadeIn } from "@/components/shared/fad...
hacknation-web
components/sections/features.tsx
TypeScript
cd4e61940abd9fed908242f2b85a6173b3580b82f42e9d35ede87d08223de350
0
896
max-w-6xl px-6 md:px-8"> {/* Header */} <FadeIn className="mb-16 text-center"> <p className="mb-6 text-sm text-text-light-secondary"> Your Journey to </p> <h2 className="text-3xl font-medium text-text-light-primary md:text-5xl text-balance"> <span cl...
hacknation-web
components/sections/features.tsx
TypeScript
03e11e47a1715cbed8ea5ad4733a8adcf491552db6e226b3fa87376b1d6a1a34
1
896
="rounded-2xl border border-border-dark bg-bg-dark-2 p-6"> <p className="mb-2 text-sm font-medium text-text-light-primary"> Journal Entry Preview </p> <p className="text-sm leading-relaxed text-text-light-secondary"> Today I realized that my anxi...
hacknation-web
components/sections/features.tsx
TypeScript
af7b6cfa5b5ebc485539f1c63862263881458071ee6d0c89be8755c8dd5d2ff6
2
164
"use client"; import { motion } from "motion/react"; import { Button } from "@/components/ui/button"; import { GlowOrb } from "@/components/shared/glow-orb"; import { HugeiconsIcon } from "@hugeicons/react"; import { PlayIcon } from "@hugeicons/core-free-icons"; function PhoneMockup() { return ( <div className=...
hacknation-web
components/sections/hero.tsx
TypeScript
398658eae4e1dfa086fc2b5deb22c1c5ee2f8fbe9315d845a1d0db98642bc404
0
896
={PlayIcon} className="size-4" /> </button> <button className="text-text-light-muted" aria-label="Forward"> <svg width="16" height="16" viewBox="0 0 24 24" fill="currentColor" > ...
hacknation-web
components/sections/hero.tsx
TypeScript
f32ffb62e93c02c6333a246f16034344f7b37c0e48b82ea7b4b96d3ce6c297a4
1
896
transition={{ duration: 4, repeat: Infinity, ease: "easeInOut", }} > <PhoneMockup /> </motion.div> </motion.div> </div> {/* Atmospheric transition */} <div className="absolute right-0 bottom-0 left-0 h-40 bg...
hacknation-web
components/sections/hero.tsx
TypeScript
c5153eb9c083d020b9ea0276edc8bbafd1fd721ed7fed83e2ec02e06b333b398
2
95
"use client"; import { motion } from "motion/react"; import { HugeiconsIcon } from "@hugeicons/react"; import { Compass01Icon, ReplayIcon, Notebook01Icon, MusicNote04Icon, } from "@hugeicons/core-free-icons"; import { FadeIn } from "@/components/shared/fade-in"; import { StaggerContainer, staggerItemVarian...
hacknation-web
components/sections/journal.tsx
TypeScript
823bbc628e50dd9a76f2e958c793a39afb14db3bcd71576eecc485a233d112ef
0
896
px-8"> {/* Two-column layout */} <div className="grid items-center gap-12 md:grid-cols-2 md:gap-16"> {/* Left: copy */} <FadeIn> <div> <h2 className="text-3xl font-medium text-text-dark-primary md:text-5xl text-balance"> <span className="font...
hacknation-web
components/sections/journal.tsx
TypeScript
1c0cad76437b1a731879b79ecb98f5d3a9f266e4747a3a8ed3d8b2bf0f23306d
1
770
"use client"; import { motion } from "motion/react"; import { StaggerContainer, staggerItemVariants, } from "@/components/shared/stagger-container"; import { LOGOS } from "@/lib/constants"; export function LogoBar() { return ( <section className="border-t border-border-dark bg-bg-dark py-12"> <div cla...
hacknation-web
components/sections/logo-bar.tsx
TypeScript
f4bb0339f8a8f59ee13cad64c6dcb1136d23911855518d797df8c65aebf10682
0
259
"use client"; import { useState } from "react"; import { motion } from "motion/react"; import { HugeiconsIcon } from "@hugeicons/react"; import { CheckmarkCircle02Icon } from "@hugeicons/core-free-icons"; import { Button } from "@/components/ui/button"; import { FadeIn } from "@/components/shared/fade-in"; import { Se...
hacknation-web
components/sections/pricing.tsx
TypeScript
b4de855a507b4fb7755cf638c154114cdfe3e22d5b884ebbd4ba29350dcf5856
0
896
text-dark-secondary" }`} > /month </span> </div> {/* Features */} <ul className="mb-8 flex flex-col gap-3"> {plan.features.map((feature) => ( <li key={featur...
hacknation-web
components/sections/pricing.tsx
TypeScript
7b8ca9dffb82573fd3dbe1b5a58bad3f3ca2a68e997b45bbd1f4a92114474f70
1
320
"use client"; import { motion } from "motion/react"; import { HugeiconsIcon } from "@hugeicons/react"; import { StarIcon } from "@hugeicons/core-free-icons"; import { FadeIn } from "@/components/shared/fade-in"; import { StaggerContainer, staggerItemVariants, } from "@/components/shared/stagger-container"; import ...
hacknation-web
components/sections/testimonials.tsx
TypeScript
c0059b3fb2cee70f0699e066861478e55d2c3714105f3e585cb6b2a09eb1cac6
0
699
"use client"; import { type ReactNode } from "react"; import { motion } from "motion/react"; import { cn } from "@/lib/utils"; const directionOffset = { up: { y: 24 }, down: { y: -24 }, left: { x: 24 }, right: { x: -24 }, } as const; interface FadeInProps { children: ReactNode; className?: string; dela...
hacknation-web
components/shared/fade-in.tsx
TypeScript
58c402c36075593a2540c16fc9f407d0aacf3389a84fe79fa98aa28d2e30cb16
0
225
import { cn } from "@/lib/utils"; interface GlowOrbProps { size?: number; className?: string; color?: string; opacity?: number; } export function GlowOrb({ size = 400, className, color = "var(--accent)", opacity = 0.25, }: GlowOrbProps) { return ( <div className={cn("pointer-events-none ab...
hacknation-web
components/shared/glow-orb.tsx
TypeScript
8ed2f82b5e6b8d52856ba7ae2aa8960dcaa5694c07797174d4080edee1af8906
0
141
import { cn } from "@/lib/utils"; interface SectionLabelProps { children: React.ReactNode; className?: string; } export function SectionLabel({ children, className }: SectionLabelProps) { return ( <span className={cn( "inline-flex items-center gap-2 text-xs font-medium tracking-[0.18em] upperc...
hacknation-web
components/shared/section-label.tsx
TypeScript
7f034c90b39206431a04c80871027bb1267ddda82c2c9f6b12985a62f21b7fba
0
112
"use client"; import { type ReactNode } from "react"; import { motion } from "motion/react"; import { cn } from "@/lib/utils"; const containerVariants = { hidden: {}, visible: (delayChildren: number) => ({ transition: { staggerChildren: 0.08, delayChildren, }, }), }; export const staggerIte...
hacknation-web
components/shared/stagger-container.tsx
TypeScript
948348d5d5cb9451a29dec85f61f3ddd56f7d2f9af00c46e5ec5245333df5358
0
223
"use client" import { Accordion as AccordionPrimitive } from "@base-ui/react/accordion" import { cn } from "@/lib/utils" import { ChevronDownIcon, ChevronUpIcon } from "lucide-react" function Accordion({ className, ...props }: AccordionPrimitive.Root.Props) { return ( <AccordionPrimitive.Root data-slot="...
hacknation-web
components/ui/accordion.tsx
TypeScript
8ee643c193347050b53cdd0e0c82e2c9e08c53d4a792f77a72c996cd73784879
0
660
import { mergeProps } from "@base-ui/react/merge-props" import { useRender } from "@base-ui/react/use-render" import { cva, type VariantProps } from "class-variance-authority" import { cn } from "@/lib/utils" const badgeVariants = cva( "group/badge inline-flex h-5 w-fit shrink-0 items-center justify-center gap-1 ov...
hacknation-web
components/ui/badge.tsx
TypeScript
968b0403af74a785c9408ca69a677235e49d0c80b2c27fb9858ad421a8778c7d
0
521
import * as React from "react" import { cn } from "@/lib/utils" function Card({ className, size = "default", ...props }: React.ComponentProps<"div"> & { size?: "default" | "sm" }) { return ( <div data-slot="card" data-size={size} className={cn( "group/card flex flex-col gap-4 ove...
hacknation-web
components/ui/card.tsx
TypeScript
12f50f5a0f22974236da15cf0402d046442f72d9e0191775adcd2238aeb96267
0
820
"use client" import { Separator as SeparatorPrimitive } from "@base-ui/react/separator" import { cn } from "@/lib/utils" function Separator({ className, orientation = "horizontal", ...props }: SeparatorPrimitive.Props) { return ( <SeparatorPrimitive data-slot="separator" orientation={orientat...
hacknation-web
components/ui/separator.tsx
TypeScript
75085bd84ff6965e4a356c53a4689799cabf65caa93c0bba064d5a0c6fa78f13
0
131
"use client" import * as React from "react" import { Dialog as SheetPrimitive } from "@base-ui/react/dialog" import { cn } from "@/lib/utils" import { Button } from "@/components/ui/button" import { XIcon } from "lucide-react" function Sheet({ ...props }: SheetPrimitive.Root.Props) { return <SheetPrimitive.Root da...
hacknation-web
components/ui/sheet.tsx
TypeScript
52b94e4cb140a0ef1f764abaa2ae220f8627dbee6589e6b15123df7542463a03
0
896
2.5rem] data-[side=top]:data-starting-style:translate-y-[-2.5rem] data-[side=left]:sm:max-w-sm data-[side=right]:sm:max-w-sm", className )} {...props} > {children} {showCloseButton && ( <SheetPrimitive.Close data-slot="sheet-close" render...
hacknation-web
components/ui/sheet.tsx
TypeScript
e16b6825d067dd853e732942a0a8590fab60a17ce8672186db394ad4ee6a8e85
1
441
"use client" import { Switch as SwitchPrimitive } from "@base-ui/react/switch" import { cn } from "@/lib/utils" function Switch({ className, size = "default", ...props }: SwitchPrimitive.Root.Props & { size?: "sm" | "default" }) { return ( <SwitchPrimitive.Root data-slot="switch" data-size=...
hacknation-web
components/ui/switch.tsx
TypeScript
c98e4b259d28463c34c65cdbfba447d5ccd4fed0a138b7acf8c796309e61e2d6
0
521
"use client" import { Tabs as TabsPrimitive } from "@base-ui/react/tabs" import { cva, type VariantProps } from "class-variance-authority" import { cn } from "@/lib/utils" function Tabs({ className, orientation = "horizontal", ...props }: TabsPrimitive.Root.Props) { return ( <TabsPrimitive.Root dat...
hacknation-web
components/ui/tabs.tsx
TypeScript
eacb667f4004e270040fb8d9adac6cdf95835feda2f28094248420b37d39592c
0
896
-0 group-data-vertical/tabs:after:-right-1 group-data-vertical/tabs:after:w-0.5 group-data-[variant=line]/tabs-list:data-active:after:opacity-100", className )} {...props} /> ) } function TabsContent({ className, ...props }: TabsPrimitive.Panel.Props) { return ( <TabsPrimitive.Panel ...
hacknation-web
components/ui/tabs.tsx
TypeScript
03966cb149412251616574f2654907e4e0d1afaa51e35e60258bf246cf037f8e
1
143
export const NAV_LINKS = [ { label: "Pricing", href: "#pricing" }, { label: "Resources", href: "#faq" }, ] as const; export const LOGOS = [ "next", "Prismatic", "Webflow", "Glitter", "Lunar", "Kinetic", ] as const; export const FEATURE_TABS = [ { id: "meditation", label: "Meditation", he...
hacknation-web
lib/constants.ts
TypeScript
96c84fa579620548deb0b2ac499f83c68228fccb64ae5e6f20292b5152a4fb6c
0
896
this app was a turning point. The breathing exercises and soundscapes have given me tools I actually use every day. My therapist even noticed the difference. I genuinely look forward to my morning sessions now.", rating: 5, }, ] as const; export const FAQ_ITEMS = [ { question: "How long does it usual...
hacknation-web
lib/constants.ts
TypeScript
c107e0dfda0b49f82fe4000d86a8d71465ed229a1d01929fbde08844a3b82852
1
713
# dependencies /node_modules /.pnp .pnp.* .yarn/* !.yarn/patches !.yarn/plugins !.yarn/releases !.yarn/versions # testing /coverage # next.js /.next/ /out/ # production /build # misc .DS_Store *.pem tmp/ # debug npm-debug.log* yarn-debug.log* yarn-error.log* pnpm-debug.log* # env files (can opt-in for committing ...
hands-on-ai
.gitignore
Git Ignore
5617a317a4ba51a9e1a80cd1fb33c0363e0b6b995aff85e3472fa279355e6030
0
117
dist/ node_modules/ .next/ .turbo/ coverage/ pnpm-lock.yaml .pnpm-store/
hands-on-ai
.prettierignore
Prettier Ignore
af8057ae38f97ead3dc0b4d5dad97e403b25b64092c48bba0774afe2c9a5e9ce
0
22
{ "endOfLine": "lf", "semi": false, "singleQuote": false, "tabWidth": 2, "trailingComma": "es5", "printWidth": 80, "plugins": ["prettier-plugin-tailwindcss"], "tailwindStylesheet": "app/globals.css", "tailwindFunctions": ["cn", "cva"] }
hands-on-ai
.prettierrc
Prettier
6c0f3ada00ca509e453cba260faa8d20e9035b1613caa1ee3e185a57931b799c
0
81
<!-- BEGIN:nextjs-agent-rules --> # This is NOT the Next.js you know This version has breaking changes — APIs, conventions, and file structure may all differ from your training data. Read the relevant guide in `node_modules/next/dist/docs/` before writing any code. Heed deprecation notices. <!-- END:nextjs-agent-rules...
hands-on-ai
AGENTS.md
Markdown
e3447d84251880fb34cfae09131cb4c57471529bbfe60976a3245793cf621627
0
83
import type { NextConfig } from "next" const nextConfig: NextConfig = { devIndicators: false, } export default nextConfig
hands-on-ai
next.config.ts
TypeScript
d08b2d51d5b309c070c657a9582395d435102e0ba1551c4ab83e9cc1fa4ef454
0
23
{ "name": "hands-on-ai-exam", "version": "0.0.1", "type": "module", "private": true, "scripts": { "dev": "next dev", "build": "next build", "build:data": "python scripts/build-hands-on-ai-dataset.py", "start": "next start", "test": "bun test", "lint": "eslint", "format": "prettier ...
hands-on-ai
package.json
JSON
bb02c1ff28de923df1cbf1140667e9ce77f58c19f862cdfc2a8e92630b183e6e
0
467
const config = { plugins: { "@tailwindcss/postcss": {}, }, } export default config
hands-on-ai
postcss.config.mjs
JavaScript
7c013693fe1a211c61c8825d2f24a55435a81f48f03dd5affdbdad5679fd17cd
0
23
# Hands On AI II Exam Trainer Next.js practice app for the supplied Hands On AI II exam material. It reuses the original trainer logic and swaps in: - `Exam 1 2026.pdf` as the primary screenshot-based exam set - `EXAMS AI2.docx` as the historical answer bank - `Hands On AI 2 summar.pdf` as the summary/source index - ...
hands-on-ai
README.md
Markdown
66303c950f76e402ce0f6e64b07d7b1acabb20ceb55a3deca5a6160b54a52ef5
0
233
@import "tailwindcss"; @import "tw-animate-css"; @import "shadcn/tailwind.css"; @import "katex/dist/katex.min.css"; @custom-variant dark (&:is(.dark *)); @theme inline { --font-heading: var(--font-sans); --font-sans: var(--font-sans); --color-sidebar-ring: var(--sidebar-ring); --color-sidebar-border: var(--si...
hands-on-ai
app/globals.css
CSS
fb8ca26944aaa76f56135199dd015554ce971c1e8f369bb0e941a8ea1c5999d7
0
896
muted-foreground: oklch(0.49 0.03 230); --accent: oklch(0.938 0.039 144); --accent-foreground: oklch(0.235 0.04 162); --destructive: oklch(0.58 0.2 28); --border: oklch(0.888 0.02 224); --input: oklch(0.888 0.02 224); --ring: oklch(0.61 0.095 176); --chart-1: oklch(0.54 0.12 176); --chart-2: oklch(0.68 ...
hands-on-ai
app/globals.css
CSS
6d99ac408f3a51be2f4cb508acd1806a3a1a949d4116ea4594c4eaaf082205b8
1
692
import { Geist, Geist_Mono } from "next/font/google" import type { Metadata, Viewport } from "next" import "./globals.css" import { ThemeProvider } from "@/components/theme-provider" import { TooltipProvider } from "@/components/ui/tooltip" import { cn } from "@/lib/utils" const geist = Geist({ subsets: ["latin"], va...
hands-on-ai
app/layout.tsx
TypeScript
e2d870735903c490ad928f8d7bc803a9c2fbb3314131774471096df4f68b27d4
0
426
import type { MetadataRoute } from "next" export default function manifest(): MetadataRoute.Manifest { return { name: "Hands On AI II Exam Trainer", short_name: "HOAI II", description: "Hands On AI II exam practice with local progress.", start_url: "/", scope: "/", display: "standalone", ...
hands-on-ai
app/manifest.ts
TypeScript
f8f0fbf34fc43511372efef0ab0db36afbd5cc6597525fda85ad6bf4b0bb0546
0
168
import { PracticeApp } from "@/components/practice-app" export default function Page() { return <PracticeApp /> }
hands-on-ai
app/page.tsx
TypeScript
0225feaabcb609221403a383c9627f52d2f3b07c51fbede1a8d24d7e02ec19b4
0
27
"use client" import * as React from "react" import katex from "katex" import { normalizeMathText } from "@/lib/math-format" import { cn } from "@/lib/utils" type MathTextProps = { as?: "div" | "span" className?: string text: string } type Segment = | { kind: "text" value: string } | { ...
hands-on-ai
components/math-text.tsx
TypeScript
f1ff3ab7a8ab8f16977382b180e0c72c78effe25d1a009032c2e202156d788b2
0
597
"use client" import * as React from "react" import Image from "next/image" import { HugeiconsIcon } from "@hugeicons/react" import { Bookmark02Icon, CheckmarkCircle02Icon, EraserIcon, Image02Icon, } from "@hugeicons/core-free-icons" import { MathText } from "@/components/math-text" import { Dialog, Dialog...
hands-on-ai
components/practice-app.tsx
TypeScript
fa95f9c86068d1d7ec5615b77c1b4ab5bf0422ef25a0974c5725b6511e73ba68
0
896
length === 0) const headerStats: HeaderStats = isMockMode ? { answered: mockStats.answered, total: mockStats.total } : stats const headerTitle = isMockMode && progress.mockExam?.status === "active" ? formatDuration(remainingMockSeconds) : topicTitle const coverage = isMockMode ? getPer...
hands-on-ai
components/practice-app.tsx
TypeScript
a0907a649a443160625b8bab479cae327886ec665c5542cf528c9e4da94cf263
1
896
progress.drill, question?.id ?? progress.currentByMode.drill ) if (!nextDrillQuestionId) { setScreen("results") return } jumpToQuestion(nextDrillQuestionId) return } jumpToQuestion( getNextQuestionId( questions, ...
hands-on-ai
components/practice-app.tsx
TypeScript
b3c57009789f482d040a196e526784936842818cdcc196124a28db1be9f99a63
2
896
, showFeedback, }) const bottomDisabled = !question || selectedChoiceIds.length === 0 const performBottomAction = React.useCallback(() => { if (!question || bottomDisabled) { return } if (isMockMode) { submitMockAnswer(isLastQuestion) return } if (showFeedback) { ...
hands-on-ai
components/practice-app.tsx
TypeScript
32c5c230aefb02aa0564cf5e76d9f455ac4ce33edde9e154961df9406a881cca
3
896
{coverage}%` }} /> </div> {!question ? ( <EmptyState /> ) : ( <article className="min-h-[calc(100svh-190px)]"> <div className="flex items-start justify-between gap-3"> <QuestionMeta index={questionIndex} que...
hands-on-ai
components/practice-app.tsx
TypeScript
8e8ce6840b7900447775a2b443b3e74e286afc3fc2862058c34ee6996954b7df
4
896
border bg-card px-2.5 py-1.5 font-mono text-xs font-bold shadow-sm"> {practiceQuestions.length} </div> </header> <div className="mt-10 sm:mt-11"> <MenuLabel>Hands On AI II</MenuLabel> <h2 className="mt-3 max-w-[520px] text-[30px] leading-[1.08] font-bold tracki...
hands-on-ai
components/practice-app.tsx
TypeScript
cd0bb232229de62600b8dc5f5a510aaae7f5cf68e58893695701cfc374e0144e
5
896
deterministically. </p> </div> </section> <footer className="mt-7 pb-4 text-center text-[13px] leading-relaxed text-muted-foreground"> <p>Nothing is uploaded. Your progress stays in this browser.</p> <button className="mt-3 inline-flex items-center ...
hands-on-ai
components/practice-app.tsx
TypeScript
2f15d2ea223892b53e43f81d568820562fca2d3515fd83245b665a1f036aa831
6
896
type="button" > Drill missed </button> )} {isMock && ( <button className="h-[46px] rounded-[10px] border border-border bg-card px-4 text-sm font-bold shadow-sm transition hover:bg-muted/50" onClick={onRetakeMock} ...
hands-on-ai
components/practice-app.tsx
TypeScript
d5e513c44b2717eca02110261b3784df2a86f225ef1a71afa6c5591ea3058640
7
896
: string }) { return ( <div className="rounded-lg bg-muted px-3 py-2"> <div className="text-[10px] font-bold tracking-[0.12em] text-muted-foreground uppercase"> {label} </div> <MathText className={cn( "mt-1 text-sm leading-relaxed font-semibold", muted && "tex...
hands-on-ai
components/practice-app.tsx
TypeScript
9e97f8e75f4a1393b41eab853fbe6241b333db7f216e99251ff8e8916d0d3733
8
896
}</div> <div className="mt-0.5 line-clamp-2 text-[13px] leading-snug text-muted-foreground"> {description} </div> </div> <div className="text-right"> <div className="font-mono text-xs font-semibold text-muted-foreground"> {value} </div> <div classN...
hands-on-ai
components/practice-app.tsx
TypeScript
714e72e7e584c4bea2548357fe5370fa45dff47573eaf6363edc7fbdd55a7996
9
896
-[10px] border px-3 py-2.5 text-left transition", stateClass )} onClick={onClick} type="button" > <span className={cn( "flex size-[30px] items-center justify-center rounded-md border text-xs font-bold lowercase", badgeClass )} > {Stri...
hands-on-ai
components/practice-app.tsx
TypeScript
aecc529e5b987fa5506400fb4bbcd59cccefa0b63a63ed275353b7d20ac700bc
10
896
sm:h-[50px]" disabled={disabled} onClick={onClick} type="button" > {label} </button> </div> </div> ) } function EmptyState() { return ( <div className="rounded-xl border border-border bg-card p-8"> <h2 className="text-2xl font-semibold">No...
hands-on-ai
components/practice-app.tsx
TypeScript
e2a8486b8b88cc9cab6c5e832ba5e11b724797b65de3ac503020829c31dda28c
11
896
[]) .filter((choice) => choiceIdSet.has(choice.id)) .map((choice) => choice.text) return choices.length ? choices.join("; ") : "No answer" } function getPercent(value: number, total: number) { return total ? Math.round((value / total) * 100) : 0 } function isTypingTarget(target: EventTarget | null) { i...
hands-on-ai
components/practice-app.tsx
TypeScript
2c30782f31699caf34e9e86406cdd77d43cd30f4b1138903cf9fdc85b3d6a7d9
12
598
"use client" import * as React from "react" import { ThemeProvider as NextThemesProvider, useTheme } from "next-themes" function ThemeProvider({ children, ...props }: React.ComponentProps<typeof NextThemesProvider>) { return ( <NextThemesProvider attribute="class" defaultTheme="light" enab...
hands-on-ai
components/theme-provider.tsx
TypeScript
6ce64105378539f2a7932dd31cd5d7cf3c7da00234f21babab5a013c5492d52e
0
307
import * as React from "react" import { cva, type VariantProps } from "class-variance-authority" import { cn } from "@/lib/utils" const alertVariants = cva( "group/alert relative grid w-full gap-0.5 rounded-lg border px-2.5 py-2 text-left text-sm has-data-[slot=alert-action]:relative has-data-[slot=alert-action]:pr...
hands-on-ai
components/ui/alert.tsx
TypeScript
126a26b401ab2cd3f3855551d012b5dca7a96b7d6984a921add3ce2d441af4b6
0
610
"use client" import * as React from "react" import * as RechartsPrimitive from "recharts" import type { TooltipValueType } from "recharts" import { cn } from "@/lib/utils" // Format: { THEME_NAME: CSS_SELECTOR } const THEMES = { light: "", dark: ".dark" } as const const INITIAL_DIMENSION = { width: 320, height: 200...
hands-on-ai
components/ui/chart.tsx
TypeScript
81e31dfbb7f6201737161d93b59bed332b925c23b9700388d6a5af0af50946d9
0
896
[key, itemConfig]) => { const color = itemConfig.theme?.[theme as keyof typeof itemConfig.theme] ?? itemConfig.color return color ? ` --color-${key}: ${color};` : null }) .join("\n")} } ` ) .join("\n"), }} /> ) } const ChartTooltip = RechartsPrimitive.Tooltip f...
hands-on-ai
components/ui/chart.tsx
TypeScript
e2f8097cf9e4f6578055d5a8d7d0f580329a617bfdee9566c3cfa7777e79ca32
1
896
== "dashed", } )} style={ { "--color-bg": indicatorColor, "--color-border": indicatorColor, } as React.CSSProperties ...
hands-on-ai
components/ui/chart.tsx
TypeScript
276872f845456d184099a59d186b8b100e78aa8abb6cb3e1afd9cad3e34a75cc
2
717
"use client" import * as React from "react" import { Dialog as DialogPrimitive } from "radix-ui" import { cn } from "@/lib/utils" import { Button } from "@/components/ui/button" import { HugeiconsIcon } from "@hugeicons/react" import { Cancel01Icon } from "@hugeicons/core-free-icons" function Dialog({ ...props }: ...
hands-on-ai
components/ui/dialog.tsx
TypeScript
69a15a5bc4ad26f7e9c4b3e8140f67491fc27dfd36925df36106824067d16f97
0
896
p-4 sm:flex-row sm:justify-end", className )} {...props} > {children} {showCloseButton && ( <DialogPrimitive.Close asChild> <Button variant="outline">Close</Button> </DialogPrimitive.Close> )} </div> ) } function DialogTitle({ className, ......
hands-on-ai
components/ui/dialog.tsx
TypeScript
af46825b36c2c17066f339b952939510bcf8be09d3c0434b858b646b6793f2e3
1
256
"use client" import * as React from "react" import { Progress as ProgressPrimitive } from "radix-ui" import { cn } from "@/lib/utils" function Progress({ className, value, ...props }: React.ComponentProps<typeof ProgressPrimitive.Root>) { return ( <ProgressPrimitive.Root data-slot="progress" ...
hands-on-ai
components/ui/progress.tsx
TypeScript
1e58b13c2aa4c26b8a1b8bf72265121fa47378bf9104da8f6a3bf4e427751699
0
183
"use client" import * as React from "react" import { RadioGroup as RadioGroupPrimitive } from "radix-ui" import { cn } from "@/lib/utils" function RadioGroup({ className, ...props }: React.ComponentProps<typeof RadioGroupPrimitive.Root>) { return ( <RadioGroupPrimitive.Root data-slot="radio-group" ...
hands-on-ai
components/ui/radio-group.tsx
TypeScript
07676333f885eb2af2f434c9d445a692d320202ab306b5a8450580147fcaf795
0
434
"use client" import * as React from "react" import { Select as SelectPrimitive } from "radix-ui" import { cn } from "@/lib/utils" import { HugeiconsIcon } from "@hugeicons/react" import { UnfoldMoreIcon, Tick02Icon, ArrowUp01Icon, ArrowDown01Icon } from "@hugeicons/core-free-icons" function Select({ ...props }: Re...
hands-on-ai
components/ui/select.tsx
TypeScript
87046facede672e7d39e8f2dc0e1bfd3a8d09cd96e1d8c19778a02b0f2ab7474
0
896
popover py-1 [&_svg:not([class*='size-'])]:size-4", className )} {...props} > <HugeiconsIcon icon={ArrowUp01Icon} strokeWidth={2} /> </SelectPrimitive.ScrollUpButton> ) } function SelectScrollDownButton({ className, ...props }: React.ComponentProps<typeof SelectPrimitive.ScrollD...
hands-on-ai
components/ui/select.tsx
TypeScript
9f75b20589366d23833ce2e6d8bd4bce23bd125c273fdb870315f2c57afb33f8
2
204
slide-in-from-top-10 data-closed:animate-out data-closed:fade-out-0 data-[side=bottom]:data-closed:slide-out-to-bottom-10 data-[side=left]:data-closed:slide-out-to-left-10 data-[side=right]:data-closed:slide-out-to-right-10 data-[side=top]:data-closed:slide-out-to-top-10", className )} {...pro...
hands-on-ai
components/ui/sheet.tsx
TypeScript
303998cc944551bb6ad5e09c7a1a4293df48f3c1394ef2131ba6f58b16fc40c2
1
515
5px] group-data-horizontal/tabs:after:h-0.5 group-data-vertical/tabs:after:inset-y-0 group-data-vertical/tabs:after:-right-1 group-data-vertical/tabs:after:w-0.5 group-data-[variant=line]/tabs-list:data-active:after:opacity-100", className )} {...props} /> ) } function TabsContent({ classNa...
hands-on-ai
components/ui/tabs.tsx
TypeScript
42d1423524c293e4a872af652de03218fb7af0d20d0c78a32b94ac08180d8ecb
1
176
"use client" import * as React from "react" import { PRACTICE_STORAGE_KEY, createDefaultProgress, normalizeProgress, } from "@/lib/practice" import type { PracticeProgress } from "@/lib/practice" export function usePracticeProgress() { const [isReady, setIsReady] = React.useState(false) const [progress, s...
hands-on-ai
hooks/use-practice-progress.ts
TypeScript
eb623e4785d9e8b8bcff71998aa52aea5fa8deb8fd1b0e24374127fff76942c6
0
277
import { describe, expect, test } from "bun:test" import { normalizeMathText } from "./math-format" describe("math text normalization", () => { test("turns copied inline LaTeX delimiters into app math delimiters", () => { expect(normalizeMathText("Given \\( T_x = 1 \\).")).toBe( "Given $ T_x = 1 $." )...
hands-on-ai
lib/math-format.test.ts
TypeScript
856e283e556a0962bec036f75722ff3e32da1baf142eb3c40f25119987b9bcec
0
142
export function normalizeMathText(text: string) { return text.replace(/\\\((.+?)\\\)/g, (_, expression: string) => { return `$${expression}$` }) }
hands-on-ai
lib/math-format.ts
TypeScript
cf238be4729cac8bc06dd99e0162e17d21936cf949d0d026f1cdb9dacb2e9372
0
53
import { describe, expect, test } from "bun:test" import { EXAM_QUESTIONS, MOCK_EXAM_QUESTIONS, PRACTICE_QUESTIONS, createDrillSession, createDefaultProgress, createMockExamSession, evaluateChoiceAnswer, getDrillRemainingQuestionIds, getDisplayChoices, getMockExamStats, getMockReviewItems, getP...
hands-on-ai
lib/practice.test.ts
TypeScript
c4978f8e8cc24fa94efbbf5b85c6f0e7756c03b4c0e0ccf136a4e5081dc353c3
0
896
bookmarked questions first", () => { const [missedQuestion, bookmarkedQuestion] = EXAM_QUESTIONS const progress = createDefaultProgress() progress.answers[missedQuestion.id] = { selectedChoiceIds: ["wrong"], isCorrect: false, attempts: 1, mode: "exam", answeredAt: "2026-06-18T...
hands-on-ai
lib/practice.test.ts
TypeScript
9180602f7a3d8ee29a33abf33f7f52c9ace63517058ce79c1563c78b203035d3
1
787
import { questionBank } from "@/lib/data" import { PREDICTED_MOCK_QUESTIONS } from "@/lib/predicted-mock-questions" import type { Choice, Question, QuestionOrigin, Source, Topic, } from "@/lib/data" export type PracticeMode = "exam" | "practice" | "review" | "mock" | "drill" export type PracticeSourceFilte...
hands-on-ai
lib/practice.ts
TypeScript
e6d88b450e5cd4b2ab82c4c39b9a737df76521b2770710ec875ea30b27550ffa
0
896
review: null, mock: null, drill: null, }, answers: {}, bookmarks: [], mockExam: null, drill: null, lastUpdatedAt: null, } } export function normalizeProgress(value: unknown): PracticeProgress { const fallback = createDefaultProgress() if (!isRecord(value)) { return fallba...
hands-on-ai
lib/practice.ts
TypeScript
c7ed84ad7df8c0c0f33cee886e2c4f733b6653e7f21be8d98a6fe0f2d2bffd74
1
896