From bdee109e33e4e07b8087406edbd43647e5f85455 Mon Sep 17 00:00:00 2001 From: Tyler Flowers Date: Wed, 3 Jan 2024 23:38:29 -0500 Subject: mod fetch + card design --- apps/website/src/pages/mods.astro | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) (limited to 'apps/website/src/pages') diff --git a/apps/website/src/pages/mods.astro b/apps/website/src/pages/mods.astro index 55a6cdf..cf231d5 100644 --- a/apps/website/src/pages/mods.astro +++ b/apps/website/src/pages/mods.astro @@ -9,13 +9,18 @@ import configConst from '@config'; import Layout from '@layouts/Layout.astro'; import { Code } from 'astro:components'; +const res = await fetch('https://api.modrinth.com/v2/user/Wyvest/projects'); +const data = await res.json(); +const mods = data.filter((mod: any) => { + return mod.slug !== 'oneconfig'; +}); ---
-
+
@@ -47,14 +52,14 @@ import { Code } from 'astro:components';
- 10+ mods. Unparalleled new features. OneConfig. We combine our groundbreaking library with mods with no equivalent anywhere else. + {Math.floor(mods.length / 5) * 5}+ mods. Unparalleled new features. OneConfig. We combine our groundbreaking library with mods with no equivalent anywhere else.
-
13 maintained mods
+
{mods.length} maintained mods
OneConfig is a revolutionary new way to configure mods. It allows you to configure all of your mods in one place, with a beautiful UI. @@ -79,7 +84,7 @@ import { Code } from 'astro:components';
+ } + lang="java" + />
-- cgit