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,28 +1,27 @@
import { serverClient } from "@/lib/trpc/server"
import Title from "@/components/Title"
import Divider from "@/components/TempDesignSystem/Divider"
import Header from "../Header"
import Friend from "./Friend"
import Stats from "./Stats"
import styles from "./overview.module.css"
import type { OverviewProps } from "@/types/components/myPages/myPage/overview"
import type { AccountPageComponentProps } from "@/types/components/myPages/myPage/accountPage"
export default async function Overview({ title }: OverviewProps) {
export default async function Overview({
link,
subtitle,
title,
}: AccountPageComponentProps) {
const user = await serverClient().user.get()
return (
<section className={styles.container}>
<header>
{title && (
<Title as="h3" level="h2" uppercase className={styles.title}>
{title}
</Title>
)}
</header>
<Header link={link} subtitle={subtitle} title={title} topTitle />
<section className={styles.overview}>
<Friend user={user} />
<Divider className={styles.divider} />
<Stats user={user} />
</section>
</section>