From 4f264b6cf84e603a599ac2294e14e79a250a9cc4 Mon Sep 17 00:00:00 2001 From: "kristenwardphl@gmail.com" Date: Tue, 8 Jul 2025 10:50:41 -0400 Subject: [PATCH 1/8] 13: add example modal to business page --- ui/src/lib/components/Modal.svelte | 116 ++++++++++++++++++++++++++++ ui/src/lib/images/modal-corner.svg | 24 ++++++ ui/src/routes/business/+page.svelte | 24 +++++- 3 files changed, 163 insertions(+), 1 deletion(-) create mode 100644 ui/src/lib/components/Modal.svelte create mode 100644 ui/src/lib/images/modal-corner.svg diff --git a/ui/src/lib/components/Modal.svelte b/ui/src/lib/components/Modal.svelte new file mode 100644 index 0000000..8082d6a --- /dev/null +++ b/ui/src/lib/components/Modal.svelte @@ -0,0 +1,116 @@ + + +{#if open} + + +{/if} \ No newline at end of file diff --git a/ui/src/lib/images/modal-corner.svg b/ui/src/lib/images/modal-corner.svg new file mode 100644 index 0000000..855d0eb --- /dev/null +++ b/ui/src/lib/images/modal-corner.svg @@ -0,0 +1,24 @@ + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/ui/src/routes/business/+page.svelte b/ui/src/routes/business/+page.svelte index a7b1778..43b000d 100644 --- a/ui/src/routes/business/+page.svelte +++ b/ui/src/routes/business/+page.svelte @@ -233,6 +233,7 @@ import Accordion from '$lib/components/Accordion.svelte'; import Blob from '$lib/components/Blob.svelte'; import Globe from "$lib/components/Globe.svelte"; + import Modal from '$lib/components/Modal.svelte'; import blueCloud from '$lib/images/cloud-blue.png'; import purpleCloud from '$lib/images/cloud-purple.png'; @@ -241,6 +242,12 @@ {id: 'bizdev', title: 'Business Automation'}, {id: 'design', title: 'Design & Branding'}, ]; + + let showModal = ''; + function closeModal() { + console.log('close modal'); + showModal = ''; + }
@@ -342,7 +349,7 @@
- + (showModal = 'chive-charities')}>
A screenshot of the Chive Charities Website @@ -350,6 +357,20 @@
Chive Charities
+ { showModal } + +
+ + / A screenshot of the Chive Charities Website + +
+

Chive Charities

+
+

Description of Chive Charities

+

The Wetfish Communtiy is a mix of everything from queer hackers, to farmers, researchers, and artists. Some of us work at senior positions at big tech companies, others are just trying to make ends meet. We're spread out across the globe physically, but digitally united.

+
Visit Chive Charities +
+
@@ -357,6 +378,7 @@ A screenshot of the ChurnKey.co Website
Churnkey
+
From f74a1c417f0a666038a45b30a56241a0516c1ec5 Mon Sep 17 00:00:00 2001 From: "kristenwardphl@gmail.com" Date: Tue, 8 Jul 2025 11:04:19 -0400 Subject: [PATCH 2/8] 13: update modal styles to make scrollable --- ui/src/lib/components/Modal.svelte | 18 +++++++++++++++--- ui/src/routes/business/+page.svelte | 2 +- 2 files changed, 16 insertions(+), 4 deletions(-) diff --git a/ui/src/lib/components/Modal.svelte b/ui/src/lib/components/Modal.svelte index 8082d6a..d7fce01 100644 --- a/ui/src/lib/components/Modal.svelte +++ b/ui/src/lib/components/Modal.svelte @@ -18,10 +18,22 @@