Skip to content

Commit

Permalink
Merge pull request #831 from 42organization/GGFE-70-Style-profile-cur…
Browse files Browse the repository at this point in the history
…rentplay

[GGFE-70]Style profile currentplay
  • Loading branch information
42sungwook authored Jun 19, 2023
2 parents 17a4663 + 129af8b commit 08aa595
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 28 deletions.
18 changes: 7 additions & 11 deletions pages/users/detail.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import Link from 'next/link';
import { useRouter } from 'next/router';
import BasicProfile from 'components/user/BasicProfile';
import GameResult from 'components/game/GameResult';
import RankProfile from 'components/user/RankProfile';
import styles from 'styles/user/user.module.scss';
import Section from 'components/main/Section';

export default function User() {
const router = useRouter();
Expand All @@ -15,16 +15,12 @@ export default function User() {
<div key={intraId}>
<BasicProfile profileId={intraId} />
<RankProfile profileId={intraId} />
<Link
href={{
pathname: '/game',
query: { intraId: intraId },
}}
>
<h2 id={styles.mine} className={styles.subtitle}>
recent record ▶️
</h2>
</Link>
<div>
<Section
path={`game?intraId=${intraId}`}
sectionTitle={'Recent Record'}
/>
</div>
<GameResult />
</div>
)}
Expand Down
20 changes: 20 additions & 0 deletions stories/profile/profilepage.stories.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import type { Meta, StoryObj } from '@storybook/react';
import User from 'pages/users/detail';

const meta: Meta<typeof User> = {
title: 'profile/Userprofile',
component: User,
tags: ['autodocs'],
args: {
intraId: String,
},
};

export default meta;
type Story = StoryObj<typeof User>;

export const Default: Story = {
args: {
intraId: 'sangmipa',
},
};
17 changes: 0 additions & 17 deletions styles/user/user.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,3 @@
.container {
@include pageWrap;
}

.title {
@include pageTitle;
}

.subtitle {
width: fit-content;
margin: 1rem auto 0.5rem auto;
color: white;
font-family: $title-font;
font-size: $giant-font;
letter-spacing: 0.1rem;
}

#mine {
cursor: pointer;
}

0 comments on commit 08aa595

Please sign in to comment.