pull/3796/merge
Steven Ding 3 weeks ago committed by GitHub
commit 6b116362da
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -0,0 +1,131 @@
---
layout: page
title: Meet the Team
description: The development of Vite is guided by an international team.
---
<script setup>
import {
VPTeamPage,
VPTeamPageTitle,
VPTeamPageSection,
VPTeamMembers
} from 'vitepress/theme'
const members1 = [
{
avatar: 'https://github.com/yyx990803.png',
name: 'Evan You',
title: 'Creator',
links: [
{ icon: 'github', link: 'https://github.com/yyx990803' },
{ icon: 'twitter', link: 'https://twitter.com/youyuxi' }
]
},
{
avatar: 'https://github.com/kiaking.png',
name: 'Kia King Ishii',
title: 'Developer',
links: [
{ icon: 'github', link: 'https://github.com/kiaking' },
{ icon: 'twitter', link: 'https://twitter.com/KiaKing85' }
]
},
// {
// avatar: 'https://github.com/kiaking.png',
// name: 'Kia King Ishii',
// title: 'Developer',
// links: [
// { icon: 'github', link: 'https://github.com/kiaking' },
// { icon: 'twitter', link: 'https://twitter.com/KiaKing85' }
// ]
// },
// {
// avatar: 'https://github.com/kiaking.png',
// name: 'Kia King Ishii',
// title: 'Developer',
// links: [
// { icon: 'github', link: 'https://github.com/kiaking' },
// { icon: 'twitter', link: 'https://twitter.com/KiaKing85' }
// ]
// },
// {
// avatar: 'https://github.com/kiaking.png',
// name: 'Kia King Ishii',
// title: 'Developer',
// links: [
// { icon: 'github', link: 'https://github.com/kiaking' },
// { icon: 'twitter', link: 'https://twitter.com/KiaKing85' }
// ]
// }
]
const members2 = [
{
avatar: 'https://github.com/yyx990803.png',
name: 'Evan You',
title: 'Creator',
links: [
{ icon: 'github', link: 'https://github.com/yyx990803' },
{ icon: 'twitter', link: 'https://twitter.com/youyuxi' }
]
},
{
avatar: 'https://github.com/kiaking.png',
name: 'Kia King Ishii',
title: 'Developer',
links: [
{ icon: 'github', link: 'https://github.com/kiaking' },
{ icon: 'twitter', link: 'https://twitter.com/KiaKing85' }
]
},
{
avatar: 'https://github.com/kiaking.png',
name: 'Kia King Ishii',
title: 'Developer',
links: [
{ icon: 'github', link: 'https://github.com/kiaking' },
{ icon: 'twitter', link: 'https://twitter.com/KiaKing85' }
]
},
// {
// avatar: 'https://github.com/kiaking.png',
// name: 'Kia King Ishii',
// title: 'Developer',
// links: [
// { icon: 'github', link: 'https://github.com/kiaking' },
// { icon: 'twitter', link: 'https://twitter.com/KiaKing85' }
// ]
// },
// {
// avatar: 'https://github.com/kiaking.png',
// name: 'Kia King Ishii',
// title: 'Developer',
// links: [
// { icon: 'github', link: 'https://github.com/kiaking' },
// { icon: 'twitter', link: 'https://twitter.com/KiaKing85' }
// ]
// }
]
</script>
<VPTeamPage>
<VPTeamPageTitle>
<template #title>Meet the Team</template>
<template #lead>
The development of Vite is guided by an international team, some of whom
have chosen to be featured below.
</template>
</VPTeamPageTitle>
<VPTeamMembers :members="members1" />
<VPTeamPageSection>
<template #title>Team Emeriti</template>
<template #lead>
Here we honor some no-longer-active team members who have made valuable
contributions in the past.
</template>
<template #members>
<VPTeamMembers size="small" :members="members2" />
</template>
</VPTeamPageSection>
</VPTeamPage>

