Skip to content

Commit 01157d8

Browse files
chore: migrated profile page to tailwindcss
1 parent a87f4e9 commit 01157d8

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/components/UserProfile/UserProfile.tsx

+8-8
Original file line numberDiff line numberDiff line change
@@ -76,10 +76,10 @@ const UserProfile: React.FC = () => {
7676
}, [])
7777

7878
const desktopLayout = () => (
79-
<div className={styles.page}>
80-
<div className={styles.header}>
81-
{UserIcon}
82-
<h1>{user?.displayName}</h1>
79+
<div className="flex h-full w-full flex-col items-start justify-center gap-6 px-[4%] md:py-[2%]">
80+
<div className="flex flex-row items-center gap-4">
81+
<div className="*:w-16 *:fill-primary">{UserIcon}</div>
82+
<h1 className="text-3xl font-semibold">{user?.displayName}</h1>
8383
</div>
8484
<div className="flex flex-col gap-6 md:flex-row">
8585
<GameList />
@@ -149,10 +149,10 @@ const UserProfile: React.FC = () => {
149149
)
150150

151151
const mobileLayout = () => (
152-
<div className={styles.page}>
153-
<div className={styles.header}>
154-
{UserIcon}
155-
<h1>{user?.displayName}</h1>
152+
<div className="mt-6 flex flex-col gap-3 px-[4%]">
153+
<div className="flex flex-row items-center gap-3">
154+
<div className="*:w-12 *:fill-primary">{UserIcon}</div>
155+
<h1 className="text-3xl font-semibold">{user?.displayName}</h1>
156156
</div>
157157
<div className="flex w-full flex-col gap-6">
158158
<GameList />

0 commit comments

Comments
 (0)