web/src/pages/inventory/index.astro
58 lines · 1518 bytes
1---
2import Layout from '@layouts/Layout.astro';
3import SavedServices from '@components/things/SavedServices.svelte';
4import GetSharableLink from '@components/things/GetSharableLink.svelte';
5
6import Button from '@components/form/Button.astro';
7import EditableTitle from '@components/form/EditableTitle.svelte';
8---
9
10<Layout
11 title="Saved Services | Awesome Privacy"
12 description="Your personal shortlist of privacy-respecting apps and services, saved in your browser and sharable with a link."
13>
14 <main>
15 <h1 class="sr-only">Saved Services</h1>
16 <div class="top-row">
17 <EditableTitle client:load />
18 <GetSharableLink client:load />
19 </div>
20 <SavedServices client:load />
21 <div class="buttons">
22 <p>Not found what you're looking for?</p>
23 <Button url="/all/">Browse Services</Button>
24 </div>
25 </main>
26</Layout>
27
28<style lang="scss">
29 main {
30 margin: 0 auto var(--space-lg) auto;
31 padding: var(--space-md);
32 width: var(--width-container);
33 max-width: var(--width-container-max);
34 display: flex;
35 justify-content: space-between;
36 flex-direction: column;
37 min-height: calc(100vh - 12rem);
38 font-size: var(--text-md);
39 .top-row {
40 display: flex;
41 justify-content: space-between;
42 align-items: center;
43 margin-bottom: var(--space-md);
44 }
45 h2 {
46 font-family: var(--font-subtitle);
47 font-weight: bold;
48 font-size: var(--text-4xl);
49 margin: 0;
50 color: var(--accent-3-text);
51 }
52 .buttons {
53 margin: var(--space-md) auto;
54 display: flex;
55 flex-direction: column;
56 }
57 }
58</style>