Skip to content

Commit 9976f61

Browse files
lwasserJimMadge
andauthored
docs: style landing page, add branded fonts and colors & tailwind (#901)
* docs(style): source gfonts poppins * docs(style): add custom style/ setup tailwind * docs(img): add and update images * docs(img): add and update images * docs(config): cleanup landing and config * chore(deps): update to support tailwind * chore(css): setup tailwind css * docs: add graphics for home page and style buttons * docs: add buttons * docs: missed a few more image updates * chore(deps): correct dependency location in package.lock * chore(clean): clean old files * chore: add poppins font license --------- Co-authored-by: Jim Madge <[email protected]>
1 parent 8594016 commit 9976f61

18 files changed

+2199
-363
lines changed

astro.config.mjs

Lines changed: 65 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -4,58 +4,70 @@ import starlight from '@astrojs/starlight';
44

55
import sitemap from '@astrojs/sitemap';
66

7+
import tailwindcss from '@tailwindcss/vite';
8+
79
export default defineConfig({
8-
site: 'https://allcontributors.org',
9-
base: '/',
10-
output: 'static',
11-
redirects: {
12-
// Later we can put redirects here if needed
13-
},
14-
integrations: [starlight({
15-
title: '',
16-
logo: {
17-
src: './src/assets/logo-full.svg',
18-
},
19-
favicon: '/icons/favicon-16x16.png',
20-
social: [{ icon: 'github', label: 'GitHub', href: 'https://github.com/all-contributors/all-contributors' }],
21-
sidebar: [
22-
{
23-
label: 'Specification',
24-
items: [
25-
{ label: 'overview', slug: 'overview' },
26-
{ label: 'specification', slug: 'specification' },
27-
{ label: 'emoji-key', slug: 'emoji-key' },
28-
{ label: 'repository-maintainers', slug: 'repository-maintainers' },
29-
{ label: 'tooling', slug: 'tooling' }
30-
],
31-
},
32-
{
33-
label: '@all-contributors Bot 🤖',
34-
items: [
35-
{ label: 'overview', slug: 'bot/overview' },
36-
{ label: 'installation', slug: 'bot/installation' },
37-
{ label: 'usage', slug: 'bot/usage' },
38-
{ label: 'configuration', slug: 'bot/configuration' },
39-
{ label: 'faq', slug: 'bot/faq' }
40-
],
41-
},
42-
{
43-
label: 'CLI',
44-
items: [
45-
{ label: 'overview', slug: 'cli/overview' },
46-
{ label: 'installation', slug: 'cli/installation' },
47-
{ label: 'usage', slug: 'cli/usage' },
48-
{ label: 'configuration', slug: 'cli/configuration' }
49-
],
50-
},
51-
{
52-
label: 'Project',
53-
items: [
54-
{ label: 'contribute', slug: 'project/contribute' },
55-
{ label: 'code-of-conduct', slug: 'project/code-of-conduct' },
56-
{ label: 'implementations', slug: 'project/implementations' }
57-
],
58-
},
59-
],
60-
}), sitemap()],
10+
site: 'https://allcontributors.org',
11+
base: '/',
12+
output: 'static',
13+
14+
redirects: {
15+
// Later we can put redirects here if needed
16+
},
17+
18+
integrations: [
19+
starlight({
20+
customCss: [
21+
'./src/styles/global.css',
22+
'./src/fonts/font-face.css'],
23+
title: '',
24+
logo: {
25+
src: './src/assets/logo-full.svg',
26+
},
27+
favicon: '/icons/favicon-16x16.png',
28+
social: [{ icon: 'github', label: 'GitHub', href: 'https://github.com/all-contributors/all-contributors' }],
29+
sidebar: [
30+
{
31+
label: 'Specification',
32+
items: [
33+
{ label: 'overview', slug: 'overview' },
34+
{ label: 'specification', slug: 'specification' },
35+
{ label: 'emoji-key', slug: 'emoji-key' },
36+
{ label: 'repository-maintainers', slug: 'repository-maintainers' },
37+
{ label: 'tooling', slug: 'tooling' }
38+
],
39+
},
40+
{
41+
label: '@all-contributors Bot 🤖',
42+
items: [
43+
{ label: 'overview', slug: 'bot/overview' },
44+
{ label: 'installation', slug: 'bot/installation' },
45+
{ label: 'usage', slug: 'bot/usage' },
46+
{ label: 'configuration', slug: 'bot/configuration' },
47+
{ label: 'faq', slug: 'bot/faq' }
48+
],
49+
},
50+
{
51+
label: 'CLI',
52+
items: [
53+
{ label: 'overview', slug: 'cli/overview' },
54+
{ label: 'installation', slug: 'cli/installation' },
55+
{ label: 'usage', slug: 'cli/usage' },
56+
{ label: 'configuration', slug: 'cli/configuration' }
57+
],
58+
},
59+
{
60+
label: 'Project',
61+
items: [
62+
{ label: 'contribute', slug: 'project/contribute' },
63+
{ label: 'code-of-conduct', slug: 'project/code-of-conduct' },
64+
{ label: 'implementations', slug: 'project/implementations' }
65+
],
66+
},
67+
],
68+
}), sitemap()],
69+
70+
vite: {
71+
plugins: [tailwindcss()],
72+
},
6173
});

0 commit comments

Comments
 (0)