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 @@
1--- 1---
2import FontAwesome from '@components/form/FontAwesome.svelte'; 2import FontAwesome from '@components/form/FontAwesome.svelte';
3import ThemeSwitcher from '@components/form/ThemeSwitcher.svelte';
4--- 3---
5 4
6<div class="theme-switcher">
7 <ThemeSwitcher client:load />
8</div>
9
10<div class="hero"> 5<div class="hero">
11 <h1>Awesome Privacy</h1> 6 <h1>Awesome Privacy</h1>
12 <p class="intro"> 7 <p class="intro">
@@ -14,35 +9,13 @@ import ThemeSwitcher from '@components/form/ThemeSwitcher.svelte';
14 popular software and services. 9 popular software and services.
15 </p> 10 </p>
16 <div class="github-link-wrap"> 11 <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">
18 <FontAwesome iconName="github" /> 13 <FontAwesome iconName="github" />
19 View on GitHub 14 View on GitHub
20 </a> 15 </a>
21 </div> 16 </div>
22</div> 17</div>
23 18
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>
46 19
47<style lang="scss"> 20<style lang="scss">
48 .hero { 21 .hero {
@@ -122,38 +95,4 @@ import ThemeSwitcher from '@components/form/ThemeSwitcher.svelte';
122 } 95 }
123 } 96 }
124 97
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 }
159</style> 98</style>
web/src/components/scafold/Footer.astro +3 −3
@@ -5,12 +5,12 @@ const year = new Date().getFullYear();
5<footer> 5<footer>
6 <a href="/about">Awesome Privacy</a> is licensed under <a 6 <a href="/about">Awesome Privacy</a> is licensed under <a
7 href="https://github.com/Lissy93/awesome-privacy/blob/main/LICENSE" 7 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
9 > 9 >
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 - {
11 year || 'Present' 11 year || 'Present'
12 } | Source code available on <a 12 } | 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
14 > 14 >
15</footer> 15</footer>
16 16
web/src/components/scafold/NavBar.astro +162 −51
@@ -1,46 +1,111 @@
1--- 1---
2import FontAwesome from '@components/form/FontAwesome.svelte'; 2import FontAwesome from '@components/form/FontAwesome.svelte';
3import ThemeSwitcher from '@components/form/ThemeSwitcher.svelte'; 3import 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];
4--- 14---
5 15
6<div class="nav"> 16<header class="site-header">
7 <a href="/" class="homepage"> 17 <a href="/" class="logo" aria-label="Awesome Privacy - Home">
8 <FontAwesome iconName="logo" /> 18 <FontAwesome iconName="logo" />
9 <h1>Awesome Privacy</h1> 19 <span>Awesome Privacy</span>
10 </a> 20 </a>
11 <nav> 21 <button
12 <a href="/browse">Browse</a> 22 class="burger"
13 <a href="/search">Search</a> 23 type="button"
14 <a href="/about">About</a> 24 aria-label="Toggle navigation menu"
15 <a href="/changelog">Changelog</a> 25 aria-expanded="false"
16 <a href="https://github.com/lissy93/awesome-privacy">GitHub</a> 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 ))}
17 <div class="theme-switcher"> 44 <div class="theme-switcher">
18 <ThemeSwitcher client:load /> 45 <ThemeSwitcher client:load />
19 </div> 46 </div>
20 </nav> 47 </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>
22 87
23<style lang="scss"> 88<style lang="scss">
24 .nav { 89 .site-header {
25 background: var(--accent-fg); 90 background: var(--accent-fg);
26 display: flex; 91 display: flex;
92 flex-wrap: wrap;
27 justify-content: space-between; 93 justify-content: space-between;
28 align-items: center; 94 align-items: center;
29 flex-wrap: wrap;
30 gap: var(--space-md);
31 border-bottom: 2px solid var(--accent-3); 95 border-bottom: 2px solid var(--accent-3);
96 position: relative;
32 97
33 .homepage { 98 .logo {
34 text-decoration: none; 99 text-decoration: none;
35 display: flex; 100 display: flex;
36 align-items: center; 101 align-items: center;
37 padding: 0 var(--space-sm); 102 padding: 0 var(--space-sm);
38 h1 { 103 span {
39 margin: 0;
40 font-size: 2.4rem; 104 font-size: 2.4rem;
41 padding: 0 var(--space-md); 105 padding: 0 var(--space-md);
42 color: var(--foreground); 106 color: var(--foreground);
43 font-family: var(--font-subtitle); 107 font-family: var(--font-subtitle);
108 font-weight: bold;
44 } 109 }
45 :global(svg) { 110 :global(svg) {
46 width: 2.5rem; 111 width: 2.5rem;
@@ -48,11 +113,33 @@ import ThemeSwitcher from '@components/form/ThemeSwitcher.svelte';
48 color: var(--accent-3); 113 color: var(--accent-3);
49 transition: var(--transition-normal); 114 transition: var(--transition-normal);
50 } 115 }
51 &:hover { 116 &:hover :global(svg) {
52 :global(svg) { 117 color: var(--accent);
53 color: var(--accent); 118 transform: scale(1.05);
54 transform: scale(1.05); 119 }
55 } 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); }
56 } 143 }
57 } 144 }
58 145
@@ -60,53 +147,77 @@ import ThemeSwitcher from '@components/form/ThemeSwitcher.svelte';
60 display: flex; 147 display: flex;
61 align-items: center; 148 align-items: center;
62 height: 3rem; 149 height: 3rem;
63 a { 150 .nav-link {
64 padding: var(--space-md); 151 padding: var(--space-md);
65 font-size: var(--text-md); 152 font-size: var(--text-md);
66 font-family: var(--font-subtitle); 153 font-family: var(--font-subtitle);
67 font-weight: bold; 154 font-weight: bold;
68 color: var(--foreground); 155 color: var(--foreground);
69 transition: 156 text-decoration: none;
70 background 0.3s, 157 transition: background 0.3s ease-in-out, color 0.3s ease-in-out;
71 transform 0.3s,
72 box-shadow 0.3s;
73 transition-timing-function: ease-in-out;
74 &:hover { 158 &:hover {
75 background: var(--accent-3);
76 color: var(--accent-fg); 159 color: var(--accent-fg);
77 border-bottom: 2px solid var(--accent-3); 160 &:nth-child(4n+1) { background: var(--accent); }
78 &:nth-child(4n + 1) { 161 &:nth-child(4n+2) { background: var(--accent-2); color: var(--foreground); }
79 background-color: var(--accent); 162 &:nth-child(4n+3) { background: var(--accent-3); }
80 } 163 &:nth-child(4n+4) { background: var(--accent-4); color: var(--foreground); }
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 }
92 } 164 }
93 } 165 }
94 .theme-switcher { 166 .theme-switcher {
95 transform: scale(0.7); 167 transform: scale(0.7);
96 margin: 0.2rem auto; 168 margin: 0.2rem auto;
97 @media (max-width: 768px) {
98 display: none;
99 }
100 } 169 }
101 } 170 }
102 .homepage, 171
103 nav { 172 @media (max-width: 1100px) {
104 @media (max-width: 768px) { 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 {
105 margin: 0 auto; 185 margin: 0 auto;
106 a { 186 :global(svg) { @media (max-width: 428px) { display: none; } }
107 border: 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);
108 } 207 }
208 .theme-switcher { display: none; }
109 } 209 }
110 } 210 }
111 } 211 }
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 }
112</style> 223</style>
web/src/components/things/DataActions.svelte +3 −3
@@ -91,9 +91,9 @@
91{#if lineNumbers} 91{#if lineNumbers}
92 <h4>Edit {serviceName} Data</h4> 92 <h4>Edit {serviceName} Data</h4>
93 <p> 93 <p>
94 You can view or edit this {serviceName}'s entry in 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 <a href={getGitHubSrcFile()}> this section </a> 95 Note that some of the information shown above has been aggregated from external sources,
96 of <code>awesome-privacy.yml</code> in our GitHub repo. 96 a list of these can be found <a href="/about#our-data">data documentation</a>.
97 </p> 97 </p>
98 98
99 <h4>Origin Data</h4> 99 <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 = () => {
83 {priv.points && priv.points.length > 0 && ( 83 {priv.points && priv.points.length > 0 && (
84 <h4>About the Data</h4> 84 <h4>About the Data</h4>
85 <p class="about-tosdr"> 85 <p class="about-tosdr">
86 This data is kindly provided by <a href="https://tosdr.org/">tosdr.org</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}`}>#{priv.id}</a> 87 Read full report at: <a href={`https://tosdr.org/en/service/${priv.id}`} target="_blank" rel="noopener noreferrer">#{priv.id}</a>
88 88
89 </p> 89 </p>
90 )} 90 )}
web/src/components/things/Search.svelte +2 −3
@@ -138,7 +138,7 @@
138 position: relative; 138 position: relative;
139 max-width: 900px; 139 max-width: 900px;
140 margin: 0 auto; 140 margin: 0 auto;
141 width: 80vw; 141 width: 100%;
142 label { 142 label {
143 margin: var(--space-sm) 0; 143 margin: var(--space-sm) 0;
144 display: flex; 144 display: flex;
@@ -155,10 +155,9 @@
155 padding: var(--space-sm) var(--space-md); 155 padding: var(--space-sm) var(--space-md);
156 font-size: var(--text-2xl); 156 font-size: var(--text-2xl);
157 border: var(--border-heavy); 157 border: var(--border-heavy);
158 border-radius: var(--curve-lg);
159 box-shadow: var(--shadow-sm); 158 box-shadow: var(--shadow-sm);
160 z-index: 4; 159 z-index: 4;
161 background: var(--accent-fg); 160 background: var(--background-form);
162 color: var(--foreground); 161 color: var(--foreground);
163 &:focus { 162 &:focus {
164 outline: none; 163 outline: none;
web/src/components/things/ServiceCard.svelte +2 −2
@@ -50,11 +50,11 @@
50 </div> 50 </div>
51 51
52 <div class="service-links"> 52 <div class="service-links">
53 <a class="link" href={service.url}> 53 <a class="link" href={service.url} target="_blank" rel="noopener noreferrer">
54 <FontAwesome iconName="website" /> <span>{formatLink(service.url)}</span> 54 <FontAwesome iconName="website" /> <span>{formatLink(service.url)}</span>
55 </a> 55 </a>
56 {#if service.github} 56 {#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">
58 <FontAwesome iconName="sourceCode" /> GitHub 58 <FontAwesome iconName="sourceCode" /> GitHub
59 </a> 59 </a>
60 {/if} 60 {/if}
web/src/pages/[...listing].astro +49 −392
@@ -1,5 +1,6 @@
1--- 1---
2import Layout from '@layouts/Layout.astro'; 2import Layout from '@layouts/Layout.astro';
3import ListingHero from '@components/things/ListingHero.astro';
3import ServiceList from '@components/things/ServiceList.astro'; 4import ServiceList from '@components/things/ServiceList.astro';
4import Comments from '@components/things/Comments.svelte'; 5import Comments from '@components/things/Comments.svelte';
5import GitHubDetailedInfo from '@components/things/GitHubDetailedInfo.astro'; 6import GitHubDetailedInfo from '@components/things/GitHubDetailedInfo.astro';
@@ -23,11 +24,8 @@ import { fetchIosInfo } from '@utils/fetch-ios-info';
23import { fetchAndroidInfo } from '@utils/fetch-android-info'; 24import { fetchAndroidInfo } from '@utils/fetch-android-info';
24import { fetchDiscordInfo } from '@utils/fetch-discord-info'; 25import { fetchDiscordInfo } from '@utils/fetch-discord-info';
25import { fetchRedditInfo } from '@utils/fetch-reddit-info'; 26import { fetchRedditInfo } from '@utils/fetch-reddit-info';
26import { parseMarkdown, formatLink } from '@utils/parse-markdown';
27import { site } from '@utils/config'; 27import { site } from '@utils/config';
28import FontAwesome from '@components/form/FontAwesome.svelte';
29import Button from '@components/form/Button.astro'; 28import Button from '@components/form/Button.astro';
30import SaveListing from '@components/things/SaveListing.svelte';
31 29
32interface Props extends Service { 30interface Props extends Service {
33 slug: string; 31 slug: string;
@@ -37,7 +35,6 @@ interface Props extends Service {
37 35
38const { 36const {
39 name, 37 name,
40 description,
41 url, 38 url,
42 github, 39 github,
43 tosdrId, 40 tosdrId,
@@ -45,41 +42,22 @@ const {
45 subreddit, 42 subreddit,
46 iosApp, 43 iosApp,
47 androidApp, 44 androidApp,
48 icon,
49 followWith,
50 links,
51 securityAudited,
52 openSource,
53 acceptsCrypto,
54 parentSection, 45 parentSection,
55 categoryName, 46 categoryName,
56} = Astro.props; 47} = Astro.props;
57 48
58/**
59 * Make a list of keywords, for the <meta keywords> tag
60 */
61const makeKeyWordTag = () => { 49const makeKeyWordTag = () => {
62 const keywords: string[] = []; 50 const keywords = [
63 keywords.push(`open source ${parentSection.name}`); 51 `open source ${parentSection.name}`,
64 keywords.push(`${parentSection.name} comparison`); 52 `${parentSection.name} comparison`,
65 (parentSection.alternativeTo || []).forEach((alt: string) => { 53 ...(parentSection.alternativeTo || []).map((alt: string) => `${alt} alternative`),
66 keywords.push(`${alt} alternative`); 54 ...(parentSection.services || []).map((serv: Service) => `${serv.name} vs`),
67 }); 55 'private', 'ad free', 'encrypted', 'open source software',
68 (parentSection.services || []).forEach((serv: Service) => { 56 'privacy respecting apps', 'free tools',
69 keywords.push(`${serv.name} vs`); 57 ];
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');
77 return keywords.join(', '); 58 return keywords.join(', ');
78}; 59};
79 60
80/**
81 * Make a page title
82 */
83const makePageTitle = () => { 61const makePageTitle = () => {
84 return `${name} | ${parentSection.name} | ${categoryName} | Awesome Privacy`; 62 return `${name} | ${parentSection.name} | ${categoryName} | Awesome Privacy`;
85}; 63};
@@ -99,29 +77,20 @@ const makeBreadcrumbs = () => {
99 ]; 77 ];
100}; 78};
101 79
102/**
103 * Make a string page intro, for the description tag
104 */
105const makeDescriptionTag = () => { 80const 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} `;
107 if (parentSection.services) { 82 if (parentSection.services) {
108 const serviceList = parentSection.services.map( 83 desc += `Compare ${parentSection.services.map((s: Service) => s.name).join(' vs ')} more apps. `;
109 (serv: Service) => serv.name,
110 );
111 description += `Compare ${serviceList.join(' vs ')} more apps. `;
112 } 84 }
113 if (parentSection.alternativeTo && parentSection.alternativeTo.length > 0) { 85 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(', ')}. `;
115 } 87 }
116 description += 'All this, and many more free and awesome tools and software.'; 88 desc += 'All this, and many more free and awesome tools and software.';
117 return description; 89 return desc;
118}; 90};
119 91
120// Return a list of Services, except for the currtent one
121const filterServices = () => { 92const filterServices = () => {
122 return parentSection.services.filter( 93 return parentSection.services.filter((s: Service) => s.name !== name);
123 (service: Service) => service.name !== name,
124 );
125}; 94};
126 95
127export async function getStaticPaths() { 96export async function getStaticPaths() {
@@ -160,24 +129,20 @@ const makePaginationLinks = () => {
160 129
161const { previous, next } = makePaginationLinks(); 130const { previous, next } = makePaginationLinks();
162 131
163const ignoredSites = ['github.gom', 'wikipedia.']; 132const ignoredSites = ['github.com', 'wikipedia.'];
164 133
165// Fetch detailed data about the services GitHub repo, privacy policy and website
166const githubData = github ? await fetchGitHubStats(github) : null; 134const githubData = github ? await fetchGitHubStats(github) : null;
167const privacyData = tosdrId ? await fetchTosdrPrivacy(tosdrId) : null; 135const privacyData = tosdrId ? await fetchTosdrPrivacy(tosdrId) : null;
168const iosData = iosApp ? await fetchIosInfo(iosApp) : null; 136const iosData = iosApp ? await fetchIosInfo(iosApp) : null;
169const androidData = androidApp ? await fetchAndroidInfo(androidApp) : null; 137const androidData = androidApp ? await fetchAndroidInfo(androidApp) : null;
170const discordData = discordInvite 138const discordData = discordInvite ? await fetchDiscordInfo(discordInvite) : null;
171 ? await fetchDiscordInfo(discordInvite)
172 : null;
173const redditData = subreddit ? await fetchRedditInfo(subreddit) : null; 139const redditData = subreddit ? await fetchRedditInfo(subreddit) : null;
174const dockerData = await fetchDockerData(name); 140const dockerData = await fetchDockerData(name);
175const websiteData = 141const websiteData =
176 url && !ignoredSites.some((ignoredSite) => url.includes(ignoredSite)) 142 url && !ignoredSites.some((s) => url.includes(s))
177 ? await fetchWebsiteInfo(url) 143 ? await fetchWebsiteInfo(url)
178 : null; 144 : null;
179 145
180// Filter changelog entries relevant to this service
181const serviceHistory = await fetchChangelog().then(({ entries }) => { 146const serviceHistory = await fetchChangelog().then(({ entries }) => {
182 const isMatch = (c: { name: string; category: string; section: string }) => 147 const isMatch = (c: { name: string; category: string; section: string }) =>
183 c.name === name && 148 c.name === name &&
@@ -209,18 +174,21 @@ const serviceHistory = await fetchChangelog().then(({ entries }) => {
209 174
210const findPrivacyPolicyLink = () => { 175const findPrivacyPolicyLink = () => {
211 if (!privacyData) return null; 176 if (!privacyData) return null;
212 // const docs = privacyData?.parameters?.documents; 177 const docs = privacyData?.parameters?.documents;
213 // if (docs) { 178 if (docs) {
214 // const privacyPolicy = (docs || []).find((doc) => doc.name.toLowerCase().includes('privacy policy')); 179 const pp = (docs || []).find((doc) => doc.name.toLowerCase().includes('privacy policy'));
215 // if (privacyPolicy) return privacyPolicy.url; 180 if (pp) return pp.url;
216 // } 181 }
217 return `https://tosdr.org/en/service/${tosdrId}`; 182 return `https://tosdr.org/en/service/${tosdrId}`;
218}; 183};
219 184
220const privacyPolicyLink = findPrivacyPolicyLink(); 185const privacyPolicyLink = findPrivacyPolicyLink();
221 186
187const catSlug = slugify(categoryName);
188const secSlug = slugify(parentSection.name);
189
222const getApiEndpoint = () => { 190const 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)}`;
224}; 192};
225--- 193---
226 194
@@ -231,187 +199,12 @@ const getApiEndpoint = () => {
231 breadcrumbs={makeBreadcrumbs()} 199 breadcrumbs={makeBreadcrumbs()}
232> 200>
233 <main> 201 <main>
234 <section> 202 <ListingHero
235 <div class="service-head"> 203 service={Astro.props}
236 <h2>{name}</h2> 204 parentSection={parentSection}
237 <span class="url-wrap"> 205 categoryName={categoryName}
238 <a class="service-url" href={url}>{formatLink(url)}</a> 206 privacyPolicyLink={privacyPolicyLink}
239 <span class="follow-with">{followWith}</span> 207 />
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>
415 { 208 {
416 privacyData && privacyData.parameters.points.length > 0 && ( 209 privacyData && privacyData.parameters.points.length > 0 && (
417 <section> 210 <section>
@@ -485,7 +278,7 @@ const getApiEndpoint = () => {
485 services={filterServices()} 278 services={filterServices()}
486 subHeading={true} 279 subHeading={true}
487 noGitHubMetrics={true} 280 noGitHubMetrics={true}
488 buttonLink={`/${slugify(categoryName)}/${slugify(parentSection.name)}`} 281 buttonLink={`/${catSlug}/${secSlug}`}
489 categoryName={categoryName} 282 categoryName={categoryName}
490 sectionName={parentSection.name} 283 sectionName={parentSection.name}
491 /> 284 />
@@ -511,16 +304,6 @@ const getApiEndpoint = () => {
511 href="/api">Swagger Docs</a 304 href="/api">Swagger Docs</a
512 > or read the <a href="/about#api">API Usage Guide</a>. 305 > or read the <a href="/about#api">API Usage Guide</a>.
513 </p> 306 </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>
524 </section> 307 </section>
525 308
526 <section> 309 <section>
@@ -531,7 +314,7 @@ const getApiEndpoint = () => {
531 Share {name} and Awesome Privacy with your network! 314 Share {name} and Awesome Privacy with your network!
532 <div> 315 <div>
533 <SocialShare 316 <SocialShare
534 url={`${site}/${slugify(categoryName)}/${slugify(parentSection.name)}/${slugify(name)} `} 317 url={`${site}/${catSlug}/${secSlug}/${slugify(name)} `}
535 title={`Checkout ${name}! \n`} 318 title={`Checkout ${name}! \n`}
536 description={`Compare #${name} and other privacy-respecting ${parentSection.name} at ` + 319 description={`Compare #${name} and other privacy-respecting ${parentSection.name} at ` +
537 `Awesome-Privacy.xyz, the free and open source list of private software alternatives. ` + 320 `Awesome-Privacy.xyz, the free and open source list of private software alternatives. ` +
@@ -544,9 +327,7 @@ const getApiEndpoint = () => {
544 <div class="pagination-navigation"> 327 <div class="pagination-navigation">
545 { 328 {
546 previous ? ( 329 previous ? (
547 <Button 330 <Button url={`/${catSlug}/${secSlug}/${slugify(previous)}`}>
548 url={`/${slugify(categoryName)}/${slugify(parentSection.name)}/${slugify(previous)}`}
549 >
550 <span>← Previous</span> 331 <span>← Previous</span>
551 <p>{previous}</p> 332 <p>{previous}</p>
552 </Button> 333 </Button>
@@ -554,17 +335,12 @@ const getApiEndpoint = () => {
554 <p class="nothing" /> 335 <p class="nothing" />
555 ) 336 )
556 } 337 }
557 <a 338 <a href={`/${catSlug}/${secSlug}`} class="go-to-category">
558 href={`/${slugify(categoryName)}/${slugify(parentSection.name)}`}
559 class="go-to-category"
560 >
561 View {parentSection.name} ({(parentSection.services || []).length}) 339 View {parentSection.name} ({(parentSection.services || []).length})
562 </a> 340 </a>
563 { 341 {
564 next && ( 342 next && (
565 <Button 343 <Button url={`/${catSlug}/${secSlug}/${slugify(next)}`}>
566 url={`/${slugify(categoryName)}/${slugify(parentSection.name)}/${slugify(next)}`}
567 >
568 <span>Next →</span> 344 <span>Next →</span>
569 <p>{next}</p> 345 <p>{next}</p>
570 </Button> 346 </Button>
@@ -598,9 +374,7 @@ const getApiEndpoint = () => {
598 background: var(--accent-fg); 374 background: var(--accent-fg);
599 } 375 }
600 376
601 p { 377 p { margin: var(--space-xs) 0 var(--space-sm) 0; }
602 margin: var(--space-xs) 0 var(--space-sm) 0;
603 }
604 378
605 h3 { 379 h3 {
606 font-size: var(--text-3xl); 380 font-size: var(--text-3xl);
@@ -615,91 +389,21 @@ const getApiEndpoint = () => {
615 } 389 }
616 } 390 }
617 391
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
649 h4 { 392 h4 {
650 font-size: var(--text-lg); 393 font-size: var(--text-lg);
651 margin-bottom: 0; 394 margin-bottom: 0;
652 } 395 }
653 396
654 .intro { 397 pre a {
655 font-size: var(--text-md); 398 text-decoration: none;
656 font-style: italic; 399 color: var(--foreground);
657 opacity: 0.9; 400 code {
658 display: flex; 401 background: var(--code-bg);
659 gap: var(--space-sm); 402 padding: 0.2rem 0.4rem;
660 @media (max-width: 768px) { 403 border-radius: var(--curve-sm);
661 flex-direction: column; 404 font-family: var(--font-code);
662 } 405 font-size: var(--text-sm);
663 .service-icon { 406 @media (max-width: 768px) { white-space: break-spaces; }
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 }
703 } 407 }
704 } 408 }
705 409
@@ -709,51 +413,4 @@ const getApiEndpoint = () => {
709 flex-wrap: wrap; 413 flex-wrap: wrap;
710 justify-content: space-between; 414 justify-content: space-between;
711 } 415 }
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 }
759</style> 416</style>
web/src/pages/about.astro +3 −4
@@ -208,13 +208,12 @@ const licenseContent = async () => {
208 <h2 id="author">Author</h2> 208 <h2 id="author">Author</h2>
209 <article class="author"> 209 <article class="author">
210 <p> 210 <p>
211 This project was originally started by me, <a 211 This project was originally started by me,
212 href="https://aliciasykes.com">Alicia Sykes</a 212 <a href="https://aliciasykes.com">Alicia Sykes</a>
213 >
214 (with a lot of help from the community) 213 (with a lot of help from the community)
215 </p> 214 </p>
216 <br /> 215 <br />
217 <p class="about"> 216 <p>
218 I build apps which aim to help people escape big tech, secure their 217 I build apps which aim to help people escape big tech, secure their
219 data, and protect their privacy. 218 data, and protect their privacy.
220 </p> 219 </p>
web/src/pages/all.astro +271 −235
@@ -1,6 +1,4 @@
1--- 1---
2
3
4import Layout from '@layouts/Layout.astro'; 2import Layout from '@layouts/Layout.astro';
5import ServiceCard from '@components/things/ServiceCard.astro'; 3import ServiceCard from '@components/things/ServiceCard.astro';
6import type { AwesomePrivacy, Section, Service } from '../types/Service'; 4import type { AwesomePrivacy, Section, Service } from '../types/Service';
@@ -8,259 +6,297 @@ import { fetchData, slugify } from '@utils/fetch-data';
8import FontAwesome from '@components/form/FontAwesome.svelte'; 6import FontAwesome from '@components/form/FontAwesome.svelte';
9 7
10const categories = (await fetchData() as AwesomePrivacy)?.categories || []; 8const categories = (await fetchData() as AwesomePrivacy)?.categories || [];
11
12--- 9---
13 10
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>
15 45
16const toggleSidebar = () => { 46 <main>
17 const intro = document.querySelector('#welcome-to-all'); 47 {categories.map((category) => (
18 const sidebar = document.querySelector('.sidebar'); 48 <Fragment>
19 sidebar && sidebar.classList.toggle('hidden'); 49 <h2 id={slugify(category.name)}>
20 intro && intro.classList.toggle('hidden'); 50 <FontAwesome iconName={slugify(category.name)} />
21 const button = document.querySelector('#toggle-sidebar'); 51 <a href={`/${slugify(category.name)}`}>{category.name}</a>
22 if (button) { 52 </h2>
23 button.textContent = (button.textContent === "Show Contents" ? "Hide Contents" : "Show Contents"); 53 <article>
24 } 54 {category.sections.map((section: Section) => (
25}; 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>
26 88
27 const tgt = document.querySelector("#toggle-sidebar"); 89<script>
28 tgt && tgt.addEventListener("click", () => { 90 document.addEventListener('astro:page-load', () => {
29 toggleSidebar(); 91 const links = document.querySelectorAll<HTMLAnchorElement>('.toc a');
30 }); 92 const headings = document.querySelectorAll<HTMLElement>('h2[id], h3[id]');
31</script> 93 const toggle = document.querySelector('.toc-toggle');
94 const toc = document.querySelector('.toc');
32 95
33<Layout title="Awesome Privacy"> 96 // Scroll-spy: highlight active TOC link
34 <main> 97 const linkMap = new Map<string, HTMLAnchorElement>();
35 <div id="content"> 98 links.forEach((link) => {
36 <button id="toggle-sidebar">Show Contents</button> 99 const id = link.getAttribute('href')?.slice(1);
37 <div id="welcome-to-all" class="hidden"> 100 if (id) linkMap.set(id, link);
38 <p> 101 });
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>
111 102
112<style lang="scss"> 103 let active: HTMLAnchorElement | null = null;
113 104
114main { 105 const observer = new IntersectionObserver((entries) => {
115 margin: 0 auto var(--space-lg) auto; 106 entries.forEach((entry) => {
116 padding: var(--space-md); 107 if (entry.isIntersecting) {
117 width: var(--width-container); 108 active?.classList.remove('active');
118 max-width: var(--width-container-max); 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' });
119 118
120 display: flex; 119 headings.forEach((h) => observer.observe(h));
121 justify-content: space-between;
122}
123 120
124.hidden { 121 // Mobile TOC toggle
125 display: none; 122 const onToggle = () => {
126} 123 const isOpen = toc?.classList.toggle('open');
124 toggle?.setAttribute('aria-expanded', String(!!isOpen));
125 };
126 toggle?.addEventListener('click', onToggle);
127 127
128#content { 128 // Close mobile TOC on link click
129 margin: 0 auto; 129 const onLinkClick = () => {
130} 130 toc?.classList.remove('open');
131 toggle?.setAttribute('aria-expanded', 'false');
132 };
133 links.forEach((link) => link.addEventListener('click', onLinkClick));
131 134
132#welcome-to-all { 135 // Cleanup on page transition
133 text-align: justify; 136 document.addEventListener('astro:before-swap', () => {
134 width: 600px; 137 observer.disconnect();
135 margin: 0 auto; 138 toggle?.removeEventListener('click', onToggle);
136 background: var(--background-form); 139 links.forEach((link) => link.removeEventListener('click', onLinkClick));
137 padding: var(--space-md); 140 }, { once: true });
138 border-radius: var(--curve-sm); 141 });
139} 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 }
140 152
141#toggle-sidebar { 153 .sidebar {
142 background: none; 154 position: sticky;
143 outline: none; 155 top: var(--space-md);
144 border: none; 156 align-self: flex-start;
145 cursor: pointer; 157 width: 260px;
146 color: var(--accent); 158 flex-shrink: 0;
147 &:hover { 159 max-height: calc(100vh - var(--space-lg));
148 text-decoration: underline; 160 overflow-y: auto;
149 }
150}
151 161
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 }
152 176
153.sidebar { 177 .toc {
154 border-radius: var(--curve-md); 178 details {
155 .sidebar-title { 179 summary {
156 font-size: var(--text-xl); 180 display: flex;
157 background: var(--accent-3); 181 align-items: center;
158 color: var(--accent-fg); 182 font-weight: bold;
159 border: var(--border-heavy); 183 font-family: var(--font-subtitle);
160 box-shadow: var(--shadow-lg); 184 font-size: var(--text-base);
161 border-radius: var(--curve-sm); 185 padding: var(--space-xs) 0;
162 margin: var(--space-md) auto; 186 cursor: pointer;
163 text-align: center; 187 list-style: none;
164 } 188 color: var(--foreground);
165 ul { 189 opacity: var(--opacity-subtle);
166 list-style: none; 190 &::marker, &::-webkit-details-marker { display: none; }
167 padding-left: 1.6rem; 191 &::before {
168 column-width: 16rem; 192 content: '▸';
169 a { 193 margin-right: var(--space-xs);
170 text-decoration: none; 194 transition: var(--transition-fast);
171 color: var(--foreground); 195 }
172 transition: var(--transition-fast); 196 }
173 &:hover { 197 &[open] > summary::before { transform: rotate(90deg); }
174 color: var(--accent); 198 }
175 opacity: 1; 199 ul {
176 } 200 list-style: none;
177 } 201 padding-left: var(--space-md);
178 li ul { 202 margin: 0 0 var(--space-xs) 0;
179 list-style: circle; 203 }
180 } 204 a {
181 .top-level { 205 color: var(--foreground);
182 font-weight: bold; 206 text-decoration: none;
183 margin-top: var(--space-sm); 207 font-size: var(--text-sm);
184 &:hover a { 208 opacity: var(--opacity-soft);
185 color: var(--accent-3); 209 transition: var(--transition-fast);
186 } 210 display: block;
187 } 211 padding: var(--space-xs) 0;
188 } 212 &:hover { color: var(--accent); opacity: 1; }
189} 213 &.active { color: var(--accent); opacity: 1; font-weight: bold; }
214 }
215 }
216 }
190 217
191.section { 218 main {
192 display: grid; 219 flex: 1;
193 grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); 220 min-width: 0;
194 gap: var(--space-md);
195 width: 100%;
196 margin: 0 auto;
197}
198 221
199.card { 222 h2, h3 { scroll-margin-top: var(--space-lg); }
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}
206 223
207h2 { 224 h2 {
208 margin: var(--space-lg) auto 0 auto; 225 margin: var(--space-lg) auto 0 auto;
209 font-size: var(--text-4xl); 226 font-size: var(--text-4xl);
210 text-align: center; 227 text-align: center;
211 opacity: var(--opacity-muted); 228 opacity: var(--opacity-muted);
212 display: flex; 229 display: flex;
213 justify-content: center; 230 justify-content: center;
214 align-items: center; 231 align-items: center;
215 gap: var(--space-md); 232 gap: var(--space-md);
216 a { 233 a { color: var(--accent-3); text-decoration: none; }
217 color: var(--accent-3); 234 :global(svg) {
218 text-decoration: none; 235 width: var(--text-4xl);
219 } 236 height: var(--text-4xl);
220 :global(svg) { 237 color: var(--accent-3);
221 width: var(--text-4xl); 238 }
222 height: var(--text-4xl); 239 }
223 color: var(--accent-3);
224 }
225}
226 240
227h3 { 241 h3 {
228 font-size: var(--text-3xl); 242 font-size: var(--text-3xl);
229 margin: var(--space-lg) 0 var(--space-md) 0; 243 margin: var(--space-lg) 0 var(--space-md) 0;
230 box-shadow: var(--shadow-lg); 244 box-shadow: var(--shadow-lg);
231 background: var(--accent); 245 background: var(--accent);
232 color: var(--accent-fg); 246 color: var(--accent-fg);
233 width: fit-content; 247 width: fit-content;
234 padding: var(--space-xs) var(--space-sm); 248 padding: var(--space-xs) var(--space-sm);
235 a { 249 a {
236 color: var(--accent-fg); 250 color: var(--accent-fg);
237 font-family: var(--font-subtitle); 251 font-family: var(--font-subtitle);
238 text-decoration: none; 252 text-decoration: none;
239 } 253 }
240 } 254 }
241 255
242 .nothing-yet { 256 .grid {
243 width: 100%; 257 display: grid;
244 margin: 0 auto; 258 grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
245 background: var(--accent-fg); 259 gap: var(--space-md);
246 border: var(--border-heavy); 260 }
247 box-shadow: var(--shadow-lg);
248 border-radius: var(--curve-sm);
249 display: flex;
250 261
251 p { 262 .nothing-yet {
252 font-size: var(--text-md); 263 background: var(--accent-fg);
253 opacity: var(--opacity-subtle); 264 border: var(--border-heavy);
254 font-style: italic; 265 box-shadow: var(--shadow-lg);
255 text-align: center; 266 border-radius: var(--curve-sm);
256 margin: var(--space-2xl) auto; 267 p {
257 } 268 font-size: var(--text-md);
258 .quick-submit { 269 opacity: var(--opacity-subtle);
259 margin-top: var(--space-md); 270 font-style: italic;
260 font-size: var(--text-sm); 271 text-align: center;
261 opacity: var(--opacity-subtle); 272 margin: var(--space-2xl) auto;
262 } 273 a { color: var(--accent); }
263 } 274 }
275 }
276 }
264 277
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);
265 289
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 }
266</style> 302</style>
web/src/pages/changelog.astro +1
@@ -15,6 +15,7 @@ const changelog = await fetchChangelog();
15 All data in awesome-privacy is managed via Git, 15 All data in awesome-privacy is managed via Git,
16 so that we have a complete and transparent changelog 16 so that we have a complete and transparent changelog
17 of exactly what was added when and by whom. 17 of exactly what was added when and by whom.
18 The corresponding PR for each change contains full details and justifications.
18 </p> 19 </p>
19 {changelog.entries.length > 0 ? ( 20 {changelog.entries.length > 0 ? (
20 <ChangelogTimeline client:load entries={changelog.entries} rejections={changelog.rejections || []} /> 21 <ChangelogTimeline client:load entries={changelog.entries} rejections={changelog.rejections || []} />
web/src/pages/index.astro +59 −7
@@ -19,14 +19,17 @@ const description =
19 'Awesome Privacy is a directory of alternative privacy-respecting software and services.'; 19 'Awesome Privacy is a directory of alternative privacy-respecting software and services.';
20--- 20---
21 21
22<Layout title="Home | Awesome Privacy" hideNav={true} description={description}> 22<Layout title="Home | Awesome Privacy" description={description}>
23 <Hero /> 23 <Hero />
24 <main> 24 <main>
25 <h2> 25 <div class="action-card">
26 <a href="/search">Search</a> 26 <Search client:visible data={categories} />
27 </h2> 27 <span class="action-divider">or</span>
28 <Search client:visible data={categories} /> 28 <a href="/all" class="browse-cta">
29 <h2 class="browse-title"><a href="/browse">Browse</a></h2> 29 Browse All Listings &rarr;
30 </a>
31 </div>
32 <h2 class="browse-title"><a href="/all">Categories</a></h2>
30 <ul class="categories"> 33 <ul class="categories">
31 { 34 {
32 categories.map((category) => ( 35 categories.map((category) => (
@@ -101,6 +104,54 @@ const description =
101 } 104 }
102 } 105 }
103 } 106 }
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
104 h2 { 155 h2 {
105 font-size: var(--text-4xl); 156 font-size: var(--text-4xl);
106 color: var(--accent-3); 157 color: var(--accent-3);
@@ -120,7 +171,8 @@ const description =
120 border-radius: var(--curve-sm); 171 border-radius: var(--curve-sm);
121 box-shadow: var(--shadow-md); 172 box-shadow: var(--shadow-md);
122 padding: var(--space-md); 173 padding: var(--space-md);
123 width: 85%; 174 width: 100%;
175 box-sizing: border-box;
124 margin: 0 auto; 176 margin: 0 auto;
125 } 177 }
126 178
web/src/pages/sitemap.astro +3
@@ -35,6 +35,9 @@ const categories = ((await fetchData()) as AwesomePrivacy)?.categories || [];
35 <li> 35 <li>
36 <a href="/all">View All</a> 36 <a href="/all">View All</a>
37 </li> 37 </li>
38 <li>
39 <a href="/changelog">Changelog</a>
40 </li>
38 <li> 41 <li>
39 <a href="/inventory">My Inventory</a> 42 <a href="/inventory">My Inventory</a>
40 </li> 43 </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
4/* Rubik Font Faces */ 1/* Rubik Font Faces */
5@font-face { 2@font-face {
6 font-family: 'Rubik'; 3 font-family: 'Rubik';
7 font-style: normal; 4 font-style: normal;
8 font-weight: 400; 5 font-weight: 400;
6 font-display: swap;
9 src: 7 src:
10 local('Rubik'), 8 local('Rubik'),
11 url('/fonts/Rubik/Rubik-Regular.ttf') format('truetype'); 9 url('/fonts/Rubik/Rubik-Regular.ttf') format('truetype');
@@ -14,6 +12,7 @@
14 font-family: 'Rubik'; 12 font-family: 'Rubik';
15 font-style: italic; 13 font-style: italic;
16 font-weight: 400; 14 font-weight: 400;
15 font-display: swap;
17 src: 16 src:
18 local('Rubik Italic'), 17 local('Rubik Italic'),
19 url('/fonts/Rubik/Rubik-Italic.ttf') format('truetype'); 18 url('/fonts/Rubik/Rubik-Italic.ttf') format('truetype');
@@ -22,6 +21,7 @@
22 font-family: 'Rubik'; 21 font-family: 'Rubik';
23 font-style: normal; 22 font-style: normal;
24 font-weight: 500; 23 font-weight: 500;
24 font-display: swap;
25 src: 25 src:
26 local('Rubik Medium'), 26 local('Rubik Medium'),
27 url('/fonts/Rubik/Rubik-Medium.ttf') format('truetype'); 27 url('/fonts/Rubik/Rubik-Medium.ttf') format('truetype');
@@ -30,6 +30,7 @@
30 font-family: 'Rubik'; 30 font-family: 'Rubik';
31 font-style: italic; 31 font-style: italic;
32 font-weight: 500; 32 font-weight: 500;
33 font-display: swap;
33 src: 34 src:
34 local('Rubik Medium Italic'), 35 local('Rubik Medium Italic'),
35 url('/fonts/Rubik/Rubik-MediumItalic.ttf') format('truetype'); 36 url('/fonts/Rubik/Rubik-MediumItalic.ttf') format('truetype');
@@ -38,6 +39,7 @@
38 font-family: 'Rubik'; 39 font-family: 'Rubik';
39 font-style: normal; 40 font-style: normal;
40 font-weight: 600; 41 font-weight: 600;
42 font-display: swap;
41 src: 43 src:
42 local('Rubik SemiBold'), 44 local('Rubik SemiBold'),
43 url('/fonts/Rubik/Rubik-SemiBold.ttf') format('truetype'); 45 url('/fonts/Rubik/Rubik-SemiBold.ttf') format('truetype');
@@ -46,19 +48,21 @@
46 font-family: 'Rubik'; 48 font-family: 'Rubik';
47 font-style: italic; 49 font-style: italic;
48 font-weight: 600; 50 font-weight: 600;
51 font-display: swap;
49 src: 52 src:
50 local('Rubik SemiBold Italic'), 53 local('Rubik SemiBold Italic'),
51 url('/fonts/Rubik/Rubik-SemiBoldItalic.ttf') format('truetype'); 54 url('/fonts/Rubik/Rubik-Italic-VariableFont_wght.ttf') format('truetype');
52} 55}
53 56
54/* Libre Franklin Font Faces */ 57/* Libre Franklin Font Faces */
55@font-face { 58@font-face {
56 font-family: 'Libre Franklin'; 59 font-family: 'Libre Franklin';
57 font-style: normal; 60 font-style: normal;
58 font-weight: 500; 61 font-weight: 800;
62 font-display: swap;
59 src: 63 src:
60 local('Libre Franklin Bold'), 64 local('Libre Franklin ExtraBold'),
61 url('/fonts/Libre_Franklin/LibreFranklin-Bold.ttf') format('truetype'); 65 url('/fonts/Libre_Franklin/LibreFranklin-VariableFont_wght.ttf') format('truetype');
62} 66}
63 67
64/* Lekton Font Faces */ 68/* Lekton Font Faces */
@@ -66,6 +70,7 @@
66 font-family: 'Lekton'; 70 font-family: 'Lekton';
67 font-style: normal; 71 font-style: normal;
68 font-weight: 700; 72 font-weight: 700;
73 font-display: swap;
69 src: 74 src:
70 local('Lekton Bold'), 75 local('Lekton Bold'),
71 url('/fonts/Lekton/Lekton-Bold.ttf') format('truetype'); 76 url('/fonts/Lekton/Lekton-Bold.ttf') format('truetype');
web/src/utils/fetch-changelog.ts +2 −2
@@ -1,8 +1,8 @@
1import { error } from './logger'; 1import { error } from './logger';
2 2
3const changelogUrl = 3const changelogUrl =
4 // 'https://raw.githubusercontent.com/Lissy93/awesome-privacy/main/.github/changelog.json'; 4 'https://raw.githubusercontent.com/Lissy93/awesome-privacy/main/.github/changelog.json';
5 'https://gist.githubusercontent.com/Lissy93/ddae176f3f21a0d3c0251f5f6cbd3b09/raw/d0f897eae31bdccce58744d0dc8b444a45beba3b/changelog.json'; 5 // 'https://gist.githubusercontent.com/Lissy93/ddae176f3f21a0d3c0251f5f6cbd3b09/raw/7c6ec883ae70cb8b7a88f3c0babd67f719f59f65/changelog.json';
6 6
7export interface ChangelogPr { 7export interface ChangelogPr {
8 number: number; 8 number: number;