aboutsummaryrefslogtreecommitdiff
path: root/apps/website/src/pages
diff options
context:
space:
mode:
authorPauline <git@ethanlibs.co>2023-12-20 01:58:22 -0500
committerPauline <git@ethanlibs.co>2023-12-20 01:58:22 -0500
commit8e85be96a154b371b4cf1fb1924155d96150f949 (patch)
tree22edab0f259bbdba76d1c8fb790ff2c6cf65db60 /apps/website/src/pages
parent64537e64852193cb735ee4853c0f8d07a5222030 (diff)
downloadNexus-8e85be96a154b371b4cf1fb1924155d96150f949.tar.gz
Nexus-8e85be96a154b371b4cf1fb1924155d96150f949.tar.bz2
Nexus-8e85be96a154b371b4cf1fb1924155d96150f949.zip
chore(lint): bump deps and fix linting/format
Diffstat (limited to 'apps/website/src/pages')
-rw-r--r--apps/website/src/pages/blog/[...slug].astro4
-rw-r--r--apps/website/src/pages/blog/index.astro12
-rw-r--r--apps/website/src/pages/index.astro2
-rw-r--r--apps/website/src/pages/projects/oneconfig.astro44
4 files changed, 31 insertions, 31 deletions
diff --git a/apps/website/src/pages/blog/[...slug].astro b/apps/website/src/pages/blog/[...slug].astro
index d9995e7..abdde0a 100644
--- a/apps/website/src/pages/blog/[...slug].astro
+++ b/apps/website/src/pages/blog/[...slug].astro
@@ -19,7 +19,5 @@ const { Content } = await post.render();
---
<BlogPost {...post.data}>
- <Content />
+ <Content/>
</BlogPost>
-
-
diff --git a/apps/website/src/pages/blog/index.astro b/apps/website/src/pages/blog/index.astro
index c8f8203..4bccad4 100644
--- a/apps/website/src/pages/blog/index.astro
+++ b/apps/website/src/pages/blog/index.astro
@@ -1,25 +1,25 @@
---
/// <reference types="../../env.d.ts" />
-import Layout from '../../layouts/Layout.astro';
-import FormattedDate from '../../components/base/FormattedDate.astro'
import { getCollection } from 'astro:content';
+import FormattedDate from '../../components/base/FormattedDate.astro';
+import Layout from '../../layouts/Layout.astro';
const posts = (await getCollection('blog')).sort(
- (a, b) => a.data.pubDate.valueOf() - b.data.pubDate.valueOf()
+ (a, b) => a.data.pubDate.valueOf() - b.data.pubDate.valueOf(),
);
---
-<Layout title='Polyfrost Blog' description='Recieve Polyfrost updates here'>
+<Layout title="Polyfrost Blog" description="Recieve Polyfrost updates here">
<section>
<ul>
{
posts.map(post => (
<li>
<a href={`blog/${post.slug}/`}>
- <img width={720} height={360} src={post.data.heroImage} alt="" />
+ <img width={720} height={360} src={post.data.heroImage} alt=""/>
<h4 class="title">{post.data.title}</h4>
<p class="date">
- <FormattedDate date={post.data.pubDate} />
+ <FormattedDate date={post.data.pubDate}/>
</p>
</a>
</li>
diff --git a/apps/website/src/pages/index.astro b/apps/website/src/pages/index.astro
index 6f88bf5..ccc6852 100644
--- a/apps/website/src/pages/index.astro
+++ b/apps/website/src/pages/index.astro
@@ -1,6 +1,6 @@
---
-import Layout from "@layouts/Layout.astro";
import Section from '@components/base/Section.astro';
+import Layout from '@layouts/Layout.astro';
---
<Layout>
<Section class="flex-col justify-center items-center h-screen md:h-4/5 md:min-h-[600px]">
diff --git a/apps/website/src/pages/projects/oneconfig.astro b/apps/website/src/pages/projects/oneconfig.astro
index 7badc11..e9728a1 100644
--- a/apps/website/src/pages/projects/oneconfig.astro
+++ b/apps/website/src/pages/projects/oneconfig.astro
@@ -1,27 +1,27 @@
---
+import Button from '@components/base/Button.astro';
+import Card from '@components/base/Card.astro';
import Header from '@components/base/Header.astro';
-import Logo from '@components/logos/Logo.astro';
+import Paragraph from '@components/base/Paragraph.astro';
import Section from '@components/base/Section.astro';
-import Button from '@components/base/Button.astro';
+import Slider from '@components/base/Slider.astro';
+import Logo from '@components/logos/Logo.astro';
-import Paragraph from '@components/base/Paragraph.astro';
import Layout from '@layouts/Layout.astro';
import { Code } from 'astro:components';
-import Slider from '@components/base/Slider.astro';
-import Card from '@components/base/Card.astro';
---
<Layout>
<Section class="flex-col justify-center items-center h-screen md:h-4/5 md:min-h-[600px]">
- <Logo size={56} logo="oneconfig.minimal" />
+ <Logo size={56} logo="oneconfig.minimal"/>
<Header align="center" size="xxl" class="max-w-[600px]">
Meet <b>OneConfig</b>, the library designed for <b>everyone</b>.
</Header>
<div class="flex flex-row justify-center items-center gap-2">
- <Button href="/projects/oneconfig/download" iconLeft="download" text="Download" />
- <Button href="https://docs.polyfrost.org" iconLeft="book-open" style="secondary" text="Documentation" />
+ <Button href="/projects/oneconfig/download" iconLeft="download" text="Download"/>
+ <Button href="https://docs.polyfrost.org" iconLeft="book-open" style="secondary" text="Documentation"/>
</div>
</Section>
@@ -33,13 +33,13 @@ import Card from '@components/base/Card.astro';
</div>
<div slot="right" class="w-3/4 md:w-auto">
<!-- TODO: make proper file names and alt text -->
- <img src="/media/oneconfig/page_media_1.svg" alt="stuff" />
+ <img src="/media/oneconfig/page_media_1.svg" alt="stuff"/>
</div>
</Section>
<Section tabindex="0" colReverse={false}>
<div slot="left" class="w-1/2 md:w-auto">
- <img src="/media/oneconfig/page_media_2.svg" alt="stuff" />
+ <img src="/media/oneconfig/page_media_2.svg" alt="stuff"/>
</div>
<div slot="right">
@@ -55,13 +55,14 @@ import Card from '@components/base/Card.astro';
</div>
<div slot="right" class="w-3/4 md:w-auto">
- <img src="/media/oneconfig/page_media_3.svg" alt="stuff" />
+ <img src="/media/oneconfig/page_media_3.svg" alt="stuff"/>
</div>
</Section>
<Section maxWidth="1120px" wrapperClass="bg-blue-100 -mb-40" wFull={false} class="md:py-20 gap-4 pr-2">
- <div slot="left" class='pr-2'>
- <Code code={`public class MyConfig {
+ <div slot="left" class="pr-2">
+ <Code
+ code={`public class MyConfig {
@Switch(
name = "Sub Switch",
type = OptionType.SWITCH
@@ -74,7 +75,8 @@ import Card from '@components/base/Card.astro';
// Do stuff here
});
}
-}`} lang={'java'}/>
+}`}
+ lang="java"/>
</div>
<div slot="right" class="flex flex-col gap-2">
@@ -83,7 +85,7 @@ import Card from '@components/base/Card.astro';
With our simple APIs and documentation, it's easier than ever to integrate your mods with OneConfig.
</Paragraph>
<div class="flex">
- <Button href="https://docs.polyfrost.org" iconLeft="book-open" style="secondary" text="Documentation" />
+ <Button href="https://docs.polyfrost.org" iconLeft="book-open" style="secondary" text="Documentation"/>
</div>
</div>
</Section>
@@ -95,17 +97,17 @@ import Card from '@components/base/Card.astro';
We take pride in having the cleanest and most intuitive UI of any mod, config library, or client out there.
</Paragraph>
<div class="flex">
- <Button href="/projects/oneconfig/download" iconLeft="download" style="secondary" text="Download" />
+ <Button href="/projects/oneconfig/download" iconLeft="download" style="secondary" text="Download"/>
</div>
</div>
<div slot="right">
<!-- TODO: figure out non-arbitrary values -->
- <img src="/media/oneconfig/page_media_4.png" class="h-[285px] rounded-2xl" />
+ <img src="/media/oneconfig/page_media_4.png" class="h-[285px] rounded-2xl"/>
</div>
</Section>
<Section class="flex-col justify-center items-center h-screen md:h-4/5 md:min-h-[600px]">
- <img src="/media/oneconfig/page_media_5.png" class="h-[581px] rounded-2xl" />
+ <img src="/media/oneconfig/page_media_5.png" class="h-[581px] rounded-2xl"/>
<Header size="xl" align="center" class="w-96">A unified HUD editor</Header>
<Paragraph class="w-96 text-center text-gray-400">
Thanks to OneConfig's HUD API, you can customize any OneConfig-powered HUD to your liking, without having to worry about the hassle of finding the right command or keybind.
@@ -119,7 +121,7 @@ import Card from '@components/base/Card.astro';
Discover a wide range of mods integrated with OneConfig to enhance your experience.
</Paragraph>
<div class="flex">
- <Button iconLeft="link-external" text="Discover mods" />
+ <Button iconLeft="link-external" text="Discover mods"/>
</div>
</div>
</Section>
@@ -148,10 +150,10 @@ import Card from '@components/base/Card.astro';
<div class="grid grid-rows-[repeat(8,_minmax(0,_1fr))] grid-cols-[repeat(7,_minmax(0,_1fr))]">
<!-- TODO: Change placeholder image -->
<!-- TODO: Mess around with the sizes to make it look nicer -->
- <img src="/media/oneconfig/page_media_4.png" class="rounded-2xl col-[1_/_7] row-[1_/_8]" />
+ <img src="/media/oneconfig/page_media_4.png" class="rounded-2xl col-[1_/_7] row-[1_/_8]"/>
<div class="rounded-2xl col-[5_/_8] row-[6_/_9] shadow-md bg-white flex flex-col justify-items-start p-8 justify-center">
<Logo logo="oneconfig.logo_text" class="min-w-max"></Logo>
- <Button href="/projects/oneconfig/download" iconLeft="download" text="Download now" class="max-w-fit" />
+ <Button href="/projects/oneconfig/download" iconLeft="download" text="Download now" class="max-w-fit"/>
</div>
</div>
</Section>