diff options
| author | Elizabeth Hunt <elizabeth.hunt@simponic.xyz> | 2024-01-07 01:21:06 -0700 |
|---|---|---|
| committer | Elizabeth Hunt <elizabeth.hunt@simponic.xyz> | 2024-01-07 01:21:06 -0700 |
| commit | db671d26c43e47b8285d319a0fd758df60d729c7 (patch) | |
| tree | 4cfc7e7b719d246637818e83feb8981255c19c67 /src/routes/team | |
| parent | e1905622d7d8657aa7cd5bdfe9d06e4fbe40dc70 (diff) | |
| download | mistymountainstherapy-db671d26c43e47b8285d319a0fd758df60d729c7.tar.gz mistymountainstherapy-db671d26c43e47b8285d319a0fd758df60d729c7.zip | |
initial update with nodemailer
Diffstat (limited to 'src/routes/team')
| -rw-r--r-- | src/routes/team/index.svelte | 57 |
1 files changed, 30 insertions, 27 deletions
diff --git a/src/routes/team/index.svelte b/src/routes/team/index.svelte index 04c62b9..88e5db0 100644 --- a/src/routes/team/index.svelte +++ b/src/routes/team/index.svelte @@ -1,35 +1,38 @@ <script> - import DirectionCard from '../../components/DirectionCard.svelte'; + import DirectionCard from '../../components/DirectionCard.svelte'; - import { onMount } from 'svelte'; - import { supabase } from '$lib/supabase'; - import setImageUrl from '$lib/utils'; + import { onMount } from 'svelte'; + import { supabase } from '$lib/supabase'; + import { setImageUrl } from '$lib/utils'; - const getPeople = async () => { - const { data, error } = await supabase.from('people').select().order('id'); - if (!error) { - return data; - } - return []; - } + const getPeople = async () => { + const { data, error } = await supabase.from('people').select().order('id'); + if (!error) { + return data; + } + return []; + }; - let people = []; - onMount(async () => { - people = await getPeople().then((people) => people.map(setImageUrl)); - }); + let people = []; + onMount(async () => { + people = await getPeople().then((people) => people.map(setImageUrl)); + }); </script> <main> - <h1 class="text-center">Our Team</h1> - {#if people.length} - {#each people as person, i} - <div class="row border-bottom"> - <DirectionCard imageSpec={{image: person.image, alt: person.name}} direction={i % 2 ? 'left' : 'right'}> - <h2>{person.name}, {person.position}</h2> - <p style="white-space: pre-line">{person.bio}</p> - <a href="mailto:{person.email}"><p>{person.email}</p></a> - </DirectionCard> - </div> - {/each} - {/if} + <h1 class="text-center">Our Team</h1> + {#if people.length} + {#each people as person, i} + <div class="row border-bottom"> + <DirectionCard + imageSpec={{ image: person.image, alt: person.name }} + direction={i % 2 ? 'left' : 'right'} + > + <h2>{person.name}, {person.position}</h2> + <p style="white-space: pre-line">{person.bio}</p> + <a href="mailto:{person.email}"><p>{person.email}</p></a> + </DirectionCard> + </div> + {/each} + {/if} </main> |
