diff --git a/.vitepress/data/sponsors.ts b/.vitepress/data/sponsors.ts new file mode 100644 index 0000000..d0a4c21 --- /dev/null +++ b/.vitepress/data/sponsors.ts @@ -0,0 +1,18 @@ +export const sponsors = [ + { + tier: 'Организационная структура', + size: 'big', + items: [ + { + name: 'ALT Linux Team', + img: './alt-linux-team.png', + url: 'https://packages.altlinux.org/ru/sisyphus' + }, + { + name: 'BaseALT', + img: './basealt.png', + url: 'https://www.basealt.ru' + } + ] + } + ] \ No newline at end of file diff --git a/.vitepress/theme/components/AMWHomeSponsors.vue b/.vitepress/theme/components/AMWHomeSponsors.vue new file mode 100644 index 0000000..4079121 --- /dev/null +++ b/.vitepress/theme/components/AMWHomeSponsors.vue @@ -0,0 +1,26 @@ + + + \ No newline at end of file diff --git a/.vitepress/theme/index.ts b/.vitepress/theme/index.ts index 0b1119b..a418e77 100644 --- a/.vitepress/theme/index.ts +++ b/.vitepress/theme/index.ts @@ -5,6 +5,7 @@ import DefaultTheme from 'vitepress/theme' import AMWContribution from './components/AMWContribution.vue' import AMWDocsAsideMeta from './components/AMWDocsAsideMeta.vue' +import AMWHomeSponsors from './components/AMWHomeSponsors.vue' import AMWVideo from './components/AMWVideo.vue' import { @@ -29,6 +30,7 @@ export default { 'nav-bar-content-after': () => h(NolebaseEnhancedReadabilitiesMenu), 'nav-screen-content-after': () => h(NolebaseEnhancedReadabilitiesScreenMenu), 'aside-outline-after': () => h(AMWDocsAsideMeta), + 'home-features-after': () => h(AMWHomeSponsors) }) }, enhanceApp({ app, router, siteData }) { diff --git a/.vitepress/theme/styles/theme.css b/.vitepress/theme/styles/theme.css index dbd9872..cb3a12e 100644 --- a/.vitepress/theme/styles/theme.css +++ b/.vitepress/theme/styles/theme.css @@ -101,4 +101,17 @@ --vp-custom-block-details-border: var(--vp-c-divider); --vp-custom-block-details-bg: var(--vp-c-bg-soft-up); -} \ No newline at end of file +} + +/** + * VPHomeSponsors + * -------------------------------------------------------------------------- */ + + .vp-sponsor-grid.big .vp-sponsor-grid-image { + max-width: 170px; + max-height: 120px; + } + + .VPHomeSponsors .message { + max-width: 800px; + } \ No newline at end of file diff --git a/docs/public/alt-linux-team.png b/docs/public/alt-linux-team.png new file mode 100644 index 0000000..5131937 Binary files /dev/null and b/docs/public/alt-linux-team.png differ diff --git a/docs/public/basealt.png b/docs/public/basealt.png new file mode 100644 index 0000000..f056241 Binary files /dev/null and b/docs/public/basealt.png differ