Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
11 changes: 1 addition & 10 deletions apps/khix/next.config.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,7 @@
/** @type {import("next").NextConfig} */
const config = {
reactStrictMode: true,
images: {
formats: ["image/avif", "image/webp"],
minimumCacheTTL: 60 * 60 * 24 * 30,
remotePatterns: [
{
protocol: "https",
hostname: "assets.knighthacks.org",
},
],
},
allowedDevOrigins: ["127.0.0.1"],

/** We already do linting and typechecking as separate tasks in CI */
typescript: { ignoreBuildErrors: true },
Expand Down
7 changes: 3 additions & 4 deletions apps/khix/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@
"with-env": "dotenv -e ../../.env --"
},
"dependencies": {
"@gsap/react": "^2.1.2",
"framer-motion": "^12.34.3",
"lucide-react": "^0.575.0",
"gsap": "^3.14.2",
"next": "^16.2.7",
"react": "^19.2.4",
"react-dom": "^19.2.4",
"react-icons": "^5.5.0"
"react-dom": "^19.2.4"
},
"devDependencies": {
"@forge/eslint-config": "workspace:*",
Expand All @@ -35,7 +35,6 @@
"eslint": "catalog:",
"prettier": "catalog:",
"tailwindcss": "catalog:",
"tw-animate-css": "^1.4.0",
"typescript": "catalog:"
},
"prettier": "@forge/prettier-config"
Expand Down
Binary file added apps/khix/public/KHIXHero/optimized/1_front.webp
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/khix/public/KHIXHero/optimized/2_tk.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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/khix/public/KHIXHero/optimized/4_bg.webp
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/khix/public/KHIXHero/optimized/5_bg.webp
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/khix/public/KHIXHero/optimized/6_bg.webp
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/khix/public/KHIXHero/optimized/7_bg.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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/khix/public/KHIXHero/optimized/pond.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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/khix/public/assets/FAQ cave ceiling.webp
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/khix/public/assets/FAQ crystal cluster.webp
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/khix/public/assets/FAQ crystal rock 1.webp
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/khix/public/assets/FAQ crystal rock 2.webp
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/khix/public/assets/FAQ crystal rock 3.webp
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/khix/public/assets/FAQ large crystal.webp
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/khix/public/assets/FAQ large mushroom.webp
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/khix/public/assets/FAQ misc rock 1.webp
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/khix/public/assets/FAQ misc rock 2.webp
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/khix/public/assets/FAQ mushroom rock 1.webp
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/khix/public/assets/FAQ mushroom rock 2.webp
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/khix/public/assets/IMG_7680.webp
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/khix/public/assets/IMG_7681.webp
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/khix/public/assets/IMG_7682.webp
Binary file added apps/khix/public/assets/IMG_7683.webp
Binary file added apps/khix/public/assets/IMG_7684.webp
Binary file added apps/khix/public/assets/IMG_7685.webp
Binary file added apps/khix/public/assets/IMG_7687.webp
Binary file added apps/khix/public/assets/IMG_7688.webp
Binary file added apps/khix/public/assets/IMG_7689.webp
Binary file added apps/khix/public/assets/_ignore-delete.webp
Binary file added apps/khix/public/assets/_ignore-delete1.webp
Binary file added apps/khix/public/assets/branch-1.webp
Binary file added apps/khix/public/assets/branch-2.webp
Binary file added apps/khix/public/assets/branch-3.webp
Binary file added apps/khix/public/assets/branch-4.webp
Binary file added apps/khix/public/assets/branch-5.webp
Binary file added apps/khix/public/assets/leaf-1.webp
Binary file added apps/khix/public/assets/leaf-2.webp
Binary file added apps/khix/public/assets/leaf-3.webp
Binary file added apps/khix/public/assets/lights-1.webp
Binary file added apps/khix/public/assets/lights-2.webp
Binary file added apps/khix/public/assets/lights-3.webp
Binary file added apps/khix/public/assets/lights-4.webp
Binary file added apps/khix/public/assets/pile-1.webp
Binary file added apps/khix/public/assets/pile-2.webp
Binary file added apps/khix/public/assets/pile-3.webp
Binary file added apps/khix/public/assets/pile-4.webp
Binary file added apps/khix/public/assets/pile-5.webp
Binary file added apps/khix/public/assets/waterfall.webp
Binary file removed apps/khix/public/birds.mp3
Binary file not shown.
7 changes: 7 additions & 0 deletions apps/khix/public/favicon.svg
Binary file removed apps/khix/public/flower.png
Diff not rendered.
Binary file removed apps/khix/public/khix-gem-shard-mask.png
Diff not rendered.
41 changes: 0 additions & 41 deletions apps/khix/public/khix-logo-white.svg
Diff not rendered.
32 changes: 0 additions & 32 deletions apps/khix/public/khix-sigil.svg
Diff not rendered.
88 changes: 88 additions & 0 deletions apps/khix/public/khlogo.svg

