diff options
author | 2021-09-06 01:20:40 -0700 | |
---|---|---|
committer | 2021-09-06 01:21:55 -0700 | |
commit | 6dc05575a65bf6bdc6f52848d274b1f333a36076 (patch) | |
tree | 12ec4f4a8a469a7d92f2a127ed2e4d34013f6e7c /docs/src/pages/themes.astro | |
parent | d321d8366b597e46ff8e3fc63d17622a9297505c (diff) | |
download | astro-6dc05575a65bf6bdc6f52848d274b1f333a36076.tar.gz astro-6dc05575a65bf6bdc6f52848d274b1f333a36076.tar.zst astro-6dc05575a65bf6bdc6f52848d274b1f333a36076.zip |
scale back the examples page
Diffstat (limited to 'docs/src/pages/themes.astro')
-rw-r--r-- | docs/src/pages/themes.astro | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/docs/src/pages/themes.astro b/docs/src/pages/themes.astro new file mode 100644 index 000000000..c4eea3067 --- /dev/null +++ b/docs/src/pages/themes.astro @@ -0,0 +1,45 @@ +--- +import Layout from '../layouts/MainLayout.astro'; +import Card from '../components/Examples/Card.astro'; +import {Markdown} from 'astro/components'; +import themes from '../data/themes.json'; +import components from '../data/components.json'; +--- +<style> + .card-grid { + display: grid; + grid-column-gap: 15px; + grid-row-gap: 15px; + grid-auto-flow: dense; + grid-template-columns: repeat(auto-fit,minmax(300px,1fr)) + } +</style> +<Layout content={{title: 'Themes'}} hideRightSidebar> + <Markdown> + ## Featured Themes + + Astro is supported by a growing ecosystem of third-pary themes and components. + </Markdown> + <div class="card-grid"> + + {themes.community.map((item)=>(<Card data={item} />))} + </div> + <Markdown> + ## Official Themes + + Astro maintains several official themes for common use-cases like documentation, portfolios, and more. + </Markdown> + <div class="card-grid"> + + {themes.official.map((item)=>(<Card data={item} />))} + </div> + <Markdown> + ## Featured Packages + + Our package ecosystem is growing! Check out these featured community packages. + </Markdown> + <div class="card-grid"> + + {components.community.map((item)=>(<Card data={item} />))} + </div> +</Layout>
\ No newline at end of file |