Skip to content

Commit

Permalink
Design: 리스트 타입 버튼 눌렀을때 디자인 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
ParkSohyunee committed Feb 7, 2024
1 parent e953e51 commit 7dcefa7
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 6 deletions.
3 changes: 3 additions & 0 deletions public/icons/blue_line.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 7 additions & 4 deletions src/app/user/[userId]/_components/Content.css.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ export const options = style({
});

export const link = style({
// position: 'relative',
flexGrow: '1',
textDecoration: 'none',
});
Expand Down Expand Up @@ -51,10 +52,12 @@ export const rightButton = style([
},
]);

export const variant = style({
borderBottom: '1px solid #0047FF',
});

export const cards = style({
padding: '2.1rem',
});

export const leftButtonLine = style({
position: 'relative',
bottom: '6px',
left: '47%',
});
6 changes: 4 additions & 2 deletions src/app/user/[userId]/_components/Content.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import { useQuery } from '@tanstack/react-query';
import { MasonryGrid } from '@egjs/react-grid';

import * as styles from './Content.css';
import BlueLineIcon from '/public/icons/blue_line.svg';

import Card from './Card';
import Categories from './Categories';
Expand Down Expand Up @@ -62,10 +63,11 @@ export default function Content({ userId, type }: ContentProps) {
<div className={styles.container}>
<div className={styles.options}>
<Link href={`/user/${userData?.id}/mylist`} className={styles.link}>
<button className={`${styles.leftButton} ${type === 'my' ? styles.variant : ''}`}>마이 리스트</button>
<button className={styles.leftButton}>마이 리스트</button>
{type === 'my' && <BlueLineIcon className={styles.leftButtonLine} />}
</Link>
<Link href={`/user/${userData?.id}/collabolist`} className={styles.link}>
<button className={`${styles.rightButton} ${type === 'collabo' ? styles.variant : ''}`}>콜라보 리스트</button>
<button className={styles.rightButton}>콜라보 리스트</button>
</Link>
</div>
<Categories handleFetchListsOnCategory={handleFetchListsOnCategory} />
Expand Down

0 comments on commit 7dcefa7

Please sign in to comment.