Large diffs are not rendered by default.

Binary file removed apps/khix/public/ladybug.png
Diff not rendered.
Binary file removed apps/khix/public/mushroom.png
Diff not rendered.
Binary file removed apps/khix/public/music.mp3
Binary file not shown.
155 changes: 0 additions & 155 deletions apps/khix/src/app/_components/WispCursor.tsx

This file was deleted.

76 changes: 76 additions & 0 deletions apps/khix/src/app/_components/assets/AssetCredit.module.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
.assetCredit {
position: relative;
display: block;
width: 100%;
max-width: 100%;
pointer-events: auto;
}

.creditText {
position: absolute;
right: 0;
bottom: -0.15rem;
z-index: 2;
max-width: min(24rem, calc(100vw - 2rem));
border: 0;
color: rgba(255, 255, 255, 0.68);
background: transparent;
box-shadow: none;
font-size: clamp(0.62rem, 1.2vw, 0.72rem);
font-weight: 700;
letter-spacing: 0;
line-height: 1.15;
text-align: right;
text-shadow:
0 1px 0.45rem rgba(0, 0, 0, 0.34),
0 0 0.7rem rgba(255, 255, 255, 0.1);
opacity: 0;
pointer-events: none;
transform: translate3d(0, 0.16rem, 0);
transform-origin: 100% 100%;
transition:
opacity 180ms ease,
transform 220ms ease;
}

.creditLabel {
color: rgba(255, 255, 255, 0.44);
font-weight: 600;
}

.creditName,
.creditLink {
color: inherit;
}

.creditLink {
text-decoration: none;
text-underline-offset: 0.18em;
transition: color 160ms ease;
}

.creditLink:hover,
.creditLink:focus-visible {
color: rgba(255, 255, 255, 0.9);
text-decoration: underline;
outline: none;
}

.creditSeparator {
margin: 0 0.32rem;
color: rgba(255, 255, 255, 0.34);
}

.assetCredit:hover .creditText,
.assetCredit:focus-within .creditText {
opacity: 1;
pointer-events: auto;
transform: translate3d(0, 0, 0);
}

@media (prefers-reduced-motion: reduce) {
.creditText,
.creditLink {
transition: none;
}
}
62 changes: 62 additions & 0 deletions apps/khix/src/app/_components/assets/AssetCredit.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
import type { ReactNode } from "react";
import { Fragment } from "react";

import styles from "./AssetCredit.module.css";

export interface AssetCreditEntry {
name: string;
href?: string;
newTab?: boolean;
}

interface AssetCreditProps {
credits: readonly AssetCreditEntry[];
children: ReactNode;
className?: string;
label?: string;
}

export function AssetCredit({
credits,
children,
className,
label = "Made by",
}: AssetCreditProps) {
const rootClassName = className
? `${styles.assetCredit} ${className}`
: styles.assetCredit;
const visibleCredits = credits.filter((credit) => credit.name.trim());

if (visibleCredits.length === 0) {
return <span className={rootClassName}>{children}</span>;
}

return (
<span className={rootClassName}>
{children}
<span className={styles.creditText}>
<span className={styles.creditLabel}>{label}</span>{" "}
{visibleCredits.map((credit, index) => (
<Fragment key={`${credit.name}-${credit.href ?? index}`}>
{index > 0 ? (
<span className={styles.creditSeparator}>/</span>
) : null}
{credit.href ? (
<a
className={styles.creditLink}
href={credit.href}
{...(credit.newTab === false
? {}
: { target: "_blank", rel: "noopener noreferrer" })}
>
{credit.name}
</a>
) : (
<span className={styles.creditName}>{credit.name}</span>
)}
</Fragment>
))}
</span>
</span>
);
}
1 change: 1 addition & 0 deletions apps/khix/src/app/_components/assets/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { AssetCredit } from "./AssetCredit";
Loading
Loading