Commit 53490fc2ba

53490fc2bae6fef672e7ae90fd299f3aba1b8f4e

parent: e84f07a45a

Unsigned

Alicia Sykes <alicia@omg.lol> · 2026-03-28 10:07 UTC

Website updates

Layout: unified · split

web/src/components/Hero.astro +1 −62
@@ -1,12 +1,7 @@
11---
22import FontAwesome from '@components/form/FontAwesome.svelte';
3import ThemeSwitcher from '@components/form/ThemeSwitcher.svelte';
43---
54
6<div class="theme-switcher">
7 <ThemeSwitcher client:load />
8</div>
9
105<div class="hero">
116 <h1>Awesome Privacy</h1>
127 <p class="intro">
@@ -14,35 +9,13 @@ import ThemeSwitcher from '@components/form/ThemeSwitcher.svelte';
149 popular software and services.
1510 </p>
1611 <div class="github-link-wrap">
17 <a href="https://github.com/lissy93/awesome-privacy">
12 <a href="https://github.com/lissy93/awesome-privacy" target="_blank" rel="noopener noreferrer">
1813 <FontAwesome iconName="github" />
1914 View on GitHub
2015 </a>
2116 </div>
2217</div>
2318
24<nav class="top-right">
25 <ul>
26 <li>
27 <a href="/">Home</a>
28 </li>
29 <li>
30 <a href="/search">Search</a>
31 </li>
32 <li>
33 <a href="/browse">Browse</a>
34 </li>
35 <li>
36 <a href="/about">About</a>
37 </li>
38 <li>
39 <a href="https://github.com/lissy93/awesome-privacy">Source</a>
40 </li>
41 <li>
42 <a href="https://as93.net">More Apps</a>
43 </li>
44 </ul>
45</nav>
4619
4720<style lang="scss">
4821 .hero {
@@ -122,38 +95,4 @@ import ThemeSwitcher from '@components/form/ThemeSwitcher.svelte';
12295 }
12396 }
12497
125 .theme-switcher {
126 position: absolute;
127 right: var(--space-md);
128 top: var(--space-md);
129 }
130
131 .top-right {
132 position: absolute;
133 top: 0;
134 right: var(--space-md);
135 opacity: var(--opacity-subtle);
136 display: none;
137 &:hover {
138 opacity: 1;
139 }
140 ul {
141 list-style: none;
142 display: flex;
143 padding: 0;
144 gap: var(--space-sm);
145 li {
146 &:not(:last-child) {
147 border-right: 1px solid var(--accent);
148 padding-right: var(--space-sm);
149 }
150 }
151 li a {
152 text-decoration: none;
153 &:hover {
154 text-decoration: underline;
155 }
156 }
157 }
158 }
15998</style>
web/src/components/scafold/Footer.astro +3 −3
@@ -5,12 +5,12 @@ const year = new Date().getFullYear();
55<footer>
66 <a href="/about">Awesome Privacy</a> is licensed under <a
77 href="https://github.com/Lissy93/awesome-privacy/blob/main/LICENSE"
8 >CC0 1.0 Universal</a
8 target="_blank" rel="noopener noreferrer">CC0 1.0 Universal</a
99 >
10 © <a href="https://aliciasykes.com">Alicia Sykes</a> 2018 - {
10 © <a href="https://aliciasykes.com" target="_blank" rel="noopener noreferrer">Alicia Sykes</a> 2018 - {
1111 year || 'Present'
1212 } | Source code available on <a
13 href="https://github.com/Lissy93/awesome-privacy">GitHub</a
13 href="https://github.com/Lissy93/awesome-privacy" target="_blank" rel="noopener noreferrer">GitHub</a
1414 >
1515</footer>
1616
web/src/components/scafold/NavBar.astro +162 −51
@@ -1,46 +1,111 @@
11---
22import FontAwesome from '@components/form/FontAwesome.svelte';
33import ThemeSwitcher from '@components/form/ThemeSwitcher.svelte';
4
5const navLinks = [
6 { label: 'View All', href: '/all' },
7 { label: 'Search', href: '/search' },
8 { label: 'Changelog', href: '/changelog' },
9 { label: 'API', href: '/api' },
10 { label: 'Saved', href: '/inventory', id: 'saved-nav-link', hidden: true },
11 { label: 'About', href: '/about' },
12 { label: 'GitHub', href: 'https://github.com/lissy93/awesome-privacy', external: true },
13];
414---
515
6<div class="nav">
7 <a href="/" class="homepage">
16<header class="site-header">
17 <a href="/" class="logo" aria-label="Awesome Privacy - Home">
818 <FontAwesome iconName="logo" />
9 <h1>Awesome Privacy</h1>
19 <span>Awesome Privacy</span>
1020 </a>
11 <nav>
12 <a href="/browse">Browse</a>
13 <a href="/search">Search</a>
14 <a href="/about">About</a>
15 <a href="/changelog">Changelog</a>
16 <a href="https://github.com/lissy93/awesome-privacy">GitHub</a>
21 <button
22 class="burger"
23 type="button"
24 aria-label="Toggle navigation menu"
25 aria-expanded="false"
26 aria-controls="nav-menu"
27 >
28 <span class="burger-line" /><span class="burger-line" /><span class="burger-line" />
29 </button>
30 <nav id="nav-menu" aria-label="Main navigation">
31 {navLinks.map((link) => (
32 <a
33 href={link.href}
34 class="nav-link"
35 id={link.id}
36 style={link.hidden ? 'display:none' : undefined}
37 target={link.external ? '_blank' : undefined}
38 rel={link.external ? 'noopener noreferrer' : undefined}
39 >
40 {link.label}
41 {link.external && <span class="sr-only">(opens in new tab)</span>}
42 </a>
43 ))}
1744 <div class="theme-switcher">
1845 <ThemeSwitcher client:load />
1946 </div>
2047 </nav>
21</div>
48</header>
49
50<script>
51 document.addEventListener('astro:page-load', () => {
52 const burger = document.querySelector('.burger');
53 const nav = document.getElementById('nav-menu');
54 if (!burger || !nav) return;
55
56 const close = () => {
57 nav.classList.remove('open');
58 burger.classList.remove('is-active');
59 burger.setAttribute('aria-expanded', 'false');
60 };
61
62 burger.addEventListener('click', () => {
63 const isOpen = nav.classList.toggle('open');
64 burger.classList.toggle('is-active', isOpen);
65 burger.setAttribute('aria-expanded', String(isOpen));
66 });
67
68 nav.querySelectorAll('.nav-link').forEach((link) => {
69 link.addEventListener('click', close);
70 });
71
72 document.addEventListener('keydown', (e) => {
73 if (e.key === 'Escape' && nav.classList.contains('open')) {
74 close();
75 (burger as HTMLElement).focus();
76 }
77 });
78
79 // Show "Saved" link if user has saved items
80 try {
81 const saved = JSON.parse(localStorage.getItem('savedServices') || '[]');
82 const el = document.getElementById('saved-nav-link');
83 if (el && saved.length > 0) el.style.display = '';
84 } catch { /* ignore parse errors */ }
85 });
86</script>
2287
2388<style lang="scss">
24 .nav {
89 .site-header {
2590 background: var(--accent-fg);
2691 display: flex;
92 flex-wrap: wrap;
2793 justify-content: space-between;
2894 align-items: center;
29 flex-wrap: wrap;
30 gap: var(--space-md);
3195 border-bottom: 2px solid var(--accent-3);
96 position: relative;
3297
33 .homepage {
98 .logo {
3499 text-decoration: none;
35100 display: flex;
36101 align-items: center;
37102 padding: 0 var(--space-sm);
38 h1 {
39 margin: 0;
103 span {
40104 font-size: 2.4rem;
41105 padding: 0 var(--space-md);
42106 color: var(--foreground);
43107 font-family: var(--font-subtitle);
108 font-weight: bold;
44109 }
45110 :global(svg) {
46111 width: 2.5rem;
@@ -48,11 +113,33 @@ import ThemeSwitcher from '@components/form/ThemeSwitcher.svelte';
48113 color: var(--accent-3);
49114 transition: var(--transition-normal);
50115 }
51 &:hover {
52 :global(svg) {
53 color: var(--accent);
54 transform: scale(1.05);
55 }
116 &:hover :global(svg) {
117 color: var(--accent);
118 transform: scale(1.05);
119 }
120 }
121
122 .burger {
123 display: none;
124 flex-direction: column;
125 justify-content: center;
126 gap: 5px;
127 padding: var(--space-sm);
128 margin-right: var(--space-sm);
129 background: none;
130 border: none;
131 cursor: pointer;
132 .burger-line {
133 display: block;
134 width: 24px;
135 height: 2px;
136 background: var(--foreground);
137 transition: var(--transition-fast);
138 }
139 &.is-active .burger-line {
140 &:nth-child(1) { transform: translateY(7px) rotate(45deg); }
141 &:nth-child(2) { opacity: 0; }
142 &:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
56143 }
57144 }
58145
@@ -60,53 +147,77 @@ import ThemeSwitcher from '@components/form/ThemeSwitcher.svelte';
60147 display: flex;
61148 align-items: center;
62149 height: 3rem;
63 a {
150 .nav-link {
64151 padding: var(--space-md);
65152 font-size: var(--text-md);
66153 font-family: var(--font-subtitle);
67154 font-weight: bold;
68155 color: var(--foreground);
69 transition:
70 background 0.3s,
71 transform 0.3s,
72 box-shadow 0.3s;
73 transition-timing-function: ease-in-out;
156 text-decoration: none;
157 transition: background 0.3s ease-in-out, color 0.3s ease-in-out;
74158 &:hover {
75 background: var(--accent-3);
76159 color: var(--accent-fg);
77 border-bottom: 2px solid var(--accent-3);
78 &:nth-child(4n + 1) {
79 background-color: var(--accent);
80 }
81 &:nth-child(4n + 2) {
82 background-color: var(--accent-2);
83 color: var(--foreground);
84 }
85 &:nth-child(4n + 3) {
86 background-color: var(--accent-3);
87 }
88 &:nth-child(4n + 4) {
89 background-color: var(--accent-4);
90 color: var(--foreground);
91 }
160 &:nth-child(4n+1) { background: var(--accent); }
161 &:nth-child(4n+2) { background: var(--accent-2); color: var(--foreground); }
162 &:nth-child(4n+3) { background: var(--accent-3); }
163 &:nth-child(4n+4) { background: var(--accent-4); color: var(--foreground); }
92164 }
93165 }
94166 .theme-switcher {
95167 transform: scale(0.7);
96168 margin: 0.2rem auto;
97 @media (max-width: 768px) {
98 display: none;
99 }
100169 }
101170 }
102 .homepage,
103 nav {
104 @media (max-width: 768px) {
171
172 @media (max-width: 1100px) {
173 nav .nav-link {
174 padding: var(--space-sm) var(--space-sm);
175 font-size: var(--text-base);
176 }
177 .logo {
178 span { font-size: var(--text-3xl); }
179 }
180 }
181
182 @media (max-width: 768px) {
183 flex-wrap: wrap;
184 .logo {
105185 margin: 0 auto;
106 a {
107 border: none;
186 :global(svg) { @media (max-width: 428px) { display: none; } }
187 span { @media (max-width: 428px) { font-size: var(--text-2xl); } }
188 }
189 .burger { display: flex; }
190 nav {
191 display: none;
192 flex-direction: column;
193 width: 100%;
194 position: absolute;
195 top: 100%;
196 left: 0;
197 background: var(--accent-fg);
198 border-bottom: 2px solid var(--accent-3);
199 z-index: 100;
200 height: auto;
201 &.open { display: flex; }
202 .nav-link {
203 width: 100%;
204 text-align: center;
205 padding: var(--space-md) var(--space-lg);
206 border-bottom: 1px solid var(--accent-3-translucent);
108207 }
208 .theme-switcher { display: none; }
109209 }
110210 }
111211 }
212
213 .sr-only {
214 position: absolute;
215 width: 1px;
216 height: 1px;
217 padding: 0;
218 margin: -1px;
219 overflow: hidden;
220 clip: rect(0, 0, 0, 0);
221 border: 0;
222 }
112223</style>
web/src/components/things/DataActions.svelte +3 −3
@@ -91,9 +91,9 @@
9191{#if lineNumbers}
9292 <h4>Edit {serviceName} Data</h4>
9393 <p>
94 You can view or edit this {serviceName}'s entry in
95 <a href={getGitHubSrcFile()}> this section </a>
96 of <code>awesome-privacy.yml</code> in our GitHub repo.
94 You can edit {serviceName}'s entry in <a href={getGitHubSrcFile()}> this section </a> of <code>awesome-privacy.yml</code> by submitting a PR to our GitHub repo.<br>
95 Note that some of the information shown above has been aggregated from external sources,
96 a list of these can be found <a href="/about#our-data">data documentation</a>.
9797 </p>
9898
9999 <h4>Origin Data</h4>
web/src/components/things/ListingHero.astro added +264
@@ -0,0 +1,264 @@
1---
2import type { Section, Service } from '../../types/Service';
3import { slugify } from '@utils/fetch-data';
4import { parseMarkdown, formatLink } from '@utils/parse-markdown';
5import FontAwesome from '@components/form/FontAwesome.svelte';
6import SaveListing from '@components/things/SaveListing.svelte';
7
8interface Props {
9 service: Service;
10 parentSection: Section;
11 categoryName: string;
12 privacyPolicyLink: string | null;
13}
14
15const { service, parentSection, categoryName, privacyPolicyLink } = Astro.props;
16const {
17 name, description, url, github, tosdrId, iosApp, androidApp,
18 discordInvite, subreddit, icon, followWith, links,
19 securityAudited, openSource, acceptsCrypto,
20} = service;
21
22const catSlug = slugify(categoryName);
23const secSlug = slugify(parentSection.name);
24
25const otherServices = parentSection.services.filter(
26 (s: Service) => s.name !== name,
27);
28
29const infoLinks = [
30 url && { label: 'Homepage', href: url, text: formatLink(url) },
31 github && { label: 'GitHub', href: `https://github.com/${github}`, text: `github.com/${github}` },
32 tosdrId && { label: 'Privacy', href: privacyPolicyLink, text: formatLink(privacyPolicyLink || '') },
33 iosApp && { label: 'iOS App', href: iosApp, text: formatLink(iosApp) },
34 androidApp && { label: 'Android App', href: `https://play.google.com/store/apps/details?id=${androidApp}`, text: `play.google.com/.../${androidApp}` },
35 discordInvite && { label: 'Discord', href: `https://discord.com/invite/${discordInvite}`, text: discordInvite },
36 subreddit && { label: 'Subreddit', href: `https://reddit.com/r/${subreddit}`, text: `r/${subreddit}` },
37 url && { label: 'Web info', href: `https://web-check.xyz/check/${formatLink(url)}`, text: `web-check.xyz/check/${formatLink(url).split('/')[0]}` },
38 ...(links || []).map((link) => ({ label: link.title, href: link.url, text: link.url })),
39].filter(Boolean) as { label: string; href: string | null; text: string }[];
40
41const highlights = [
42 securityAudited && { icon: 'securityAudited', text: 'Security Audited', cls: 'great', title: `${name} has been security audited by an accredited auditor, with results published publicly` },
43 acceptsCrypto && { icon: 'cryptoAccepted', text: 'Crypto Payments Accepted', cls: 'great', title: `${name} accepts anonymous payment methods` },
44 securityAudited === false && { icon: 'notSecurityAudited', text: 'No Security Audit', cls: 'warning', title: `${name} has not been audited` },
45 openSource === false && { icon: 'closedSource', text: 'Not Open Source', cls: 'warning', title: `${name} is not open source` },
46 (openSource || (github && openSource !== false)) && { icon: 'openSource', text: 'Open Source', cls: 'great', title: `${name} is open source` },
47].filter(Boolean) as { icon: string; text: string; cls: string; title: string }[];
48---
49
50<section class="hero-section">
51 <div class="service-head">
52 <h2>{name}</h2>
53 <span class="url-wrap">
54 <a class="service-url" href={url}>{formatLink(url)}</a>
55 <span class="follow-with">{followWith}</span>
56 </span>
57 </div>
58 <div class="breadcrumbs">
59 <span>
60 <a href="/">Awesome Privacy</a>
61 ➔ <a href={`/${catSlug}`}>{categoryName}</a>
62 ➔ <a href={`/${catSlug}/${secSlug}`}>{parentSection.name}</a>
63 ➔ <a href={`/${catSlug}/${secSlug}/${slugify(name)}`}>{name}</a>
64 </span>
65 </div>
66 <div class="save-listing">
67 <SaveListing
68 client:visible
69 categoryName={categoryName}
70 sectionName={parentSection.name}
71 serviceName={name}
72 showLabel={true}
73 />
74 </div>
75 <div class="intro">
76 <img
77 width="60"
78 height="60"
79 loading="lazy"
80 decoding="async"
81 class="service-icon"
82 alt={`${name} Icon`}
83 data-service-url={formatLink(url)}
84 src={icon || `https://icon.horse/icon/${formatLink(url)}`}
85 />
86 <div>
87 <p class="description" set:html={parseMarkdown(description)} />
88 <ul>
89 {infoLinks.map((link) => (
90 <li>
91 <b>{link.label}:</b>
92 <a href={link.href} target="_blank" rel="noopener noreferrer">{link.text}</a>
93 </li>
94 ))}
95 </ul>
96 <div class="related">
97 {(parentSection.alternativeTo || []).length > 0 && (
98 <div class="related-group">
99 <h4 class="avoid"><FontAwesome iconName="faceBad" /> Avoid</h4>
100 <ul>
101 {(parentSection.alternativeTo || []).map((alt: string) => (
102 <li><span>{alt}</span></li>
103 ))}
104 </ul>
105 </div>
106 )}
107 {otherServices.length > 0 && (
108 <div class="related-group">
109 <h4 class="consider"><FontAwesome iconName="faceGood" /> Also Consider</h4>
110 <ul>
111 {otherServices.map((s: Service) => (
112 <li>
113 <a href={`/${catSlug}/${secSlug}/${slugify(s.name)}`}>{s.name}</a>
114 </li>
115 ))}
116 </ul>
117 </div>
118 )}
119 </div>
120 </div>
121 </div>
122 <div class="highlights">
123 {highlights.map((h) => (
124 <span class={`meta-item ${h.cls}`} title={h.title}>
125 <FontAwesome iconName={h.icon} /> {h.text}
126 </span>
127 ))}
128 </div>
129</section>
130
131<style lang="scss">
132 .hero-section {
133 margin: var(--space-md) 0 var(--space-2xl) 0;
134 padding: var(--space-md);
135 min-height: 8rem;
136 position: relative;
137 border: var(--border-heavy);
138 box-shadow: var(--shadow-lg);
139 background: var(--accent-fg);
140 }
141
142 .service-head {
143 h2 {
144 font-size: var(--text-4xl);
145 margin: 0;
146 @media (max-width: 768px) { text-align: center; }
147 }
148 .url-wrap {
149 display: flex;
150 align-items: center;
151 gap: var(--space-sm);
152 a { font-size: var(--text-md); }
153 .follow-with {
154 font-style: italic;
155 opacity: var(--opacity-muted);
156 }
157 @media (max-width: 768px) { flex-direction: column; }
158 }
159 }
160
161 .save-listing {
162 position: absolute;
163 top: var(--space-xl);
164 right: var(--space-md);
165 }
166
167 .intro {
168 font-size: var(--text-md);
169 font-style: italic;
170 opacity: 0.9;
171 display: flex;
172 gap: var(--space-sm);
173 @media (max-width: 768px) { flex-direction: column; }
174 .service-icon {
175 border-radius: var(--curve-md);
176 margin-top: var(--space-md);
177 @media (max-width: 768px) { margin: var(--space-md) auto 0 auto; }
178 }
179 ul {
180 padding-left: var(--space-md);
181 list-style: circle;
182 font-style: normal;
183 font-size: var(--text-base);
184 margin-top: 0;
185 b {
186 font-size: var(--text-base);
187 font-weight: 400;
188 min-width: 100px;
189 display: inline-block;
190 @media (max-width: 768px) { width: auto; display: block; }
191 }
192 }
193 }
194
195 .related {
196 display: flex;
197 gap: var(--space-lg);
198 flex-wrap: wrap;
199 margin: var(--space-md) 0;
200 .related-group {
201 h4 {
202 font-size: var(--text-sm);
203 font-family: var(--font-subtitle);
204 text-transform: uppercase;
205 opacity: var(--opacity-muted);
206 margin: 0 0 var(--space-xs) 0;
207 display: flex;
208 align-items: center;
209 gap: var(--space-xs);
210 :global(svg) { width: var(--text-sm); height: var(--text-sm); }
211 &.avoid :global(svg) { color: var(--danger); }
212 &.consider :global(svg) { color: var(--success-muted); }
213 }
214 ul {
215 list-style: none;
216 padding: 0;
217 margin: 0;
218 display: flex;
219 flex-wrap: wrap;
220 gap: var(--space-xs);
221 li {
222 font-size: var(--text-sm);
223 padding: var(--space-xs) var(--space-sm);
224 border: var(--border-light);
225 border-radius: var(--curve-pill);
226 a {
227 color: var(--foreground);
228 text-decoration: none;
229 &:hover { color: var(--accent); }
230 }
231 span { opacity: var(--opacity-soft); }
232 }
233 }
234 }
235 }
236
237 .highlights {
238 display: flex;
239 gap: var(--space-md);
240 flex-wrap: wrap;
241 align-items: center;
242 justify-content: end;
243 .meta-item {
244 display: flex;
245 align-items: center;
246 gap: var(--space-xs);
247 opacity: var(--opacity-muted);
248 font-size: var(--text-sm);
249 padding: var(--space-sm) 0;
250 :global(svg) {
251 width: var(--text-md);
252 height: var(--text-md);
253 }
254 }
255 .warning {
256 color: var(--danger);
257 :global(svg) { color: var(--danger); }
258 }
259 .great {
260 color: var(--success-muted);
261 :global(svg) { color: var(--success-muted); }
262 }
263 }
264</style>
web/src/components/things/PrivacyPolicyDetails.astro +2 −2
@@ -83,8 +83,8 @@ const removeDuplicates = () => {
8383 {priv.points && priv.points.length > 0 && (
8484 <h4>About the Data</h4>
8585 <p class="about-tosdr">
86 This data is kindly provided by <a href="https://tosdr.org/">tosdr.org</a>.
87 Read full report at: <a href={`https://tosdr.org/en/service/${priv.id}`}>#{priv.id}</a>
86 This data is kindly provided by <a href="https://tosdr.org/" target="_blank" rel="noopener noreferrer">tosdr.org</a>.
87 Read full report at: <a href={`https://tosdr.org/en/service/${priv.id}`} target="_blank" rel="noopener noreferrer">#{priv.id}</a>
8888
8989 </p>
9090 )}
web/src/components/things/Search.svelte +2 −3
@@ -138,7 +138,7 @@
138138 position: relative;
139139 max-width: 900px;
140140 margin: 0 auto;
141 width: 80vw;
141 width: 100%;
142142 label {
143143 margin: var(--space-sm) 0;
144144 display: flex;
@@ -155,10 +155,9 @@
155155 padding: var(--space-sm) var(--space-md);
156156 font-size: var(--text-2xl);
157157 border: var(--border-heavy);
158 border-radius: var(--curve-lg);
159158 box-shadow: var(--shadow-sm);
160159 z-index: 4;
161 background: var(--accent-fg);
160 background: var(--background-form);
162161 color: var(--foreground);
163162 &:focus {
164163 outline: none;
web/src/components/things/ServiceCard.svelte +2 −2
@@ -50,11 +50,11 @@
5050 </div>
5151
5252 <div class="service-links">
53 <a class="link" href={service.url}>
53 <a class="link" href={service.url} target="_blank" rel="noopener noreferrer">
5454 <FontAwesome iconName="website" /> <span>{formatLink(service.url)}</span>
5555 </a>
5656 {#if service.github}
57 <a class="link" href={`https://github.com/${service.github}`}>
57 <a class="link" href={`https://github.com/${service.github}`} target="_blank" rel="noopener noreferrer">
5858 <FontAwesome iconName="sourceCode" /> GitHub
5959 </a>
6060 {/if}
web/src/pages/[...listing].astro +49 −392
@@ -1,5 +1,6 @@
11---
22import Layout from '@layouts/Layout.astro';
3import ListingHero from '@components/things/ListingHero.astro';
34import ServiceList from '@components/things/ServiceList.astro';
45import Comments from '@components/things/Comments.svelte';
56import GitHubDetailedInfo from '@components/things/GitHubDetailedInfo.astro';
@@ -23,11 +24,8 @@ import { fetchIosInfo } from '@utils/fetch-ios-info';
2324import { fetchAndroidInfo } from '@utils/fetch-android-info';
2425import { fetchDiscordInfo } from '@utils/fetch-discord-info';
2526import { fetchRedditInfo } from '@utils/fetch-reddit-info';
26import { parseMarkdown, formatLink } from '@utils/parse-markdown';
2727import { site } from '@utils/config';
28import FontAwesome from '@components/form/FontAwesome.svelte';
2928import Button from '@components/form/Button.astro';
30import SaveListing from '@components/things/SaveListing.svelte';
3129
3230interface Props extends Service {
3331 slug: string;
@@ -37,7 +35,6 @@ interface Props extends Service {
3735
3836const {
3937 name,
40 description,
4138 url,
4239 github,
4340 tosdrId,
@@ -45,41 +42,22 @@ const {
4542 subreddit,
4643 iosApp,
4744 androidApp,
48 icon,
49 followWith,
50 links,
51 securityAudited,
52 openSource,
53 acceptsCrypto,
5445 parentSection,
5546 categoryName,
5647} = Astro.props;
5748
58/**
59 * Make a list of keywords, for the <meta keywords> tag
60 */
6149const makeKeyWordTag = () => {
62 const keywords: string[] = [];
63 keywords.push(`open source ${parentSection.name}`);
64 keywords.push(`${parentSection.name} comparison`);
65 (parentSection.alternativeTo || []).forEach((alt: string) => {
66 keywords.push(`${alt} alternative`);
67 });
68 (parentSection.services || []).forEach((serv: Service) => {
69 keywords.push(`${serv.name} vs`);
70 });
71 keywords.push('private');
72 keywords.push('ad free');
73 keywords.push('encrypted');
74 keywords.push('open source software');
75 keywords.push('privacy respecting apps');
76 keywords.push('free tools');
50 const keywords = [
51 `open source ${parentSection.name}`,
52 `${parentSection.name} comparison`,
53 ...(parentSection.alternativeTo || []).map((alt: string) => `${alt} alternative`),
54 ...(parentSection.services || []).map((serv: Service) => `${serv.name} vs`),
55 'private', 'ad free', 'encrypted', 'open source software',
56 'privacy respecting apps', 'free tools',
57 ];
7758 return keywords.join(', ');
7859};
7960
80/**
81 * Make a page title
82 */
8361const makePageTitle = () => {
8462 return `${name} | ${parentSection.name} | ${categoryName} | Awesome Privacy`;
8563};
@@ -99,29 +77,20 @@ const makeBreadcrumbs = () => {
9977 ];
10078};
10179
102/**
103 * Make a string page intro, for the description tag
104 */
10580const makeDescriptionTag = () => {
106 let description = `Analysis of ${name}, and other privacy-respecting ${parentSection.name} `;
81 let desc = `Analysis of ${name}, and other privacy-respecting ${parentSection.name} `;
10782 if (parentSection.services) {
108 const serviceList = parentSection.services.map(
109 (serv: Service) => serv.name,
110 );
111 description += `Compare ${serviceList.join(' vs ')} more apps. `;
83 desc += `Compare ${parentSection.services.map((s: Service) => s.name).join(' vs ')} more apps. `;
11284 }
11385 if (parentSection.alternativeTo && parentSection.alternativeTo.length > 0) {
114 description += `The best secure encrypted alternatives to ${parentSection.alternativeTo.join(', ')} in 2024. `;
86 desc += `The best secure encrypted alternatives to ${parentSection.alternativeTo.join(', ')}. `;
11587 }
116 description += 'All this, and many more free and awesome tools and software.';
117 return description;
88 desc += 'All this, and many more free and awesome tools and software.';
89 return desc;
11890};
11991
120// Return a list of Services, except for the currtent one
12192const filterServices = () => {
122 return parentSection.services.filter(
123 (service: Service) => service.name !== name,
124 );
93 return parentSection.services.filter((s: Service) => s.name !== name);
12594};
12695
12796export async function getStaticPaths() {
@@ -160,24 +129,20 @@ const makePaginationLinks = () => {
160129
161130const { previous, next } = makePaginationLinks();
162131
163const ignoredSites = ['github.gom', 'wikipedia.'];
132const ignoredSites = ['github.com', 'wikipedia.'];
164133
165// Fetch detailed data about the services GitHub repo, privacy policy and website
166134const githubData = github ? await fetchGitHubStats(github) : null;
167135const privacyData = tosdrId ? await fetchTosdrPrivacy(tosdrId) : null;
168136const iosData = iosApp ? await fetchIosInfo(iosApp) : null;
169137const androidData = androidApp ? await fetchAndroidInfo(androidApp) : null;
170const discordData = discordInvite
171 ? await fetchDiscordInfo(discordInvite)
172 : null;
138const discordData = discordInvite ? await fetchDiscordInfo(discordInvite) : null;
173139const redditData = subreddit ? await fetchRedditInfo(subreddit) : null;
174140const dockerData = await fetchDockerData(name);
175141const websiteData =
176 url && !ignoredSites.some((ignoredSite) => url.includes(ignoredSite))
142 url && !ignoredSites.some((s) => url.includes(s))
177143 ? await fetchWebsiteInfo(url)
178144 : null;
179145
180// Filter changelog entries relevant to this service
181146const serviceHistory = await fetchChangelog().then(({ entries }) => {
182147 const isMatch = (c: { name: string; category: string; section: string }) =>
183148 c.name === name &&
@@ -209,18 +174,21 @@ const serviceHistory = await fetchChangelog().then(({ entries }) => {
209174
210175const findPrivacyPolicyLink = () => {
211176 if (!privacyData) return null;
212 // const docs = privacyData?.parameters?.documents;
213 // if (docs) {
214 // const privacyPolicy = (docs || []).find((doc) => doc.name.toLowerCase().includes('privacy policy'));
215 // if (privacyPolicy) return privacyPolicy.url;
216 // }
177 const docs = privacyData?.parameters?.documents;
178 if (docs) {
179 const pp = (docs || []).find((doc) => doc.name.toLowerCase().includes('privacy policy'));
180 if (pp) return pp.url;
181 }
217182 return `https://tosdr.org/en/service/${tosdrId}`;
218183};
219184
220185const privacyPolicyLink = findPrivacyPolicyLink();
221186
187const catSlug = slugify(categoryName);
188const secSlug = slugify(parentSection.name);
189
222190const getApiEndpoint = () => {
223 return `https://api.awesome-privacy.xyz/${slugify(categoryName)}/${slugify(parentSection.name)}/${slugify(name)}`;
191 return `https://api.awesome-privacy.xyz/${catSlug}/${secSlug}/${slugify(name)}`;
224192};
225193---
226194
@@ -231,187 +199,12 @@ const getApiEndpoint = () => {
231199 breadcrumbs={makeBreadcrumbs()}
232200>
233201 <main>
234 <section>
235 <div class="service-head">
236 <h2>{name}</h2>
237 <span class="url-wrap">
238 <a class="service-url" href={url}>{formatLink(url)}</a>
239 <span class="follow-with">{followWith}</span>
240 </span>
241 </div>
242 <div class="breadcrumbs">
243 <span>
244 <a href="/">Awesome Privacy</a>
245 ➔ <a href={`/${slugify(categoryName)}`}>{categoryName}</a>
246 ➔ <a href={`/${slugify(categoryName)}/${slugify(parentSection.name)}`}
247 >{parentSection.name}</a
248 >
249 ➔ <a
250 href={`/${slugify(categoryName)}/${slugify(parentSection.name)}/${slugify(name)}`}
251 >{name}</a
252 >
253 </span>
254 </div>
255 <div class="save-listing">
256 <SaveListing
257 client:visible
258 categoryName={categoryName}
259 sectionName={parentSection.name}
260 serviceName={name}
261 showLabel={true}
262 />
263 </div>
264 <div class="intro">
265 <img
266 width="60"
267 height="60"
268 loading="lazy"
269 decoding="async"
270 class="service-icon"
271 alt={`${name} Icon`}
272 data-service-url={formatLink(url)}
273 src={icon || `https://icon.horse/icon/${formatLink(url)}`}
274 />
275 <div>
276 <p class="description" set:html={parseMarkdown(description)} />
277 <ul>
278 {
279 url && (
280 <li>
281 <b>Homepage:</b>
282 <a href={url}>{formatLink(url)}</a>
283 </li>
284 )
285 }
286 {
287 github && (
288 <li>
289 <b>GitHub:</b>
290 <a href={`https://github.com/${github}`}>
291 github.com/{github}
292 </a>
293 </li>
294 )
295 }
296 {
297 tosdrId && (
298 <li>
299 <b>Privacy:</b>
300 <a href={privacyPolicyLink}>
301 {formatLink(privacyPolicyLink || '')}
302 </a>
303 </li>
304 )
305 }
306 {
307 iosApp && (
308 <li>
309 <b>iOS App:</b>
310 <a href={iosApp}>{formatLink(iosApp)}</a>
311 </li>
312 )
313 }
314 {
315 androidApp && (
316 <li>
317 <b>Android App:</b>
318 <a
319 href={`https://play.google.com/store/apps/details?id=${androidApp}`}
320 >{`https://play.google.com/store/apps/details?id=${androidApp}`}</a>
321 </li>
322 )
323 }
324 {
325 discordInvite && (
326 <li>
327 <b>Discord Invite:</b>
328 <a href={`https://discord.com/invite/${discordInvite}`}>
329 {discordInvite}
330 </a>
331 </li>
332 )
333 }
334 {
335 subreddit && (
336 <li>
337 <b>Subreddit:</b>
338 <a href={`https://reddit.com/r/${subreddit}`}>
339 r/{subreddit}
340 </a>
341 </li>
342 )
343 }
344 {
345 url && (
346 <li>
347 <b>Web info:</b>
348 <a
349 href={`https://web-check.xyz/check/${formatLink(url)}`}
350 >{`web-check.xyz/check/${formatLink(url).split('/')[0]}`}</a>
351 </li>
352 )
353 }
354 {
355 links &&
356 links.length > 0 &&
357 links.map((link) => (
358 <li>
359 <b>{link.title}</b>
360 <a href={link.url}>{link.url}</a>
361 </li>
362 ))
363 }
364 </ul>
365 </div>
366 </div>
367 <div class="highlights">
368 {
369 securityAudited && (
370 <span
371 class="meta-item great"
372 title={`${name} has been security audited by an accredited auditor, with results published publicly`}
373 >
374 <FontAwesome iconName="securityAudited" /> Security Audited
375 </span>
376 )
377 }
378 {
379 acceptsCrypto && (
380 <span
381 class="meta-item great"
382 title={`${name} accepts anonymous payment methods`}
383 >
384 <FontAwesome iconName="cryptoAccepted" /> Crypto Payments Accepted
385 </span>
386 )
387 }
388 {
389 securityAudited === false && (
390 <span
391 class="meta-item warning"
392 title={`${name} has not been audited`}
393 >
394 <FontAwesome iconName="notSecurityAudited" /> No Security Audit
395 </span>
396 )
397 }
398 {
399 openSource === false && (
400 <span class="warning">
401 <FontAwesome iconName="closedSource" />
402 Not Open Source
403 </span>
404 )
405 }
406 {
407 openSource || (github && openSource !== false) ? (
408 <span class="meta-item great" title={`${name} is open source`}>
409 <FontAwesome iconName="openSource" /> Open Source
410 </span>
411 ) : null
412 }
413 </div>
414 </section>
202 <ListingHero
203 service={Astro.props}
204 parentSection={parentSection}
205 categoryName={categoryName}
206 privacyPolicyLink={privacyPolicyLink}
207 />
415208 {
416209 privacyData && privacyData.parameters.points.length > 0 && (
417210 <section>
@@ -485,7 +278,7 @@ const getApiEndpoint = () => {
485278 services={filterServices()}
486279 subHeading={true}
487280 noGitHubMetrics={true}
488 buttonLink={`/${slugify(categoryName)}/${slugify(parentSection.name)}`}
281 buttonLink={`/${catSlug}/${secSlug}`}
489282 categoryName={categoryName}
490283 sectionName={parentSection.name}
491284 />
@@ -511,16 +304,6 @@ const getApiEndpoint = () => {
511304 href="/api">Swagger Docs</a
512305 > or read the <a href="/about#api">API Usage Guide</a>.
513306 </p>
514
515 <h4>About the Data</h4>
516 <p>
517 Beyond the user-submitted YAML you see above, we also augment each
518 listing with additional data dynamically fetched from several sources.
519 To learn more about where the rest of data included in this page comes
520 from, and how it is computed, see the <a href="/about#our-data"
521 >About the Data</a
522 > section of our About page.
523 </p>
524307 </section>
525308
526309 <section>
@@ -531,7 +314,7 @@ const getApiEndpoint = () => {
531314 Share {name} and Awesome Privacy with your network!
532315 <div>
533316 <SocialShare
534 url={`${site}/${slugify(categoryName)}/${slugify(parentSection.name)}/${slugify(name)} `}
317 url={`${site}/${catSlug}/${secSlug}/${slugify(name)} `}
535318 title={`Checkout ${name}! \n`}
536319 description={`Compare #${name} and other privacy-respecting ${parentSection.name} at ` +
537320 `Awesome-Privacy.xyz, the free and open source list of private software alternatives. ` +
@@ -544,9 +327,7 @@ const getApiEndpoint = () => {
544327 <div class="pagination-navigation">
545328 {
546329 previous ? (
547 <Button
548 url={`/${slugify(categoryName)}/${slugify(parentSection.name)}/${slugify(previous)}`}
549 >
330 <Button url={`/${catSlug}/${secSlug}/${slugify(previous)}`}>
550331 <span>← Previous</span>
551332 <p>{previous}</p>
552333 </Button>
@@ -554,17 +335,12 @@ const getApiEndpoint = () => {
554335 <p class="nothing" />
555336 )
556337 }
557 <a
558 href={`/${slugify(categoryName)}/${slugify(parentSection.name)}`}
559 class="go-to-category"
560 >
338 <a href={`/${catSlug}/${secSlug}`} class="go-to-category">
561339 View {parentSection.name} ({(parentSection.services || []).length})
562340 </a>
563341 {
564342 next && (
565 <Button
566 url={`/${slugify(categoryName)}/${slugify(parentSection.name)}/${slugify(next)}`}
567 >
343 <Button url={`/${catSlug}/${secSlug}/${slugify(next)}`}>
568344 <span>Next →</span>
569345 <p>{next}</p>
570346 </Button>
@@ -598,9 +374,7 @@ const getApiEndpoint = () => {
598374 background: var(--accent-fg);
599375 }
600376
601 p {
602 margin: var(--space-xs) 0 var(--space-sm) 0;
603 }
377 p { margin: var(--space-xs) 0 var(--space-sm) 0; }
604378
605379 h3 {
606380 font-size: var(--text-3xl);
@@ -615,91 +389,21 @@ const getApiEndpoint = () => {
615389 }
616390 }
617391
618 .service-head {
619 h2 {
620 font-size: var(--text-4xl);
621 margin: 0;
622 @media (max-width: 768px) {
623 text-align: center;
624 }
625 }
626 .url-wrap {
627 display: flex;
628 align-items: center;
629 gap: var(--space-sm);
630 a {
631 font-size: var(--text-md);
632 }
633 .follow-with {
634 font-style: italic;
635 opacity: var(--opacity-muted);
636 }
637 @media (max-width: 768px) {
638 flex-direction: column;
639 }
640 }
641 }
642
643 .save-listing {
644 position: absolute;
645 top: var(--space-xl);
646 right: var(--space-md);
647 }
648
649392 h4 {
650393 font-size: var(--text-lg);
651394 margin-bottom: 0;
652395 }
653396
654 .intro {
655 font-size: var(--text-md);
656 font-style: italic;
657 opacity: 0.9;
658 display: flex;
659 gap: var(--space-sm);
660 @media (max-width: 768px) {
661 flex-direction: column;
662 }
663 .service-icon {
664 border-radius: var(--curve-md);
665 margin-top: var(--space-md);
666 @media (max-width: 768px) {
667 margin: var(--space-md) auto 0 auto;
668 }
669 }
670 ul {
671 padding-left: var(--space-md);
672 list-style: circle;
673 font-style: normal;
674 font-size: var(--text-base);
675 margin-top: 0;
676 b {
677 font-size: var(--text-base);
678 font-weight: 400;
679 min-width: 100px;
680 display: inline-block;
681 @media (max-width: 768px) {
682 width: auto;
683 display: block;
684 }
685 }
686 }
687 }
688
689 pre {
690 a {
691 text-decoration: none;
692 color: var(--foreground);
693 code {
694 background: var(--code-bg);
695 padding: 0.2rem 0.4rem;
696 border-radius: var(--curve-sm);
697 font-family: var(--font-code);
698 font-size: var(--text-sm);
699 @media (max-width: 768px) {
700 white-space: break-spaces;
701 }
702 }
397 pre a {
398 text-decoration: none;
399 color: var(--foreground);
400 code {
401 background: var(--code-bg);
402 padding: 0.2rem 0.4rem;
403 border-radius: var(--curve-sm);
404 font-family: var(--font-code);
405 font-size: var(--text-sm);
406 @media (max-width: 768px) { white-space: break-spaces; }
703407 }
704408 }
705409
@@ -709,51 +413,4 @@ const getApiEndpoint = () => {
709413 flex-wrap: wrap;
710414 justify-content: space-between;
711415 }
712
713 .highlights {
714 display: flex;
715 gap: var(--space-md);
716 flex-wrap: wrap;
717 align-items: center;
718 justify-content: end;
719
720 .meta-item,
721 .warning {
722 display: flex;
723 align-items: center;
724 gap: var(--space-xs);
725 opacity: var(--opacity-muted);
726 font-size: var(--text-sm);
727 padding: var(--space-sm) 0;
728 :global(svg) {
729 color: var(--foreground);
730 width: var(--text-md);
731 height: var(--text-md);
732 }
733 a {
734 text-decoration: none;
735 color: var(--foreground);
736 display: flex;
737 gap: var(--space-xs);
738 &:hover {
739 color: var(--accent-3);
740 :global(svg) {
741 color: var(--accent-3);
742 }
743 }
744 }
745 }
746 .warning {
747 color: var(--danger);
748 :global(svg) {
749 color: var(--danger);
750 }
751 }
752 .great {
753 color: var(--success-muted);
754 :global(svg) {
755 color: var(--success-muted);
756 }
757 }
758 }
759416</style>
web/src/pages/about.astro +3 −4
@@ -208,13 +208,12 @@ const licenseContent = async () => {
208208 <h2 id="author">Author</h2>
209209 <article class="author">
210210 <p>
211 This project was originally started by me, <a
212 href="https://aliciasykes.com">Alicia Sykes</a
213 >
211 This project was originally started by me,
212 <a href="https://aliciasykes.com">Alicia Sykes</a>
214213 (with a lot of help from the community)
215214 </p>
216215 <br />
217 <p class="about">
216 <p>
218217 I build apps which aim to help people escape big tech, secure their
219218 data, and protect their privacy.
220219 </p>
web/src/pages/all.astro +271 −235
@@ -1,6 +1,4 @@
11---
2
3
42import Layout from '@layouts/Layout.astro';
53import ServiceCard from '@components/things/ServiceCard.astro';
64import type { AwesomePrivacy, Section, Service } from '../types/Service';
@@ -8,259 +6,297 @@ import { fetchData, slugify } from '@utils/fetch-data';
86import FontAwesome from '@components/form/FontAwesome.svelte';
97
108const categories = (await fetchData() as AwesomePrivacy)?.categories || [];
11
129---
1310
14<script>
11<Layout
12 title="All Services | Awesome Privacy"
13 description="Browse every privacy-respecting service and app listed on Awesome Privacy, organised by category and section."
14>
15 <div class="page">
16 <aside class="sidebar" aria-label="Table of contents">
17 <button
18 class="toc-toggle"
19 type="button"
20 aria-expanded="false"
21 aria-controls="toc"
22 >Contents</button>
23 <nav id="toc" class="toc">
24 <div class="toc-inner">
25 {categories.map((category) => (
26 <details open>
27 <summary>{category.name}</summary>
28 <ul>
29 <li>
30 <a href={`#${slugify(category.name)}`}>{category.name} (all)</a>
31 </li>
32 {category.sections.map((section: Section) => (
33 <li>
34 <a href={`#${slugify(category.name)}-${slugify(section.name)}`}>
35 {section.name}
36 </a>
37 </li>
38 ))}
39 </ul>
40 </details>
41 ))}
42 </div>
43 </nav>
44 </aside>
1545
16const toggleSidebar = () => {
17 const intro = document.querySelector('#welcome-to-all');
18 const sidebar = document.querySelector('.sidebar');
19 sidebar && sidebar.classList.toggle('hidden');
20 intro && intro.classList.toggle('hidden');
21 const button = document.querySelector('#toggle-sidebar');
22 if (button) {
23 button.textContent = (button.textContent === "Show Contents" ? "Hide Contents" : "Show Contents");
24 }
25};
46 <main>
47 {categories.map((category) => (
48 <Fragment>
49 <h2 id={slugify(category.name)}>
50 <FontAwesome iconName={slugify(category.name)} />
51 <a href={`/${slugify(category.name)}`}>{category.name}</a>
52 </h2>
53 <article>
54 {category.sections.map((section: Section) => (
55 <Fragment>
56 <h3 id={`${slugify(category.name)}-${slugify(section.name)}`}>
57 <a href={`/${slugify(category.name)}/${slugify(section.name)}`}>
58 {section.name}
59 </a>
60 </h3>
61 <section class="grid">
62 {section.services.map((service: Service) => (
63 <ServiceCard
64 service={service}
65 sectionName={section.name}
66 categoryName={category.name}
67 />
68 ))}
69 </section>
70 {section.services.length === 0 && (
71 <div class="nothing-yet">
72 <p>
73 <strong>This section is still a work in progress</strong><br />
74 Check back soon, or help us complete it by submitting a
75 <a href="https://github.com/lissy93/awesome-privacy">pull request</a>
76 or <a href="/submit">entry</a>.
77 </p>
78 </div>
79 )}
80 </Fragment>
81 ))}
82 </article>
83 </Fragment>
84 ))}
85 </main>
86 </div>
87</Layout>
2688
27 const tgt = document.querySelector("#toggle-sidebar");
28 tgt && tgt.addEventListener("click", () => {
29 toggleSidebar();
30 });
31</script>
89<script>
90 document.addEventListener('astro:page-load', () => {
91 const links = document.querySelectorAll<HTMLAnchorElement>('.toc a');
92 const headings = document.querySelectorAll<HTMLElement>('h2[id], h3[id]');
93 const toggle = document.querySelector('.toc-toggle');
94 const toc = document.querySelector('.toc');
3295
33<Layout title="Awesome Privacy">
34 <main>
35 <div id="content">
36 <button id="toggle-sidebar">Show Contents</button>
37 <div id="welcome-to-all" class="hidden">
38 <p>
39 Welcome to <a href="/">Awesome Privacy</a>!
40 Here you'll find a summerized collection of all verified services we have listed.
41 <br /><br />
42 Click a section or category heading, to view more listings and privacy tips in that group,
43 or a service title to view it's complete privacy report
44 <br /><br />
45 Looking for something specific? Try the <a href="/search">Search</a> page, or take a
46 scroll through the <a href="/sitemap">Sitemap</a>
47 <br /><br />
48 If you want to make an edit, removal or submit an addition, then either click
49 the Edit button within any sub-page, or visit our <a href="/about">About</a> page
50 <br /><br />
51 This project, all it's data as well as source code is freely availible
52 on <a href="https://github.com/lissy93/awesome-privacy">GitHub</a>,
53 licensed under MIT, (C) <a href="https://aliciasykes.com">Alicia Sykes</a> 2024
54 </p>
55 </div>
56 <div class="sidebar hidden">
57 <p class="sidebar-title">Contents</p>
58 <ul>
59 {categories.map((category) => (
60 <li class="top-level">
61 <a href={`#${slugify(category.name)}`}>{category.name}</a>
62 </li>
63 <li>
64 <ul>
65 {category.sections.map((section: Section) => (
66 <li>
67 <a href={`#${slugify(category.name)}-${slugify(section.name)}`}>{section.name}</a>
68 </li>
69 ))}
70 </ul>
71 </li>
72 ))}
73 </ul>
74 </div>
75 {categories.map((category) => (
76 <h2 id={`${slugify(category.name)}`}>
77 <FontAwesome iconName={slugify(category.name)} />
78 <a href={`/${slugify(category.name)}`}>{category.name}</a>
79 </h2>
80
81 <article>
82 {category.sections.map((section: Section) => (
83 <h3 id={`${slugify(category.name)}-${slugify(section.name)}`}>
84 <a href={`/${slugify(category.name)}/${slugify(section.name)}`}>{section.name}</a>
85 </h3>
86 <section class="section">
87 { section.services.map((service: Service) => (
88 <ServiceCard service={service} sectionName={section.name} categoryName={category.name}/>
89 ))}
90 </section>
91 <div>
92 {!section || !section.services || section.services.length === 0 ? (
93 <div class="nothing-yet">
94 <p>
95 <strong>⚠️ This section is still a work in progress ⚠️</strong><br />
96 Check back soon, or help us complete it by submiting a pull request on GitHub.
97 <br />
98 <span class="quick-submit">Or submit an entry <a href="/submit">here</a></span>
99 </p>
100 </div>
101 ) : null}
102 </div>
103 ))}
104 </article>
105
106 ))}
107 </div>
108 </main>
109
110</Layout>
96 // Scroll-spy: highlight active TOC link
97 const linkMap = new Map<string, HTMLAnchorElement>();
98 links.forEach((link) => {
99 const id = link.getAttribute('href')?.slice(1);
100 if (id) linkMap.set(id, link);
101 });
111102
112<style lang="scss">
103 let active: HTMLAnchorElement | null = null;
113104
114main {
115 margin: 0 auto var(--space-lg) auto;
116 padding: var(--space-md);
117 width: var(--width-container);
118 max-width: var(--width-container-max);
105 const observer = new IntersectionObserver((entries) => {
106 entries.forEach((entry) => {
107 if (entry.isIntersecting) {
108 active?.classList.remove('active');
109 const link = linkMap.get(entry.target.id);
110 if (link) {
111 link.classList.add('active');
112 link.closest('details')?.setAttribute('open', '');
113 active = link;
114 }
115 }
116 });
117 }, { rootMargin: '0px 0px -70% 0px' });
119118
120 display: flex;
121 justify-content: space-between;
122}
119 headings.forEach((h) => observer.observe(h));
123120
124.hidden {
125 display: none;
126}
121 // Mobile TOC toggle
122 const onToggle = () => {
123 const isOpen = toc?.classList.toggle('open');
124 toggle?.setAttribute('aria-expanded', String(!!isOpen));
125 };
126 toggle?.addEventListener('click', onToggle);
127127
128#content {
129 margin: 0 auto;
130}
128 // Close mobile TOC on link click
129 const onLinkClick = () => {
130 toc?.classList.remove('open');
131 toggle?.setAttribute('aria-expanded', 'false');
132 };
133 links.forEach((link) => link.addEventListener('click', onLinkClick));
131134
132#welcome-to-all {
133 text-align: justify;
134 width: 600px;
135 margin: 0 auto;
136 background: var(--background-form);
137 padding: var(--space-md);
138 border-radius: var(--curve-sm);
139}
135 // Cleanup on page transition
136 document.addEventListener('astro:before-swap', () => {
137 observer.disconnect();
138 toggle?.removeEventListener('click', onToggle);
139 links.forEach((link) => link.removeEventListener('click', onLinkClick));
140 }, { once: true });
141 });
142</script>
143
144<style lang="scss">
145 .page {
146 display: flex;
147 gap: var(--space-lg);
148 max-width: calc(100vw - 4rem);
149 margin: 0 auto;
150 padding: var(--space-md);
151 }
140152
141#toggle-sidebar {
142 background: none;
143 outline: none;
144 border: none;
145 cursor: pointer;
146 color: var(--accent);
147 &:hover {
148 text-decoration: underline;
149 }
150}
153 .sidebar {
154 position: sticky;
155 top: var(--space-md);
156 align-self: flex-start;
157 width: 260px;
158 flex-shrink: 0;
159 max-height: calc(100vh - var(--space-lg));
160 overflow-y: auto;
151161
162 .toc-toggle {
163 display: none;
164 width: 100%;
165 padding: var(--space-sm) var(--space-md);
166 background: var(--accent-3);
167 color: var(--accent-fg);
168 font-family: var(--font-subtitle);
169 font-size: var(--text-md);
170 font-weight: bold;
171 border: var(--border-heavy);
172 box-shadow: var(--shadow-sm);
173 cursor: pointer;
174 &:hover { box-shadow: var(--shadow-sm-hover); }
175 }
152176
153.sidebar {
154 border-radius: var(--curve-md);
155 .sidebar-title {
156 font-size: var(--text-xl);
157 background: var(--accent-3);
158 color: var(--accent-fg);
159 border: var(--border-heavy);
160 box-shadow: var(--shadow-lg);
161 border-radius: var(--curve-sm);
162 margin: var(--space-md) auto;
163 text-align: center;
164 }
165 ul {
166 list-style: none;
167 padding-left: 1.6rem;
168 column-width: 16rem;
169 a {
170 text-decoration: none;
171 color: var(--foreground);
172 transition: var(--transition-fast);
173 &:hover {
174 color: var(--accent);
175 opacity: 1;
176 }
177 }
178 li ul {
179 list-style: circle;
180 }
181 .top-level {
182 font-weight: bold;
183 margin-top: var(--space-sm);
184 &:hover a {
185 color: var(--accent-3);
186 }
187 }
188 }
189}
177 .toc {
178 details {
179 summary {
180 display: flex;
181 align-items: center;
182 font-weight: bold;
183 font-family: var(--font-subtitle);
184 font-size: var(--text-base);
185 padding: var(--space-xs) 0;
186 cursor: pointer;
187 list-style: none;
188 color: var(--foreground);
189 opacity: var(--opacity-subtle);
190 &::marker, &::-webkit-details-marker { display: none; }
191 &::before {
192 content: '▸';
193 margin-right: var(--space-xs);
194 transition: var(--transition-fast);
195 }
196 }
197 &[open] > summary::before { transform: rotate(90deg); }
198 }
199 ul {
200 list-style: none;
201 padding-left: var(--space-md);
202 margin: 0 0 var(--space-xs) 0;
203 }
204 a {
205 color: var(--foreground);
206 text-decoration: none;
207 font-size: var(--text-sm);
208 opacity: var(--opacity-soft);
209 transition: var(--transition-fast);
210 display: block;
211 padding: var(--space-xs) 0;
212 &:hover { color: var(--accent); opacity: 1; }
213 &.active { color: var(--accent); opacity: 1; font-weight: bold; }
214 }
215 }
216 }
190217
191.section {
192 display: grid;
193 grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
194 gap: var(--space-md);
195 width: 100%;
196 margin: 0 auto;
197}
218 main {
219 flex: 1;
220 min-width: 0;
198221
199.card {
200 margin: var(--space-lg) auto 5rem auto;
201 padding: 0 var(--space-lg);
202 border: var(--border-heavy);
203 box-shadow: var(--shadow-lg);
204 background: var(--accent-fg);
205}
222 h2, h3 { scroll-margin-top: var(--space-lg); }
206223
207h2 {
208 margin: var(--space-lg) auto 0 auto;
209 font-size: var(--text-4xl);
210 text-align: center;
211 opacity: var(--opacity-muted);
212 display: flex;
213 justify-content: center;
214 align-items: center;
215 gap: var(--space-md);
216 a {
217 color: var(--accent-3);
218 text-decoration: none;
219 }
220 :global(svg) {
221 width: var(--text-4xl);
222 height: var(--text-4xl);
223 color: var(--accent-3);
224 }
225}
224 h2 {
225 margin: var(--space-lg) auto 0 auto;
226 font-size: var(--text-4xl);
227 text-align: center;
228 opacity: var(--opacity-muted);
229 display: flex;
230 justify-content: center;
231 align-items: center;
232 gap: var(--space-md);
233 a { color: var(--accent-3); text-decoration: none; }
234 :global(svg) {
235 width: var(--text-4xl);
236 height: var(--text-4xl);
237 color: var(--accent-3);
238 }
239 }
226240
227h3 {
228 font-size: var(--text-3xl);
229 margin: var(--space-lg) 0 var(--space-md) 0;
230 box-shadow: var(--shadow-lg);
231 background: var(--accent);
232 color: var(--accent-fg);
233 width: fit-content;
234 padding: var(--space-xs) var(--space-sm);
235 a {
236 color: var(--accent-fg);
237 font-family: var(--font-subtitle);
238 text-decoration: none;
239 }
240 }
241 h3 {
242 font-size: var(--text-3xl);
243 margin: var(--space-lg) 0 var(--space-md) 0;
244 box-shadow: var(--shadow-lg);
245 background: var(--accent);
246 color: var(--accent-fg);
247 width: fit-content;
248 padding: var(--space-xs) var(--space-sm);
249 a {
250 color: var(--accent-fg);
251 font-family: var(--font-subtitle);
252 text-decoration: none;
253 }
254 }
241255
242 .nothing-yet {
243 width: 100%;
244 margin: 0 auto;
245 background: var(--accent-fg);
246 border: var(--border-heavy);
247 box-shadow: var(--shadow-lg);
248 border-radius: var(--curve-sm);
249 display: flex;
256 .grid {
257 display: grid;
258 grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
259 gap: var(--space-md);
260 }
250261
251 p {
252 font-size: var(--text-md);
253 opacity: var(--opacity-subtle);
254 font-style: italic;
255 text-align: center;
256 margin: var(--space-2xl) auto;
257 }
258 .quick-submit {
259 margin-top: var(--space-md);
260 font-size: var(--text-sm);
261 opacity: var(--opacity-subtle);
262 }
263 }
262 .nothing-yet {
263 background: var(--accent-fg);
264 border: var(--border-heavy);
265 box-shadow: var(--shadow-lg);
266 border-radius: var(--curve-sm);
267 p {
268 font-size: var(--text-md);
269 opacity: var(--opacity-subtle);
270 font-style: italic;
271 text-align: center;
272 margin: var(--space-2xl) auto;
273 a { color: var(--accent); }
274 }
275 }
276 }
264277
278 @media (max-width: 768px) {
279 .page { flex-direction: column; }
280 .sidebar {
281 position: static;
282 width: 100%;
283 max-height: none;
284 overflow: visible;
285 border: var(--border-heavy);
286 box-shadow: var(--shadow-lg);
287 background: var(--accent-fg);
288 border-radius: var(--curve-sm);
265289
290 .toc-toggle { display: block; }
291 .toc {
292 display: grid;
293 grid-template-rows: 0fr;
294 transition: grid-template-rows 0.3s ease;
295 .toc-inner { overflow: hidden; padding: 0 var(--space-sm); }
296 &.open { grid-template-rows: 1fr; }
297 }
298 }
299 main h2 { font-size: var(--text-3xl); }
300 main h3 { font-size: var(--text-2xl); }
301 }
266302</style>
web/src/pages/changelog.astro +1
@@ -15,6 +15,7 @@ const changelog = await fetchChangelog();
1515 All data in awesome-privacy is managed via Git,
1616 so that we have a complete and transparent changelog
1717 of exactly what was added when and by whom.
18 The corresponding PR for each change contains full details and justifications.
1819 </p>
1920 {changelog.entries.length > 0 ? (
2021 <ChangelogTimeline client:load entries={changelog.entries} rejections={changelog.rejections || []} />
web/src/pages/index.astro +59 −7
@@ -19,14 +19,17 @@ const description =
1919 'Awesome Privacy is a directory of alternative privacy-respecting software and services.';
2020---
2121
22<Layout title="Home | Awesome Privacy" hideNav={true} description={description}>
22<Layout title="Home | Awesome Privacy" description={description}>
2323 <Hero />
2424 <main>
25 <h2>
26 <a href="/search">Search</a>
27 </h2>
28 <Search client:visible data={categories} />
29 <h2 class="browse-title"><a href="/browse">Browse</a></h2>
25 <div class="action-card">
26 <Search client:visible data={categories} />
27 <span class="action-divider">or</span>
28 <a href="/all" class="browse-cta">
29 Browse All Listings &rarr;
30 </a>
31 </div>
32 <h2 class="browse-title"><a href="/all">Categories</a></h2>
3033 <ul class="categories">
3134 {
3235 categories.map((category) => (
@@ -101,6 +104,54 @@ const description =
101104 }
102105 }
103106 }
107 .action-card {
108 display: flex;
109 align-items: end;
110 gap: var(--space-md);
111 background: var(--accent-fg);
112 border: var(--border-heavy);
113 border-radius: var(--curve-sm);
114 box-shadow: var(--shadow-lg);
115 padding: var(--space-md) var(--space-lg);
116 margin: var(--space-lg) auto;
117 width: 100%;
118 box-sizing: border-box;
119 :global(.search-wrap) {
120 flex: 1;
121 :global(label) { font-size: var(--text-sm); }
122 }
123 .action-divider {
124 font-family: var(--font-subtitle);
125 opacity: var(--opacity-soft);
126 flex-shrink: 0;
127 }
128 .browse-cta {
129 flex-shrink: 0;
130 padding: var(--space-sm) var(--space-lg);
131 background: var(--accent-3);
132 color: var(--accent-fg);
133 font-family: var(--font-subtitle);
134 font-size: var(--text-md);
135 font-weight: bold;
136 text-decoration: none;
137 border: var(--border-heavy);
138 box-shadow: var(--shadow-sm);
139 white-space: nowrap;
140 box-sizing: border-box;
141 &:hover {
142 box-shadow: var(--shadow-sm-hover);
143 opacity: 0.95;
144 }
145 }
146 @media (max-width: 768px) {
147 flex-direction: column;
148 align-items: center;
149 width: 95%;
150 padding: var(--space-md);
151 .browse-cta { width: 100%; text-align: center; }
152 }
153 }
154
104155 h2 {
105156 font-size: var(--text-4xl);
106157 color: var(--accent-3);
@@ -120,7 +171,8 @@ const description =
120171 border-radius: var(--curve-sm);
121172 box-shadow: var(--shadow-md);
122173 padding: var(--space-md);
123 width: 85%;
174 width: 100%;
175 box-sizing: border-box;
124176 margin: 0 auto;
125177 }
126178
web/src/pages/sitemap.astro +3
@@ -35,6 +35,9 @@ const categories = ((await fetchData()) as AwesomePrivacy)?.categories || [];
3535 <li>
3636 <a href="/all">View All</a>
3737 </li>
38 <li>
39 <a href="/changelog">Changelog</a>
40 </li>
3841 <li>
3942 <a href="/inventory">My Inventory</a>
4043 </li>
web/src/styles/typography.css +12 −7
@@ -1,11 +1,9 @@
1/* Fallback to Google Fonts for specific weights and styles */
2@import url('https://fonts.googleapis.com/css2?family=Lekton:wght@700&family=Libre+Franklin:wght@800&family=Rubik:ital,wght@0,400;0,500;0,600;1,400;1,500;1,600&display=swap');
3
41/* Rubik Font Faces */
52@font-face {
63 font-family: 'Rubik';
74 font-style: normal;
85 font-weight: 400;
6 font-display: swap;
97 src:
108 local('Rubik'),
119 url('/fonts/Rubik/Rubik-Regular.ttf') format('truetype');
@@ -14,6 +12,7 @@
1412 font-family: 'Rubik';
1513 font-style: italic;
1614 font-weight: 400;
15 font-display: swap;
1716 src:
1817 local('Rubik Italic'),
1918 url('/fonts/Rubik/Rubik-Italic.ttf') format('truetype');
@@ -22,6 +21,7 @@
2221 font-family: 'Rubik';
2322 font-style: normal;
2423 font-weight: 500;
24 font-display: swap;
2525 src:
2626 local('Rubik Medium'),
2727 url('/fonts/Rubik/Rubik-Medium.ttf') format('truetype');
@@ -30,6 +30,7 @@
3030 font-family: 'Rubik';
3131 font-style: italic;
3232 font-weight: 500;
33 font-display: swap;
3334 src:
3435 local('Rubik Medium Italic'),
3536 url('/fonts/Rubik/Rubik-MediumItalic.ttf') format('truetype');
@@ -38,6 +39,7 @@
3839 font-family: 'Rubik';
3940 font-style: normal;
4041 font-weight: 600;
42 font-display: swap;
4143 src:
4244 local('Rubik SemiBold'),
4345 url('/fonts/Rubik/Rubik-SemiBold.ttf') format('truetype');
@@ -46,19 +48,21 @@
4648 font-family: 'Rubik';
4749 font-style: italic;
4850 font-weight: 600;
51 font-display: swap;
4952 src:
5053 local('Rubik SemiBold Italic'),
51 url('/fonts/Rubik/Rubik-SemiBoldItalic.ttf') format('truetype');
54 url('/fonts/Rubik/Rubik-Italic-VariableFont_wght.ttf') format('truetype');
5255}
5356
5457/* Libre Franklin Font Faces */
5558@font-face {
5659 font-family: 'Libre Franklin';
5760 font-style: normal;
58 font-weight: 500;
61 font-weight: 800;
62 font-display: swap;
5963 src:
60 local('Libre Franklin Bold'),
61 url('/fonts/Libre_Franklin/LibreFranklin-Bold.ttf') format('truetype');
64 local('Libre Franklin ExtraBold'),
65 url('/fonts/Libre_Franklin/LibreFranklin-VariableFont_wght.ttf') format('truetype');
6266}
6367
6468/* Lekton Font Faces */
@@ -66,6 +70,7 @@
6670 font-family: 'Lekton';
6771 font-style: normal;
6872 font-weight: 700;
73 font-display: swap;
6974 src:
7075 local('Lekton Bold'),
7176 url('/fonts/Lekton/Lekton-Bold.ttf') format('truetype');
web/src/utils/fetch-changelog.ts +2 −2
@@ -1,8 +1,8 @@
11import { error } from './logger';
22
33const changelogUrl =
4 // 'https://raw.githubusercontent.com/Lissy93/awesome-privacy/main/.github/changelog.json';
5 'https://gist.githubusercontent.com/Lissy93/ddae176f3f21a0d3c0251f5f6cbd3b09/raw/d0f897eae31bdccce58744d0dc8b444a45beba3b/changelog.json';
4 'https://raw.githubusercontent.com/Lissy93/awesome-privacy/main/.github/changelog.json';
5 // 'https://gist.githubusercontent.com/Lissy93/ddae176f3f21a0d3c0251f5f6cbd3b09/raw/7c6ec883ae70cb8b7a88f3c0babd67f719f59f65/changelog.json';
66
77export interface ChangelogPr {
88 number: number;