Add wiki and feature page for MidnightControls

As well as some minor fixes
This commit is contained in:
Martin Prokoph
2024-02-14 23:30:47 +01:00
parent 642b03b27d
commit a0cc8e970c
18 changed files with 171 additions and 11 deletions

View File

@@ -6,16 +6,17 @@ import ContentMedia from '../components/ContentMedia.astro'
---
<DefaultLayout title="MidnightLib">
<ContentMedia imgSrc="/midnightlib-example-code.webp">
<h2 class="my-8 text-6xl text-center">MidnightLib</h2>
<ContentMedia imgSrc="/midnightlib/midnightlib-example-code.webp">
<h2>Implement configurations easier than ever before!</h2>
<p class="text-2xl">
Just create Java fields, annotate them with <span class="bg-clip-text text-transparent bg-gradient-to-r from-pink-500 to-violet-500 font-mono">@Entry</span>,
Just create Java fields, annotate them with <span class="bg-clip-text text-transparent bg-gradient-to-r from-yellow-500 to-orange-500 font-mono">@Entry</span>,
maybe add some more additional options, and boom! <br>
This example can be found <a href="https://github.com/TeamMidnightDust/MidnightLib/blob/architectury/MidnightConfigExample.java"
>here</a>, and helps you get started (almost) faster than speed of light!
</p>
</ContentMedia>
<ContentMedia imgSrc="/midnightlib-example.png" reverseImg={true}>
<ContentMedia imgSrc="/midnightlib/midnightlib-example.png" reverseImg={true}>
<h2>User-friendly config screens</h2>
<p class="text-2xl">
Configuration screens are automatically created from config classes.<br>