diff --git a/src/components/ColorPicker.astro b/src/components/ColorPicker.astro new file mode 100644 index 0000000..c2681f5 --- /dev/null +++ b/src/components/ColorPicker.astro @@ -0,0 +1,71 @@ +--- +interface Props { + includeHashtag?: boolean +} +const { includeHashtag } = Astro.props +import { Icon } from 'astro-icon/components' +--- + +
+
+

Select a color below to get the hex code:

+
+
+ +
+
+
+
+ + \ No newline at end of file diff --git a/src/components/VersionDropdown.astro b/src/components/VersionDropdown.astro index 8728df4..6c5860a 100644 --- a/src/components/VersionDropdown.astro +++ b/src/components/VersionDropdown.astro @@ -1,161 +1,68 @@ --- -import { loaderList, versionList, selectedLoader, selectedVersion, getResultingVersion } from '../js/modversion.js' +import { Icon } from 'astro-icon/components' +import { loaderList, versionList} from '../js/modversion.js' ---
-
+
-
+ + diff --git a/src/layouts/MarkdownLayout.astro b/src/layouts/MarkdownLayout.astro index b8d1f98..073315e 100644 --- a/src/layouts/MarkdownLayout.astro +++ b/src/layouts/MarkdownLayout.astro @@ -3,6 +3,44 @@ import DefaultLayout from './DefaultLayout.astro' const { frontmatter } = Astro.props --- + +
@@ -11,3 +49,35 @@ const { frontmatter } = Astro.props
+ + \ No newline at end of file diff --git a/src/pages/wiki/midnightlib.mdx b/src/pages/wiki/midnightlib.mdx index 0c1cbea..ef8d09a 100644 --- a/src/pages/wiki/midnightlib.mdx +++ b/src/pages/wiki/midnightlib.mdx @@ -33,14 +33,13 @@ dependencies { ``` ### `gradle.properties` -{
midnightlib_version = {getResultingVersion()}
} +{
midnightlib_version = {getResultingVersion()}
}

Info: You should always pick the version that suits your modloader and Minecraft version best. - The version selector is currently still WIP. - Find all available versions on [Modrinth](https://www.modrinth.com/mod/midnightlib/versions) + The version selector is finally fully functional!

diff --git a/src/pages/wiki/puzzle.mdx b/src/pages/wiki/puzzle.mdx index 3e0c921..77e4fe3 100644 --- a/src/pages/wiki/puzzle.mdx +++ b/src/pages/wiki/puzzle.mdx @@ -3,6 +3,7 @@ layout: ../../layouts/MarkdownLayout.astro title: Puzzle Wiki --- +import ColorPicker from '../../components/ColorPicker.astro' import { Icon } from 'astro-icon/components' import { Notification } from 'accessible-astro-components' @@ -51,7 +52,7 @@ screen.loading.blend=off ### Entering the world of color The world would be a sad place without colors. -That's why Puzzle allows you to customize them to your heart's content. +That's why Puzzle allows you to customize them to your heart's content! Custom colors can be defined in the `assets/minecraft/optifine/color.properties` file. ```properties @@ -69,11 +70,12 @@ screen.loading.bar=313244

- Info: Colors have to be defined using hex color codes. - You can use websites like [this](https://redketchup.io/color-picker) one to find nice hex color codes. + Info: Colors have to be defined using hex color codes (without the #). + You can use the color picker below to find the perfect color. The example colors are based on the [Catppuccin Mocha](https://github.com/catppuccin/catppuccin) color pallette.

+
The Puzzle logo on a dark background with pastel colors

Dark mode! Finally, my eyes can rest.