Skip to content

Commit

Permalink
docs: update content contributions (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
OlegShchavelev committed Aug 22, 2024
1 parent f58ea2a commit e71ac88
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 6 deletions.
13 changes: 9 additions & 4 deletions .vitepress/data/team.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,24 +12,29 @@ const limit = 6
const developersSection = {
root: {
title: 'Разработчики',
subtitle: 'проекта ALT Mobile Wiki',
description:
'Люди, которые активно участвуют не только в расширении базы знаний, но и в улучшении её функционала.'
'Список участников, которые не только внесли свой вклад в расширение базы знаний проекта ALT Mobile Wiki, но и помогли улучшить его внешний вид и функциональность.'
},
en: {
title: 'Developers',
subtitle: 'project ALT Mobile Wiki',
description:
'People who are actively involved not only in expanding the knowledge base, but also in improving its functionality.'
"A list of contributors who have not only contributed to the expansion of the ALT Mobile Wiki project's knowledge base, but have also helped improve its appearance and functionality."
}
}
const membersSection = {
root: {
title: 'Авторы',
description: 'Люди, которые участвуют в улучшении и создании новых статей.'
subtitle: 'проекта ALT Mobile Wiki',
description:
'Список участников, которые внесли вклад в улучшение содержания библиотеки знаний ALT Mobile Wiki.'
},
en: {
title: 'Authors',
subtitle: 'project ALT Mobile Wiki',
description:
'People who are involved in improving and creating new articles.'
'List of contributors who have contributed to improving the content of the ALT Mobile Wiki knowledge library.'
}
}

Expand Down
21 changes: 21 additions & 0 deletions .vitepress/theme/components/AMWTeamPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,12 @@ const { frontmatter, localeIndex } = useData()
<VPTeamPageSection class="team">
<template #title>
{{ developersSection[localeIndex].title }}
<span
if="developersSection[localeIndex].subtitle"
style="display: block"
>
{{ developersSection[localeIndex].subtitle }}
</span>
</template>
<template #lead>
{{ developersSection[localeIndex].description }}
Expand All @@ -47,6 +53,12 @@ const { frontmatter, localeIndex } = useData()
<VPTeamPageSection class="team">
<template #title>
{{ membersSection[localeIndex].title }}
<span
if="developersSection[localeIndex].subtitle"
style="display: block"
>
{{ membersSection[localeIndex].subtitle }}
</span>
</template>
<template #lead>
{{ membersSection[localeIndex].description }}
Expand Down Expand Up @@ -88,6 +100,15 @@ const { frontmatter, localeIndex } = useData()
background-color: var(--vp-c-bg);
}
.VPTeamPageSection:deep(.title-line) {
height: 2px;
top: calc(50% - calc(2px / 2));
}
.VPTeamPageSection:deep(.lead) {
max-width: 800px;
}
.team {
margin-bottom: 40px;
}
Expand Down
2 changes: 0 additions & 2 deletions docs/projects/contributions/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,3 @@
layout: contribution
longtitle: Участники
---

Список участников

0 comments on commit e71ac88

Please sign in to comment.