feat(WEB-250): overview hero final ui

This commit is contained in:
Simon Emanuelsson
2024-05-24 10:13:24 +02:00
parent f884383c3c
commit 16b817f469
164 changed files with 6262 additions and 990 deletions

View File

@@ -1,5 +0,0 @@
import type { User } from "@/types/user"
export type OverviewProps = {
title: string | null
}

View File

@@ -1,5 +0,0 @@
import type { User } from "@/types/user"
export type QualifyingPointsProps = {
user: User
}

View File

@@ -1,13 +1,11 @@
import { ReactNode } from "react"
export type ShortcutsProps = {
openInNewTab?: boolean
shortcuts: {
url: string
title: string
openInNewTab?: boolean
text?: string
}[]
title: string | ReactNode
subtitle?: string | null
openInNewTab?: boolean
subtitle: string | null
title: string | null
}

View File

@@ -1,5 +0,0 @@
import type { User } from "@/types/user"
export type StatsProps = {
user: User
}

View File

@@ -1,5 +0,0 @@
import type { User } from "@/types/user"
export type TotalPointsProps = {
user: User
}

View File

@@ -2,5 +2,5 @@ import { Stay } from "@/server/routers/user/output"
export type Page = {
data: Stay[]
nextCursor?: number
nextCursor?: string
}

View File

@@ -1,5 +1,6 @@
export type HeaderProps = {
title: string | null
subtitle: string | null
link?: { href: string; text: string }
subtitle: string | null
title: string | null
topTitle?: boolean
}

View File

@@ -1,13 +0,0 @@
import { headingVariants } from "@/components/Title/variants"
import type { VariantProps } from "class-variance-authority"
type HeadingLevel = "h1" | "h2" | "h3" | "h4" | "h5" | "h6"
export interface HeadingProps
extends React.HTMLAttributes<HTMLHeadingElement>,
VariantProps<typeof headingVariants> {
as?: HeadingLevel
level?: HeadingLevel
uppercase?: boolean
}

View File

@@ -1,5 +1,5 @@
import type { User } from "@/types/user"
export type FriendProps = {
export interface UserProps {
user: User
}