Commit 5a0550066c

5a0550066c0bc674865d15928701bd378e9c6363

parent: c724a8393c

Unsigned

Alicia Sykes <alicia@omg.lol> · 2024-03-09 15:28 UTC

Improved user experience, and updates SEO tags

Layout: unified · split

web/src/components/form/FontAwesome.svelte +15
@@ -55,6 +55,21 @@
55 social: solidIcons.faShareNodes, 55 social: solidIcons.faShareNodes,
56 media: solidIcons.faPhotoFilmMusic, 56 media: solidIcons.faPhotoFilmMusic,
57 creativity: solidIcons.faPaintbrushPencil, 57 creativity: solidIcons.faPaintbrushPencil,
58
59 // Social Media Share Icons
60 mastodon: brands.faMastodon,
61 twitter: brands.faXTwitter,
62 reddit: brands.faReddit,
63 linkedin: brands.faLinkedin,
64 pinterest: brands.faPinterest,
65 telegram: brands.faTelegram,
66 whatsapp: brands.faWhatsapp,
67 signal: brands.faSignalMessenger,
68 pocket: brands.faGetPocket,
69
70 email: solidIcons.faEnvelope,
71 copy: solidIcons.faCopy,
72 print: solidIcons.faPrint,
58 }; 73 };
59 74
60 export let iconName: string; 75 export let iconName: string;
web/src/components/things/DataActions.svelte +1 −1
@@ -54,7 +54,7 @@
54 title="awesome-privacy.yml" 54 title="awesome-privacy.yml"
55 src={getIframeSrc()}></iframe> 55 src={getIframeSrc()}></iframe>
56 56
57<h4>Edit/Delete Request</h4> 57<h4>Modify Data</h4>
58<div class="button-wrap"> 58<div class="button-wrap">
59 <a class="button-link" target="_blank" 59 <a class="button-link" target="_blank"
60 href={makeRemovalRequest(categoryName, sectionName, serviceName, yamlContent)}> 60 href={makeRemovalRequest(categoryName, sectionName, serviceName, yamlContent)}>
web/src/pages/[...listing].astro +38 −12
@@ -7,6 +7,7 @@ import GitHubDetailedInfo from '@components/things/GitHubDetailedInfo.astro';
7import PrivacyPolicyDetails from '@components/things/PrivacyPolicyDetails.astro'; 7import PrivacyPolicyDetails from '@components/things/PrivacyPolicyDetails.astro';
8import WebsiteDetailedInfo from '@components/things/WebsiteDetailedInfo.astro'; 8import WebsiteDetailedInfo from '@components/things/WebsiteDetailedInfo.astro';
9import DockerDetailedInfo from '@components/things/DockerDetailedInfo.astro'; 9import DockerDetailedInfo from '@components/things/DockerDetailedInfo.astro';
10import SocialShare from '@components/form/Social.astro';
10import DataActions from '@components/things/DataActions.svelte'; 11import DataActions from '@components/things/DataActions.svelte';
11import type { AwesomePrivacy, Section, Service } from '../types/Service'; 12import type { AwesomePrivacy, Section, Service } from '../types/Service';
12import { fetchData, slugify } from '@utils/fetch-data'; 13import { fetchData, slugify } from '@utils/fetch-data';
@@ -15,6 +16,7 @@ import { fetchTosdrPrivacy } from '@utils/fetch-privacy-policy';
15import { fetchWebsiteInfo } from '@utils/fetch-website-info'; 16import { fetchWebsiteInfo } from '@utils/fetch-website-info';
16import { fetchDockerData } from '@utils/fetch-docker-instructions'; 17import { fetchDockerData } from '@utils/fetch-docker-instructions';
17import { parseMarkdown, formatLink } from '@utils/parse-markdown'; 18import { parseMarkdown, formatLink } from '@utils/parse-markdown';
19import { site } from '@utils/config';
18import FontAwesome from '@components/form/FontAwesome.svelte'; 20import FontAwesome from '@components/form/FontAwesome.svelte';
19import Button from '@components/form/Button.astro'; 21import Button from '@components/form/Button.astro';
20 22
@@ -45,18 +47,20 @@ const {
45 */ 47 */
46const makeKeyWordTag = () => { 48const makeKeyWordTag = () => {
47 const keywords: string[] = []; 49 const keywords: string[] = [];
48 keywords.push(`free and open source ${parentSection.name} software`); 50 keywords.push(`open source ${parentSection.name}`);
49 keywords.push(`private ${parentSection.name} comparison`); 51 keywords.push(`${parentSection.name} comparison`);
50 (parentSection.alternativeTo || []).forEach((alt: string) => { 52 (parentSection.alternativeTo || []).forEach((alt: string) => {
51 keywords.push(`privacy-respecting ${alt} alternative`); 53 keywords.push(`${alt} alternative`);
52 keywords.push(`free open source ${alt} alternative`);
53 }); 54 });
54 (parentSection.services || []).forEach((serv: Service) => { 55 (parentSection.services || []).forEach((serv: Service) => {
55 keywords.push(serv.name); 56 keywords.push(`${serv.name} vs`);
56 }); 57 });
58 keywords.push('private');
57 keywords.push('ad free'); 59 keywords.push('ad free');
60 keywords.push('encrypted');
58 keywords.push('open source software'); 61 keywords.push('open source software');
59 keywords.push('privacy respecting apps'); 62 keywords.push('privacy respecting apps');
63 keywords.push('free tools');
60 return keywords.join(', '); 64 return keywords.join(', ');
61}; 65};
62 66
@@ -71,10 +75,16 @@ const makePageTitle = () => {
71 * Make a string page intro, for the description tag 75 * Make a string page intro, for the description tag
72 */ 76 */
73const makeDescriptionTag = () => { 77const makeDescriptionTag = () => {
74 return `Compare ${name} and other ${parentSection.name} at Awesome Privacy\n` 78 let description = `Analysis of ${name}, and other privacy-respecting ${parentSection.name} `;
75 + description 79 if (parentSection.services) {
76 + '\nAll this, and much more at Awesome Privacy, ' 80 const serviceList = parentSection.services.map((serv: Service) => serv.name);
77 + 'the free and open source list of private software alternatives.'; 81 description += `Compare ${serviceList.join(' vs ')} more apps. `
82 }
83 if (parentSection.alternativeTo && parentSection.alternativeTo.length > 0) {
84 description += `The best secure encrypted alternatives to ${parentSection.alternativeTo.join(', ')} in 2024. `;
85 }
86 description += 'All this, and many more free and awesome tools and software.'
87 return description;
78}; 88};
79 89
80// Return a list of Services, except for the currtent one 90// Return a list of Services, except for the currtent one
@@ -127,8 +137,6 @@ const privacyData = tosdrId ? await fetchTosdrPrivacy(tosdrId) : null;
127const dockerData = await fetchDockerData(name); 137const dockerData = await fetchDockerData(name);
128const websiteData = (url && !ignoredSites.some(ignoredSite => url.includes(ignoredSite))) ? await fetchWebsiteInfo(url) : null; 138const websiteData = (url && !ignoredSites.some(ignoredSite => url.includes(ignoredSite))) ? await fetchWebsiteInfo(url) : null;
129 139
130console.log(dockerData);
131
132const getApiEndpoint = () => { 140const getApiEndpoint = () => {
133 return `https://api.awesome-privacy.xyz/${slugify(categoryName)}/${slugify(parentSection.name)}/${slugify(name)}`; 141 return `https://api.awesome-privacy.xyz/${slugify(categoryName)}/${slugify(parentSection.name)}/${slugify(name)}`;
134} 142}
@@ -276,7 +284,7 @@ const getApiEndpoint = () => {
276 <pre><a href={getApiEndpoint()}><code>{getApiEndpoint()}</code></a></pre> 284 <pre><a href={getApiEndpoint()}><code>{getApiEndpoint()}</code></a></pre>
277 <p> 285 <p>
278 The REST API is free, no-auth and CORS-enabled. 286 The REST API is free, no-auth and CORS-enabled.
279 To learn more, view the <a href="/api/docs">Swagger Docs</a> or read the <a href="/about#our-api">API Usage Guide</a>. 287 To learn more, view the <a href="/api">Swagger Docs</a> or read the <a href="/about#api">API Usage Guide</a>.
280 </p> 288 </p>
281 289
282 <h4>About the Data</h4> 290 <h4>About the Data</h4>
@@ -289,6 +297,24 @@ const getApiEndpoint = () => {
289 </p> 297 </p>
290 </section> 298 </section>
291 299
300 <section>
301 <h3>Share {name}</h3>
302 <p>
303 Help your friends compare {parentSection.name}, and pick privacy-respecting software and services.<br />
304 Share {name} and Awesome Privacy with your network!
305 <div>
306 <SocialShare
307 url={`${site}/${slugify(categoryName)}/${slugify(parentSection.name)}/${slugify(name)} `}
308 title={`Checkout ${name}! \n`}
309 description={
310 `Compare #${name} and other privacy-respecting ${parentSection.name} at `
311 + `Awesome-Privacy.xyz, the free and open source list of private software alternatives. `
312 + `#privacy #opensource #awesomeprivacy by @Lissy_Sykes`}
313 />
314 </div>
315 </p>
316 </section>
317
292 <div class="pagination-navigation"> 318 <div class="pagination-navigation">
293 { previous ? ( 319 { previous ? (
294 <Button url={`/${slugify(categoryName)}/${slugify(parentSection.name)}/${slugify(previous)}`}> 320 <Button url={`/${slugify(categoryName)}/${slugify(parentSection.name)}/${slugify(previous)}`}>
web/src/pages/[...section].astro +34 −5
@@ -58,15 +58,17 @@ const makePageTitle = () => {
58 * Make a string page intro, for the description tag 58 * Make a string page intro, for the description tag
59 */ 59 */
60const makeDescriptionTag = () => { 60const makeDescriptionTag = () => {
61 let description = `A list of privacy respecting ${title}. `; 61 let description = `Privacy respecting ${title}. `;
62 if (services && services.length > 0) { 62 if (services && services.length > 0) {
63 const serviceList = services.map((serv: Service) => serv.name); 63 const serviceList = services.map((serv: Service) => serv.name);
64 description += `Compare ${serviceList.join(', ')} and more private apps and services. ` 64 description += `Compare ${serviceList.join(' vs ')} and more private, open source apps and services now. `
65 } else { 65 } else {
66 description += `Find private apps and services. This section is still a work in progress. `; 66 description += `Find private apps and services. This section is still a work in progress. `;
67 } 67 }
68 description += 'All this, and much more at Awesome Privacy, ' 68 if (alternativeTo && alternativeTo.length > 0) {
69 description += 'the free and open source list of private software alternatives.'; 69 description += `The best secure encrypted alternatives to ${alternativeTo.join(', ')} in 2024. `;
70 }
71 description += 'All this, and many more free and awesome tools and software.'
70 return description; 72 return description;
71}; 73};
72 74
@@ -118,9 +120,28 @@ const { previous, next } = makePaginationLinks();
118 <p set:html={parseMarkdown(intro)}></p> 120 <p set:html={parseMarkdown(intro)}></p>
119 </section> 121 </section>
120 )} 122 )}
121 123
122 <ServiceList services={services} sectionName={title} categoryName={categoryName} /> 124 <ServiceList services={services} sectionName={title} categoryName={categoryName} />
123 125
126 <details class="about-this-page">
127 <summary>Objective of this page</summary>
128 <p>
129 Find the best free, open source, E2E encrypted and private alternative to
130 {(alternativeTo || []).map((alt) => (<span>{alt}, </span>))} now.
131 </p>
132 <p>
133 Compare {(services || []).map((serv) => (<span>{serv.name} vs </span>))}
134 </p>
135 <p>
136 Discover the best {title} tools for Android, iPhone, Linux, PC and Chrome to download now.
137 And choose secure, self-hosted, peer-to-peer and independant alternatives in 2024
138 </p>
139 <p>
140 <b>Stop the invasion of privacy from big tech, improve data security stay safe.</b>
141 </p>
142 </details>
143
144
124 {notableMentions && ( 145 {notableMentions && (
125 <section class="notable-mentions"> 146 <section class="notable-mentions">
126 <h3>Notable Mentions</h3> 147 <h3>Notable Mentions</h3>
@@ -273,5 +294,13 @@ h2 {
273 } 294 }
274 } 295 }
275} 296}
297.about-this-page {
298 summary {
299 display: none;
300 }
301 font-size: 0.9rem;
302 opacity: 0.7;
303}
304
276 305
277</style> 306</style>
web/src/pages/about.astro +33 −5
@@ -3,6 +3,7 @@
3import Layout from '@layouts/Layout.astro'; 3import Layout from '@layouts/Layout.astro';
4import Main from '@components/scafold/MainCard.astro'; 4import Main from '@components/scafold/MainCard.astro';
5import Icon from '@components/form/Icon.astro'; 5import Icon from '@components/form/Icon.astro';
6import SocialShare from '@components/form/Social.astro';
6import { parseMarkdown } from '@utils/parse-markdown'; 7import { parseMarkdown } from '@utils/parse-markdown';
7 8
8const contributorsResource = async () => { 9const contributorsResource = async () => {
@@ -62,9 +63,9 @@ We also have a free, no-auth, CORS-enabled RESR API,
62which you can use to access Awesome Privacy's data programmatically, 63which you can use to access Awesome Privacy's data programmatically,
63or to build your own apps on top of it. 64or to build your own apps on top of it.
64 65
65The [Swagger Spec](#) outlines all endpoints, usage and examples. 66The [Swagger Spec](api) outlines all endpoints, usage and examples.
66 67
67The host is: \`https://api.awesome-privacy.xyz\` 68Use our public instance, at: \`https://api.awesome-privacy.xyz\` or [self-host your own](https://github.com/Lissy93/awesome-privacy/tree/main/api)
68`; 69`;
69 70
70const projectRequrements = ` 71const projectRequrements = `
@@ -160,26 +161,31 @@ export const socials = [
160 title: 'GitHub', 161 title: 'GitHub',
161 icon: 'hub', 162 icon: 'hub',
162 link: 'https://github.com/lissy93', 163 link: 'https://github.com/lissy93',
164 color: '#EA4AAA',
163 }, 165 },
164 { 166 {
165 title: 'Twitter', 167 title: 'Twitter',
166 icon: 'twitter', 168 icon: 'twitter',
167 link: 'https://x.com/lissy_sykes', 169 link: 'https://x.com/lissy_sykes',
170 color: '#1D9BF0',
168 }, 171 },
169 { 172 {
170 title: 'Mastodon', 173 title: 'Mastodon',
171 icon: 'mastodon', 174 icon: 'mastodon',
172 link: 'https://mastodon.social/@lissy93', 175 link: 'https://mastodon.social/@lissy93',
176 color: '#6364FF',
173 }, 177 },
174 { 178 {
175 title: 'Dev', 179 title: 'Dev',
176 icon: 'dev', 180 icon: 'dev',
177 link: 'https://dev.to/lissy93', 181 link: 'https://dev.to/lissy93',
182 color: '#cece04',
178 }, 183 },
179 { 184 {
180 title: 'LinkedIn', 185 title: 'LinkedIn',
181 icon: 'linkedin', 186 icon: 'linkedin',
182 link: 'https://linkedin.com/in/aliciasykes', 187 link: 'https://linkedin.com/in/aliciasykes',
188 color: '#0A66C2',
183 }, 189 },
184]; 190];
185 191
@@ -228,7 +234,7 @@ const description = 'Privacy is a fundamental human right; '
228 <br /><br /> 234 <br /><br />
229 To get started, head over to our <a href="https://github.com/lissy93/awesome-privacy">GitHub repository</a>. 235 To get started, head over to our <a href="https://github.com/lissy93/awesome-privacy">GitHub repository</a>.
230 From here, you'll be able to edit <a href="#"><code>awesome-privacy.yml</code></a> 236 From here, you'll be able to edit <a href="#"><code>awesome-privacy.yml</code></a>
231 where all data is stored, and then submit your changes as a pull request.<br /> 237 where all data is stored, and then submit your changes as a pull request.
232 <br /><br /> 238 <br /><br />
233 If you're new to open source, you can find some resources to get you started 239 If you're new to open source, you can find some resources to get you started
234 at <a href="https://git-in.to">git-in.to</a>, but feel free to reach out if you need any help 😊 240 at <a href="https://git-in.to">git-in.to</a>, but feel free to reach out if you need any help 😊
@@ -267,6 +273,22 @@ const description = 'Privacy is a fundamental human right; '
267 273
268 <hr /> 274 <hr />
269 275
276 <h2 id="support-us">Help us out</h2>
277 <p>
278 Awesome Privacy is a free, open source and community-maintained resource.<br />
279 There's a few ways you can support us:
280 <ul class="help-list">
281 <li>Visiting, forking, or starring or our <a href="https://github.com/lissy93/awesome-privacy">GitHub repository</a></li>
282 <li>Help us keep our info up-to-date, but submitting an addition, removal or ammendment</li>
283 <li>Leave feedback on services that you've used, to help others make a more informed decission</li>
284 <li>Consider <a href="https://github.com/sponsors/Lissy93">sponsoring us on GitHub</a>, if you're able 💖</li>
285 <li>Share Awesome Privacy with your network</li>
286 </ul>
287 <SocialShare />
288 </p>
289
290 <hr />
291
270 <h2 id="author">Author</h2> 292 <h2 id="author">Author</h2>
271 <article class="author"> 293 <article class="author">
272 <p> 294 <p>
@@ -287,7 +309,7 @@ const description = 'Privacy is a fundamental human right; '
287 <div class="socials"> 309 <div class="socials">
288 { 310 {
289 socials.map((social) => ( 311 socials.map((social) => (
290 <a href={social.link}> 312 <a href={social.link} style={`--color: ${social.color}`} target="_blank">
291 <Icon icon={social.icon} width={24} height={24} /> 313 <Icon icon={social.icon} width={24} height={24} />
292 </a> 314 </a>
293 )) 315 ))
@@ -437,6 +459,12 @@ h3 {
437 white-space: pre-line; 459 white-space: pre-line;
438} 460}
439 461
462.help-list {
463 padding-left: 1rem;
464 list-style: circle;
465 font-size: 1.1rem;
466}
467
440.author { 468.author {
441 p { 469 p {
442 margin: 1rem 0 0 0; 470 margin: 1rem 0 0 0;
@@ -479,7 +507,7 @@ h3 {
479 color: var(--foreground); 507 color: var(--foreground);
480 transition: color 0.2s ease-in-out; 508 transition: color 0.2s ease-in-out;
481 &:hover { 509 &:hover {
482 color: var(--accent); 510 color: var(--color);
483 } 511 }
484 } 512 }
485 } 513 }
web/src/pages/browse.astro +10 −1
@@ -19,6 +19,7 @@ const categories: Category[] = (await fetchData())?.categories;
19 <p id="press-enter-msg" class="press-enter">Press enter for deep search</p> 19 <p id="press-enter-msg" class="press-enter">Press enter for deep search</p>
20 </span> 20 </span>
21</div> 21</div>
22<p class="sitemap-link">Or, <a href="/sitemap">view all pages</a></p>
22 23
23<ul class="categories"> 24<ul class="categories">
24 {categories.map((category) => ( 25 {categories.map((category) => (
@@ -110,7 +111,7 @@ if (typeof window !== 'undefined') {
110<style lang="scss"> 111<style lang="scss">
111 112
112.head-wrap { 113.head-wrap {
113 margin: 1rem auto; 114 margin: 1rem auto 0 auto;
114 width: 85vw; 115 width: 85vw;
115 display: flex; 116 display: flex;
116 align-items: center; 117 align-items: center;
@@ -142,6 +143,14 @@ if (typeof window !== 'undefined') {
142 } 143 }
143} 144}
144 145
146.sitemap-link {
147 margin: 0 auto;
148 width: 85vw;
149 a {
150 color: var(--accent-3);
151 }
152}
153
145.no-results { 154.no-results {
146 text-align: center; 155 text-align: center;
147 width: 85vw; 156 width: 85vw;
web/src/pages/sitemap.astro +89 −7
@@ -16,10 +16,20 @@ const categories = (await fetchData() as AwesomePrivacy)?.categories || [];
16 Below is a full listing of all pages on this site.<br> 16 Below is a full listing of all pages on this site.<br>
17 <small>As reflected in our <a href="/sitemap-index.xml">sitemap.xml</a></small> 17 <small>As reflected in our <a href="/sitemap-index.xml">sitemap.xml</a></small>
18 </p> 18 </p>
19 <span class="search-controlls">
20 <input id="searchInput" type="search" placeholder="Start typing to filter..." />
21 <p id="press-enter-msg" class="press-enter">Press enter for deep search</p>
22 </span>
19 <ul> 23 <ul>
20 <li> 24 <li>
21 <a href="/">Home</a> 25 <a href="/">Home</a>
22 </li> 26 </li>
27 <li>
28 <a href="/edit">Edit</a>
29 </li>
30 <li>
31 <a href="/api">API</a>
32 </li>
23 <li> 33 <li>
24 <a href="/search">Search</a> 34 <a href="/search">Search</a>
25 </li> 35 </li>
@@ -73,11 +83,48 @@ const categories = (await fetchData() as AwesomePrivacy)?.categories || [];
73 <a href="/map">Sitemap</a> 83 <a href="/map">Sitemap</a>
74 </li> 84 </li>
75 </ul> 85 </ul>
76
77 </main> 86 </main>
78 87
79</Layout> 88</Layout>
80 89
90<script>
91 document.addEventListener('DOMContentLoaded', () => {
92 // Select elements for events (search field, each result, and message str)
93 const filterInput = document.querySelector<HTMLInputElement>('input');
94 const pages = document.querySelectorAll<HTMLElement>('li');
95 const pressEnterMsg = document.getElementById('press-enter-msg');
96 if (!pressEnterMsg) throw new Error('pressEnterMsg element not found');
97
98 // Instant search/filter functionality
99 filterInput?.addEventListener('input', (e: Event) => {
100 const filter = (e.target as HTMLInputElement).value.toLowerCase();
101 pressEnterMsg.style.visibility = filter.length > 0 ? 'visible' : 'hidden';
102 Array.from(pages).reduce((count, page) => {
103 const match = page.textContent?.toLowerCase().includes(filter) || false;
104 page.style.display = match ? 'block' : 'none';
105 return count + (match ? 1 : 0);
106 }, 0);
107 });
108 // Handle keypress events, so Esc clears search, and Entr runs deep search
109 document.addEventListener('keydown', (event: KeyboardEvent) => {
110 if (!filterInput) return;
111 switch (event.key) {
112 case 'Enter':
113 event.preventDefault();
114 const searchTerm = encodeURIComponent(filterInput.value);
115 window.location.href = `/search/${searchTerm}`;
116 break;
117 case 'Escape':
118 filterInput.value = '';
119 filterInput.blur();
120 pressEnterMsg.style.visibility = 'hidden';
121 pages.forEach(page => page.style.display = 'block');
122 break;
123 }
124 });
125 });
126</script>
127
81<style lang="scss"> 128<style lang="scss">
82 129
83main { 130main {
@@ -89,6 +136,7 @@ main {
89 border: 2px solid var(--foreground); 136 border: 2px solid var(--foreground);
90 box-shadow: 6px 6px 0 var(--foreground); 137 box-shadow: 6px 6px 0 var(--foreground);
91 background: var(--accent-fg); 138 background: var(--accent-fg);
139 position: relative;
92 p { 140 p {
93 font-size: 1.3rem; 141 font-size: 1.3rem;
94 margin: 0; 142 margin: 0;
@@ -135,12 +183,46 @@ h2 {
135 margin: 0; 183 margin: 0;
136 gap: 1rem; 184 gap: 1rem;
137 font-size: 2rem; 185 font-size: 2rem;
138 margin: -2rem 0 2rem -4rem; 186 margin: -2rem 0 2rem -4rem;
139 box-shadow: 6px 6px 0 var(--foreground); 187 box-shadow: 6px 6px 0 var(--foreground);
140 background: var(--accent); 188 background: var(--accent);
141 color: var(--accent-fg); 189 color: var(--accent-fg);
142 width: fit-content; 190 width: fit-content;
143 padding: 0.25rem 0.5rem; 191 padding: 0.25rem 0.5rem;
192 @media (max-width: 768px) {
193 margin: -2rem auto 1rem auto;
194 }
195}
196
197.search-controlls {
198 float: right;
199 top: 1rem;
200 right: 1rem;
201 position: absolute;
202 @media (max-width: 768px) {
203 position: relative;
204 float: none;
205 top: 0;
206 right: 0;
207 }
208 .press-enter {
209 margin: 0.5rem 0 0 0;
210 opacity: 0.5;
211 visibility: hidden;
212 font-size: 1rem;
213 }
214 input {
215 padding: 0.25rem;
216 border: 2px solid var(--foreground);
217 border-radius: var(--curve-sm);
218 font-size: 1rem;
219 box-shadow: 3px 3px 0 var(--foreground);
220 color: var(--accent-3);
221 &:focus {
222 outline: none;
223 box-shadow: 4px 4px 0 var(--foreground);
224 }
225 }
144} 226}
145 227
146 228
web/src/utils/config.ts added +11
@@ -0,0 +1,11 @@
1
2function cleanUrl(inputString: string) {
3 return inputString.replace(/['";]+/g, '').trim();
4}
5
6
7export const site = cleanUrl(import.meta.env.SITE_URL || 'https://awesome-privacy.xyz');
8
9export const title = 'Awesome Privacy | Compare privacy-respecting alternatives to popular software & services';
10
11export const description = 'Your guide to escaping big tech, protecting your privacy, and reclaiming your digital life.';