-
Notifications
You must be signed in to change notification settings - Fork 1
[feat] dashboard restore #122
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weโll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 12 commits
ea0aa1f
60f32c1
65b70dc
e2d3ebe
3204c43
ffbac8e
d022a53
f7c9ebd
48c7145
b5991c5
5e5ac62
1c29b9c
aa91e1a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -14,7 +14,9 @@ | |
| } | ||
|
|
||
| .container { | ||
| max-height: 580px; | ||
| min-width: 330px; | ||
| overflow-y: auto; | ||
|
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ์ด๋ ๊ฒํ๋๊น ๋๊ธ์ชฝ overflow๋ ๊ฒน์ณ์ ๋ญ๊ฐ ๋ด๋ง๋๋ก ์๋๊ธดํ๋ฐ ์ผ๋จ ์ด๋ฌ์ผ ๋์ด์.. |
||
| display: flex; | ||
| flex-direction: column; | ||
| align-items: flex-start; | ||
|
|
@@ -98,6 +100,7 @@ | |
| @media screen and (min-width: 768px) { | ||
| .container { | ||
| min-width: 580px; | ||
| max-height: 850px; | ||
| padding: 32px; | ||
| } | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -8,4 +8,5 @@ | |
| display: flex; | ||
| gap: 6px; | ||
| padding: 4px 10px; | ||
| white-space: nowrap; | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -8,6 +8,34 @@ | |
| background-color: var(--gray-300); | ||
| } | ||
|
|
||
| .userIcon::before { | ||
| content: ''; | ||
| position: absolute; | ||
| top: 0; | ||
| left: -100%; | ||
| width: 50%; | ||
| height: 100%; | ||
| background: linear-gradient( | ||
| 90deg, | ||
| rgba(255, 255, 255, 0.2) 0%, | ||
| rgba(255, 255, 255, 0.6) 50%, | ||
| rgba(255, 255, 255, 0.2) 100% | ||
| ); | ||
| animation: shine 1.5s infinite; | ||
|
Owner
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. โ |
||
| } | ||
|
|
||
| @keyframes shine { | ||
| 0% { | ||
| left: -100%; | ||
| } | ||
| 50% { | ||
| left: 100%; | ||
| } | ||
| 100% { | ||
| left: -100%; | ||
| } | ||
| } | ||
|
|
||
| @media screen and (min-width: 768px) { | ||
| .userInfo { | ||
| display: flex; | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -6,13 +6,22 @@ import Button from '../Button'; | |
| import useDashboards from '@/app/(with-header-sidebar)/mydashboard/_hooks/useDashboards'; | ||
| import useDashboardStore from '@/store/dashboardStore'; | ||
| import styles from './Dashboards.module.css'; | ||
| import { useEffect } from 'react'; | ||
| import useDashboardTriggerStore from '@/store/dashboardTriggerStore'; | ||
|
|
||
| const PAGE_SIZE = 12; | ||
|
|
||
| export default function Dashboards() { | ||
| const { page, dashboards, totalPages, handlePageChange } = useDashboards({ | ||
| pageSize: PAGE_SIZE, | ||
| }); | ||
| const { trigger } = useDashboardTriggerStore(); | ||
|
|
||
| const { page, dashboards, totalPages, handlePageChange, refetch } = | ||
| useDashboards({ | ||
| pageSize: PAGE_SIZE, | ||
| }); | ||
|
|
||
| useEffect(() => { | ||
| refetch(); | ||
|
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ์ด๊ฑด useDashboards์์ ๊ฐ์ ธ๋ค์ฐ๋ useApi๊ฐ ๊ตฌ์กฐ์ ์ผ๋ก ๋ฌธ์ ?๊ฐ์์ด์ (useApi ๋ถ๋ฌ์ค๋ฉด ๋ฐ๋กapi๋ฅผ ๋จผ์ ์จ) |
||
| }, [trigger]); | ||
|
|
||
| if (dashboards.length === 0) { | ||
| return null; | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
๋ด๋น์์์๋ ์์ ๋๋ฅด๋ฉด ์๋ฌ๋์ ์ถ๊ฐํ์ด๋ค