-
Notifications
You must be signed in to change notification settings - Fork 3
feat(home+soldados): home redesign, /soldados roster, profile pages and 404 refresh #4
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
Merged
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
5a952cd
feat(home): redesign benefits, scroll sections, newsletter and sponso…
agustinkassis e3e2bcb
feat(soldados): roster page with profile, scoring and redesigned 404
agustinkassis f3dca29
refactor(soldados): rename to Soldier, add medals column, dedupe proj…
agustinkassis 2e5beb5
feat(soldados): tooltips, project pages, CodeRabbit fixes
agustinkassis 5d86c77
fix(home): honor prefers-reduced-motion in NeuronPulse
agustinkassis File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,74 @@ | ||
| "use client"; | ||
|
|
||
| import { useEffect } from "react"; | ||
| import Link from "next/link"; | ||
| import { ArrowLeft, RotateCw, Zap } from "lucide-react"; | ||
| import BrokenCableAnimation from "@/components/ui/BrokenCableAnimation"; | ||
|
|
||
| export default function Error({ | ||
| error, | ||
| unstable_retry, | ||
| }: { | ||
| error: Error & { digest?: string }; | ||
| unstable_retry: () => void; | ||
| }) { | ||
| useEffect(() => { | ||
| console.error(error); | ||
| }, [error]); | ||
|
|
||
| return ( | ||
| <section className="relative min-h-[calc(100vh-80px)] flex items-center justify-center overflow-hidden px-4 sm:px-6 lg:px-8 py-24"> | ||
| <div className="absolute inset-0 -z-10 pointer-events-none"> | ||
| <div className="absolute inset-0 bg-grid bg-grid-fade opacity-40" /> | ||
| <div className="absolute top-1/3 left-1/2 -translate-x-1/2 -translate-y-1/2 w-[700px] h-[400px] bg-danger/15 blur-[140px] rounded-full" /> | ||
| <div className="absolute bottom-10 right-10 w-[300px] h-[300px] bg-bitcoin/15 blur-[120px] rounded-full" /> | ||
| </div> | ||
|
|
||
| <div className="relative max-w-3xl mx-auto w-full text-center"> | ||
| <BrokenCableAnimation | ||
| className="mx-auto w-full max-w-xl aspect-[3/2]" | ||
| ariaLabel="Animación de un cable cortado con chispas" | ||
| /> | ||
|
|
||
| <div className="mt-2 inline-flex items-center gap-2 px-3 py-1 rounded-full border border-border bg-white/5 text-xs font-mono tracking-wider text-foreground-muted"> | ||
| <Zap size={12} className="text-danger" /> | ||
| ERROR INESPERADO | ||
| </div> | ||
|
|
||
| <h1 className="mt-6 font-display text-5xl sm:text-6xl md:text-7xl font-bold tracking-tight leading-[1.05]"> | ||
| Algo se <span className="text-gradient-bitcoin">rompió</span> | ||
| </h1> | ||
|
|
||
| <p className="mt-5 text-lg text-foreground-muted max-w-xl mx-auto leading-relaxed"> | ||
| Hubo un cortocircuito de nuestro lado. Reintentá o volvé al inicio | ||
| mientras lo arreglamos. | ||
| </p> | ||
|
|
||
| <div className="mt-8 flex flex-wrap items-center justify-center gap-3"> | ||
| <button | ||
| type="button" | ||
| onClick={() => unstable_retry()} | ||
| className="inline-flex items-center gap-2 px-5 py-2.5 rounded-full bg-bitcoin text-black font-semibold text-sm hover:bg-bitcoin/90 transition shadow-lg shadow-bitcoin/20" | ||
| > | ||
| <RotateCw size={16} /> | ||
| Reintentar | ||
| </button> | ||
| <Link | ||
| href="/" | ||
| className="inline-flex items-center gap-2 px-5 py-2.5 rounded-full border border-border bg-white/5 text-foreground font-semibold text-sm hover:bg-white/10 transition" | ||
| > | ||
| <ArrowLeft size={16} /> | ||
| Volver al inicio | ||
| </Link> | ||
| </div> | ||
|
|
||
| {error.digest && ( | ||
| <p className="mt-10 text-xs font-mono text-foreground-subtle tracking-wider"> | ||
| $ ref:{" "} | ||
| <span className="text-foreground-muted">{error.digest}</span> | ||
| </p> | ||
| )} | ||
| </div> | ||
| </section> | ||
| ); | ||
| } |
Binary file not shown.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,101 @@ | ||
| "use client"; | ||
|
|
||
| import { useEffect } from "react"; | ||
| import { Inter, Space_Grotesk, JetBrains_Mono } from "next/font/google"; | ||
| import { RotateCw, Zap } from "lucide-react"; | ||
| import BrokenCableAnimation from "@/components/ui/BrokenCableAnimation"; | ||
| import "./globals.css"; | ||
|
|
||
| const inter = Inter({ | ||
| variable: "--font-inter", | ||
| subsets: ["latin"], | ||
| display: "swap", | ||
| }); | ||
|
|
||
| const spaceGrotesk = Space_Grotesk({ | ||
| variable: "--font-space-grotesk", | ||
| subsets: ["latin"], | ||
| display: "swap", | ||
| }); | ||
|
|
||
| const jetbrainsMono = JetBrains_Mono({ | ||
| variable: "--font-jetbrains-mono", | ||
| subsets: ["latin"], | ||
| display: "swap", | ||
| }); | ||
|
|
||
| export default function GlobalError({ | ||
| error, | ||
| unstable_retry, | ||
| }: { | ||
| error: Error & { digest?: string }; | ||
| unstable_retry: () => void; | ||
| }) { | ||
| useEffect(() => { | ||
| console.error(error); | ||
| }, [error]); | ||
|
|
||
| return ( | ||
| <html | ||
| lang="es" | ||
| className={`${inter.variable} ${spaceGrotesk.variable} ${jetbrainsMono.variable} h-full antialiased`} | ||
| > | ||
| <head> | ||
| <title>Falla crítica · La Crypta Dev</title> | ||
| </head> | ||
| <body className="min-h-full bg-background text-foreground"> | ||
| <section className="relative min-h-screen flex items-center justify-center overflow-hidden px-4 sm:px-6 lg:px-8 py-16"> | ||
| <div className="absolute inset-0 -z-10 pointer-events-none"> | ||
| <div className="absolute inset-0 bg-grid bg-grid-fade opacity-40" /> | ||
| <div className="absolute top-1/3 left-1/2 -translate-x-1/2 -translate-y-1/2 w-[700px] h-[400px] bg-danger/15 blur-[140px] rounded-full" /> | ||
| </div> | ||
|
|
||
| <div className="relative max-w-3xl mx-auto w-full text-center"> | ||
| <BrokenCableAnimation | ||
| className="mx-auto w-full max-w-xl aspect-[3/2]" | ||
| ariaLabel="Animación de un cable cortado con chispas" | ||
| /> | ||
|
|
||
| <div className="mt-2 inline-flex items-center gap-2 px-3 py-1 rounded-full border border-border bg-white/5 text-xs font-mono tracking-wider text-foreground-muted"> | ||
| <Zap size={12} className="text-danger" /> | ||
| FALLA CRÍTICA | ||
| </div> | ||
|
|
||
| <h1 className="mt-6 font-display text-5xl sm:text-6xl md:text-7xl font-bold tracking-tight leading-[1.05]"> | ||
| Se cayó <span className="text-gradient-bitcoin">todo</span> | ||
| </h1> | ||
|
|
||
| <p className="mt-5 text-lg text-foreground-muted max-w-xl mx-auto leading-relaxed"> | ||
| Hubo una falla profunda en el sistema. Estamos al tanto. Probá | ||
| recargar en un momento. | ||
| </p> | ||
|
|
||
| <div className="mt-8 flex flex-wrap items-center justify-center gap-3"> | ||
| <button | ||
| type="button" | ||
| onClick={() => unstable_retry()} | ||
| className="inline-flex items-center gap-2 px-5 py-2.5 rounded-full bg-bitcoin text-black font-semibold text-sm hover:bg-bitcoin/90 transition shadow-lg shadow-bitcoin/20" | ||
| > | ||
| <RotateCw size={16} /> | ||
| Reintentar | ||
| </button> | ||
| <a | ||
| href="/" | ||
| className="inline-flex items-center gap-2 px-5 py-2.5 rounded-full border border-border bg-white/5 text-foreground font-semibold text-sm hover:bg-white/10 transition" | ||
| > | ||
| Volver al inicio | ||
| </a> | ||
| </div> | ||
|
|
||
| {error.digest && ( | ||
| <p className="mt-10 text-xs font-mono text-foreground-subtle tracking-wider"> | ||
| $ ref:{" "} | ||
| <span className="text-foreground-muted">{error.digest}</span> | ||
| </p> | ||
| )} | ||
| </div> | ||
| </section> | ||
| </body> | ||
| </html> | ||
| ); | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,67 @@ | ||
| import type { Metadata } from "next"; | ||
| import Link from "next/link"; | ||
| import { ArrowLeft, Zap } from "lucide-react"; | ||
| import BrokenCableAnimation from "@/components/ui/BrokenCableAnimation"; | ||
|
|
||
| export const metadata: Metadata = { | ||
| title: "404 — Cable cortado", | ||
| description: "La página que buscás se desconectó del aire.", | ||
| robots: { index: false, follow: false }, | ||
| }; | ||
|
|
||
| export default function NotFound() { | ||
| return ( | ||
| <section className="relative min-h-[calc(100vh-80px)] flex items-center justify-center overflow-hidden px-4 sm:px-6 lg:px-8 py-24"> | ||
| <div className="absolute inset-0 -z-10 pointer-events-none"> | ||
| <div className="absolute inset-0 bg-grid bg-grid-fade opacity-40" /> | ||
| <div className="absolute top-1/3 left-1/2 -translate-x-1/2 -translate-y-1/2 w-[700px] h-[400px] bg-bitcoin/15 blur-[140px] rounded-full" /> | ||
| <div className="absolute bottom-10 right-10 w-[300px] h-[300px] bg-nostr/15 blur-[120px] rounded-full" /> | ||
| </div> | ||
|
|
||
| <div className="relative max-w-3xl mx-auto w-full text-center"> | ||
| <BrokenCableAnimation | ||
| className="mx-auto w-full max-w-xl aspect-[3/2]" | ||
| ariaLabel="Animación de un cable cortado con chispas" | ||
| /> | ||
|
|
||
| <div className="mt-2 inline-flex items-center gap-2 px-3 py-1 rounded-full border border-border bg-white/5 text-xs font-mono tracking-wider text-foreground-muted"> | ||
| <Zap size={12} className="text-bitcoin" /> | ||
| NOT FOUND | ||
| </div> | ||
|
|
||
| <h1 className="mt-6 font-display text-7xl sm:text-8xl md:text-9xl font-bold tracking-tight leading-[1] tabular-nums"> | ||
| <span className="text-gradient-bitcoin">404</span> | ||
| </h1> | ||
|
|
||
| <p className="mt-4 font-display text-2xl sm:text-3xl font-semibold text-foreground"> | ||
| Cable cortado | ||
| </p> | ||
|
|
||
| <p className="mt-4 text-lg text-foreground-muted max-w-xl mx-auto leading-relaxed"> | ||
| La página que buscás se desconectó del aire. Probá reconectarte desde | ||
| otro lado. | ||
| </p> | ||
|
|
||
| <div className="mt-8 flex flex-wrap items-center justify-center gap-3"> | ||
| <Link | ||
| href="/" | ||
| className="inline-flex items-center gap-2 px-5 py-2.5 rounded-full bg-bitcoin text-black font-semibold text-sm hover:bg-bitcoin/90 transition shadow-lg shadow-bitcoin/20" | ||
| > | ||
| <ArrowLeft size={16} /> | ||
| Volver al inicio | ||
| </Link> | ||
| <Link | ||
| href="/hackathons" | ||
| className="inline-flex items-center gap-2 px-5 py-2.5 rounded-full border border-border bg-white/5 text-foreground font-semibold text-sm hover:bg-white/10 transition" | ||
| > | ||
| Ver hackatones | ||
| </Link> | ||
| </div> | ||
|
|
||
| <p className="mt-10 text-xs font-mono text-foreground-subtle tracking-wider"> | ||
| $ status: <span className="text-danger">DISCONNECTED</span> | ||
| </p> | ||
| </div> | ||
| </section> | ||
| ); | ||
| } |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wrong CSS variable names for fonts —
font-displayandfont-monoclasses will silently fall back on the global error page.The Tailwind 4 theme in
globals.cssresolves thefont-displayandfont-monoutilities viavar(--font-display)andvar(--font-mono). Here the fonts are registered under different names (--font-space-grotesk,--font-jetbrains-mono), so those CSS custom properties are never injected onto<html>. Sinceglobal-error.tsxfully replaces the root layout, the root layout's font declarations don't apply — making this the only font setup that runs. Theh1at line 64 (font-display text-5xl...) and the monospace refs at line 91 will silently fall back to the system font stack.🔧 Proposed fix
const inter = Inter({ - variable: "--font-inter", + variable: "--font-sans", subsets: ["latin"], display: "swap", }); const spaceGrotesk = Space_Grotesk({ - variable: "--font-space-grotesk", + variable: "--font-display", subsets: ["latin"], display: "swap", }); const jetbrainsMono = JetBrains_Mono({ - variable: "--font-jetbrains-mono", + variable: "--font-mono", subsets: ["latin"], display: "swap", });As per coding guidelines: "Font tokens (
--font-sansfor Inter,--font-displayfor Space Grotesk,--font-monofor JetBrains Mono) are exposed in Tailwind 4."📝 Committable suggestion
🤖 Prompt for AI Agents