Skip to content
Merged
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
Binary file added apps/web/src/assets/hackmeridian-dark.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/src/assets/hackmeridian-light.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 13 additions & 0 deletions apps/web/src/components/brand/event-logo.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import { cn } from '@/lib/utils'
import onDark from '@/assets/hackmeridian-light.png'
import onLight from '@/assets/hackmeridian-dark.png'
import { EVENT_NAME } from '@/lib/config'

export function EventLogo({ className }: { className?: string }) {
return (
<>
<img src={onLight} alt={EVENT_NAME} className={cn('dark:hidden', className)} />
<img src={onDark} alt={EVENT_NAME} className={cn('hidden dark:block', className)} />
</>
)
}
2 changes: 2 additions & 0 deletions apps/web/src/pages/home.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { useSearchParams } from 'react-router'

import { EventLogo } from '@/components/brand/event-logo'
import { suggestionsFor } from '@/components/chat/page'
import { useChatPanel } from '@/components/chat/use-chat-panel'
import { Explorer } from '@/components/explorer/explorer'
Expand Down Expand Up @@ -29,6 +30,7 @@ export function HomePage() {
return (
<div className="flex flex-col gap-10">
<section className="flex flex-col items-start gap-5">
<EventLogo className="h-9 w-auto sm:h-11" />
<h1 className="max-w-4xl text-5xl leading-[1.02] text-balance sm:text-7xl">
{EVENT_NAME}, rebuilt from the chain.
</h1>
Expand Down
11 changes: 8 additions & 3 deletions apps/web/src/pages/wrapped.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { motion } from 'motion/react'
import { useState } from 'react'
import { Link, useSearchParams } from 'react-router'

import { EventLogo } from '@/components/brand/event-logo'
import { BuilderAvatars } from '@/components/wrapped/builder-avatars'
import { Figure } from '@/components/wrapped/figure'
import { LensList, type LensRow } from '@/components/wrapped/lens-list'
Expand Down Expand Up @@ -106,9 +107,13 @@ function Header({ window }: { window: HackWindow }) {
transition={{ duration: 0.7, ease: EASE_OUT }}
className="flex flex-col gap-1 lg:flex-row lg:items-end lg:justify-between"
>
<h1 className="font-heading text-headline">
{EVENT_NAME} <span className="text-primary italic">Wrapped</span>
</h1>
<div className="flex items-center gap-4">
<EventLogo className="h-7 w-auto sm:h-9" />
<h1 className="font-heading text-headline">
<span className="sr-only">{EVENT_NAME} </span>
<span className="text-primary italic">Wrapped</span>
</h1>
</div>
<p className="pb-1 text-sm text-muted-foreground">{windowLabel(window)}</p>
</motion.header>
)
Expand Down
Loading