diff --git a/package-lock.json b/package-lock.json
index 428a14d..2e78dd8 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -12,6 +12,7 @@
"@vercel/analytics": "^1.2.2",
"@vercel/speed-insights": "^1.0.10",
"drizzle-orm": "^0.30.6",
+ "iconify-icon": "^2.1.0",
"oslo": "^1.2.0",
"postgres": "^3.4.4"
},
@@ -877,6 +878,11 @@
"zod": "^3.19.1"
}
},
+ "node_modules/@iconify/types": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/@iconify/types/-/types-2.0.0.tgz",
+ "integrity": "sha512-+wluvCrRhXrhyOmRDJ3q8mux9JkKy5SJ/v8ol2tu4FVjyYvtEzkc/3pK15ET6RKg4b4w4BmTk1+gsCUhf21Ykg=="
+ },
"node_modules/@isaacs/cliui": {
"version": "8.0.2",
"resolved": "https://registry.npmjs.org/@isaacs/cliui/-/cliui-8.0.2.tgz",
@@ -4460,6 +4466,17 @@
"node": ">= 6"
}
},
+ "node_modules/iconify-icon": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/iconify-icon/-/iconify-icon-2.1.0.tgz",
+ "integrity": "sha512-lto4XU3bwTQnb+D/CsJ4dWAo0aDe+uPMxEtxyOodw9l7R9QnJUUab3GCehlw2M8mDHdeUu/ufx8PvRQiJphhXg==",
+ "dependencies": {
+ "@iconify/types": "^2.0.0"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/cyberalien"
+ }
+ },
"node_modules/import-fresh": {
"version": "3.3.0",
"resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.0.tgz",
diff --git a/package.json b/package.json
index 96ef5db..c0ff76f 100644
--- a/package.json
+++ b/package.json
@@ -42,6 +42,7 @@
"@vercel/analytics": "^1.2.2",
"@vercel/speed-insights": "^1.0.10",
"drizzle-orm": "^0.30.6",
+ "iconify-icon": "^2.1.0",
"oslo": "^1.2.0",
"postgres": "^3.4.4"
}
diff --git a/src/lib/components/AdventureCard.svelte b/src/lib/components/AdventureCard.svelte
index 357635d..79684f2 100644
--- a/src/lib/components/AdventureCard.svelte
+++ b/src/lib/components/AdventureCard.svelte
@@ -45,22 +45,16 @@
{name}
{#if location !== ""}
-
-
{location}
-
+
{/if}
{#if created !== ""}
-
-
{created}
-
+
{/if}
@@ -77,13 +71,10 @@
{name}
{#if location != ""}
-
-
{location}
-
+
{/if}
@@ -99,22 +90,16 @@
{name}
{#if location !== ""}
-
-
{location}
-
+
{/if}
{#if created !== ""}
-
-
{created}
-
+
{/if}
diff --git a/src/lib/components/Navbar.svelte b/src/lib/components/Navbar.svelte
index 386413f..48997b2 100644
--- a/src/lib/components/Navbar.svelte
+++ b/src/lib/components/Navbar.svelte
@@ -104,21 +104,55 @@
Adventures: {count}
{/if}
-
+
diff --git a/src/lib/components/UserAvatar.svelte b/src/lib/components/UserAvatar.svelte
index 0af9f6c..b6db2cf 100644
--- a/src/lib/components/UserAvatar.svelte
+++ b/src/lib/components/UserAvatar.svelte
@@ -29,7 +29,7 @@
diff --git a/src/routes/+layout.svelte b/src/routes/+layout.svelte
index 839675f..67b0334 100644
--- a/src/routes/+layout.svelte
+++ b/src/routes/+layout.svelte
@@ -9,6 +9,7 @@
import { page } from "$app/stores";
import { inject } from "@vercel/analytics";
import { injectSpeedInsights } from "@vercel/speed-insights/sveltekit";
+ import "iconify-icon";
if (data.usingVercel === "true") {
inject();
diff --git a/src/routes/+page.server.ts b/src/routes/+page.server.ts
index e007790..13be4aa 100644
--- a/src/routes/+page.server.ts
+++ b/src/routes/+page.server.ts
@@ -3,7 +3,9 @@ import { fail, redirect } from "@sveltejs/kit";
import type { Actions, PageServerLoad } from "./$types";
-export const load: PageServerLoad = async (event: { locals: { user: any; }; }) => {
+export const load: PageServerLoad = async (event: {
+ locals: { user: any };
+}) => {
if (event.locals.user)
return {
user: event.locals.user,
@@ -28,10 +30,15 @@ export const actions: Actions = {
});
return redirect(302, "/login");
},
- setTheme: async ( { url, cookies }) => {
+ setTheme: async ({ url, cookies }) => {
const theme = url.searchParams.get("theme");
// change the theme only if it is one of the allowed themes
- if (theme && ["light", "dark", "night", "retro", "forest", "nord"].includes(theme)) {
+ if (
+ theme &&
+ ["light", "dark", "night", "retro", "forest", "aqua", "forest"].includes(
+ theme
+ )
+ ) {
cookies.set("colortheme", theme, {
path: "/",
maxAge: 60 * 60 * 24 * 365,
diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte
index 22a9617..673d702 100644
--- a/src/routes/+page.svelte
+++ b/src/routes/+page.svelte
@@ -22,7 +22,7 @@
{/if}
-
+
diff --git a/src/routes/featured/+page.svelte b/src/routes/featured/+page.svelte
index f16c409..fe453ff 100644
--- a/src/routes/featured/+page.svelte
+++ b/src/routes/featured/+page.svelte
@@ -1,6 +1,5 @@