aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--apps/website/config.ts19
-rw-r--r--apps/website/src/components/base/navbar/NavbarElement.astro2
-rw-r--r--apps/website/src/pages/index.astro16
-rw-r--r--apps/website/src/types/Config.d.ts5
4 files changed, 19 insertions, 23 deletions
diff --git a/apps/website/config.ts b/apps/website/config.ts
index eaffaf3..1d1daef 100644
--- a/apps/website/config.ts
+++ b/apps/website/config.ts
@@ -28,7 +28,9 @@ export const configConst = {
{
text: 'Projects',
dropdown: getProjects().map((project) => {
- (project as any).path = `/projects/${project.name.toLowerCase()}`;
+ if (project.hasPage)
+ (project as any).path = `/projects/${project.name.toLowerCase()}`;
+
return project;
}) as unknown as NavbarDropdown[],
},
@@ -41,16 +43,10 @@ export const configConst = {
footer: [
{
header: 'Products',
- links: [
- {
- text: 'OneConfig',
- url: '/projects/oneconfig',
- },
- {
- text: 'OneLauncher',
- url: '/projects/onelauncher',
- },
- ],
+ links: getProjects().filter(project => project.hasPage === true).map(project => ({
+ text: project.name,
+ url: `/projects/${project.name.toLowerCase()}`,
+ })),
},
{
header: 'Organization',
@@ -100,6 +96,7 @@ function getProjects(): Project[] {
description: 'The next-generation config library for Forge and Fabric',
logo: 'oneconfig.minimal',
tag: 'BETA',
+ hasPage: true,
},
{
name: 'OneLauncher',
diff --git a/apps/website/src/components/base/navbar/NavbarElement.astro b/apps/website/src/components/base/navbar/NavbarElement.astro
index 3033bf1..c2c76b3 100644
--- a/apps/website/src/components/base/navbar/NavbarElement.astro
+++ b/apps/website/src/components/base/navbar/NavbarElement.astro
@@ -35,7 +35,7 @@ function isCurrentPage(url: string): boolean {
: (
<label for={`navbar-input-${index}`} class="group">
{element.dropdown && (
- <p class={`p-2 flex flex-row justify-center items-center hover:text-blue-500 cursor-default ${isCurrentPage(element.dropdown[0].path) ? 'text-blue-400' : 'text-gray-700'}`}>
+ <p class={`p-2 flex flex-row justify-center items-center hover:text-blue-500 cursor-default ${isCurrentPage(element.dropdown[0].path ?? '') ? 'text-blue-400' : 'text-gray-700'}`}>
{element.text && element.text}
{element.logo && <Logo size={element.logo[1] < 0 ? undefined : element.logo[1]} logo={element.logo[0] as LogoType}/>}
{element.dropdown && <Icon icon="chevron-down"/>}
diff --git a/apps/website/src/pages/index.astro b/apps/website/src/pages/index.astro
index 72e7af4..200867d 100644
--- a/apps/website/src/pages/index.astro
+++ b/apps/website/src/pages/index.astro
@@ -100,20 +100,18 @@ import Layout from '@layouts/Layout.astro';
</Section>
<Section wFull maxWidth="1024px" wrapperClass="bg-blue-100 mb-40" class="-mt-20 flex flex-col">
- <div class="relative isolate overflow-hidden pt-24 mt-10">
- <div class="mx-auto max-w-7xl md:px-6 lg:px-8">
- <div class="mx-auto max-w-2xl lg:mx-0">
- <Header class="text-5xl font-bold tracking-tight text-navy-peony mt-8">Who we are</Header>
- <Paragraph class="mt-3 text-md leading-8 text-navy-peony">
- We're a group of passionate, self-driven designers, developers, and modders creating mods and libraries for the Minecraft community.
- </Paragraph>
- </div>
+ <div class="relative isolate overflow-hidden pt-24 mt-10 lg:-ml-10">
+ <div class="mx-auto max-w-7xl">
+ <Header class="text-5xl font-bold tracking-tight text-navy-peony mt-8">Who we are</Header>
+ <Paragraph class="mt-3 text-md leading-8 text-navy-peony">
+ We're a group of passionate, self-driven designers, developers, and modders creating mods and libraries for the Minecraft community.
+ </Paragraph>
<div class="mt-3 flex flex-row gap-y-6 gap-x-8 text-base font-semibold leading-7 text-gray-600 lg:gap-x-10">
<Button style="secondary" size="sm" iconLeft="link-external">Meet the team</Button>
</div>
</div>
</div>
- <div class="flex justify-start md:justify-end mb-20">
+ <div class="flex justify-start md:justify-end mb-20 lg:-mr-10">
<div class="flex flex-col">
<Header class="text-5xl font-bold tracking-tight text-navy-peony mt-8">
Our commitment
diff --git a/apps/website/src/types/Config.d.ts b/apps/website/src/types/Config.d.ts
index d4f8a7b..87f9b58 100644
--- a/apps/website/src/types/Config.d.ts
+++ b/apps/website/src/types/Config.d.ts
@@ -15,14 +15,15 @@ export interface Project {
tag?: string
downloads?: ProjectDownload[]
descriptionLong?: string,
+ hasPage?: boolean,
}
export interface NavbarDropdown {
name: string
description: string
- path: string
+ path?: string
logo?: LogoType
- tag?: string
+ tag?: string,
}
export interface NavbarElement {