web/src/pages/about.astro
478 lines · 11526 bytes
1---
2import Layout from '@layouts/Layout.astro';
3import Main from '@components/scafold/MainCard.astro';
4import Icon from '@components/form/Icon.astro';
5import SocialShare from '@components/form/Social.astro';
6import { parseMarkdown } from '@utils/parse-markdown';
7import {
8 authorProjects,
9 authorSocials,
10 aboutOurData,
11 projectRequirements,
12 appDescription,
13} from '../site-config';
14
15interface GitHubContributor {
16 login: string;
17 avatar_url: string;
18 html_url: string;
19}
20
21interface Sponsor {
22 login: string;
23 avatarUrl: string;
24 name?: string;
25}
26
27const githubHeaders: Record<string, string> = {
28 'User-Agent': 'awesome-privacy',
29};
30const apiKey = import.meta.env.GITHUB_API_KEY;
31if (apiKey) {
32 githubHeaders['Authorization'] = `Bearer ${apiKey}`;
33}
34
35const contributorsResource = async (): Promise<GitHubContributor[] | null> => {
36 const url =
37 'https://api.github.com/repos/lissy93/personal-security-checklist/contributors?per_page=100';
38 const response = await fetch(url, { headers: githubHeaders });
39 if (!response.ok) return null;
40 return await response.json();
41};
42
43const sponsorsResource = async (): Promise<Sponsor[] | null> => {
44 const url = 'https://github-sponsors.as93.workers.dev/lissy93';
45 const response = await fetch(url);
46 if (!response.ok) return null;
47 return await response.json();
48};
49
50const contributors = await contributorsResource();
51const sponsors = await sponsorsResource();
52
53const licenseContent = async () => {
54 const url =
55 'https://raw.githubusercontent.com/Lissy93/awesome-privacy/HEAD/LICENSE';
56 const response = await fetch(url);
57 if (!response.ok) {
58 throw new Error('Failed to fetch license');
59 }
60 return await response.text();
61};
62---
63
64<Layout title="About | Awesome Privacy" description={appDescription}>
65 <div class="about-page">
66 <Main>
67 <h2 id="objective">Objective</h2>
68 <p>
69 Large data-hungry corporations dominate the digital world but with
70 little, or no respect for your privacy. We believe that privacy is a
71 fundamental human right and that it should be protected.
72 <br /><br />
73 Migrating to open-source applications and those with a strong emphasis on
74 privacy & security will help safegaurd you from corporations, governments,
75 and hackers who log, store or sell your sensetive personal data.
76 <br /><br />
77 Awesome Privacy is a directory of alternative software which respects your
78 privacy.
79 <br /><br />
80 </p>
81 <hr />
82
83 <h2 id="creteria">Software Requirements</h2>
84 <div class="software-requirements">
85 <p set:html={parseMarkdown(projectRequirements)} />
86 </div>
87 <hr />
88
89 <h2 id="our-data">Our Data</h2>
90 <div class="about-the-data">
91 <p set:html={parseMarkdown(aboutOurData)} />
92 </div>
93 <hr />
94
95 <h2 id="contributing">Contributing</h2>
96 <p>
97 Awesome Privacy (including all data and code) is fully open source,
98 maintained by a core group of volenteers, with a lot of help from the
99 community.
100 <br /><br />
101 We welcome suggestions, additions, edits and removals to the list.<br />
102 It's thanks to contributors like you that this project is possible 💜
103 <br /><br />
104 To get started, head over to our <a
105 href="https://github.com/lissy93/awesome-privacy">GitHub repository</a
106 >. From here, you'll be able to edit <a href="#"
107 ><code>awesome-privacy.yml</code></a
108 >
109 where all data is stored, and then submit your changes as a pull request.
110 <br /><br />
111 If you're new to open source, you can find some resources to get you started
112 at <a href="https://git-in.to">git-in.to</a>, but feel free to reach out
113 if you need any help 😊
114 </p>
115 <hr />
116
117 <h2 id="acknowledgements">Acknowledgements</h2>
118 <h3 id="sponsors">Sponsors</h3>
119 <p>Huge thanks to the following sponsors, for their ongoing support 💖</p>
120 {
121 sponsors ? (
122 <div class="user-list">
123 {sponsors.map((sponsor) => (
124 <a
125 class="user"
126 href={`https://github.com/${sponsor.login}`}
127 target="_blank"
128 rel="noreferrer"
129 >
130 <img src={sponsor.avatarUrl} alt={sponsor.login} />
131 <p>{sponsor.name || sponsor.login}</p>
132 </a>
133 ))}
134 </div>
135 ) : (
136 <img
137 class="fallback-img"
138 src="https://readme-contribs.as93.net/sponsors/lissy93?perRow=12&shape=squircle&textColor=ffffff&limit=96"
139 alt="Sponsors"
140 />
141 )
142 }
143
144 <h3 id="contributors">Contributors</h3>
145 <p>
146 This project exists thanks to all the people who've helped build and
147 maintain it.<br />
148 Special thanks to the below, top-100 contributors 🌟
149 </p>
150 {
151 contributors ? (
152 <div class="user-list">
153 {contributors.map((contributor) => (
154 <a
155 class="user"
156 href={contributor.html_url}
157 target="_blank"
158 rel="noreferrer"
159 >
160 <img src={contributor.avatar_url} alt={contributor.login} />
161 <p>{contributor.login}</p>
162 </a>
163 ))}
164 </div>
165 ) : (
166 <img
167 class="fallback-img"
168 src="https://readme-contribs.as93.net/contributors/lissy93/awesome-privacy?perRow=12&shape=squircle&textColor=ffffff&limit=96"
169 alt="Contributors"
170 />
171 )
172 }
173
174 <hr />
175
176 <h2 id="support-us">Help us out</h2>
177 <p>
178 Awesome Privacy is a free, open source and community-maintained
179 resource.<br />
180 There's a few ways you can support us:
181 <ul class="help-list">
182 <li>
183 Visiting, forking, or starring or our <a
184 href="https://github.com/lissy93/awesome-privacy"
185 >GitHub repository</a
186 >
187 </li>
188 <li>
189 Help us keep our info up-to-date, but submitting an addition,
190 removal or ammendment
191 </li>
192 <li>
193 Leave feedback on services that you've used, to help others make a
194 more informed decission
195 </li>
196 <li>
197 Consider <a href="https://github.com/sponsors/Lissy93"
198 >sponsoring us on GitHub</a
199 >, if you're able 💖
200 </li>
201 <li>Share Awesome Privacy with your network</li>
202 </ul>
203 <SocialShare />
204 </p>
205
206 <hr />
207
208 <h2 id="author">Author</h2>
209 <article class="author">
210 <p>
211 This project was originally started by me, <a
212 href="https://aliciasykes.com">Alicia Sykes</a
213 >
214 (with a lot of help from the community)
215 </p>
216 <br />
217 <p class="about">
218 I build apps which aim to help people escape big tech, secure their
219 data, and protect their privacy.
220 </p>
221 <br />
222 <div class="pic-and-socials">
223 <a href="https://aliciasykes.com">
224 <img
225 class="pic"
226 width="180"
227 height="240"
228 alt="Alicia Sykes"
229 src="https://cdn.as93.net/profile-pictures/dsc_0597"
230 />
231 </a>
232 <div class="socials">
233 {
234 authorSocials.map(
235 (social: { link: string; color: string; icon: string }) => (
236 <a
237 href={social.link}
238 style={`--color: ${social.color}`}
239 target="_blank"
240 >
241 <Icon icon={social.icon} width={24} height={24} />
242 </a>
243 ),
244 )
245 }
246 </div>
247 </div>
248 <p class="more-about">
249 I have a particular interest in self-hosting, Linux, security and
250 OSINT.<br />
251 So if this type of stuff interests you, check out these other projects:
252 </p>
253 <ul>
254 {
255 authorProjects.map(
256 (project: {
257 title: string;
258 icon: string;
259 link: string;
260 description: string;
261 }) => (
262 <li>
263 <img
264 width="20"
265 height="20"
266 alt={project.title}
267 src={project.icon}
268 />
269 <a href={project.link} target="_blank" rel="noreferrer">
270 {project.title}
271 </a>{' '}
272 - {project.description}
273 </li>
274 ),
275 )
276 }
277 <li>
278 ...and loads more, over at <a href="https://apps.aliciasykes.com/"
279 >apps.aliciasykes.com</a
280 >
281 and on <a href="https://github.com/lissy93">github.com/lissy93</a>
282 </li>
283 </ul>
284 <br />
285 <p>
286 If you'd like to support the ongoing work on Awesome Privacy, and
287 other similar projects, consider <a
288 href="https://github.com/sponsors/lissy93">sponsoring me</a
289 > on GitHub 💖
290 </p>
291 </article>
292
293 <hr />
294
295 <h2 id="license">License</h2>
296 <p>
297 All content on Awesome Privacy is freely available, within the public
298 domain, licensed under Creative Commons Zero v1.0 Universal. The code
299 for the website is licensed under MIT.
300 </p>
301 <p>
302 {
303 licenseContent().then((license) => {
304 return <pre class="license-content">{license}</pre>;
305 })
306 }
307 </p>
308 </Main>
309 </div>
310</Layout>
311
312<style lang="scss">
313 h2 {
314 font-size: 2rem;
315 margin: 1rem 0 0.5rem 0;
316 }
317 p {
318 font-size: 1.2rem;
319 }
320 hr {
321 margin: 2rem 0;
322 border: 0;
323 border-top: 2px solid var(--accent);
324 &:nth-child(6) {
325 border-color: var(--accent-3);
326 }
327 &:nth-child(9) {
328 border-color: var(--accent-2);
329 }
330 }
331
332 h3 {
333 font-size: 1.6rem;
334 }
335
336 .software-requirements,
337 .about-the-data {
338 :global(p) {
339 font-size: 1.2rem;
340 margin: 0 0 0.5rem 0;
341 }
342 :global(ul) {
343 padding-left: 0.5rem;
344 list-style: none;
345 font-size: 1.2rem;
346 :global(li ul) {
347 padding: 0 0 0.5rem 1rem;
348 list-style: circle;
349 }
350 }
351 :global(h3) {
352 font-size: 1.6rem;
353 margin-bottom: 0;
354 }
355 :global(strong) {
356 font-weight: 500;
357 }
358 :global(small) {
359 font-size: 0.8rem;
360 opacity: 0.7;
361 :global(a) {
362 color: var(--accent-3);
363 }
364 }
365 :global(code) {
366 font-family: 'Courier New', Courier, monospace;
367 background: #acabb782;
368 padding: 0.2rem 0.4rem;
369 border-radius: var(--curve-sm);
370 font-size: 0.9rem;
371 }
372 }
373
374 .user-list {
375 display: flex;
376 flex-wrap: wrap;
377 gap: 0.25rem;
378 margin: 2rem 0;
379 .user {
380 width: 6rem;
381 overflow: hidden;
382 text-align: center;
383 padding: 0.5rem;
384 border-radius: var(--curve-sm);
385 transition: background 0.2s ease-in-out;
386 &:hover {
387 background: var(--background-form);
388 }
389 img {
390 width: 5rem;
391 height: 5rem;
392 border-radius: var(--curve-md);
393 }
394 p {
395 margin: 0.5rem auto 0 auto;
396 font-size: 1rem;
397 display: -webkit-box;
398 -webkit-line-clamp: 1;
399 -webkit-box-orient: vertical;
400 overflow: hidden;
401 }
402 }
403 }
404
405 .fallback-img {
406 max-width: 100%;
407 margin: 2rem 0;
408 border-radius: var(--curve-sm);
409 }
410
411 .license-content {
412 max-height: 500px;
413 overflow: scroll;
414 background: var(--background-form);
415 width: fit-content;
416 border-radius: var(--curve-sm);
417 padding: 0.5rem;
418 font-size: 0.7rem;
419 font-family: 'Lekton', monospace;
420 max-width: 100vw;
421 white-space: pre-line;
422 }
423
424 .help-list {
425 padding-left: 1rem;
426 list-style: circle;
427 font-size: 1.1rem;
428 }
429
430 .author {
431 p {
432 margin: 1rem 0 0 0;
433 }
434 ul {
435 padding-left: 1.5rem;
436 list-style: circle;
437 margin-bottom: 0;
438 li {
439 font-size: 1.1rem;
440 }
441 }
442 .about {
443 font-size: 1.4rem;
444 font-style: italic;
445 font-weight: 300;
446 color: var(--accent-3);
447 text-align: center;
448 max-width: 550px;
449 margin: 0 auto;
450 }
451
452 small {
453 font-size: 1rem;
454 margin: 1rem 0;
455 }
456 .pic-and-socials {
457 float: right;
458 img {
459 margin: 0.5rem 1rem;
460 border-radius: var(--curve-md);
461 border: 2px solid var(--box-outline);
462 box-shadow: 4px 4px 0 var(--box-outline);
463 }
464 .socials {
465 display: flex;
466 margin: 0.5rem 1rem;
467 justify-content: space-between;
468 :global(a svg) {
469 color: var(--foreground);
470 transition: color 0.2s ease-in-out;
471 &:hover {
472 color: var(--color);
473 }
474 }
475 }
476 }
477 }
478</style>