aboutsummaryrefslogtreecommitdiff
path: root/apps/website/src/components/base/CodeBlock.astro
diff options
context:
space:
mode:
Diffstat (limited to 'apps/website/src/components/base/CodeBlock.astro')
-rw-r--r--apps/website/src/components/base/CodeBlock.astro21
1 files changed, 21 insertions, 0 deletions
diff --git a/apps/website/src/components/base/CodeBlock.astro b/apps/website/src/components/base/CodeBlock.astro
new file mode 100644
index 0000000..5991428
--- /dev/null
+++ b/apps/website/src/components/base/CodeBlock.astro
@@ -0,0 +1,21 @@
+---
+
+---
+
+<pre class="flex flex-col">
+ <code class="whitespace-pre bg-white-light border border-gray-50 rounded-2xl text-sm">{`public class MyConfig {
+
+ @Switch(name = "Sub Switch", type = OptionType.SWITCH)
+ public static boolean subSwitch = false;
+
+ public MyConfig() {
+ super(new Mod("My Mod", ModType.UTIL_QOL), "config.json");
+
+ addDependency("subSwitch", () -> {
+ // TODO: Make codeblocks better lmao
+ });
+ }
+
+}`}</code>
+</pre>
+