diff --git a/components/DashboardItem.tsx b/components/DashboardItem.tsx
new file mode 100644
index 0000000..38d6c16
--- /dev/null
+++ b/components/DashboardItem.tsx
@@ -0,0 +1,29 @@
+import { IconProp } from "@fortawesome/fontawesome-svg-core";
+import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
+
+type Props = {
+ name: string;
+ value: number;
+ icon: IconProp;
+};
+
+export default function dashboardItem({ name, value, icon }: Props) {
+ return (
+
+
+ Linkwarden {LINKWARDEN_VERSION}
+
{children}
diff --git a/package.json b/package.json
index 5f53bc2..a77e211 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "linkwarden",
- "version": "1.0.0",
+ "version": "2.1.0",
"main": "index.js",
"repository": "https://github.com/Daniel31x13/link-warden.git",
"author": "Daniel31X13
",
diff --git a/pages/collections/index.tsx b/pages/collections/index.tsx
index a06ad6c..32459c6 100644
--- a/pages/collections/index.tsx
+++ b/pages/collections/index.tsx
@@ -44,7 +44,7 @@ export default function Collections() {
Your Collections
-
+
Collections you own
@@ -150,7 +150,7 @@ export default function Collections() {
Other Collections
-
+
Shared collections you're a member of
diff --git a/pages/dashboard.tsx b/pages/dashboard.tsx
index 8729cc8..67823c0 100644
--- a/pages/dashboard.tsx
+++ b/pages/dashboard.tsx
@@ -5,6 +5,9 @@ import {
faChevronRight,
faClockRotateLeft,
faFileImport,
+ faFolder,
+ faHashtag,
+ faLink,
faThumbTack,
} from "@fortawesome/free-solid-svg-icons";
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
@@ -22,6 +25,7 @@ import useModalStore from "@/store/modals";
import { toast } from "react-hot-toast";
import { MigrationFormat, MigrationRequest } from "@/types/global";
import ClickAwayHandler from "@/components/ClickAwayHandler";
+import DashboardItem from "@/components/DashboardItem";
export default function Dashboard() {
const { collections } = useCollectionStore();
@@ -118,44 +122,47 @@ export default function Dashboard() {
return (
-
-
-
-
+
+
+
+
Dashboard
+
+
+ A brief overview of your data
+
-
-
-
- {numberOfLinks}
-
-
- {numberOfLinks === 1 ? "Link" : "Links"}
-
-
+
+
+
-
-
- {collections.length}
-
-
- {collections.length === 1 ? "Collection" : "Collections"}
-
-
+
+
-
-
- {tags.length}
-
-
- {tags.length === 1 ? "Tag" : "Tags"}
-
+
+
+
+
+
+
diff --git a/pages/links/index.tsx b/pages/links/index.tsx
index 3fd46a1..5e57345 100644
--- a/pages/links/index.tsx
+++ b/pages/links/index.tsx
@@ -31,7 +31,7 @@ export default function Links() {
All Links
-
+
Links from every Collections
diff --git a/styles/globals.css b/styles/globals.css
index 82b1178..5769211 100644
--- a/styles/globals.css
+++ b/styles/globals.css
@@ -176,10 +176,6 @@ body {
padding: 0;
}
-.sky-shadow {
- box-shadow: 0px 0px 3px #0ea5e9;
-}
-
.primary-btn-gradient {
box-shadow: inset 0px -10px 10px #0071b7;
}