From 3a4b67eb37142fb065ce0fb83b0bb184eab01b02 Mon Sep 17 00:00:00 2001
From: Logan Hunt <loganhunt@simponic.xyz>
Date: Tue, 12 Apr 2022 18:39:51 -0600
Subject: Let there be light

---
 src/routes/team/PersonBio.svelte | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)
 create mode 100644 src/routes/team/PersonBio.svelte

(limited to 'src/routes/team/PersonBio.svelte')

diff --git a/src/routes/team/PersonBio.svelte b/src/routes/team/PersonBio.svelte
new file mode 100644
index 0000000..437f57b
--- /dev/null
+++ b/src/routes/team/PersonBio.svelte
@@ -0,0 +1,20 @@
+<script>
+  export let bio;
+  let showMore = false;
+</script>
+
+<main>
+  {#if showMore}
+    <p>{bio}</p>
+    <button on:click={() => showMore = false}>Show Less</button>
+  {:else}
+    <p>{bio.substr(0, bio.lastIndexOf(' ', 150)) + '...'}</p>
+    <button on:click={() => showMore = true}>Show More</button>
+  {/if}
+</main>
+
+<style>
+  p {
+    white-space: pre-line;
+  }
+</style>
\ No newline at end of file
-- 
cgit v1.2.3-70-g09d2

