Commit 5a0550066c
Unsigned
Layout: unified · split
web/src/components/form/FontAwesome.svelte +15
| @@ -55,6 +55,21 @@ | ||
| 55 | 55 | social: solidIcons.faShareNodes, |
| 56 | 56 | media: solidIcons.faPhotoFilmMusic, |
| 57 | 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 | 75 | export let iconName: string; |
web/src/components/things/DataActions.svelte +1 −1
| @@ -54,7 +54,7 @@ | ||
| 54 | 54 | title="awesome-privacy.yml" |
| 55 | 55 | src={getIframeSrc()}></iframe> |
| 56 | 56 | |
| 57 | <h4>Edit/Delete Request</h4> | |
| 57 | <h4>Modify Data</h4> | |
| 58 | 58 | <div class="button-wrap"> |
| 59 | 59 | <a class="button-link" target="_blank" |
| 60 | 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'; | ||
| 7 | 7 | import PrivacyPolicyDetails from '@components/things/PrivacyPolicyDetails.astro'; |
| 8 | 8 | import WebsiteDetailedInfo from '@components/things/WebsiteDetailedInfo.astro'; |
| 9 | 9 | import DockerDetailedInfo from '@components/things/DockerDetailedInfo.astro'; |
| 10 | import SocialShare from '@components/form/Social.astro'; | |
| 10 | 11 | import DataActions from '@components/things/DataActions.svelte'; |
| 11 | 12 | import type { AwesomePrivacy, Section, Service } from '../types/Service'; |
| 12 | 13 | import { fetchData, slugify } from '@utils/fetch-data'; |
| @@ -15,6 +16,7 @@ import { fetchTosdrPrivacy } from '@utils/fetch-privacy-policy'; | ||
| 15 | 16 | import { fetchWebsiteInfo } from '@utils/fetch-website-info'; |
| 16 | 17 | import { fetchDockerData } from '@utils/fetch-docker-instructions'; |
| 17 | 18 | import { parseMarkdown, formatLink } from '@utils/parse-markdown'; |
| 19 | import { site } from '@utils/config'; | |
| 18 | 20 | import FontAwesome from '@components/form/FontAwesome.svelte'; |
| 19 | 21 | import Button from '@components/form/Button.astro'; |
| 20 | 22 | |
| @@ -45,18 +47,20 @@ const { | ||
| 45 | 47 | */ |
| 46 | 48 | const makeKeyWordTag = () => { |
| 47 | 49 | const keywords: string[] = []; |
| 48 | keywords.push(`free and open source ${parentSection.name} software`); | |
| 49 | keywords.push(`private ${parentSection.name} comparison`); | |
| 50 | keywords.push(`open source ${parentSection.name}`); | |
| 51 | keywords.push(`${parentSection.name} comparison`); | |
| 50 | 52 | (parentSection.alternativeTo || []).forEach((alt: string) => { |
| 51 | keywords.push(`privacy-respecting ${alt} alternative`); | |
| 52 | keywords.push(`free open source ${alt} alternative`); | |
| 53 | keywords.push(`${alt} alternative`); | |
| 53 | 54 | }); |
| 54 | 55 | (parentSection.services || []).forEach((serv: Service) => { |
| 55 | keywords.push(serv.name); | |
| 56 | keywords.push(`${serv.name} vs`); | |
| 56 | 57 | }); |
| 58 | keywords.push('private'); | |
| 57 | 59 | keywords.push('ad free'); |
| 60 | keywords.push('encrypted'); | |
| 58 | 61 | keywords.push('open source software'); |
| 59 | 62 | keywords.push('privacy respecting apps'); |
| 63 | keywords.push('free tools'); | |
| 60 | 64 | return keywords.join(', '); |
| 61 | 65 | }; |
| 62 | 66 | |
| @@ -71,10 +75,16 @@ const makePageTitle = () => { | ||
| 71 | 75 | * Make a string page intro, for the description tag |
| 72 | 76 | */ |
| 73 | 77 | const makeDescriptionTag = () => { |
| 74 | return `Compare ${name} and other ${parentSection.name} at Awesome Privacy\n` | |
| 75 | + description | |
| 76 | + '\nAll this, and much more at Awesome Privacy, ' | |
| 77 | + 'the free and open source list of private software alternatives.'; | |
| 78 | let description = `Analysis of ${name}, and other privacy-respecting ${parentSection.name} `; | |
| 79 | if (parentSection.services) { | |
| 80 | const serviceList = parentSection.services.map((serv: Service) => serv.name); | |
| 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 | 90 | // Return a list of Services, except for the currtent one |
| @@ -127,8 +137,6 @@ const privacyData = tosdrId ? await fetchTosdrPrivacy(tosdrId) : null; | ||
| 127 | 137 | const dockerData = await fetchDockerData(name); |
| 128 | 138 | const websiteData = (url && !ignoredSites.some(ignoredSite => url.includes(ignoredSite))) ? await fetchWebsiteInfo(url) : null; |
| 129 | 139 | |
| 130 | console.log(dockerData); | |
| 131 | ||
| 132 | 140 | const getApiEndpoint = () => { |
| 133 | 141 | return `https://api.awesome-privacy.xyz/${slugify(categoryName)}/${slugify(parentSection.name)}/${slugify(name)}`; |
| 134 | 142 | } |
| @@ -276,7 +284,7 @@ const getApiEndpoint = () => { | ||
| 276 | 284 | <pre><a href={getApiEndpoint()}><code>{getApiEndpoint()}</code></a></pre> |
| 277 | 285 | <p> |
| 278 | 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 | 288 | </p> |
| 281 | 289 | |
| 282 | 290 | <h4>About the Data</h4> |
| @@ -289,6 +297,24 @@ const getApiEndpoint = () => { | ||
| 289 | 297 | </p> |
| 290 | 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 | 318 | <div class="pagination-navigation"> |
| 293 | 319 | { previous ? ( |
| 294 | 320 | <Button url={`/${slugify(categoryName)}/${slugify(parentSection.name)}/${slugify(previous)}`}> |
web/src/pages/[...section].astro +34 −5
| @@ -58,15 +58,17 @@ const makePageTitle = () => { | ||
| 58 | 58 | * Make a string page intro, for the description tag |
| 59 | 59 | */ |
| 60 | 60 | const makeDescriptionTag = () => { |
| 61 | let description = `A list of privacy respecting ${title}. `; | |
| 61 | let description = `Privacy respecting ${title}. `; | |
| 62 | 62 | if (services && services.length > 0) { |
| 63 | 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 | 65 | } else { |
| 66 | 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, ' | |
| 69 | description += 'the free and open source list of private software alternatives.'; | |
| 68 | if (alternativeTo && alternativeTo.length > 0) { | |
| 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 | 72 | return description; |
| 71 | 73 | }; |
| 72 | 74 | |
| @@ -118,9 +120,28 @@ const { previous, next } = makePaginationLinks(); | ||
| 118 | 120 | <p set:html={parseMarkdown(intro)}></p> |
| 119 | 121 | </section> |
| 120 | 122 | )} |
| 121 | ||
| 123 | ||
| 122 | 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 | 145 | {notableMentions && ( |
| 125 | 146 | <section class="notable-mentions"> |
| 126 | 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 | 306 | </style> |
web/src/pages/about.astro +33 −5
| @@ -3,6 +3,7 @@ | ||
| 3 | 3 | import Layout from '@layouts/Layout.astro'; |
| 4 | 4 | import Main from '@components/scafold/MainCard.astro'; |
| 5 | 5 | import Icon from '@components/form/Icon.astro'; |
| 6 | import SocialShare from '@components/form/Social.astro'; | |
| 6 | 7 | import { parseMarkdown } from '@utils/parse-markdown'; |
| 7 | 8 | |
| 8 | 9 | const contributorsResource = async () => { |
| @@ -62,9 +63,9 @@ We also have a free, no-auth, CORS-enabled RESR API, | ||
| 62 | 63 | which you can use to access Awesome Privacy's data programmatically, |
| 63 | 64 | or to build your own apps on top of it. |
| 64 | 65 | |
| 65 | The [Swagger Spec](#) outlines all endpoints, usage and examples. | |
| 66 | The [Swagger Spec](api) outlines all endpoints, usage and examples. | |
| 66 | 67 | |
| 67 | The host is: \`https://api.awesome-privacy.xyz\` | |
| 68 | Use 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 | |
| 70 | 71 | const projectRequrements = ` |
| @@ -160,26 +161,31 @@ export const socials = [ | ||
| 160 | 161 | title: 'GitHub', |
| 161 | 162 | icon: 'hub', |
| 162 | 163 | link: 'https://github.com/lissy93', |
| 164 | color: '#EA4AAA', | |
| 163 | 165 | }, |
| 164 | 166 | { |
| 165 | 167 | title: 'Twitter', |
| 166 | 168 | icon: 'twitter', |
| 167 | 169 | link: 'https://x.com/lissy_sykes', |
| 170 | color: '#1D9BF0', | |
| 168 | 171 | }, |
| 169 | 172 | { |
| 170 | 173 | title: 'Mastodon', |
| 171 | 174 | icon: 'mastodon', |
| 172 | 175 | link: 'https://mastodon.social/@lissy93', |
| 176 | color: '#6364FF', | |
| 173 | 177 | }, |
| 174 | 178 | { |
| 175 | 179 | title: 'Dev', |
| 176 | 180 | icon: 'dev', |
| 177 | 181 | link: 'https://dev.to/lissy93', |
| 182 | color: '#cece04', | |
| 178 | 183 | }, |
| 179 | 184 | { |
| 180 | 185 | title: 'LinkedIn', |
| 181 | 186 | icon: 'linkedin', |
| 182 | 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 | 234 | <br /><br /> |
| 229 | 235 | To get started, head over to our <a href="https://github.com/lissy93/awesome-privacy">GitHub repository</a>. |
| 230 | 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 | 238 | <br /><br /> |
| 233 | 239 | If you're new to open source, you can find some resources to get you started |
| 234 | 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 | 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 | 292 | <h2 id="author">Author</h2> |
| 271 | 293 | <article class="author"> |
| 272 | 294 | <p> |
| @@ -287,7 +309,7 @@ const description = 'Privacy is a fundamental human right; ' | ||
| 287 | 309 | <div class="socials"> |
| 288 | 310 | { |
| 289 | 311 | socials.map((social) => ( |
| 290 | <a href={social.link}> | |
| 312 | <a href={social.link} style={`--color: ${social.color}`} target="_blank"> | |
| 291 | 313 | <Icon icon={social.icon} width={24} height={24} /> |
| 292 | 314 | </a> |
| 293 | 315 | )) |
| @@ -437,6 +459,12 @@ h3 { | ||
| 437 | 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 | 468 | .author { |
| 441 | 469 | p { |
| 442 | 470 | margin: 1rem 0 0 0; |
| @@ -479,7 +507,7 @@ h3 { | ||
| 479 | 507 | color: var(--foreground); |
| 480 | 508 | transition: color 0.2s ease-in-out; |
| 481 | 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 | 19 | <p id="press-enter-msg" class="press-enter">Press enter for deep search</p> |
| 20 | 20 | </span> |
| 21 | 21 | </div> |
| 22 | <p class="sitemap-link">Or, <a href="/sitemap">view all pages</a></p> | |
| 22 | 23 | |
| 23 | 24 | <ul class="categories"> |
| 24 | 25 | {categories.map((category) => ( |
| @@ -110,7 +111,7 @@ if (typeof window !== 'undefined') { | ||
| 110 | 111 | <style lang="scss"> |
| 111 | 112 | |
| 112 | 113 | .head-wrap { |
| 113 | margin: 1rem auto; | |
| 114 | margin: 1rem auto 0 auto; | |
| 114 | 115 | width: 85vw; |
| 115 | 116 | display: flex; |
| 116 | 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 | 154 | .no-results { |
| 146 | 155 | text-align: center; |
| 147 | 156 | width: 85vw; |
web/src/pages/sitemap.astro +89 −7
| @@ -16,10 +16,20 @@ const categories = (await fetchData() as AwesomePrivacy)?.categories || []; | ||
| 16 | 16 | Below is a full listing of all pages on this site.<br> |
| 17 | 17 | <small>As reflected in our <a href="/sitemap-index.xml">sitemap.xml</a></small> |
| 18 | 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 | 23 | <ul> |
| 20 | 24 | <li> |
| 21 | 25 | <a href="/">Home</a> |
| 22 | 26 | </li> |
| 27 | <li> | |
| 28 | <a href="/edit">Edit</a> | |
| 29 | </li> | |
| 30 | <li> | |
| 31 | <a href="/api">API</a> | |
| 32 | </li> | |
| 23 | 33 | <li> |
| 24 | 34 | <a href="/search">Search</a> |
| 25 | 35 | </li> |
| @@ -73,11 +83,48 @@ const categories = (await fetchData() as AwesomePrivacy)?.categories || []; | ||
| 73 | 83 | <a href="/map">Sitemap</a> |
| 74 | 84 | </li> |
| 75 | 85 | </ul> |
| 76 | ||
| 77 | 86 | </main> |
| 78 | 87 | |
| 79 | 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 | 128 | <style lang="scss"> |
| 82 | 129 | |
| 83 | 130 | main { |
| @@ -89,6 +136,7 @@ main { | ||
| 89 | 136 | border: 2px solid var(--foreground); |
| 90 | 137 | box-shadow: 6px 6px 0 var(--foreground); |
| 91 | 138 | background: var(--accent-fg); |
| 139 | position: relative; | |
| 92 | 140 | p { |
| 93 | 141 | font-size: 1.3rem; |
| 94 | 142 | margin: 0; |
| @@ -135,12 +183,46 @@ h2 { | ||
| 135 | 183 | margin: 0; |
| 136 | 184 | gap: 1rem; |
| 137 | 185 | font-size: 2rem; |
| 138 | margin: -2rem 0 2rem -4rem; | |
| 139 | box-shadow: 6px 6px 0 var(--foreground); | |
| 140 | background: var(--accent); | |
| 141 | color: var(--accent-fg); | |
| 142 | width: fit-content; | |
| 143 | padding: 0.25rem 0.5rem; | |
| 186 | margin: -2rem 0 2rem -4rem; | |
| 187 | box-shadow: 6px 6px 0 var(--foreground); | |
| 188 | background: var(--accent); | |
| 189 | color: var(--accent-fg); | |
| 190 | width: fit-content; | |
| 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 | ||
| 2 | function cleanUrl(inputString: string) { | |
| 3 | return inputString.replace(/['";]+/g, '').trim(); | |
| 4 | } | |
| 5 | ||
| 6 | ||
| 7 | export const site = cleanUrl(import.meta.env.SITE_URL || 'https://awesome-privacy.xyz'); | |
| 8 | ||
| 9 | export const title = 'Awesome Privacy | Compare privacy-respecting alternatives to popular software & services'; | |
| 10 | ||
| 11 | export const description = 'Your guide to escaping big tech, protecting your privacy, and reclaiming your digital life.'; | |