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/components/base/Card.astro | 6 +++--- apps/website/src/pages/mods.astro | 18 ++++++++++++------ apps/website/tailwind.config.ts | 2 ++ 3 files changed, 17 insertions(+), 9 deletions(-) diff --git a/apps/website/src/components/base/Card.astro b/apps/website/src/components/base/Card.astro index 2eea908..6438273 100644 --- a/apps/website/src/components/base/Card.astro +++ b/apps/website/src/components/base/Card.astro @@ -16,7 +16,7 @@ const { --- -
- -

{text}

+
+ +

{text}

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" + />
diff --git a/apps/website/tailwind.config.ts b/apps/website/tailwind.config.ts index 355dc5a..8a37a65 100644 --- a/apps/website/tailwind.config.ts +++ b/apps/website/tailwind.config.ts @@ -46,6 +46,8 @@ const config: Config = { 'navy-peony': 'rgba(32, 55, 91, 1)', 'blue-gray': 'rgba(119, 143, 183, 1)', 'primary': { + 100: 'rgba(23, 28, 33, 1)', + 200: 'rgba(50, 74, 245, 1)', 600: 'rgba(20, 82, 204, 1)', }, }, -- cgit