@ -26,41 +26,98 @@ const classes = computed(() => [props.size, `count-${props.members.length}`])
</template> </template>
<style scoped> <style scoped>
.VPTeamMembers.small .container { .container {
grid-template-columns: repeat(auto-fit, minmax(224px, 1fr)); display: grid;
gap: 24px;
margin: 0 auto;
width: 100%;
max-width: 1152px;
} }
.VPTeamMembers.small.count-1 .container { .item {
max-width: 276px; width: 100%;
} }
.VPTeamMembers.small.count-2 .container {
max-width: calc(276px * 2 + 24px); /**
* Small size layout.
* -------------------------------------------------------------------------- */
@media (min-width: 512px) {
.VPTeamMembers.small .container {
grid-template-columns: repeat(2, 1fr);
}
.VPTeamMembers.small.count-1 .container,
.VPTeamMembers.small.count-2 .container {
display: flex;
justify-content: center;
}
.VPTeamMembers.small.count-1 .item,
.VPTeamMembers.small.count-2 .item {
max-width: 272px;
}
} }
.VPTeamMembers.small.count-3 .container {
max-width: calc(276px * 3 + 24px * 2); @media (min-width: 768px) {
.VPTeamMembers.small .container {
grid-template-columns: repeat(3, 1fr);
}
} }
.VPTeamMembers.medium .container { @media (min-width: 960px) {
grid-template-columns: repeat(auto-fit, minmax(256px, 1fr)); .VPTeamMembers.small .container {
grid-template-columns: repeat(4, 1fr);
}
.VPTeamMembers.small.count-3 .container {
display: flex;
justify-content: center;
}
.VPTeamMembers.small.count-3 .item {
max-width: 272px;
}
} }
@media (min-width: 375px) { /**
* Medium size layout.
* -------------------------------------------------------------------------- */
@media (min-width: 512px) and (max-width: 639px) {
.VPTeamMembers.medium .container { .VPTeamMembers.medium .container {
grid-template-columns: repeat(auto-fit, minmax(288px, 1fr)); display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
} }
}
.VPTeamMembers.medium.count-1 .container { .VPTeamMembers.medium .item {
max-width: 368px; max-width: 368px;
}
} }
.VPTeamMembers.medium.count-2 .container {
max-width: calc(368px * 2 + 24px); @media (min-width: 640px) {
.VPTeamMembers.medium .container {
grid-template-columns: repeat(2, 1fr);
}
.VPTeamMembers.medium.count-1 .container,
.VPTeamMembers.medium.count-2 .container {
display: flex;
justify-content: center;
align-items: center;
}
.VPTeamMembers.medium.count-1 .item,
.VPTeamMembers.medium.count-2 .item {
max-width: 368px;
}
} }
.container { @media (min-width: 960px) {
display: grid; .VPTeamMembers.medium .container {
gap: 24px; grid-template-columns: repeat(3, 1fr);
margin: 0 auto; }
max-width: 1152px;
} }
</style> </style>

