From 8088c7f8ea1db7b2b87205ce38b47b869a8d63d6 Mon Sep 17 00:00:00 2001 From: Akis Date: Wed, 17 Aug 2022 21:08:10 +0300 Subject: [PATCH] rework old pubnix pr --- src/lib/ContactForm.svelte | 50 ++------------------- src/lib/Form/Captcha.svelte | 19 ++++++++ src/lib/Form/Note.svelte | 19 ++++++++ src/lib/Form/index.ts | 2 + src/lib/Hero.svelte | 4 +- src/lib/Nav.svelte | 3 +- src/lib/PubnixForm.svelte | 88 +++++++++++++++++++++++++++++++++++++ src/lib/app.css | 19 ++++++++ src/routes/index.svelte | 6 +++ src/routes/pubnix.md | 26 +++++++++++ 10 files changed, 188 insertions(+), 48 deletions(-) create mode 100644 src/lib/Form/Captcha.svelte create mode 100644 src/lib/Form/Note.svelte create mode 100644 src/lib/Form/index.ts create mode 100644 src/lib/PubnixForm.svelte create mode 100644 src/routes/pubnix.md diff --git a/src/lib/ContactForm.svelte b/src/lib/ContactForm.svelte index 564b4de..7c03315 100644 --- a/src/lib/ContactForm.svelte +++ b/src/lib/ContactForm.svelte @@ -1,10 +1,5 @@
-
-
- Your IP will be logged for anti-abuse measures. -
+
- @@ -41,17 +33,7 @@ class="form-textbox" placeholder="Your message" /> -
-
- The submit button will be visible when you complete the Captcha. -
- - {#if submit} - - {/if} + diff --git a/src/lib/Form/Captcha.svelte b/src/lib/Form/Captcha.svelte new file mode 100644 index 0000000..e80373b --- /dev/null +++ b/src/lib/Form/Captcha.svelte @@ -0,0 +1,19 @@ + + + + +{#if submit} + +{/if} \ No newline at end of file diff --git a/src/lib/Form/Note.svelte b/src/lib/Form/Note.svelte new file mode 100644 index 0000000..2430ef1 --- /dev/null +++ b/src/lib/Form/Note.svelte @@ -0,0 +1,19 @@ + + +
+ {#if icon} +
+ {/if} + {content} +
+ + \ No newline at end of file diff --git a/src/lib/Form/index.ts b/src/lib/Form/index.ts new file mode 100644 index 0000000..83ac350 --- /dev/null +++ b/src/lib/Form/index.ts @@ -0,0 +1,2 @@ +export { default as Note } from "./Note.svelte"; +export { default as Captcha } from "./Captcha.svelte"; \ No newline at end of file diff --git a/src/lib/Hero.svelte b/src/lib/Hero.svelte index 7a0cf32..ab885a6 100644 --- a/src/lib/Hero.svelte +++ b/src/lib/Hero.svelte @@ -2,9 +2,11 @@ export let title: string; export let description: string; export let marginTop: string; + let styles: string = ""; + export { styles as style }; -
+
{#if title}

{title}

{/if} diff --git a/src/lib/Nav.svelte b/src/lib/Nav.svelte index 500396c..2724643 100644 --- a/src/lib/Nav.svelte +++ b/src/lib/Nav.svelte @@ -8,6 +8,7 @@ { name: "Instances", url: "/instances" }, { name: "Projects", url: "/projects" }, { name: "Minecraft", url: "/minecraft" }, + { name: "Pubnix", url: "/pubnix" }, { name: "Donate", url: "/donate" }, { name: "FAQ", url: "/faq" }, { name: "Contact us", url: "/contact" }, @@ -115,7 +116,7 @@ display: none; } - @media screen and (max-width: 1058px) { + @media screen and (max-width: 1116px) { .links { display: none; width: 100%; diff --git a/src/lib/PubnixForm.svelte b/src/lib/PubnixForm.svelte new file mode 100644 index 0000000..b95345f --- /dev/null +++ b/src/lib/PubnixForm.svelte @@ -0,0 +1,88 @@ + + +
+ +
+ + +
+ +