web/src/pages/about.astro

485 lines · 12058 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
105				<a href="https://github.com/lissy93/awesome-privacy"
106					>GitHub repository</a
107				>. From here, you'll be able to edit
108				<a
109					href="https://github.com/Lissy93/awesome-privacy/blob/main/awesome-privacy.yml"
110				>
111					<code>awesome-privacy.yml</code>
112				</a>
113				where all data is stored, and then submit your changes as a pull request.
114				Just be sure to read and follow the
115				<a
116					href="https://github.com/Lissy93/awesome-privacy?tab=contributing-ov-file"
117				>
118					Contributing Guidelines
119				</a> before submitting your pull request.
120				<br /><br />
121				If you're new to open source, you can find some resources to get you started
122				at <a href="https://git-in.to">git-in.to</a>, but feel free to reach out
123				if you need any help 😊
124			</p>
125			<hr />
126
127			<h2 id="acknowledgements">Acknowledgements</h2>
128			<h3 id="sponsors">Sponsors</h3>
129			<p>Huge thanks to the following sponsors, for their ongoing support 💖</p>
130			{
131				sponsors ? (
132					<div class="user-list">
133						{sponsors.map((sponsor) => (
134							<a
135								class="user"
136								href={`https://github.com/${sponsor.login}`}
137								target="_blank"
138								rel="noreferrer"
139							>
140								<img src={sponsor.avatarUrl} alt={sponsor.login} />
141								<p>{sponsor.name || sponsor.login}</p>
142							</a>
143						))}
144					</div>
145				) : (
146					<img
147						class="fallback-img"
148						src="https://readme-contribs.as93.net/sponsors/lissy93?perRow=12&shape=squircle&textColor=ffffff&limit=96"
149						alt="Sponsors"
150					/>
151				)
152			}
153
154			<h3 id="contributors">Contributors</h3>
155			<p>
156				This project exists thanks to all the people who've helped build and
157				maintain it.<br />
158				Special thanks to the below, top-100 contributors 🌟
159			</p>
160			{
161				contributors ? (
162					<div class="user-list">
163						{contributors.map((contributor) => (
164							<a
165								class="user"
166								href={contributor.html_url}
167								target="_blank"
168								rel="noreferrer"
169							>
170								<img src={contributor.avatar_url} alt={contributor.login} />
171								<p>{contributor.login}</p>
172							</a>
173						))}
174					</div>
175				) : (
176					<img
177						class="fallback-img"
178						src="https://readme-contribs.as93.net/contributors/lissy93/awesome-privacy?perRow=12&shape=squircle&textColor=ffffff&limit=96"
179						alt="Contributors"
180					/>
181				)
182			}
183
184			<hr />
185
186			<h2 id="support-us">Help us out</h2>
187			<p>
188				Awesome Privacy is a free, open source and community-maintained
189				resource.<br />
190				There's a few ways you can support us:
191				<ul class="help-list">
192					<li>
193						Visiting, forking, or starring or our <a
194							href="https://github.com/lissy93/awesome-privacy"
195							>GitHub repository</a
196						>
197					</li>
198					<li>
199						Help us keep our info up-to-date, but submitting an addition,
200						removal or ammendment
201					</li>
202					<li>
203						Leave feedback on services that you've used, to help others make a
204						more informed decission
205					</li>
206					<li>
207						Consider <a href="https://github.com/sponsors/Lissy93"
208							>sponsoring us on GitHub</a
209						>, if you're able 💖
210					</li>
211					<li>Share Awesome Privacy with your network</li>
212				</ul>
213				<SocialShare />
214			</p>
215
216			<hr />
217
218			<h2 id="author">Author</h2>
219			<article class="author">
220				<p>
221					This project was originally started by me,
222					<a href="https://aliciasykes.com">Alicia Sykes</a>
223					(with a lot of help from the community)
224				</p>
225				<br />
226				<p>
227					I build apps which aim to help people escape big tech, secure their
228					data, and protect their privacy.
229				</p>
230				<br />
231				<div class="pic-and-socials">
232					<a href="https://aliciasykes.com">
233						<img
234							class="pic"
235							width="180"
236							height="240"
237							alt="Alicia Sykes"
238							src="https://cdn.as93.net/profile-pictures/dsc_0597"
239						/>
240					</a>
241					<div class="socials">
242						{
243							authorSocials.map(
244								(social: { link: string; color: string; icon: string }) => (
245									<a
246										href={social.link}
247										style={`--color: ${social.color}`}
248										target="_blank"
249									>
250										<Icon icon={social.icon} width={24} height={24} />
251									</a>
252								),
253							)
254						}
255					</div>
256				</div>
257				<p class="more-about">
258					I have a particular interest in self-hosting, Linux, security and
259					OSINT.<br />
260					So if this type of stuff interests you, check out these other projects:
261				</p>
262				<ul>
263					{
264						authorProjects.map(
265							(project: {
266								title: string;
267								icon: string;
268								link: string;
269								description: string;
270							}) => (
271								<li>
272									<img
273										width="20"
274										height="20"
275										alt={project.title}
276										src={project.icon}
277									/>
278									<a href={project.link} target="_blank" rel="noreferrer">
279										{project.title}
280									</a>{' '}
281									- {project.description}
282								</li>
283							),
284						)
285					}
286					<li>
287						...and loads more, over at <a href="https://apps.aliciasykes.com/"
288							>apps.aliciasykes.com</a
289						>
290						and on <a href="https://github.com/lissy93">github.com/lissy93</a>
291					</li>
292				</ul>
293				<br />
294				<p>
295					If you'd like to support the ongoing work on Awesome Privacy, and
296					other similar projects, consider <a
297						href="https://github.com/sponsors/lissy93">sponsoring me</a
298					> on GitHub 💖
299				</p>
300			</article>
301
302			<hr />
303
304			<h2 id="license">License</h2>
305			<p>
306				All content on Awesome Privacy is freely available, within the public
307				domain, licensed under Creative Commons Zero v1.0 Universal. The code
308				for the website is licensed under MIT.
309			</p>
310			<p>
311				{
312					licenseContent().then((license) => {
313						return <pre class="license-content">{license}</pre>;
314					})
315				}
316			</p>
317		</Main>
318	</div>
319</Layout>
320
321<style lang="scss">
322	@use '../styles/mixins' as *;
323	h2 {
324		font-size: var(--text-3xl);
325		margin: var(--space-md) 0 var(--space-sm) 0;
326	}
327	p {
328		font-size: var(--text-md);
329	}
330	hr {
331		margin: var(--space-lg) 0;
332		border: 0;
333		border-top: 2px solid var(--accent);
334		&:nth-child(6) {
335			border-color: var(--accent-3);
336		}
337		&:nth-child(9) {
338			border-color: var(--accent-2);
339		}
340	}
341
342	h3 {
343		font-size: var(--text-xl);
344	}
345
346	.software-requirements,
347	.about-the-data {
348		:global(p) {
349			font-size: var(--text-md);
350			margin: 0 0 var(--space-sm) 0;
351		}
352		:global(ul) {
353			padding-left: var(--space-sm);
354			list-style: none;
355			font-size: var(--text-md);
356			:global(li ul) {
357				padding: 0 0 var(--space-sm) var(--space-md);
358				list-style: circle;
359			}
360		}
361		:global(h3) {
362			font-size: var(--text-xl);
363			margin-bottom: 0;
364		}
365		:global(strong) {
366			font-weight: 500;
367		}
368		:global(small) {
369			font-size: var(--text-sm);
370			opacity: var(--opacity-soft);
371			:global(a) {
372				color: var(--accent-3);
373			}
374		}
375		:global(code) {
376			font-family: var(--font-code);
377			background: var(--code-bg);
378			padding: 0.2rem 0.4rem;
379			border-radius: var(--curve-sm);
380			font-size: var(--text-sm);
381		}
382	}
383
384	.user-list {
385		display: flex;
386		flex-wrap: wrap;
387		gap: var(--space-xs);
388		margin: var(--space-lg) 0;
389		.user {
390			width: 6rem;
391			overflow: hidden;
392			text-align: center;
393			padding: var(--space-sm);
394			border-radius: var(--curve-sm);
395			transition: var(--transition-normal);
396			&:hover {
397				background: var(--background-form);
398			}
399			img {
400				width: 5rem;
401				height: 5rem;
402				border-radius: var(--curve-md);
403			}
404			p {
405				margin: var(--space-sm) auto 0 auto;
406				font-size: var(--text-base);
407				@include line-clamp(1);
408			}
409		}
410	}
411
412	.fallback-img {
413		max-width: 100%;
414		margin: var(--space-lg) 0;
415		border-radius: var(--curve-sm);
416	}
417
418	.license-content {
419		max-height: 500px;
420		overflow: scroll;
421		background: var(--background-form);
422		width: fit-content;
423		border-radius: var(--curve-sm);
424		padding: var(--space-sm);
425		font-size: var(--text-xs);
426		font-family: var(--font-subtitle);
427		max-width: 100vw;
428		white-space: pre-line;
429	}
430
431	.help-list {
432		padding-left: var(--space-md);
433		list-style: circle;
434		font-size: var(--text-md);
435	}
436
437	.author {
438		p {
439			margin: var(--space-md) 0 0 0;
440		}
441		ul {
442			padding-left: 1.5rem;
443			list-style: circle;
444			margin-bottom: 0;
445			li {
446				font-size: var(--text-md);
447			}
448		}
449		.about {
450			font-size: var(--text-lg);
451			font-style: italic;
452			font-weight: 300;
453			color: var(--accent-3);
454			text-align: center;
455			max-width: 550px;
456			margin: 0 auto;
457		}
458
459		small {
460			font-size: var(--text-base);
461			margin: var(--space-md) 0;
462		}
463		.pic-and-socials {
464			float: right;
465			img {
466				margin: var(--space-sm) var(--space-md);
467				border-radius: var(--curve-md);
468				border: var(--border-heavy);
469				box-shadow: var(--shadow-md);
470			}
471			.socials {
472				display: flex;
473				margin: var(--space-sm) var(--space-md);
474				justify-content: space-between;
475				:global(a svg) {
476					color: var(--foreground);
477					transition: var(--transition-normal);
478					&:hover {
479						color: var(--color);
480					}
481				}
482			}
483		}
484	}
485</style>