web/src/pages/edit.astro

80 lines · 2259 bytes

 1---
 2
 3
 4import Layout from '@layouts/Layout.astro';
 5import AddNewService from '@components/things/AddNewService.svelte';
 6import type { AwesomePrivacy, Section } from '../types/Service';
 7import { fetchData, slugify } from '@utils/fetch-data';
 8import FontAwesome from '@components/form/FontAwesome.svelte';
 9
10const categories = (await fetchData() as AwesomePrivacy)?.categories || [];
11
12---
13
14<Layout title="Awesome Privacy">
15  <section>
16    <h2>About our Data</h2>
17    <p>
18      All data on Awesome Privacy is community maintained via Git.
19      <br />
20      You can make edits/additions/removals by editing the
21      <a href="github.com/lissy93/awesome-privacy/blob/main/awesome-privacy.yml">awesome-privacy.yml</a> file.
22      To learn more, see the <a href="/about#our-data">about page</a>.
23    </p>
24  </section>
25  <section>
26    <h2>Submit an Addition</h2>
27    <AddNewService client:load />
28  </section>
29
30  <section>
31    <h2>Submit a Removal Request</h2>
32    <p>
33      You can submit a removal request by browsing to a given service's page,
34      and clicking the "Request Removal" button.
35      This will open a form where you can justify your reasoning, to get it 
36      deleted from the <a href="github.com/lissy93/awesome-privacy/blob/main/awesome-privacy.yml">awesome-privacy.yml</a> file.
37    </p>
38  </section>
39
40  <section>
41    <h2>Edit a Listing</h2>
42    <p>
43      Edits are welcome! All data is located in
44      <a href="github.com/lissy93/awesome-privacy/blob/main/awesome-privacy.yml">awesome-privacy.yml</a>.
45      <br>
46      To modify an entry, navigate to it's page, scroll to the bottom, and click "Edit".
47      This will take you to directly to the relevant lines in the file, where you can make your changes.
48    </p>
49  </section>
50  
51</Layout>
52
53<style lang="scss">
54
55section {
56  margin: 2rem auto;
57  padding: 1rem;
58  width: 1000px;
59  max-width: calc(100% - 5rem);
60  display: flex;
61  flex-direction: column;
62  justify-content: space-between;
63  padding: 0 2rem;
64  border: 2px solid var(--foreground);
65  box-shadow: 6px 6px 0 var(--foreground);
66  background: var(--accent-fg);
67  @media(max-width: 768px) {
68    max-width: 95%;
69    padding: 0.5rem;
70    margin: 0 auto;
71  }
72  p {
73    margin-top: 0;
74  }
75  h2 {
76    margin-bottom: 0.5rem;
77  }
78}
79
80</style>