diff --git a/web/src/pages/all.astro b/web/src/pages/all.astro new file mode 100644 index 0000000..38d5129 --- /dev/null +++ b/web/src/pages/all.astro @@ -0,0 +1,192 @@ +--- + + +import Layout from '@layouts/Layout.astro'; +import Button from '@components/form/Button.astro'; +import Main from '@components/scafold/MainCard.astro'; +import ServiceList from '@components/things/ServiceList.astro'; +import type { AwesomePrivacy, Section, Service, ShortService } from '../types/Service'; +import { fetchData, slugify } from '@utils/fetch-data'; +import { parseMarkdown } from '@utils/parse-markdown'; + + +const categories = (await fetchData() as AwesomePrivacy).categories; + +--- + + + + + + + Show Contents + {categories.map((category) => ( + + {category.name} + + + + {category.sections.map((section: Section) => ( + + + {section.name} + + + + ))} + + + ))} + + + Contents + + {categories.map((category) => ( + + {category.name} + + + + {category.sections.map((section: Section) => ( + + {section.name} + + ))} + + + ))} + + + + + + +
Contents