From 8cde6bed58642d607c6ac54e796bb70c23054815 Mon Sep 17 00:00:00 2001 From: midblep Date: Fri, 4 Feb 2022 19:30:54 +0100 Subject: [PATCH] finish? --- .env.example | 1 + app.d.ts | 13 +++ src/lib/commissions/Accordion.svelte | 27 ++++-- src/lib/commissions/Item.svelte | 18 +++- src/lib/elements/Card.svelte | 6 +- src/lib/elements/Form.svelte | 96 +++++++++++++++++++ src/lib/helpers/variables.js | 3 + src/routes/commissions/index.svelte | 79 ++++++++++----- src/routes/contact.svelte | 6 +- src/routes/index.svelte | 32 ++++--- static/commissions/animationheadshot.gif | Bin 0 -> 612444 bytes static/commissions/complex1.jpg | Bin 0 -> 145373 bytes static/commissions/complex2.jpg | Bin 0 -> 168075 bytes static/commissions/emote1.jpg | Bin 0 -> 10578 bytes static/commissions/emote2.jpg | Bin 0 -> 9545 bytes static/commissions/emote3.jpg | Bin 0 -> 12915 bytes static/commissions/emote4.jpg | Bin 0 -> 9356 bytes static/commissions/fullbodybasic.jpg | Bin 0 -> 58708 bytes static/commissions/fullbodybasiclineless.jpg | Bin 0 -> 33763 bytes static/commissions/fullbodyultralineart.jpg | Bin 0 -> 52665 bytes static/commissions/halfbodybasic.jpg | Bin 0 -> 28922 bytes static/commissions/halfbodysketchy.jpg | Bin 0 -> 31370 bytes static/commissions/halfbodyultralineart.jpg | Bin 0 -> 56197 bytes static/commissions/refsheet1.jpg | Bin 0 -> 135965 bytes static/commissions/refsheet2.jpg | Bin 0 -> 147063 bytes static/commissions/refsheet3.jpg | Bin 0 -> 195639 bytes static/commissions/ychbaby.jpg | Bin 0 -> 40960 bytes tailwind.config.cjs | 2 +- 28 files changed, 222 insertions(+), 61 deletions(-) create mode 100644 .env.example create mode 100644 app.d.ts create mode 100644 src/lib/elements/Form.svelte create mode 100644 src/lib/helpers/variables.js create mode 100644 static/commissions/animationheadshot.gif create mode 100644 static/commissions/complex1.jpg create mode 100644 static/commissions/complex2.jpg create mode 100644 static/commissions/emote1.jpg create mode 100644 static/commissions/emote2.jpg create mode 100644 static/commissions/emote3.jpg create mode 100644 static/commissions/emote4.jpg create mode 100644 static/commissions/fullbodybasic.jpg create mode 100644 static/commissions/fullbodybasiclineless.jpg create mode 100644 static/commissions/fullbodyultralineart.jpg create mode 100644 static/commissions/halfbodybasic.jpg create mode 100644 static/commissions/halfbodysketchy.jpg create mode 100644 static/commissions/halfbodyultralineart.jpg create mode 100644 static/commissions/refsheet1.jpg create mode 100644 static/commissions/refsheet2.jpg create mode 100644 static/commissions/refsheet3.jpg create mode 100644 static/commissions/ychbaby.jpg diff --git a/.env.example b/.env.example new file mode 100644 index 0000000..ce3783e --- /dev/null +++ b/.env.example @@ -0,0 +1 @@ +VITE_APP_URL= \ No newline at end of file diff --git a/app.d.ts b/app.d.ts new file mode 100644 index 0000000..161703c --- /dev/null +++ b/app.d.ts @@ -0,0 +1,13 @@ +/// + +// See https://kit.svelte.dev/docs#typescript +// for information about these interfaces +declare namespace App { + interface Locals {} + + interface Platform {} + + interface Session {} + + interface Stuff {} +} diff --git a/src/lib/commissions/Accordion.svelte b/src/lib/commissions/Accordion.svelte index 66ec782..29d6167 100644 --- a/src/lib/commissions/Accordion.svelte +++ b/src/lib/commissions/Accordion.svelte @@ -2,22 +2,23 @@ import { onMount } from "svelte"; export let title; - export let open = ""; + export let autoOpen = false; export let id; + export let note = null; onMount(() => { - if(open == "true") { + if(window.location.hash == "#" + id || autoOpen == true) { openAccordion(); } }); function openAccordion() { - let content = document.querySelector("#content"); - content.classList.toggle("block"); + let content = document.querySelector("#" + id + "-content"); + content.classList.toggle("flex"); content.classList.toggle("hidden"); - let trigger = document.querySelector("#trigger"); - if(content.classList.contains("block")) { + let trigger = document.querySelector("#" + id + "-trigger"); + if(content.classList.contains("flex")) { trigger.innerHTML = "⬇️"; } else { trigger.innerHTML = "➡️"; @@ -25,14 +26,20 @@ } -
+

{title}

- +
-