@ -6,53 +6,42 @@
<style scoped> <style scoped>
.VPTeamPage { .VPTeamPage {
margin: 96px 0; padding: 48px 24px 128px;
} }
@media (min-width: 768px) { @media (min-width: 768px) {
.VPTeamPage { .VPTeamPage {
margin: 128px 0; padding: 64px 32px 128px;
} }
} }
.VPHome :slotted(.VPTeamPageTitle) { @media (min-width: 960px) {
border-top: 1px solid var(--vp-c-gutter); .VPTeamPage {
padding-top: 88px !important; padding: 96px 64px 128px;
}
} }
:slotted(.VPTeamPageSection + .VPTeamPageSection), .VPTeamPage :deep(.VPTeamPageSection + .VPTeamPageSection),
:slotted(.VPTeamMembers + .VPTeamPageSection) { .VPTeamPage :deep(.VPTeamMembers + .VPTeamPageSection) {
margin-top: 64px; margin-top: 64px;
} }
:slotted(.VPTeamMembers + .VPTeamMembers) { .VPTeamPage :deep(.VPTeamPageTitle + .VPTeamMembers) {
margin-top: 32px;
}
.VPTeamPage :deep(.VPTeamMembers + .VPTeamMembers) {
margin-top: 24px; margin-top: 24px;
} }
@media (min-width: 768px) { @media (min-width: 768px) {
:slotted(.VPTeamPageTitle + .VPTeamPageSection) { .VPTeamPage :deep(.VPTeamPageTitle + .VPTeamPageSection) {
margin-top: 16px; margin-top: 16px;
} }
:slotted(.VPTeamPageSection + .VPTeamPageSection), .VPTeamPage :deep(.VPTeamPageSection + .VPTeamPageSection),
:slotted(.VPTeamMembers + .VPTeamPageSection) { .VPTeamPage :deep(.VPTeamMembers + .VPTeamPageSection) {
margin-top: 96px; margin-top: 96px;
} }
} }
:slotted(.VPTeamMembers) {
padding: 0 24px;
}
@media (min-width: 768px) {
:slotted(.VPTeamMembers) {
padding: 0 48px;
}
}
@media (min-width: 960px) {
:slotted(.VPTeamMembers) {
padding: 0 64px;
}
}
</style> </style>

@ -16,22 +16,6 @@
</template> </template>
<style scoped> <style scoped>
.VPTeamPageSection {
padding: 0 32px;
}
@media (min-width: 768px) {
.VPTeamPageSection {
padding: 0 48px;
}
}
@media (min-width: 960px) {
.VPTeamPageSection {
padding: 0 64px;
}
}
.title { .title {
position: relative; position: relative;
margin: 0 auto; margin: 0 auto;
@ -67,11 +51,10 @@
text-align: center; text-align: center;
line-height: 24px; line-height: 24px;
font-size: 16px; font-size: 16px;
font-weight: 500;
color: var(--vp-c-text-2); color: var(--vp-c-text-2);
} }
.members { .members {
padding-top: 40px; padding-top: 24px;
} }
</style> </style>

@ -11,22 +11,9 @@
<style scoped> <style scoped>
.VPTeamPageTitle { .VPTeamPageTitle {
padding: 48px 32px;
text-align: center; text-align: center;
} }
@media (min-width: 768px) {
.VPTeamPageTitle {
padding: 64px 48px 48px;
}
}
@media (min-width: 960px) {
.VPTeamPageTitle {
padding: 80px 64px 48px;
}
}
.title { .title {
letter-spacing: 0; letter-spacing: 0;
line-height: 44px; line-height: 44px;

@ -523,21 +523,35 @@
.vp-doc .VPTeamMembers { .vp-doc .VPTeamMembers {
margin-top: 24px; margin-top: 24px;
margin-bottom: 24px;
} }
.vp-doc .VPTeamMembers.small.count-1 .container { @media (min-width: 512px) {
margin: 0 !important; .VPTeamMembers.small.count-2 .item,
max-width: calc((100% - 24px) / 2) !important; .VPTeamMembers.small.count-3 .item {
max-width: 100% !important;
}
} }
.vp-doc .VPTeamMembers.small.count-2 .container, @media (min-width: 768px) {
.vp-doc .VPTeamMembers.small.count-3 .container { .vp-doc .VPTeamMembers.small .container,
.vp-doc .VPTeamMembers.medium .container {
grid-template-columns: repeat(2, 1fr) !important;
}
.vp-doc .VPTeamMembers.small.count-2 .container,
.vp-doc .VPTeamMembers.small.count-3 .container {
display: grid !important;
grid-template-columns: repeat(2, 1fr) !important;
}
.vp-doc .VPTeamMembers.small .item {
max-width: 100% !important; max-width: 100% !important;
} }
.vp-doc .VPTeamMembers.medium.count-1 .container { .vp-doc .VPTeamMembers.small.count-1 .item {
margin: 0 !important; max-width: 272px !important;
max-width: calc((100% - 24px) / 2) !important; }
} }
/** /**

Loading…
Cancel
Save