aboutsummaryrefslogtreecommitdiff
path: root/apps/website/src/pages
diff options
context:
space:
mode:
authorTyler Flowers <contact@ggtylerr.dev>2024-01-03 23:38:29 -0500
committerTyler Flowers <contact@ggtylerr.dev>2024-01-03 23:38:29 -0500
commitbdee109e33e4e07b8087406edbd43647e5f85455 (patch)
tree59ce9e4d47e95afe10d8b62b6a4c0020ddef6ef3 /apps/website/src/pages
parent107c80b8491beb9d33240cd11fa2a358b3e1b2d5 (diff)
downloadNexus-bdee109e33e4e07b8087406edbd43647e5f85455.tar.gz
Nexus-bdee109e33e4e07b8087406edbd43647e5f85455.tar.bz2
Nexus-bdee109e33e4e07b8087406edbd43647e5f85455.zip
mod fetch + card design
Diffstat (limited to 'apps/website/src/pages')
-rw-r--r--apps/website/src/pages/mods.astro18
1 files changed, 12 insertions, 6 deletions
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';
+});
---
<Layout>
<Section maxWidth="1920px" wFull={true} wrapperClass="h-3/5" class="h-full mt-32 md:mt-28 flex flex-col justify-center items-center max-xl:px-0">
<div class="flex flex-col justify-center items-center max-w-full overflow-hidden">
<div class="flex flex-col justify-between items-center overflow-hidden h-auto lg:h-[280px] max-w-[1920px] relative">
- <div class="absolute -bottom-[1px] w-full h-full lg:h-1/2 z-10" style="background-image: linear-gradient(180deg, rgba(0, 0, 0, 0), rgb(240, 242, 244));" />
+ <div class="absolute -bottom-[1px] w-full h-full lg:h-1/2 z-10" style="background-image: linear-gradient(180deg, rgba(0, 0, 0, 0), rgb(240, 242, 244));"/>
<Slider wrapperClass="-mb-40 pb-4 hidden lg:block" childrenNum={8}>
<Card text="Chatting" icon="chatting"/>
<Card text="PolySprint" icon="polysprint"/>
@@ -47,14 +52,14 @@ import { Code } from 'astro:components';
</div>
<Paragraph class="text-navy-peony text-lg font-semibold max-w-screen-sm text-center mt-20">
- 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.
</Paragraph>
</div>
</Section>
<Section tabindex="0">
<div slot="left">
- <Header size="lg" class="text-navy-peony"><b>13</b> maintained mods</Header>
+ <Header size="lg" class="text-navy-peony"><b>{mods.length}</b> maintained mods</Header>
<Paragraph size="sm" class="text-gray-400 max-w-[500px]">
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.
</Paragraph>
@@ -79,7 +84,7 @@ import { Code } from 'astro:components';
<div class="max-sm:hidden">
<Code
code={
-`public class MyConfig {
+ `public class MyConfig {
@Switch(
name = "Sub Switch",
type = OptionType.SWITCH
@@ -93,8 +98,9 @@ public MyConfig() {
});
}
}`
-}
- lang="java"/>
+ }
+ lang="java"
+ />
</div>
</div>