From bb7b7e90eda59c67ea0502ecb2c84f685dce0543 Mon Sep 17 00:00:00 2001 From: bbag Date: Fri, 9 Feb 2024 17:42:23 -0500 Subject: [PATCH] Added working sketch/wireframe/prod transitions --- src/components/home/HomeHero.astro | 13 +- src/components/home/phone-ui/PhoneUi.astro | 192 +++++++++++++++++- .../home/phone-ui/utils/patientData.ts | 125 +++++++----- 3 files changed, 273 insertions(+), 57 deletions(-) diff --git a/src/components/home/HomeHero.astro b/src/components/home/HomeHero.astro index db3be49..3e0a48c 100644 --- a/src/components/home/HomeHero.astro +++ b/src/components/home/HomeHero.astro @@ -13,7 +13,7 @@ import DotsBackground from '@/assets/img/dots-background.svg'

Hey, I'm Billy!

Frontend developer, UX/UI + Product Designer

-

From sketch to wireframe to production, I bring web apps, products, and sites to life with code.

+

From sketch to wireframe to production, I bring web apps, products, and sites to life with code.

@@ -23,6 +23,17 @@ import DotsBackground from '@/assets/img/dots-background.svg'
+ + \ No newline at end of file diff --git a/src/components/home/phone-ui/utils/patientData.ts b/src/components/home/phone-ui/utils/patientData.ts index 67b05f2..5e467fb 100644 --- a/src/components/home/phone-ui/utils/patientData.ts +++ b/src/components/home/phone-ui/utils/patientData.ts @@ -13,7 +13,7 @@ export const patients: PatientData[] = [ 'Patient was given a sling, advised to rest, and told to make sure the horse’s backflip is caught on video and posted first next time.' ], stats: [ - { label: 'Date', value: '1/30/2024' }, + { label: 'Date', value: '12/04/2024' }, { label: 'Age', value: 36 }, { label: 'Height', value: 5.3 }, { label: 'Weight', value: 128 }, @@ -33,7 +33,7 @@ export const patients: PatientData[] = [ { part: 'chest-l', severity: 58 }, { part: 'chest-r', severity: 17 }, { part: 'ear-l', severity: 8 }, - // 'ear-r': 'Ear (R)', + { part: 'ear-r', severity: 0 }, { part: 'elbow-l', severity: 79 }, { part: 'elbow-r', severity: 0 }, { part: 'foot-l', severity: 5 }, @@ -71,7 +71,7 @@ export const patients: PatientData[] = [ 'Patient did successfully break the record, but was advised to consider new hobbies.' ], stats: [ - { label: 'Date', value: '2/06/2024' }, + { label: 'Date', value: '12/16/2024' }, { label: 'Age', value: 41 }, { label: 'Height', value: 5.9 }, { label: 'Weight', value: 192 }, @@ -90,8 +90,8 @@ export const patients: PatientData[] = [ { part: 'calf-r', severity: 33 }, { part: 'chest-l', severity: 9 }, { part: 'chest-r', severity: 12 }, - // 'ear-l': 'Ear (L)', - // 'ear-r': 'Ear (R)', + { part: 'ear-l', severity: 0 }, + { part: 'ear-r', severity: 0 }, { part: 'elbow-l', severity: 23 }, { part: 'elbow-r', severity: 33 }, { part: 'foot-l', severity: 79 }, @@ -103,10 +103,10 @@ export const patients: PatientData[] = [ { part: 'hamstring-r', severity: 4 }, { part: 'hand-l', severity: 91 }, { part: 'hand-r', severity: 77 }, - // 'head': 'Head', + { part: 'head', severity: 0 }, { part: 'hip-l', severity: 39 }, { part: 'hip-r', severity: 29 }, - // 'jaw': 'Jaw', + { part: 'jaw', severity: 0 }, { part: 'knee-l', severity: 76 }, { part: 'knee-r', severity: 68 }, { part: 'neck', severity: 7 }, @@ -125,13 +125,13 @@ export const patients: PatientData[] = [ { id: 3, description: [ - 'Patient suffered a mild concussion and moderate lacerations to the chest and left ear after a fall from a ladder while trying to impress friends.', + 'Patient suffered a mild concussion and moderate lacerations to the chest and left ear after a fall from a ladder while trying to impress friends at a party.', 'Advised to follow up with a primary care physician and limit alcohol consumption when with “getting rowdy with the boys.”' ], stats: [ { label: 'Date', value: '12/31/2023' }, { label: 'Age', value: 22 }, - { label: 'Height', value: 6 }, + { label: 'Height', value: 6.25 }, { label: 'Weight', value: 185 }, { label: 'Blood Type', value: 'B+' }, // O, A, B, AB { label: 'Sex', value: 'M' } @@ -140,72 +140,101 @@ export const patients: PatientData[] = [ { part: 'abdomen', severity: 0 }, { part: 'ankle-l', severity: 0 }, { part: 'ankle-r', severity: 0 }, - { part: 'back-lower', severity: 28 }, + { part: 'back-lower', severity: 38 }, { part: 'back-upper', severity: 76 }, { part: 'bicep-l', severity: 0 }, - { part: 'bicep-r', severity: 0 }, + { part: 'bicep-r', severity: 15 }, { part: 'calf-l', severity: 0 }, { part: 'calf-r', severity: 0 }, { part: 'chest-l', severity: 26 }, - { part: 'chest-r', severity: 50 }, + { part: 'chest-r', severity: 64 }, { part: 'ear-l', severity: 48 }, - // 'ear-r': 'Ear (R)', - { part: 'elbow-l', severity: 0 }, - { part: 'elbow-r', severity: 0 }, + { part: 'ear-r', severity: 0 }, + { part: 'elbow-l', severity: 12 }, + { part: 'elbow-r', severity: 40 }, { part: 'foot-l', severity: 0 }, { part: 'foot-r', severity: 0 }, - { part: 'forearm-l', severity: 0 }, - { part: 'forearm-r', severity: 0 }, - { part: 'groin', severity: 28 }, - { part: 'hamstring-l', severity: 0 }, - { part: 'hamstring-r', severity: 0 }, - { part: 'hand-l', severity: 0 }, - { part: 'hand-r', severity: 0 }, + { part: 'forearm-l', severity: 8 }, + { part: 'forearm-r', severity: 27 }, + { part: 'groin', severity: 59 }, + { part: 'hamstring-l', severity: 6 }, + { part: 'hamstring-r', severity: 20 }, + { part: 'hand-l', severity: 4 }, + { part: 'hand-r', severity: 13 }, { part: 'head', severity: 44 }, - { part: 'hip-l', severity: 0 }, + { part: 'hip-l', severity: 19 }, { part: 'hip-r', severity: 48 }, { part: 'jaw', severity: 45 }, - { part: 'knee-l', severity: 0 }, - { part: 'knee-r', severity: 0 }, + { part: 'knee-l', severity: 4 }, + { part: 'knee-r', severity: 16 }, { part: 'neck', severity: 16 }, { part: 'quad-l', severity: 0 }, - { part: 'quad-r', severity: 0 }, - { part: 'ribs-l', severity: 0 }, - { part: 'ribs-r', severity: 28 }, - { part: 'shin-l', severity: 0 }, - { part: 'shin-r', severity: 0 }, - { part: 'shoulder-l', severity: 28 }, + { part: 'quad-r', severity: 11 }, + { part: 'ribs-l', severity: 3 }, + { part: 'ribs-r', severity: 38 }, + { part: 'shin-l', severity: 5 }, + { part: 'shin-r', severity: 6 }, + { part: 'shoulder-l', severity: 48 }, { part: 'shoulder-r', severity: 10 }, - { part: 'wrist-l', severity: 0 }, - { part: 'wrist-r', severity: 0 } + { part: 'wrist-l', severity: 1 }, + { part: 'wrist-r', severity: 2 } ] }, { id: 4, description: [ - 'Patient suffered minor bruising to the right knee and left ankle, and dislocated shoulder, after attempting to catch Patient #1.' + 'Patient suffered minor bruising to the right knee and left ankle, and dislocated shoulder, after attempting to catch Patient #3.' ], stats: [ { label: 'Date', value: '12/31/2023' }, { label: 'Age', value: 23 }, - { label: 'Height', value: 6.25 }, + { label: 'Height', value: 6 }, { label: 'Weight', value: 228 }, { label: 'Blood Type', value: 'AB-' }, // O, A, B, AB { label: 'Sex', value: 'M' } ], injuries: [ + { part: 'abdomen', severity: 0 }, { part: 'ankle-l', severity: 52 }, - { part: 'back-upper', severity: 10 }, - { part: 'calf-r', severity: 8 }, - { part: 'chest-r', severity: 16 }, - { part: 'foot-l', severity: 14 }, - { part: 'forearm-r', severity: 10 }, - { part: 'hamstring-r', severity: 10 }, - { part: 'hip-l', severity: 18 }, - { part: 'knee-l', severity: 18 }, - { part: 'knee-r', severity: 45 }, - { part: 'quad-r', severity: 12 }, - { part: 'shoulder-r', severity: 58 } + { part: 'ankle-r', severity: 39 }, + { part: 'back-lower', severity: 0 }, + { part: 'back-upper', severity: 39 }, + { part: 'bicep-l', severity: 21 }, + { part: 'bicep-r', severity: 24 }, + { part: 'calf-l', severity: 0 }, + { part: 'calf-r', severity: 0 }, + { part: 'chest-l', severity: 0 }, + { part: 'chest-r', severity: 53 }, + { part: 'ear-l', severity: 1 }, + { part: 'ear-r', severity: 17 }, + { part: 'elbow-l', severity: 21 }, + { part: 'elbow-r', severity: 35 }, + { part: 'foot-l', severity: 18 }, + { part: 'foot-r', severity: 10 }, + { part: 'forearm-l', severity: 47 }, + { part: 'forearm-r', severity: 58 }, + { part: 'groin', severity: 0 }, + { part: 'hamstring-l', severity: 0 }, + { part: 'hamstring-r', severity: 0 }, + { part: 'hand-l', severity: 25 }, + { part: 'hand-r', severity: 49 }, + { part: 'head', severity: 28 }, + { part: 'hip-l', severity: 20 }, + { part: 'hip-r', severity: 31 }, + { part: 'jaw', severity: 0 }, + { part: 'knee-l', severity: 16 }, + { part: 'knee-r', severity: 33 }, + { part: 'neck', severity: 50 }, + { part: 'quad-l', severity: 6 }, + { part: 'quad-r', severity: 19 }, + { part: 'ribs-l', severity: 27 }, + { part: 'ribs-r', severity: 43 }, + { part: 'shin-l', severity: 0 }, + { part: 'shin-r', severity: 12 }, + { part: 'shoulder-l', severity: 28 }, + { part: 'shoulder-r', severity: 64 }, + { part: 'wrist-l', severity: 70 }, + { part: 'wrist-r', severity: 14 } ] }, { @@ -215,9 +244,9 @@ export const patients: PatientData[] = [ 'Patient refused pain medication, stating “I’m a tough old bird, I’ll be fine.”' ], stats: [ - { label: 'Date', value: '1/04/2024' }, + { label: 'Date', value: '1/31/2024' }, { label: 'Age', value: 89 }, - { label: 'Height', value: 5.1 }, + { label: 'Height', value: 4.92 }, { label: 'Weight', value: 96 }, { label: 'Blood Type', value: 'O+' }, // O, A, B, AB { label: 'Sex', value: 'F' }