|
|
|
@ -3,15 +3,16 @@ import type { DefaultTheme } from 'vitepress/theme'
|
|
|
|
|
import { computed } from 'vue'
|
|
|
|
|
import VPTeamMembersItem from './VPTeamMembersItem.vue'
|
|
|
|
|
|
|
|
|
|
const props = defineProps<{
|
|
|
|
|
interface Props {
|
|
|
|
|
size?: 'small' | 'medium'
|
|
|
|
|
members: DefaultTheme.TeamMember[]
|
|
|
|
|
}>()
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
const props = withDefaults(defineProps<Props>(), {
|
|
|
|
|
size: 'medium'
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
const classes = computed(() => [
|
|
|
|
|
props.size ?? 'medium',
|
|
|
|
|
`count-${props.members.length}`
|
|
|
|
|
])
|
|
|
|
|
const classes = computed(() => [props.size, `count-${props.members.length}`])
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<template>
|
|
|
|
@ -29,9 +30,15 @@ const classes = computed(() => [
|
|
|
|
|
grid-template-columns: repeat(auto-fit, minmax(224px, 1fr));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.VPTeamMembers.small.count-1 .container { max-width: 276px; }
|
|
|
|
|
.VPTeamMembers.small.count-2 .container { max-width: calc(276px * 2 + 24px); }
|
|
|
|
|
.VPTeamMembers.small.count-3 .container { max-width: calc(276px * 3 + 24px * 2); }
|
|
|
|
|
.VPTeamMembers.small.count-1 .container {
|
|
|
|
|
max-width: 276px;
|
|
|
|
|
}
|
|
|
|
|
.VPTeamMembers.small.count-2 .container {
|
|
|
|
|
max-width: calc(276px * 2 + 24px);
|
|
|
|
|
}
|
|
|
|
|
.VPTeamMembers.small.count-3 .container {
|
|
|
|
|
max-width: calc(276px * 3 + 24px * 2);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.VPTeamMembers.medium .container {
|
|
|
|
|
grid-template-columns: repeat(auto-fit, minmax(256px, 1fr));
|
|
|
|
@ -43,8 +50,12 @@ const classes = computed(() => [
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.VPTeamMembers.medium.count-1 .container { max-width: 368px; }
|
|
|
|
|
.VPTeamMembers.medium.count-2 .container { max-width: calc(368px * 2 + 24px); }
|
|
|
|
|
.VPTeamMembers.medium.count-1 .container {
|
|
|
|
|
max-width: 368px;
|
|
|
|
|
}
|
|
|
|
|
.VPTeamMembers.medium.count-2 .container {
|
|
|
|
|
max-width: calc(368px * 2 + 24px);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.container {
|
|
|
|
|
display: grid;
|
|
|
|
|