From da139e88e7fe9f75b7223112a084de47044ac9c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9o?= <43091603+glazk0@users.noreply.github.com> Date: Sun, 12 Feb 2023 19:09:03 +0100 Subject: [PATCH] Update card & dashboard --- .vscode/settings.json | 2 +- app/dashboard/layout.tsx | 2 +- app/dashboard/page.tsx | 45 +++---- app/dashboard/puzzles/page.tsx | 1 - ui/Card.tsx | 20 ++- ui/CardTable.tsx | 214 ++++++++++++++++++++------------- ui/dashboard/Usernav.tsx | 2 +- 7 files changed, 163 insertions(+), 123 deletions(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index 58ff454..0e16096 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,4 +1,4 @@ { - "typescript.tsdk": "node_modules\\.pnpm\\typescript@4.9.5\\node_modules\\typescript\\lib", + "typescript.tsdk": "node_modules/.pnpm/typescript@4.9.5/node_modules/typescript/lib", "typescript.enablePromptUseWorkspaceTsdk": true } \ No newline at end of file diff --git a/app/dashboard/layout.tsx b/app/dashboard/layout.tsx index d132f03..7dd6000 100644 --- a/app/dashboard/layout.tsx +++ b/app/dashboard/layout.tsx @@ -4,7 +4,7 @@ import Wrapper from '@/ui/dashboard/Wrapper'; export default function Layout({ children }: { children: ReactNode }) { return ( -
+
{children}
); diff --git a/app/dashboard/page.tsx b/app/dashboard/page.tsx index 24c87de..1a82c6f 100644 --- a/app/dashboard/page.tsx +++ b/app/dashboard/page.tsx @@ -3,34 +3,29 @@ import CardTable from '@/ui/CardTable'; export default function Page() { return ( -
-
-

Statistique

-
- - - +
+
+
+

Bienvenue!

+

Ceci est la page d'accueil du dashboard

-
-
-

Guide

-
-
-
-
-

Bold data

-

Simple data

-
-
-
-
-
-
-

Dernières activités

-
+
+ + + +
+ +
+
+
-
+ +
+
+ +
+
diff --git a/app/dashboard/puzzles/page.tsx b/app/dashboard/puzzles/page.tsx index ac633e1..c27bfda 100644 --- a/app/dashboard/puzzles/page.tsx +++ b/app/dashboard/puzzles/page.tsx @@ -1,5 +1,4 @@ import Puzzles from '@/ui/Puzzles'; -import SWRFallback from '@/ui/SWRFallback'; export default async function Page() { // const puzzles = await getPuzzles(); diff --git a/ui/Card.tsx b/ui/Card.tsx index 9be6e5c..6a95ad7 100644 --- a/ui/Card.tsx +++ b/ui/Card.tsx @@ -1,12 +1,8 @@ -export default function Card() { - return ( -
-
-
-

Bold data

-

Simple data

-
-
-
- ); - } \ No newline at end of file +export default function Card({ title = 'Title', data = 'Data' }) { + return ( +
+

{title}

+

{data}

+
+ ); +} diff --git a/ui/CardTable.tsx b/ui/CardTable.tsx index 81194cf..9de85b7 100644 --- a/ui/CardTable.tsx +++ b/ui/CardTable.tsx @@ -1,8 +1,10 @@ +import AppLink from './AppLink'; + export default function CardTable() { return ( -
- - +
+
+ - - + - - + - + - - + - + - - + - + - - + - + - - + - + - - + - + - - + - + - - + - + - - + - + + + + + + + + + + + + + + + + + + + + + + diff --git a/ui/dashboard/Usernav.tsx b/ui/dashboard/Usernav.tsx index 6a245ea..b38ae02 100644 --- a/ui/dashboard/Usernav.tsx +++ b/ui/dashboard/Usernav.tsx @@ -16,7 +16,7 @@ export default function Usernav({ isOpen, toggle }: { isOpen: boolean; toggle: ( }; return ( -
+
Exercice @@ -22,164 +24,212 @@ export default function CardTable() {
+
Exercice 1 30 300 10/10/2010 - + Reprendre - +
+
Exercice 1 4030 300 10/10/2010 - + Reprendre - +
+
Exercice 1 6030 300 10/10/2010 - + Reprendre - +
+
Exercice 1 6030 300 10/10/2010 - + Reprendre - +
+
Exercice 1 6030 300 10/10/2010 - + Reprendre - +
+
Exercice 1 6030 300 10/10/2010 - + Reprendre - +
+
Exercice 1 6030 300 10/10/2010 - + Reprendre - +
+
Exercice 1 6030 300 10/10/2010 - + Reprendre - +
+
Exercice 1 6030 300 10/10/2010 - + Reprendre - +
+
Exercice 1 6030 300 10/10/2010 - + Reprendre - + +
+ Exercice 1 + 3030010/10/2010 + + Reprendre + +
+ Exercice 1 + 3030010/10/2010 + + Reprendre + +
+ Exercice 1 + 3030010/10/2010 + + Reprendre +