diff options
| author | Elizabeth Hunt <me@liz.coffee> | 2026-01-01 17:17:24 -0800 |
|---|---|---|
| committer | Elizabeth Hunt <me@liz.coffee> | 2026-01-01 17:17:24 -0800 |
| commit | 4270290976290350bd8dee11ec7e36a8e3ed6b9a (patch) | |
| tree | 6a86fda972ff3b13ffbd7f99afa38e9155e583ba /src | |
| parent | d9d6cb8d332fbd0d57b5d6d05acd3d7d847116be (diff) | |
| download | mistymountainstherapy-4270290976290350bd8dee11ec7e36a8e3ed6b9a.tar.gz mistymountainstherapy-4270290976290350bd8dee11ec7e36a8e3ed6b9a.zip | |
Rip out supabase
Diffstat (limited to 'src')
| -rw-r--r-- | src/lib/data/images.ts | 17 | ||||
| -rw-r--r-- | src/lib/data/people.ts | 51 | ||||
| -rw-r--r-- | src/lib/supabase.ts | 8 | ||||
| -rw-r--r-- | src/lib/utils/index.ts | 1 | ||||
| -rw-r--r-- | src/lib/utils/setImageUrl.ts | 11 | ||||
| -rw-r--r-- | src/routes/approach/index.svelte | 6 | ||||
| -rw-r--r-- | src/routes/index.svelte | 14 | ||||
| -rw-r--r-- | src/routes/services/index.svelte | 5 | ||||
| -rw-r--r-- | src/routes/team/index.svelte | 18 |
9 files changed, 84 insertions, 47 deletions
diff --git a/src/lib/data/images.ts b/src/lib/data/images.ts new file mode 100644 index 0000000..3e787af --- /dev/null +++ b/src/lib/data/images.ts @@ -0,0 +1,17 @@ +// Carousel images for homepage +export const carouselImages = [ + '/images/carousel/Plaza-Logo-Door.jpeg', + '/images/carousel/Entry-Way.jpeg', + '/images/carousel/office-1-1.jpeg', + '/images/carousel/Inside-Office.jpeg', + '/images/carousel/mountains.png' +]; + +// Services page images +export const servicesImages = { + girl: '/images/services/girl.jpg', + guy: '/images/services/guy.jpg' +}; + +// Approach page image +export const approachImage = '/images/approach/boats.jpg'; diff --git a/src/lib/data/people.ts b/src/lib/data/people.ts new file mode 100644 index 0000000..1ddd303 --- /dev/null +++ b/src/lib/data/people.ts @@ -0,0 +1,51 @@ +export interface Person { + id: number; + name: string; + email: string; + position: string; + image: string; + bio: string; +} + +export const people: Person[] = [ + { + id: 1, + name: 'Jefferson Hunt', + email: 'jeffer@mistymountainstherapy.com', + position: 'LMFT - Supervisor', + image: '/images/team/Jeffer.jpg', + bio: "First, some basics: I grew up in Orem in Utah, I'm a huge BYU fan, I love food, and Brandon Sanderson is my hero. I have 5 kids and we have been Rexburgians for a cumulative of 15 years now!\n\nI knew from a young age that I wanted to be a marriage and family therapist. My mom died from breast cancer when I was 10. Due to the stigma of therapy in the early 90's I had to navigate the grief on my own with very few tools (Mario Kart, my faith, Lord of the Rings, and friends). I understand what it's like when you don't know where to go or what to do. My practice is a safe place (no judgment) for all who seek holistic guidance and healthy coping skills.\n\nEducation:\nI earned my bachelor's degree in psychology at BYU-Idaho and gained experience working for 6 years helping people with developmental disabilities, behavioral issues, and mental illness. I then attended Simpson University in Redding, California and received my master's degree in counseling psychology. I have enjoyed practicing therapy since 2016.\n\nI have experience in individual, couple, family, and group therapy. " + }, + { + id: 2, + name: 'Maren Berrett', + email: 'maren@mistymountainstherapy.com', + position: 'MFT Intern', + image: '/images/team/Maren.jpg', + bio: 'In my free time I enjoy reading fiction; playing the piano; and trying out new recipes from around the world (particularly Indian food). I grew up in a few different places, including Washington and Utah, but I call Idaho home!\n\nI am currently on the journey to become a licensed marriage and family therapist. I am studying at Liberty University and am excited to learn all I can to navigate the nuances of life with my clients. I feel the calling to walk with others in life and help them through the voyage of self-discovery.\n\nIn my practice, I strive to make clients feel comfortable and safe. I recognize the humanity that is in each one of us. I know how difficult it can be to navigate this life alone. I will strive with each of my clients to help them learn the coping skills that will lessen burdens seen and unseen.' + }, + { + id: 3, + name: 'Lily Aho', + email: 'contact@mistymountainstherapy.com', + position: 'Office Assistant', + image: '/images/team/Lily.jpeg', + bio: 'Having grown up in rural Idaho, I have always loved potatoes in every form. I also love cooking and baking just about anything, but especially sourdough bread and baked goods. I lived in the Swiss and Austrian alps for long enough to know I am in love with mountains as well as the German language and culture. I am currently close to graduating with my bachelor\'s degree in Marriage and Family Studies/Psychology at BYU-Idaho and will then go on to studying Professional Counseling at Liberty University. I hope to one day become a mental health therapist with an emphasis on marriage and relationship dynamics.' + }, + { + id: 4, + name: 'Brian Mendoza', + email: 'brian.mendoza@clearview-ps.com', + position: 'Billing Administrator', + image: '/images/team/Brian.jpg', + bio: 'Born into a medical family of aides, nurses, therapists and providers, I have always been proud of my family and how they have dedicated their lives to helping others in so many different areas. While attending Indiana University, it was there that I found my passion in healthcare and graduated with a Degree in HealthCare Administration.\n\nI have spent the last 25 years helping both providers and patients navigate the maze of healthcare reimbursement for large health systems and private practice of all specialty types. In a field that has helped so many family members and friends, I made the decision 5 years ago to concentrate in the Behavioral Health field. My goal is to provide an environment where I can take care of your billing needs so that you and your provider can focus on your care.' + }, + { + id: 1000, + name: 'Marcy', + email: 'woof@cantusecomputers.doggos', + position: 'Professional Pup', + image: '/images/team/marcy.jpg', + bio: 'Marcy has a masters degree in snuggling and kisses.\n\nShe also has a PhD in cuddles and wagging her tail, and done research in the field of belly rubs. \n\nHer passions include chasing her toys, and she loves to help people feel better - she is so ambitious she is also training as a therapy dog!\n' + } +]; diff --git a/src/lib/supabase.ts b/src/lib/supabase.ts deleted file mode 100644 index dbd66ad..0000000 --- a/src/lib/supabase.ts +++ /dev/null @@ -1,8 +0,0 @@ -import { createClient } from '@supabase/supabase-js'; - -export const supabase = createClient( - import.meta.env.VITE_SUPABASE_URL as string, - import.meta.env.VITE_SUPABASE_ANON_KEY as string -); - -export default supabase; diff --git a/src/lib/utils/index.ts b/src/lib/utils/index.ts index 01aa9ef..ac87860 100644 --- a/src/lib/utils/index.ts +++ b/src/lib/utils/index.ts @@ -1,2 +1 @@ -export * from './setImageUrl'; export * from './retry'; diff --git a/src/lib/utils/setImageUrl.ts b/src/lib/utils/setImageUrl.ts deleted file mode 100644 index d2db853..0000000 --- a/src/lib/utils/setImageUrl.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { supabase } from '../supabase'; - -export const setImageUrl = (imageSpec) => { - const { publicURL, error } = supabase.storage - .from('mistymountains') - .getPublicUrl(imageSpec.image); - if (!error) { - return { ...imageSpec, image: publicURL }; - } - return imageSpec; -}; diff --git a/src/routes/approach/index.svelte b/src/routes/approach/index.svelte index 90a0863..3a4e963 100644 --- a/src/routes/approach/index.svelte +++ b/src/routes/approach/index.svelte @@ -1,10 +1,14 @@ +<script> + import { approachImage } from '$lib/data/images'; +</script> + <main> <h1 class="text-center">Our Approach.</h1> <div class="bg-light rounded p-4 shadow"> <div class="row justify-content-center"> <div class="col-sm-10"> <div style="text-align:center"> - <img class="shadow" src="https://ztxoywaazhxdeiftmsiy.supabase.co/storage/v1/object/public/mistymountains/boats.jpg" alt="boats in water" style="width:60%;border-radius: 0.25em;"> + <img class="shadow" src={approachImage} alt="boats in water" style="width:60%;border-radius: 0.25em;"> </div> <br> <p>We meet each client where they are at and customize their therapeutic journey to best fit their personality and issues. Some of the approaches we use most are listed below:</p> diff --git a/src/routes/index.svelte b/src/routes/index.svelte index ece7b9b..1a701c7 100644 --- a/src/routes/index.svelte +++ b/src/routes/index.svelte @@ -1,5 +1,5 @@ <script> - import { setImageUrl } from '$lib/utils'; + import { carouselImages } from '$lib/data/images'; import { Navigation, Pagination, Scrollbar, A11y, Autoplay } from 'swiper'; import { Swiper, SwiperSlide } from 'swiper/svelte'; import 'swiper/css'; @@ -9,12 +9,12 @@ import 'swiper/css/autoplay'; const images = [ - { image: 'Plaza-Logo-Door.jpeg', alt: 'Picture of the glass office door with the Misty Mountains Therapy logo in the center.' }, - { image: 'Entry-Way.jpeg', alt: 'The entry hall to the Misty Mountains Suite room, showing a bench for waiting patients to sit. The vibes are inviting.' }, - { image: 'office-1-1.jpeg', alt: 'An office room with a rustic lamp and comfy looking couch.' }, - { image: 'Inside-Office.jpeg', alt: 'A second office room with good vibes.' }, - { image: 'mountains.png', alt: 'Cloudy mountains in a light sky' }, - ].map(setImageUrl); + { image: carouselImages[0], alt: 'Picture of the glass office door with the Misty Mountains Therapy logo in the center.' }, + { image: carouselImages[1], alt: 'The entry hall to the Misty Mountains Suite room, showing a bench for waiting patients to sit. The vibes are inviting.' }, + { image: carouselImages[2], alt: 'An office room with a rustic lamp and comfy looking couch.' }, + { image: carouselImages[3], alt: 'A second office room with good vibes.' }, + { image: carouselImages[4], alt: 'Cloudy mountains in a light sky' }, + ]; </script> <div class="row align-items-center py-2"> diff --git a/src/routes/services/index.svelte b/src/routes/services/index.svelte index e6ac4de..1a02120 100644 --- a/src/routes/services/index.svelte +++ b/src/routes/services/index.svelte @@ -1,10 +1,11 @@ <script> import DirectionCard from '../../components/DirectionCard.svelte'; + import { servicesImages } from '$lib/data/images'; </script> <main> <h1 class="text-center">Our Services.</h1> - <DirectionCard direction="left" imageSpec={{image: "https://ztxoywaazhxdeiftmsiy.supabase.co/storage/v1/object/public/mistymountains/girl.jpg", alt: "Girl looking at camera"}}> + <DirectionCard direction="left" imageSpec={{image: servicesImages.girl, alt: "Girl looking at camera"}}> <h2>Therapy</h2> <em>We provide personalized, unassuming, and nonjudgemental guidance in the following:</em> <ul> @@ -24,7 +25,7 @@ <li><em>And more</em></li> </ul> </DirectionCard> - <DirectionCard direction="right" imageSpec={{image: "https://ztxoywaazhxdeiftmsiy.supabase.co/storage/v1/object/public/mistymountains/guy.jpg", alt: "Boy smiling to left"}}> + <DirectionCard direction="right" imageSpec={{image: servicesImages.guy, alt: "Boy smiling to left"}}> <h2>Screeners</h2> <em>We perform high quality screening for:</em> <ul> diff --git a/src/routes/team/index.svelte b/src/routes/team/index.svelte index 8e29249..631645b 100644 --- a/src/routes/team/index.svelte +++ b/src/routes/team/index.svelte @@ -1,22 +1,6 @@ <script> import DirectionCard from '../../components/DirectionCard.svelte'; - - 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 []; - }; - - let people = []; - onMount(async () => { - people = await getPeople().then((people) => people.map(setImageUrl)); - }); + import { people } from '$lib/data/people'; </script> <main> |
