Skip to content

Commit

Permalink
Feat: First Version
Browse files Browse the repository at this point in the history
  • Loading branch information
acosta-leandro committed Jun 21, 2024
1 parent 3a19210 commit 211539b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
8 changes: 5 additions & 3 deletions src/components/PeopleItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,11 @@ const props = defineProps({
<template>
<div class="column col-xs-12 col-md-3 q-pa-sm">
<div class="q-card--bordered rounded-borders text-center bg-primary text-white col-grow">
<q-img :src="props.people.image" v-if="props.people.image" alt="" class="rounded-borders" style="max-width: 100%; height: auto" />
<q-img src="~/assets/maleAvatar.png" v-else-if="props.people.avatar === 'maleAvatar'" alt="" class="rounded-borders" style="max-width: 100%; height: auto" />
<q-img src="~/assets/femaleAvatar.png" v-else-if="props.people.avatar === 'femaleAvatar'" alt="" class="rounded-borders" style="max-width: 100%; height: auto" />
<div class="row bg-white">
<q-img :src="props.people.image" v-if="props.people.image" alt="" class="rounded-borders" style="height: 100px" fit="scale-down" />
<q-img src="~/assets/maleAvatar.png" v-else-if="props.people.avatar === 'maleAvatar'" alt="" class="rounded-borders" style="height: 100px" fit="scale-down" />
<q-img src="~/assets/femaleAvatar.png" v-else-if="props.people.avatar === 'femaleAvatar'" alt="" class="rounded-borders" style="height: 100px" fit="scale-down" />
</div>
<div class="q-py-sm">
<div class="text-h6">{{ props.people.name }}</div>
<div class="text-subtitle2">{{ props.people.affiliation }}</div>
Expand Down
6 changes: 3 additions & 3 deletions src/components/PeopleItemLarge.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ const props = defineProps({
<template>
<div class="column col-xs-12 col-md-6 q-pa-sm">
<div class="row q-card--bordered rounded-borders text-center bg-primary text-white">
<div class="col-xs-12 col-md-6 row items-center">
<div class="col-xs-12 col-md-6 row items-center bg-white">
<img :src="props.people.image" v-if="props.people.image" alt="" class="rounded-borders" style="max-width: 100%; height: auto">
<q-img src="~/assets/maleAvatar.png" v-else-if="props.people.avatar === 'maleAvatar'" alt="" class="rounded-borders" style="max-width: 100%; height: auto" />
<q-img src="~/assets/femaleAvatar.png" v-else-if="props.people.avatar === 'femaleAvatar'" alt="" class="rounded-borders" style="max-width: 100%; height: auto" />
<q-img src="~/assets/maleAvatar.png" v-else-if="props.people.avatar === 'maleAvatar'" alt="" class="rounded-borders" style="height: 100px" fit="scale-down" />
<q-img src="~/assets/femaleAvatar.png" v-else-if="props.people.avatar === 'femaleAvatar'" alt="" class="rounded-borders" style="height: 100px" fit="scale-down" />
</div>
<div class="col-xs-12 col-md-6 q-py-md justify-evenly column">
<div>
Expand Down

0 comments on commit 211539b

Please sign in to comment.