From f11bc02df07527035fd5c40ab809a85f71fa68f9 Mon Sep 17 00:00:00 2001 From: Kamyab Nazari Date: Fri, 26 May 2023 19:57:49 +0200 Subject: [PATCH 01/16] Adding active state to drawer items --- frontend/src/routes/+layout.svelte | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/frontend/src/routes/+layout.svelte b/frontend/src/routes/+layout.svelte index 3d075d1..b0bdd07 100644 --- a/frontend/src/routes/+layout.svelte +++ b/frontend/src/routes/+layout.svelte @@ -2,6 +2,7 @@ import '../app.css'; import Header from '$lib/components/header.svelte'; import Footer from '$lib/components/footer.svelte'; + import { page } from '$app/stores';
@@ -17,10 +18,14 @@
From 17cf239aa270808100b34f74784558b978687f53 Mon Sep 17 00:00:00 2001 From: Kamyab Nazari Date: Fri, 26 May 2023 22:37:05 +0200 Subject: [PATCH 02/16] Adding base dashboard elements layout --- .../src/lib/components/ActionCards.svelte | 18 ++++++ frontend/src/lib/components/FileTable.svelte | 63 +++++++++++++++++++ .../{header.svelte => Navbar.svelte} | 0 frontend/src/lib/components/Stats.svelte | 26 ++++++++ .../src/routes/(auth)/profile/+page.svelte | 2 +- .../src/routes/(auth)/settings/+page.svelte | 2 +- .../src/routes/(docs)/about-us/+page.svelte | 2 +- .../src/routes/(docs)/contact/+page.svelte | 2 +- .../routes/(docs)/documentation/+page.svelte | 2 +- frontend/src/routes/+layout.svelte | 8 +-- frontend/src/routes/+page.svelte | 2 +- frontend/src/routes/dashboard/+page.svelte | 34 +++++++--- 12 files changed, 144 insertions(+), 17 deletions(-) create mode 100644 frontend/src/lib/components/ActionCards.svelte create mode 100644 frontend/src/lib/components/FileTable.svelte rename frontend/src/lib/components/{header.svelte => Navbar.svelte} (100%) create mode 100644 frontend/src/lib/components/Stats.svelte diff --git a/frontend/src/lib/components/ActionCards.svelte b/frontend/src/lib/components/ActionCards.svelte new file mode 100644 index 0000000..63bc8ea --- /dev/null +++ b/frontend/src/lib/components/ActionCards.svelte @@ -0,0 +1,18 @@ +
+
+

Upload a new file

+

Add a new file, so you can it your questions!

+
+ +
+
+
+
+
+

Create your one click file

+

Tell us what you want and create your file!

+
+ +
+
+
diff --git a/frontend/src/lib/components/FileTable.svelte b/frontend/src/lib/components/FileTable.svelte new file mode 100644 index 0000000..3dc8cd5 --- /dev/null +++ b/frontend/src/lib/components/FileTable.svelte @@ -0,0 +1,63 @@ + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + NameTypeCreate Date +
+ + +
+
+ +
+
+
file-23.pdf
+
+
+
+ Uploaded
+ PDF +
13.05.2023 + +
+ NameTypeCreate Date +
+
diff --git a/frontend/src/lib/components/header.svelte b/frontend/src/lib/components/Navbar.svelte similarity index 100% rename from frontend/src/lib/components/header.svelte rename to frontend/src/lib/components/Navbar.svelte diff --git a/frontend/src/lib/components/Stats.svelte b/frontend/src/lib/components/Stats.svelte new file mode 100644 index 0000000..c773e17 --- /dev/null +++ b/frontend/src/lib/components/Stats.svelte @@ -0,0 +1,26 @@ +
+
+
Icon
+
Downloads
+
31K
+
Jan 1st - Feb 1st
+
+
+
Icon
+
New Users
+
4,200
+
↗︎ 400 (22%)
+
+
+
Icon
+
New Registers
+
1,200
+
↘︎ 90 (14%)
+
+
+
Icon
+
New Registers
+
1,200
+
↘︎ 90 (14%)
+
+
diff --git a/frontend/src/routes/(auth)/profile/+page.svelte b/frontend/src/routes/(auth)/profile/+page.svelte index 397191d..855dd9d 100644 --- a/frontend/src/routes/(auth)/profile/+page.svelte +++ b/frontend/src/routes/(auth)/profile/+page.svelte @@ -1,4 +1,4 @@ -
+
diff --git a/frontend/src/routes/(auth)/settings/+page.svelte b/frontend/src/routes/(auth)/settings/+page.svelte index 1fa35e8..beeaa00 100644 --- a/frontend/src/routes/(auth)/settings/+page.svelte +++ b/frontend/src/routes/(auth)/settings/+page.svelte @@ -1,4 +1,4 @@ -
+
diff --git a/frontend/src/routes/(docs)/about-us/+page.svelte b/frontend/src/routes/(docs)/about-us/+page.svelte index a06fe76..a968321 100644 --- a/frontend/src/routes/(docs)/about-us/+page.svelte +++ b/frontend/src/routes/(docs)/about-us/+page.svelte @@ -1,4 +1,4 @@ -
+
diff --git a/frontend/src/routes/(docs)/contact/+page.svelte b/frontend/src/routes/(docs)/contact/+page.svelte index 520a6e8..ead8ce6 100644 --- a/frontend/src/routes/(docs)/contact/+page.svelte +++ b/frontend/src/routes/(docs)/contact/+page.svelte @@ -1,4 +1,4 @@ -
+
diff --git a/frontend/src/routes/(docs)/documentation/+page.svelte b/frontend/src/routes/(docs)/documentation/+page.svelte index 24cb8f8..78a6395 100644 --- a/frontend/src/routes/(docs)/documentation/+page.svelte +++ b/frontend/src/routes/(docs)/documentation/+page.svelte @@ -1,4 +1,4 @@ -
+
diff --git a/frontend/src/routes/+layout.svelte b/frontend/src/routes/+layout.svelte index b0bdd07..bbf955f 100644 --- a/frontend/src/routes/+layout.svelte +++ b/frontend/src/routes/+layout.svelte @@ -1,7 +1,7 @@ @@ -9,7 +9,7 @@
-
+
@@ -17,7 +17,7 @@