Skip to content

Commit

Permalink
chore: remove xp metagame related components
Browse files Browse the repository at this point in the history
  • Loading branch information
dominik-stumpf committed Aug 7, 2024
1 parent b26ea29 commit 4d47e76
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 106 deletions.
14 changes: 0 additions & 14 deletions src/app/(marketing)/profile/[username]/constants.ts

This file was deleted.

32 changes: 0 additions & 32 deletions src/app/(marketing)/profile/[username]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,9 @@ import { useAtom } from "jotai"
import { useEffect } from "react"
import useSWR from "swr"
import { fetcherForSWR } from "utils/fetcher"
import { CircularProgressBar } from "../_components/CircularProgressBar"
import { ContributionCard } from "../_components/ContributionCard"
import { EditContributions } from "../_components/EditContributions"
import { EditProfile } from "../_components/EditProfile"
import { LevelBadge } from "../_components/LevelBadge"
import { OperatedGuildCard } from "../_components/OperatedGuildCard"
import { ProfileSkeleton } from "../_components/ProfileSkeleton"
import { RecentActivity } from "../_components/RecentActivity"
Expand Down Expand Up @@ -68,7 +66,6 @@ const Page = ({
fetcherForSWR
)
const [profile, setProfile] = useAtom(profileAtom)
const level = 0

useEffect(() => {
setProfile(fetchedProfile)
Expand Down Expand Up @@ -109,8 +106,6 @@ const Page = ({
<Skeleton className="size-full" />
</AvatarFallback>
</Avatar>
<CircularProgressBar progress={0.1} />
<LevelBadge level={level} className="absolute right-0 bottom-0" />
</div>
<h1 className="text-center font-bold text-4xl leading-normal tracking-tight">
{profile.name}
Expand Down Expand Up @@ -140,33 +135,6 @@ const Page = ({
</div>
</div>
</div>
{/* <h2 className="mb-3 font-bold text-lg">Experience</h2>
<div className="mb-16 grid grid-cols-1 gap-3 md:grid-cols-2">
<Card className="p-6">
<div className="grid grid-cols-[auto_1fr] grid-rows-[auto_auto_auto] items-center gap-x-3 gap-y-2">
<LevelBadge
level={level}
className="row-span-3 size-14 self-start justify-self-center"
/>
<div className="flex flex-col justify-between gap-2 sm:flex-row">
<h3 className="font-bold">Champion</h3>
<p className="text-muted-foreground">1322 / 9999 XP</p>
</div>
<Progress value={77} />
<p className="text-muted-foreground">
This is a description that perfectly matches the 80 character
description limit.
</p>
</div>
</Card>
<Card className="space-y-4 p-6">
<div className="flex flex-col items-start justify-between gap-2 sm:flex-row">
<h3 className="font-bold">Engagement this month</h3>
<Badge colorScheme="blue">+72 XP</Badge>
</div>
<ActivityChart />
</Card>
</div> */}
<h2 className="mb-3 font-bold text-lg">Operated guilds</h2>
<OperatedGuildCard />
<div className="mt-8 mb-3 flex items-center justify-between">
Expand Down
10 changes: 0 additions & 10 deletions src/app/(marketing)/profile/_components/CircularProgressBar.tsx

This file was deleted.

47 changes: 0 additions & 47 deletions src/app/(marketing)/profile/_components/LevelBadge.tsx

This file was deleted.

3 changes: 0 additions & 3 deletions src/app/(marketing)/profile/_components/RecentActivity.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,6 @@ export const RecentActivity = () => {
className="hidden size-1.5 text-muted-foreground sm:block"
weight="fill"
/>
<Badge colorScheme="blue" size="sm">
+5 XP
</Badge>
</div>
</div>
</Card>
Expand Down

0 comments on commit 4d47e76

Please sign in to comment.