Skip to content

Commit fe37df5

Browse files
authored
Add Adventure Javadocs (#234)
And update Javadocs page
1 parent b73e711 commit fe37df5

File tree

4 files changed

+34
-9
lines changed

4 files changed

+34
-9
lines changed

src/assets/brand/adventure.svg

Lines changed: 13 additions & 0 deletions
Loading

src/assets/brand/waterfall.svg

Lines changed: 2 additions & 2 deletions
Loading

src/components/data/SoftwarePreview.astro

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,12 @@ const { id, name, icon, description, type, eol } = Astro.props;
2121

2222
<software-preview data-software={id} data-preview-type={type}>
2323
<a href="#loading" class="rounded-md">
24-
<article class="btn btn-outline btn-gray h-full flex-col items-start justify-start rounded-md p-4 text-left">
24+
<article class="btn btn-outline btn-gray group h-full flex-col items-start justify-start rounded-md p-4 text-left">
2525
<div class="flex flex-row items-center gap-4">
2626
<div class="h-12 w-12 rounded-lg bg-gray-800 p-3">
27-
<Icon name={icon} class="h-full w-full" />
27+
<Icon name={icon} class:list={["h-full w-full", eol && "group-hover:stroke-red-400 group-hover:text-red-400"]} />
2828
</div>
29-
<h3 class="flex flex-1 items-center gap-4 text-lg font-medium">
29+
<h3 class:list={["flex flex-1 items-center gap-4 text-lg font-medium", eol && "group-hover:text-red-400"]}>
3030
{name}
3131
{eol && <Icon name="icons/fontawesome/box-archive" class="h-6 fill-current" />}
3232
</h3>

src/pages/javadocs.astro

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,28 @@ import SoftwarePreview, { SoftwarePreviewType } from "@/components/data/Software
99
keywords={["papermc", "paper", "folia", "javadocs", "velocity", "waterfall"]}
1010
canonical="/javadocs"
1111
>
12-
<header class="mx-auto flex max-w-7xl flex-col items-center gap-2 px-4 pt-32 pb-16 lg:pt-48 lg:pb-26">
12+
<header class="mx-auto flex max-w-4xl flex-col items-center gap-2 px-4 pt-32 pb-16 lg:pt-28 lg:pb-12">
1313
<h1 class="text-4xl leading-normal font-medium lg:text-5xl lg:leading-normal">Javadocs</h1>
1414
<p class="mb-6 text-center text-xl">
15-
{"You can find the javadocs for our software below:"}
15+
{"You can find the javadocs for our software below."}
1616
</p>
17-
<div class="grid gap-2 px-2 md:grid-cols-4 lg:mt-6 xl:gap-4">
17+
18+
<h2 class="mt-4 text-center text-2xl font-medium">Server Software</h2>
19+
<div class="grid w-full gap-2 px-2 pr-15 pl-15 md:grid-cols-2 xl:gap-4">
1820
<SoftwarePreview id="paper" name="Paper" icon="brand/paper" type={SoftwarePreviewType.Javadocs} />
1921
<SoftwarePreview id="folia" name="Folia" icon="brand/folia" type={SoftwarePreviewType.Javadocs} />
22+
</div>
23+
24+
<h2 class="mt-4 text-center text-2xl font-medium">Proxy Software</h2>
25+
<div class="grid w-full gap-2 px-2 pr-15 pl-15 md:grid-cols-2 xl:gap-4">
2026
<SoftwarePreview id="velocity" name="Velocity" icon="brand/velocity" type={SoftwarePreviewType.Javadocs} />
21-
<SoftwarePreview id="waterfall" name="Waterfall" icon="brand/waterfall" type={SoftwarePreviewType.Javadocs} />
27+
<SoftwarePreview id="waterfall" name="Waterfall" icon="brand/waterfall" type={SoftwarePreviewType.Javadocs} eol />
28+
</div>
29+
30+
<h2 class="mt-4 text-center text-2xl font-medium">Libraries</h2>
31+
<div class="grid w-full gap-2 px-2 pr-15 pl-15 md:grid-cols-2 xl:gap-4">
32+
<SoftwarePreview id="adventure" name="Adventure" icon="brand/adventure" type={SoftwarePreviewType.Javadocs} />
33+
<div></div>
2234
</div>
2335
</header>
2436
</Layout>

0 commit comments

Comments
 (0)