Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bugfix/the people alignment #142

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
51 changes: 20 additions & 31 deletions packages/frontendmu-nuxt/pages/team.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,41 +13,29 @@

<ul id="team" role="list" class="mx-auto grid grid-cols-2 gap-x-4 gap-y-8 sm:grid-cols-4 md:gap-x-6 lg:gap-x-8">
<li v-for="person in people" :key="person.id">
<template v-if="person.id">
<NuxtLink class="space-y-4" :href="`/speaker/${person.id}`">
<span class="sr-only">{{ person.name }}</span>
<img class="mx-auto h-20 w-20 rounded-lg border-verse-2 shadow-lg 00 border p-2 lg:w-48 lg:h-48"
:src="person.imageUrl" :alt="person.name" :title="person.name" width="300" height="300" />
<component :is="person.id ? NuxtLink : 'div'" :href="person.id ? `/speaker/${person.id}` : null">
<span v-if="person.id" class="sr-only">{{ person.name }}</span>

<div class="space-y-2">
<div class="text-xs font-medium lg:text-lg text-center">
<h3 class="text-verse-500 dark:text-verse-200">
{{ person.name }}
</h3>
<p class="font-heading text-sm dark:text-verse-400 text-verse-600">
{{ person.role }}
</p>
</div>
</div>
</NuxtLink>
</template>
<template v-else>
<div class="space-y-4">
<img class="mx-auto h-20 w-20 rounded-lg border-verse-2 shadow-lg 00 border p-2 lg:w-48 lg:h-48"
:src="person.imageUrl" :alt="person.name" :title="person.name" width="300" height="300" />
<img
class="mx-auto h-20 w-20 rounded-lg border-verse-2 shadow-lg 00 border p-2 lg:w-48 lg:h-48"
:src="person.imageUrl"
:alt="person.name"
:title="person.name"
width="300"
height="300"
/>

<div class="space-y-2">
<div class="text-xs font-medium lg:text-lg text-center">
<h3 class="text-verse-500 dark:text-verse-200">
{{ person.name }}
</h3>
<p class="font-heading text-sm dark:text-verse-400 text-verse-600">
{{ person.role }}
</p>
</div>
<div class="space-y-2">
<div class="text-xs font-medium lg:text-lg text-center">
<h3 class="text-verse-500 dark:text-verse-200">
{{ person.name }}
</h3>
<p class="font-heading text-sm dark:text-verse-400 text-verse-600">
{{ person.role }}
</p>
</div>
</div>
</template>
</component>
</li>
</ul>

Expand Down Expand Up @@ -133,4 +121,5 @@ interface Contributor {
}

const contributors: Contributor[] = Contributors;
const NuxtLink = resolveComponent('NuxtLink')
</script>
Loading