Commit 0045369d7d

0045369d7d78ae0eb73432d350d7421dba5c31b6

parent: 538d4c7c93

Unsigned

Alicia Sykes <alicia@omg.lol> · 2026-08-07 17:37 UTC

CSS neatness and a11y improvments

Layout: unified · split

web/src/components/Hero.astro +1 −1
@@ -62,7 +62,7 @@ import FontAwesome from '@components/form/FontAwesome.svelte';
6262 text-align: center;
6363 font-size: var(--text-xl);
6464 padding: var(--space-sm) var(--space-md);
65 color: var(--accent-fg);
65 color: var(--accent-3-fg);
6666 background: var(--accent-3);
6767 border: var(--border-heavy);
6868 border-radius: var(--curve-sm);
web/src/components/form/EditableTitle.svelte +2 −2
@@ -66,7 +66,7 @@
6666 font-weight: bold;
6767 font-size: var(--text-4xl);
6868 margin: 0;
69 color: var(--accent-3);
69 color: var(--accent-3-text);
7070 }
7171 .title-display {
7272 all: unset;
@@ -83,7 +83,7 @@
8383 font-family: var(--font-subtitle);
8484 font-weight: bold;
8585 font-size: var(--text-4xl);
86 color: var(--accent-3);
86 color: var(--accent-3-text);
8787 background: transparent;
8888 border: none;
8989 border-bottom: 2px solid var(--accent-3);
web/src/components/form/FontAwesome.svelte +4
@@ -76,6 +76,10 @@
7676 viewReport: solidIcons.faShieldHalved,
7777 externalLink: solidIcons.faArrowUpRightFromSquare,
7878
79 // Theme
80 themeDark: solidIcons.faMoon,
81 themeLight: solidIcons.faSun,
82
7983 //Misc
8084 ratingStar: solidIcons.faStar,
8185 saveListing: solidIcons.faBookmark,
web/src/components/form/ThemeSwitcher.svelte +34 −34
@@ -1,23 +1,17 @@
11<script lang="ts">
22 import { onMount } from 'svelte';
3 import FontAwesome from '@components/form/FontAwesome.svelte';
34
45 let theme = $state('dark');
56
67 onMount(() => {
7 const storedTheme = localStorage.getItem('theme');
8 theme = storedTheme || 'dark';
9 applyTheme(theme);
8 theme = document.documentElement.dataset.theme || 'dark';
109 });
1110
1211 function toggleTheme(): void {
13 const newTheme = theme === 'dark' ? 'light' : 'dark';
14 localStorage.setItem('theme', newTheme);
15 theme = newTheme;
16 applyTheme(newTheme);
17 }
18
19 function applyTheme(selectedTheme: string): void {
20 document.documentElement.setAttribute('data-theme', selectedTheme);
12 theme = theme === 'dark' ? 'light' : 'dark';
13 localStorage.setItem('theme', theme);
14 document.documentElement.dataset.theme = theme;
2115 }
2216</script>
2317
@@ -26,27 +20,25 @@
2620 onclick={toggleTheme}
2721 aria-label={`Switch to ${theme === 'dark' ? 'light' : 'dark'} theme`}
2822>
29 <div class={`toggle ${theme}`}>
30 <span class="theme-icon">🌘</span>
31 <span class="theme-icon">☀️</span>
32 </div>
23 <span class={`toggle ${theme}`}>
24 <span class="theme-icon"><FontAwesome iconName="themeDark" /></span>
25 <span class="theme-icon"><FontAwesome iconName="themeLight" /></span>
26 </span>
3327</button>
3428
3529<style lang="scss">
3630 .theme-switcher {
3731 cursor: pointer;
3832 display: inline-flex;
39 align-items: center;
40 justify-content: center;
33 padding: var(--space-xs);
4134 border: var(--border-heavy);
4235 border-radius: var(--curve-lg);
43 padding: var(--space-xs);
44 background-color: rgba(255, 255, 255, 0.2);
45 transition: background-color 0.3s ease;
36 background: var(--surface-line);
4637 box-shadow: var(--shadow-sm);
38 transition: var(--transition-normal);
4739
4840 &:hover {
49 background-color: rgba(255, 255, 255, 0.3);
41 box-shadow: var(--shadow-sm-hover);
5042 }
5143 }
5244
@@ -54,38 +46,46 @@
5446 display: flex;
5547 align-items: center;
5648 justify-content: space-between;
49 gap: var(--space-sm);
5750 width: 4rem;
5851 height: 2rem;
59 background: var(--accent-fg);
60 border-radius: var(--curve-lg);
61 padding: var(--space-xs);
52 padding: 0 var(--space-sm);
53 box-sizing: border-box;
6254 position: relative;
63 transition: background 0.3s ease;
55 background: var(--surface);
56 border-radius: var(--curve-lg);
6457
6558 &::before {
6659 content: '';
6760 position: absolute;
68 top: var(--space-xs);
61 top: 50%;
6962 left: var(--space-xs);
7063 width: 1.6rem;
7164 height: 1.6rem;
7265 border-radius: 50%;
73 background: var(--background);
74 opacity: var(--opacity-muted);
66 background: var(--accent-3);
7567 transition: transform 0.3s ease;
76 }
77
78 &.dark::before {
79 transform: translateX(0);
68 transform: translateY(-50%);
8069 }
8170
8271 &:not(.dark)::before {
83 transform: translateX(2.2rem);
72 transform: translate(2.2rem, -50%);
8473 }
8574 }
8675
8776 .theme-icon {
8877 display: flex;
89 font-size: 1.5rem;
78 z-index: 1;
79 color: var(--foreground);
80 :global(svg) {
81 width: 1rem;
82 height: 1rem;
83 }
84 }
85
86 /* Whichever icon the knob sits under needs ink that reads on it */
87 .toggle.dark .theme-icon:first-child,
88 .toggle:not(.dark) .theme-icon:last-child {
89 color: var(--accent-3-fg);
9090 }
9191</style>
web/src/components/scafold/Footer.astro +1 −1
@@ -25,7 +25,7 @@ const year = new Date().getFullYear();
2525 padding: var(--space-sm) 0;
2626 margin: 0 auto;
2727 a {
28 color: var(--accent);
28 color: var(--accent-text);
2929 }
3030 }
3131</style>
web/src/components/scafold/MainCard.astro +1 −1
@@ -10,7 +10,7 @@
1010 max-width: var(--width-container-max);
1111 border: var(--border-heavy);
1212 box-shadow: var(--shadow-lg);
13 background: var(--accent-fg);
13 background: var(--surface);
1414 position: relative;
1515 }
1616</style>
web/src/components/scafold/NavBar.astro +8 −17
@@ -96,7 +96,7 @@ const navLinks = [
9696
9797<style lang="scss">
9898 .site-header {
99 background: var(--accent-fg);
99 background: var(--surface);
100100 display: flex;
101101 flex-wrap: wrap;
102102 justify-content: space-between;
@@ -123,7 +123,7 @@ const navLinks = [
123123 transition: var(--transition-normal);
124124 }
125125 &:hover :global(svg) {
126 color: var(--accent);
126 color: var(--accent-text);
127127 transform: scale(1.05);
128128 }
129129 }
@@ -173,20 +173,21 @@ const navLinks = [
173173 background 0.3s ease-in-out,
174174 color 0.3s ease-in-out;
175175 &:hover {
176 color: var(--accent-fg);
177176 &:nth-child(4n + 1) {
178177 background: var(--accent);
178 color: var(--accent-fg);
179179 }
180180 &:nth-child(4n + 2) {
181181 background: var(--accent-2);
182 color: var(--foreground);
182 color: var(--accent-2-fg);
183183 }
184184 &:nth-child(4n + 3) {
185185 background: var(--accent-3);
186 color: var(--accent-3-fg);
186187 }
187188 &:nth-child(4n + 4) {
188189 background: var(--accent-4);
189 color: var(--foreground);
190 color: var(--accent-4-fg);
190191 }
191192 }
192193 }
@@ -233,7 +234,7 @@ const navLinks = [
233234 position: absolute;
234235 top: 100%;
235236 left: 0;
236 background: var(--accent-fg);
237 background: var(--surface);
237238 border-bottom: 2px solid var(--accent-3);
238239 z-index: 100;
239240 height: auto;
@@ -247,20 +248,10 @@ const navLinks = [
247248 border-bottom: 1px solid var(--accent-3-translucent);
248249 }
249250 .theme-switcher {
250 display: none;
251 margin: var(--space-md) auto;
251252 }
252253 }
253254 }
254255 }
255256
256 .sr-only {
257 position: absolute;
258 width: 1px;
259 height: 1px;
260 padding: 0;
261 margin: -1px;
262 overflow: hidden;
263 clip: rect(0, 0, 0, 0);
264 border: 0;
265 }
266257</style>
web/src/components/things/AddNewService.svelte +2 −3
@@ -445,7 +445,7 @@
445445 margin: var(--space-sm) auto var(--space-md) auto;
446446 border: var(--border-heavy);
447447 box-shadow: var(--shadow-sm);
448 background: var(--accent-fg);
448 background: var(--surface);
449449 border-radius: var(--curve-sm);
450450 background: color-mix(in srgb, var(--changelog-rem) 20%, transparent);
451451 }
@@ -532,7 +532,6 @@
532532 .open-in-gh {
533533 margin: 0 auto;
534534 font-size: var(--text-sm);
535 opacity: var(--opacity-muted);
536535 display: block;
537536 text-align: center;
538537 }
@@ -540,7 +539,7 @@
540539 button {
541540 cursor: pointer;
542541 background: var(--accent-3);
543 color: var(--accent-fg);
542 color: var(--accent-3-fg);
544543 padding: var(--space-sm) var(--space-lg);
545544 border: var(--border-light);
546545 box-shadow: var(--shadow-sm);
web/src/components/things/AndroidDetailedInfo.astro +1 −1
@@ -376,7 +376,7 @@ const reportUrl = hasAndroid ? exodusReportUrl(androidData!.report) : null;
376376 .score-denom {
377377 font-size: var(--text-sm);
378378 font-weight: normal;
379 opacity: var(--opacity-muted);
379 color: var(--foreground-muted);
380380 }
381381 &.score-good {
382382 color: var(--success);
web/src/components/things/ChangelogTimeline.svelte +5 −5
@@ -335,7 +335,7 @@
335335{/if}
336336
337337{#each Object.entries(grouped) as [month, monthItems] (month)}
338 <h3 class="month-header">{month}</h3>
338 <h2 class="month-header">{month}</h2>
339339 {#each monthItems as item (item.sha)}
340340 <article class="entry">
341341 <time class="entry-date">{formatDate(item.date)}</time>
@@ -449,7 +449,7 @@
449449 border: var(--border-heavy);
450450 border-radius: var(--curve-lg);
451451 box-shadow: var(--shadow-xs);
452 background: var(--accent-fg);
452 background: var(--surface);
453453 color: var(--foreground);
454454 &:focus {
455455 outline: none;
@@ -536,7 +536,7 @@
536536 margin: 1.5rem 0 var(--space-sm) 0;
537537 padding-bottom: 0.3rem;
538538 border-bottom: 1px solid var(--accent-3);
539 color: var(--accent-3);
539 color: var(--accent-3-text);
540540 font-family: var(--font-subtitle);
541541 }
542542
@@ -573,7 +573,7 @@
573573 .author a {
574574 color: var(--foreground);
575575 &:hover {
576 color: var(--accent);
576 color: var(--accent-text);
577577 }
578578 }
579579 .avatar {
@@ -630,7 +630,7 @@
630630 text-decoration: none;
631631 }
632632 a.svc-name:hover {
633 color: var(--accent);
633 color: var(--accent-text);
634634 text-decoration: underline;
635635 }
636636
web/src/components/things/DataActions.svelte +4 −4
@@ -186,7 +186,7 @@
186186 background: var(--accent-3);
187187 border: var(--border-light);
188188 box-shadow: var(--shadow-sm);
189 color: var(--accent-fg);
189 color: var(--accent-3-fg);
190190 text-decoration: none;
191191 border-radius: var(--curve-pill);
192192 padding: var(--space-sm) var(--space-md);
@@ -213,7 +213,7 @@
213213 flex-wrap: wrap;
214214 padding: 0.3rem 0;
215215 font-size: 0.95rem;
216 border-bottom: 1px solid rgba(255, 255, 255, 0.05);
216 border-bottom: 1px solid var(--surface-line);
217217 &:last-child {
218218 border-bottom: none;
219219 }
@@ -253,7 +253,7 @@
253253 a {
254254 color: var(--foreground);
255255 &:hover {
256 color: var(--accent);
256 color: var(--accent-text);
257257 }
258258 }
259259 }
@@ -262,7 +262,7 @@
262262 padding: 0.05rem 0.3rem;
263263 border-radius: var(--curve-sm);
264264 background: var(--accent-3);
265 color: var(--accent-fg);
265 color: var(--accent-3-fg);
266266 text-decoration: none;
267267 font-family: var(--font-subtitle);
268268 &:hover {
web/src/components/things/DeleteListing.svelte +1 −1
@@ -66,7 +66,7 @@
6666 width: 1rem;
6767 transition: var(--transition-normal);
6868 &:hover {
69 color: var(--accent-3);
69 color: var(--accent-3-text);
7070 opacity: 1;
7171 }
7272 }
web/src/components/things/DiscordDetailedInfo.astro +2 −3
@@ -15,7 +15,7 @@ const { discordData } = Astro.props;
1515 <li>
1616 <span class="lbl">Server Name</span>
1717 <span class="val"
18 ><img src={discordData.icon} alt="" width="16" />{
18 ><img src={discordData.icon} alt="" width="16" loading="lazy" />{
1919 discordData.name
2020 }</span
2121 >
@@ -50,8 +50,7 @@ const { discordData } = Astro.props;
5050 class="banner"
5151 width="300"
5252 src={discordData.banner}
53 alt={`${discordData.name} banner`}
54 />
53 alt={`${discordData.name} banner`} loading="lazy" />
5554 )
5655 }
5756</div>
web/src/components/things/DockerDetailedInfo.astro +1 −1
@@ -21,7 +21,7 @@ const formatBigNumber = (num: number): string => {
2121 { docker.template && (
2222 <h4>Container Info</h4>
2323 <p class="dockerhub-title">
24 <img src={docker.template.logo} alt="" width="16" />
24 <img src={docker.template.logo} alt="" width="16" loading="lazy" />
2525 {docker.template.name}
2626 </p>
2727 <p class="dockerhub-description">{docker.template.description}</p>
web/src/components/things/GetSharableLink.svelte +1 −1
@@ -65,7 +65,7 @@
6565 box-shadow: var(--shadow-sm);
6666 padding: var(--space-xs) var(--space-sm);
6767 border-radius: var(--curve-sm);
68 color: var(--foreground);
68 color: var(--accent-3-fg);
6969 font-family: var(--font-subtitle);
7070 font-size: var(--text-md);
7171 cursor: pointer;
web/src/components/things/GitHubDetailedInfo.astro +5 −5
@@ -132,7 +132,7 @@ const languageChart = `https://quickchart.io/chart?c=${generateChartData(gitHubD
132132 <div class="left">
133133 <h4>Author</h4>
134134 <p>
135 <img src={gitHubData.info.ownerAvatar} alt="" width="20" height="20" />
135 <img src={gitHubData.info.ownerAvatar} alt="" width="20" height="20" loading="lazy" />
136136 <a target="_blank" href={`https://github.com/${gitHubData.info.ownerUsername}`}>
137137 {gitHubData.info.ownerUsername}
138138 </a>
@@ -175,9 +175,9 @@ const languageChart = `https://quickchart.io/chart?c=${generateChartData(gitHubD
175175 </div>
176176 <div class="right">
177177 <h4>Language Usage</h4>
178 <img class="languages-img" width="600" src={languageChart} alt="Language Usage" />
178 <img class="languages-img" width="600" src={languageChart} alt="Language Usage" loading="lazy" />
179179 <h4>Star History</h4>
180 <img class="languages-img" width="600" src={`https://api.star-history.com/svg?repos=${repo}&type=Date`} alt="Star History" />
180 <img class="languages-img" width="600" src={`https://api.star-history.com/svg?repos=${repo}&type=Date`} alt="Star History" loading="lazy" />
181181 </div>
182182 <div class="long-list-data">
183183 <div class="left list-wrap">
@@ -185,7 +185,7 @@ const languageChart = `https://quickchart.io/chart?c=${generateChartData(gitHubD
185185 <ul>
186186 {gitHubData.contributors.map((contributor) => (
187187 <li>
188 <img src={contributor.avatar} alt="" width="20" height="20" />
188 <img src={contributor.avatar} alt="" width="20" height="20" loading="lazy" />
189189 <a href={`https://github.com/${contributor.username}`} target="_blank">
190190 @{contributor.username}
191191 </a> ({contributor.contributions})
@@ -198,7 +198,7 @@ const languageChart = `https://quickchart.io/chart?c=${generateChartData(gitHubD
198198 <ul>
199199 {gitHubData.commits.map((commit) => (
200200 <li>
201 <img src={commit.authorAvatar} alt="" width="20" height="20" />
201 <img src={commit.authorAvatar} alt="" width="20" height="20" loading="lazy" />
202202 <a href={`https://github.com/${commit.authorUsername}`} target="_blank">
203203 {commit.authorName}
204204 </a>
web/src/components/things/IosAppDetailedInfo.astro +2 −2
@@ -29,7 +29,7 @@ const putCommaInNumber = (num: number | string | undefined) => {
2929 <div class="left">
3030 <h4>App Info</h4>
3131 <p class="website-title">
32 <img src={iosData.artworkUrl60} alt="" width="16" />
32 <img src={iosData.artworkUrl60} alt="" width="16" loading="lazy" />
3333 {iosData.trackName}
3434 </p>
3535 <p class="website-description">{iosData.description}</p>
@@ -116,7 +116,7 @@ const putCommaInNumber = (num: number | string | undefined) => {
116116 <ul class="screenshots">
117117 {iosData.screenshotUrls.map((url) => (
118118 <li>
119 <img src={url} alt="App screenshot" width="100" />
119 <img src={url} alt="App screenshot" width="100" loading="lazy" />
120120 </li>
121121 ))}
122122 </ul>
web/src/components/things/ItemGitHubMetrics.astro +2 −2
@@ -125,9 +125,9 @@ const metrics = await getMetrics(github);
125125 display: flex;
126126 gap: var(--space-xs);
127127 transition: var(--transition-normal);
128 color: var(--accent-3);
128 color: var(--accent-3-text);
129129 &:hover {
130 color: var(--accent-3);
130 color: var(--accent-3-text);
131131 text-decoration: underline;
132132 }
133133 }
web/src/components/things/LatestUpdates.astro +2 −2
@@ -112,7 +112,7 @@ const formatDate = (iso: string) =>
112112
113113<style lang="scss">
114114 .latest-updates {
115 background: var(--accent-fg);
115 background: var(--surface);
116116 border: var(--border-heavy);
117117 border-radius: var(--curve-sm);
118118 box-shadow: var(--shadow-md);
@@ -143,7 +143,7 @@ const formatDate = (iso: string) =>
143143 color: var(--foreground);
144144 min-width: 0;
145145 &:hover .name {
146 color: var(--accent);
146 color: var(--accent-text);
147147 }
148148 .name {
149149 font-weight: bold;
web/src/components/things/ListingHero.astro +2 −3
@@ -228,7 +228,7 @@ const highlights = [
228228 position: relative;
229229 border: var(--border-heavy);
230230 box-shadow: var(--shadow-lg);
231 background: var(--accent-fg);
231 background: var(--surface);
232232 }
233233
234234 .service-head {
@@ -339,7 +339,7 @@ const highlights = [
339339 color: var(--foreground);
340340 text-decoration: none;
341341 &:hover {
342 color: var(--accent);
342 color: var(--accent-text);
343343 }
344344 }
345345 span {
@@ -360,7 +360,6 @@ const highlights = [
360360 display: flex;
361361 align-items: center;
362362 gap: var(--space-xs);
363 opacity: var(--opacity-muted);
364363 font-size: var(--text-sm);
365364 padding: var(--space-sm) 0;
366365 :global(svg) {
web/src/components/things/RedditDetailedInfo.astro +2 −3
@@ -13,7 +13,7 @@ const { redditData } = Astro.props;
1313 <div class="left">
1414 <h3>Reddit</h3>
1515 <p class="website-title">
16 <img src={redditData.info.icon} alt="" width="16" />
16 <img src={redditData.info.icon} alt="" width="16" loading="lazy" />
1717 {redditData.info.title || redditData.info.name}
1818 </p>
1919 <p class="website-description">{redditData.info.description}</p>
@@ -23,8 +23,7 @@ const { redditData } = Astro.props;
2323 class="banner"
2424 width="300"
2525 src={redditData.info.banner}
26 alt="Banner"
27 />
26 alt="Banner" loading="lazy" />
2827 )
2928 }
3029 <ul class="list-table">
web/src/components/things/SaveListing.svelte +1 −1
@@ -93,7 +93,7 @@
9393 }
9494 &:hover {
9595 :global(svg) {
96 color: var(--accent-3);
96 color: var(--accent-3-text);
9797 opacity: 1;
9898 }
9999 }
web/src/components/things/SavedServices.svelte +1 −1
@@ -85,7 +85,7 @@
8585 }
8686
8787 .nothing-yet {
88 background: var(--accent-fg);
88 background: var(--surface);
8989 border: var(--border-heavy);
9090 border-radius: var(--curve-sm);
9191 box-shadow: var(--shadow-md);
web/src/components/things/Search.svelte +48 −20
@@ -48,17 +48,7 @@
4848 return '';
4949 };
5050
51 function handleKeyDown(event: KeyboardEvent) {
52 if (event.key === 'Enter') {
53 event.preventDefault();
54 if (window) {
55 window.location.href = `/search/${encodeURIComponent(searchQuery)}`;
56 }
57 }
58 if (event.key === 'Escape') {
59 searchQuery = '';
60 }
61 }
51 let activeIndex = $state(-1);
6252
6353 const results: SearchItem[] = $derived(
6454 searchQuery && fuse
@@ -68,6 +58,31 @@
6858 .slice(0, 25)
6959 : [],
7060 );
61
62 function handleKeyDown(event: KeyboardEvent) {
63 if (event.key === 'ArrowDown' || event.key === 'ArrowUp') {
64 event.preventDefault();
65 const step = event.key === 'ArrowDown' ? 1 : -1;
66 activeIndex = (activeIndex + step + results.length) % results.length;
67 return;
68 }
69 if (event.key === 'Enter') {
70 event.preventDefault();
71 const active = results[activeIndex];
72 window.location.href = active
73 ? makeResultLink(active.category, active.sectionName, active.name)
74 : `/search/${encodeURIComponent(searchQuery)}`;
75 }
76 if (event.key === 'Escape') {
77 searchQuery = '';
78 activeIndex = -1;
79 }
80 }
81
82 $effect(() => {
83 searchQuery;
84 activeIndex = -1;
85 });
7186</script>
7287
7388<div class="search-wrap">
@@ -81,15 +96,26 @@
8196 id="search"
8297 placeholder={previousSearch || 'Start typing...'}
8398 autocomplete="off"
99 role="combobox"
100 aria-expanded={results.length > 0}
101 aria-controls="search-results"
102 aria-autocomplete="list"
103 aria-activedescendant={activeIndex >= 0 ? `search-result-${activeIndex}` : undefined}
84104 bind:value={searchQuery}
85105 onkeydown={handleKeyDown}
86106 />
87107
88108 {#if searchQuery.length > 0}
89109 <div class="suggestions">
90 <ul>
91 {#each results as result (result.name + result.category + result.sectionName)}
92 <li class="result-row">
110 <ul id="search-results" role="listbox" aria-label="Search results">
111 {#each results as result, i (result.name + result.category + result.sectionName)}
112 <li
113 class="result-row"
114 class:active={i === activeIndex}
115 id={`search-result-${i}`}
116 role="option"
117 aria-selected={i === activeIndex}
118 >
93119 <a
94120 href={makeResultLink(
95121 result.category,
@@ -182,8 +208,7 @@
182208 box-shadow: var(--shadow-sm);
183209 transform: translateY(-0.5rem);
184210 max-height: 500px;
185 overflow-y: scroll;
186 background: var(--background-form);
211 overflow-y: auto;
187212 li.result-row {
188213 padding: var(--space-sm) var(--space-md);
189214 margin: var(--space-sm) 0;
@@ -198,7 +223,7 @@
198223 align-items: center;
199224 gap: var(--space-sm);
200225 i {
201 color: var(--accent);
226 color: var(--accent-text);
202227 font-weight: bold;
203228 font-style: normal;
204229 }
@@ -207,7 +232,7 @@
207232 width: 1.25rem;
208233 height: 1.25rem;
209234 font-size: 10px;
210 color: var(--accent);
235 color: var(--accent-text);
211236 overflow: hidden;
212237 background: var(--accent-translucent);
213238 padding: 1px;
@@ -218,9 +243,12 @@
218243 opacity: var(--opacity-soft);
219244 }
220245 }
221 &:hover {
246 &:hover,
247 &.active {
222248 background: var(--accent);
223 .name i {
249 a,
250 .name i,
251 .path {
224252 color: var(--accent-fg);
225253 }
226254 }
web/src/components/things/SectionList.astro +14 −8
@@ -8,21 +8,23 @@ interface Props {
88 title: string;
99 sections: Section[];
1010 bigTitle?: boolean;
11 headingLevel?: 2 | 3;
1112}
1213
13const { title, sections, bigTitle } = Astro.props;
14const { title, sections, bigTitle, headingLevel = 3 } = Astro.props;
15const Heading = `h${headingLevel}` as 'h2' | 'h3';
1416---
1517
1618<div class="wrap">
1719 {
1820 bigTitle ? (
19 <h2>
21 <h1>
2022 <FontAwesome iconName={slugify(title)} />
2123 {title}{' '}
22 </h2>
24 </h1>
2325 ) : (
2426 <a class="category-title" href={`/${slugify(title)}`}>
25 <h3>{title}</h3>
27 <Heading>{title}</Heading>
2628 </a>
2729 )
2830 }
@@ -63,7 +65,7 @@ const { title, sections, bigTitle } = Astro.props;
6365 }
6466 }
6567
66 h2 {
68 h1 {
6769 font-family: var(--font-subtitle);
6870 font-size: var(--text-3xl);
6971 margin: -2rem 0 var(--space-lg) -2rem;
@@ -88,6 +90,7 @@ const { title, sections, bigTitle } = Astro.props;
8890 color: var(--foreground);
8991 z-index: 2;
9092 position: relative;
93 h2,
9194 h3 {
9295 font-family: var(--font-subtitle);
9396 font-weight: bold;
@@ -104,12 +107,16 @@ const { title, sections, bigTitle } = Astro.props;
104107 margin: var(--space-sm) 0;
105108 font-size: var(--text-md);
106109 a {
110 display: inline-flex;
111 align-items: center;
112 gap: var(--space-xs);
113 min-height: 24px;
107114 text-decoration: none;
108115 color: var(--foreground);
109116 @include underline-hover(var(--accent-3), 2px, 80%, 0.15s);
110117 }
111118 .service-count {
112 color: var(--accent-3);
119 color: var(--accent-3-text);
113120 }
114121 }
115122 }
@@ -123,8 +130,7 @@ const { title, sections, bigTitle } = Astro.props;
123130 width: 2rem;
124131 height: 2rem;
125132 opacity: var(--opacity-dim);
126 text-shadow: 3px 3px 0 black;
127 color: var(--accent-3);
133 color: var(--accent-3-text);
128134 transition: var(--transition-normal);
129135 }
130136 }
web/src/components/things/ServiceIcon.astro +1 −1
@@ -89,7 +89,7 @@ const iconSize = Math.round(size * 0.45);
8989 background: var(--accent-3-translucent);
9090 }
9191 .icon-state {
92 color: var(--accent-3);
92 color: var(--accent-3-text);
9393 }
9494 .icon-state.broken {
9595 display: none;
web/src/components/things/ServiceList.astro +7 −7
@@ -64,7 +64,7 @@ const sortedServices = [...(services || [])].sort((a, b) =>
6464 class="service-title"
6565 href={`/${slugify(categoryName)}/${slugify(sectionName)}/${slugify(service.name)}`}
6666 >
67 {subHeading ? <h4>{service.name}</h4> : <h3>{service.name}</h3>}
67 {subHeading ? <h3>{service.name}</h3> : <h2>{service.name}</h2>}
6868 </a>
6969 {service.followWith && (
7070 <p class="follow-with">({service.followWith})</p>
@@ -242,8 +242,8 @@ const sortedServices = [...(services || [])].sort((a, b) =>
242242 text-decoration: none;
243243 color: var(--foreground);
244244 @include underline-hover(var(--accent-3));
245 h3,
246 h4 {
245 h2,
246 h3 {
247247 margin: 0;
248248 font-size: var(--text-xl);
249249 }
@@ -254,7 +254,7 @@ const sortedServices = [...(services || [])].sort((a, b) =>
254254 height: 2.5rem;
255255 border-radius: var(--curve-sm);
256256 overflow: hidden;
257 color: var(--accent);
257 color: var(--accent-text);
258258 }
259259 .follow-with {
260260 opacity: var(--opacity-soft);
@@ -299,7 +299,7 @@ const sortedServices = [...(services || [])].sort((a, b) =>
299299 right: var(--space-md);
300300 font-size: var(--text-sm);
301301 background: var(--accent-3);
302 color: var(--accent-fg);
302 color: var(--accent-3-fg);
303303 text-decoration: none;
304304 border-radius: var(--curve-md);
305305 }
@@ -327,9 +327,9 @@ const sortedServices = [...(services || [])].sort((a, b) =>
327327 display: flex;
328328 gap: var(--space-xs);
329329 &:hover {
330 color: var(--accent-3);
330 color: var(--accent-3-text);
331331 :global(svg) {
332 color: var(--accent-3);
332 color: var(--accent-3-text);
333333 }
334334 }
335335 }
web/src/components/things/SmartSuggestions.svelte +3 −3
@@ -85,7 +85,7 @@
8585 width: 80vw;
8686 max-width: 900px;
8787 margin: var(--space-md) auto;
88 color: var(--accent-3);
88 color: var(--accent-3-text);
8989 font-size: var(--text-xl);
9090 }
9191 section {
@@ -96,7 +96,7 @@
9696 max-width: 900px;
9797 margin: 0 auto;
9898 .service-result {
99 background: var(--accent-fg);
99 background: var(--surface);
100100 padding: var(--space-md);
101101 border-radius: var(--curve-sm);
102102 border: var(--border-light);
@@ -133,7 +133,7 @@
133133
134134 font-size: 10px;
135135 overflow: hidden;
136 color: var(--accent);
136 color: var(--accent-text);
137137 }
138138
139139 .service-link {
web/src/components/things/WebsiteDetailedInfo.astro +7 −6
@@ -55,7 +55,7 @@ const webCheckLink = `https://web-check.xyz/check/${webCheckTarget}`;
5555 <div class="left">
5656 <h4>Website</h4>
5757 <p class="website-title">
58 <img src={`https://favicone.com/${websiteInfo.url_parts.host}`} alt="" width="16" />
58 <img src={`https://favicone.com/${websiteInfo.url_parts.host}`} alt="" width="16" loading="lazy" />
5959 {websiteInfo.web_page.title}
6060 </p>
6161 <p class="website-description">{websiteInfo.web_page.description}</p>
@@ -135,7 +135,7 @@ const webCheckLink = `https://web-check.xyz/check/${webCheckTarget}`;
135135 <ul>
136136 {websiteInfo.geo_location.countries.map((country) => (
137137 <li>
138 <img width="16" src={`https://flagcdn.com/48x36/${country.toLowerCase()}.png`} alt={country} />
138 <img width="16" src={`https://flagcdn.com/48x36/${country.toLowerCase()}.png`} alt={country} loading="lazy" />
139139 {country}
140140 </li>
141141 ))}
@@ -168,10 +168,10 @@ const webCheckLink = `https://web-check.xyz/check/${webCheckTarget}`;
168168 ))}
169169 </ul>
170170 <h4>Website Preview</h4>
171 <img class="preview-shot" src={screenshotUrl} alt="Website preview" width="300" height="50" />
171 <img class="preview-shot" src={screenshotUrl} alt="Website preview" width="300" height="50" loading="lazy" />
172172 <div class="link-to-web-check">
173173 <Button url={webCheckLink} target="_blank" rel="noopener">
174 <img width="32" src="https://web-check.xyz/favicon.svg" />
174 <img width="32" height="32" src="https://web-check.xyz/favicon.svg" alt="" loading="lazy" />
175175 <div class="btn-text">
176176 <span>View full report at</span>
177177 <b class="web-check-title">web-check.xyz</b>
@@ -279,12 +279,13 @@ const webCheckLink = `https://web-check.xyz/check/${webCheckTarget}`;
279279 float: right;
280280 font-size: var(--text-base);
281281 transform: scale(0.8);
282 opacity: var(--opacity-subtle);
283282 transition: var(--transition-normal);
284 &:hover { opacity: 1; }
285283 :global(.button) {
286284 background: var(--accent-3);
287285 }
286 :global(.button a) {
287 color: var(--accent-3-fg);
288 }
288289 span {
289290 font-size: var(--text-sm);
290291 }
web/src/components/things/service-card.scss +2 −4
@@ -6,7 +6,7 @@
66 padding: var(--space-md);
77 border: var(--border-heavy);
88 box-shadow: var(--shadow-lg);
9 background: var(--accent-fg);
9 background: var(--surface);
1010 border-radius: var(--curve-sm);
1111 position: relative;
1212 overflow: hidden;
@@ -54,12 +54,11 @@
5454 gap: var(--space-sm);
5555 justify-content: space-between;
5656 a {
57 color: var(--accent-3);
57 color: var(--accent-3-text);
5858 font-size: var(--text-sm);
5959 display: inline-flex;
6060 align-items: center;
6161 gap: var(--space-xs);
62 opacity: var(--opacity-subtle);
6362 text-decoration: none;
6463 max-width: 50%;
6564 min-width: 25%;
@@ -68,7 +67,6 @@
6867 }
6968 &:hover {
7069 text-decoration: underline;
71 opacity: 1;
7270 }
7371 :global(svg) {
7472 width: 1rem;
web/src/layouts/Layout.astro +77 −5
@@ -64,6 +64,16 @@ const makeSearchLd = () => {
6464<!doctype html>
6565<html lang="en" data-theme="dark">
6666 <head>
67 <script is:inline>
68 const setTheme = () => {
69 const stored = localStorage.getItem('theme');
70 const prefersLight = matchMedia('(prefers-color-scheme: light)').matches;
71 document.documentElement.dataset.theme =
72 stored || (prefersLight ? 'light' : 'dark');
73 };
74 setTheme();
75 document.addEventListener('astro:after-swap', setTheme);
76 </script>
6777 <ClientRouter />
6878
6979 <!-- Core info -->
@@ -175,8 +185,11 @@ const makeSearchLd = () => {
175185 />
176186 </head>
177187 <body>
188 <a href="#main-content" class="skip-link">Skip to content</a>
178189 {!hideNav && <NavBar />}
179 <slot />
190 <div id="main-content">
191 <slot />
192 </div>
180193 <Footer />
181194 </body>
182195</html>
@@ -196,16 +209,54 @@ const makeSearchLd = () => {
196209 }
197210 body {
198211 margin: 0;
199 min-height: 100vh;
212 min-height: 100dvh;
213 display: flex;
214 flex-direction: column;
200215 color: var(--foreground);
201216 background: var(--background);
202217 }
218 #main-content {
219 flex: 1;
220 }
203221
204222 :focus-visible {
205 outline: 2px solid var(--accent);
223 outline: 2px solid var(--accent-text);
206224 outline-offset: 2px;
207225 }
208226
227 .skip-link {
228 position: absolute;
229 left: var(--space-sm);
230 top: calc(var(--space-sm) * -10);
231 z-index: 200;
232 padding: var(--space-sm) var(--space-md);
233 font-family: var(--font-subtitle);
234 font-weight: bold;
235 color: var(--accent-fg);
236 background: var(--accent);
237 border: var(--border-heavy);
238 box-shadow: var(--shadow-sm);
239 transition: top 0.2s ease-in-out;
240 &:focus {
241 top: var(--space-sm);
242 }
243 }
244
245 /* Drop movement, keep colour/depth feedback so states stay legible */
246 @media (prefers-reduced-motion: reduce) {
247 html {
248 scroll-behavior: auto;
249 }
250 *,
251 ::before,
252 ::after {
253 animation-duration: 0.01ms !important;
254 animation-iteration-count: 1 !important;
255 transition-property: color, background-color, border-color, box-shadow,
256 opacity !important;
257 }
258 }
259
209260 .pagination-navigation {
210261 display: flex;
211262 justify-content: space-between;
@@ -251,7 +302,7 @@ const makeSearchLd = () => {
251302 color: var(--foreground);
252303 transition: var(--transition-fast);
253304 &:hover {
254 color: var(--accent);
305 color: var(--accent-text);
255306 }
256307 }
257308 @media (max-width: 768px) {
@@ -259,6 +310,26 @@ const makeSearchLd = () => {
259310 }
260311 }
261312
313 .sr-only {
314 position: absolute;
315 width: 1px;
316 height: 1px;
317 padding: 0;
318 margin: -1px;
319 overflow: hidden;
320 clip-path: inset(50%);
321 white-space: nowrap;
322 border: 0;
323 }
324
325 .page-title {
326 font-family: var(--font-subtitle);
327 font-size: var(--text-4xl);
328 color: var(--accent-3-text);
329 margin: var(--space-lg) 0 var(--space-md);
330 text-align: center;
331 }
332
262333 .small-button {
263334 display: inline-block;
264335 font-family: var(--font-subtitle);
@@ -294,6 +365,7 @@ const makeSearchLd = () => {
294365 .notable-mentions,
295366 .word-of-warning,
296367 .submit-alternative {
368 h2,
297369 h3 {
298370 font-size: var(--text-lg);
299371 margin: var(--space-md) 0;
@@ -308,7 +380,7 @@ const makeSearchLd = () => {
308380 color: var(--foreground);
309381 transition: var(--transition-fast);
310382 &:hover {
311 color: var(--accent);
383 color: var(--accent-text);
312384 }
313385 }
314386 }
web/src/pages/404.astro +3 −2
@@ -5,7 +5,7 @@ import Buton from '@components/form/Button.astro';
55
66<Layout title="404 | Awesome Privacy">
77 <article class="oh-crap">
8 <h2>404</h2>
8 <h1>404</h1>
99 <p class="what-happened">Page not found 😢</p>
1010 <p class="why-happened">
1111 It seems this page doesn't exist (yet). We're sorry about that.
@@ -42,7 +42,8 @@ import Buton from '@components/form/Button.astro';
4242 align-items: center;
4343 justify-content: center;
4444 min-height: calc(100vh - 6rem);
45 h2 {
45 h1 {
46 font-family: var(--font-subtitle);
4647 font-size: 12rem;
4748 margin: 0;
4849 }
web/src/pages/[...listing].astro +1 −1
@@ -458,7 +458,7 @@ const makeSoftwareSchema = () => {
458458 position: relative;
459459 border: var(--border-heavy);
460460 box-shadow: var(--shadow-lg);
461 background: var(--accent-fg);
461 background: var(--surface);
462462 }
463463
464464 p {
web/src/pages/[...section].astro +7 −6
@@ -156,7 +156,7 @@ const { previous, next } = makePaginationLinks();
156156 </span>
157157 </div>
158158
159 <h2>{title}</h2>
159 <h1>{title}</h1>
160160
161161 {intro && (
162162 <section class="intro">
@@ -187,7 +187,7 @@ const { previous, next } = makePaginationLinks();
187187
188188 {notableMentions && (
189189 <section class="notable-mentions">
190 <h3>Notable Mentions</h3>
190 <h2>Notable Mentions</h2>
191191 { Array.isArray(notableMentions) ?
192192 <ul>
193193 {notableMentions.map((mention) => (
@@ -207,20 +207,20 @@ const { previous, next } = makePaginationLinks();
207207
208208 {furtherInfo && (
209209 <section class="further-info">
210 <h3>Notes</h3>
210 <h2>Notes</h2>
211211 <p set:html={parseMarkdown(furtherInfo)}></p>
212212 </section>
213213 )}
214214
215215 {wordOfWarning && (
216216 <section class="word-of-warning">
217 <h3>Word of Warning</h3>
217 <h2>Word of Warning</h2>
218218 <p set:html={parseMarkdown(wordOfWarning)}></p>
219219 </section>
220220 )}
221221
222222 {services.length > 0 && (<section class="submit-alternative">
223 <h3>Submit New Entry</h3>
223 <h2>Submit New Entry</h2>
224224 <p>
225225 Are we missing anything?
226226 You can help us improve this page, by <a href="/submit">submitting a new entry</a>
@@ -257,7 +257,8 @@ section {
257257 }
258258}
259259
260h2 {
260h1 {
261 font-family: var(--font-subtitle);
261262 font-size: var(--text-3xl);
262263 margin: -2rem 0 var(--space-lg) -2rem;
263264 box-shadow: var(--shadow-lg);
web/src/pages/about.astro +9 −12
@@ -64,6 +64,7 @@ const licenseContent = async () => {
6464<Layout title="About | Awesome Privacy" description={appDescription}>
6565 <div class="about-page">
6666 <Main>
67 <h1 class="page-title">About Awesome Privacy</h1>
6768 <h2 id="objective">Objective</h2>
6869 <p>
6970 Large data-hungry corporations dominate the digital world but with
@@ -137,7 +138,7 @@ const licenseContent = async () => {
137138 target="_blank"
138139 rel="noreferrer"
139140 >
140 <img src={sponsor.avatarUrl} alt={sponsor.login} />
141 <img src={sponsor.avatarUrl} alt={sponsor.login || ""} width="80" height="80" loading="lazy" />
141142 <p>{sponsor.name || sponsor.login}</p>
142143 </a>
143144 ))}
@@ -146,8 +147,7 @@ const licenseContent = async () => {
146147 <img
147148 class="fallback-img"
148149 src="https://readme-contribs.as93.net/sponsors/lissy93?perRow=12&shape=squircle&textColor=ffffff&limit=96"
149 alt="Sponsors"
150 />
150 alt="Sponsors" loading="lazy" />
151151 )
152152 }
153153
@@ -167,7 +167,7 @@ const licenseContent = async () => {
167167 target="_blank"
168168 rel="noreferrer"
169169 >
170 <img src={contributor.avatar_url} alt={contributor.login} />
170 <img src={contributor.avatar_url} alt={contributor.login || ""} width="80" height="80" loading="lazy" />
171171 <p>{contributor.login}</p>
172172 </a>
173173 ))}
@@ -176,8 +176,7 @@ const licenseContent = async () => {
176176 <img
177177 class="fallback-img"
178178 src="https://readme-contribs.as93.net/contributors/lissy93/awesome-privacy?perRow=12&shape=squircle&textColor=ffffff&limit=96"
179 alt="Contributors"
180 />
179 alt="Contributors" loading="lazy" />
181180 )
182181 }
183182
@@ -235,8 +234,7 @@ const licenseContent = async () => {
235234 width="180"
236235 height="240"
237236 alt="Alicia Sykes"
238 src="https://cdn.as93.net/profile-pictures/dsc_0597"
239 />
237 src="https://cdn.as93.net/profile-pictures/dsc_0597" loading="lazy" />
240238 </a>
241239 <div class="socials">
242240 {
@@ -273,8 +271,7 @@ const licenseContent = async () => {
273271 width="20"
274272 height="20"
275273 alt={project.title}
276 src={project.icon}
277 />
274 src={project.icon} loading="lazy" />
278275 <a href={project.link} target="_blank" rel="noreferrer">
279276 {project.title}
280277 </a>{' '}
@@ -369,7 +366,7 @@ const licenseContent = async () => {
369366 font-size: var(--text-sm);
370367 opacity: var(--opacity-soft);
371368 :global(a) {
372 color: var(--accent-3);
369 color: var(--accent-3-text);
373370 }
374371 }
375372 :global(code) {
@@ -450,7 +447,7 @@ const licenseContent = async () => {
450447 font-size: var(--text-lg);
451448 font-style: italic;
452449 font-weight: 300;
453 color: var(--accent-3);
450 color: var(--accent-3-text);
454451 text-align: center;
455452 max-width: 550px;
456453 margin: 0 auto;
web/src/pages/all.astro +9 −8
@@ -44,6 +44,7 @@ const categories = (await fetchData() as AwesomePrivacy)?.categories || [];
4444 </aside>
4545
4646 <main>
47 <h1 class="page-title">All Listings</h1>
4748 {categories.map((category) => (
4849 <Fragment>
4950 <h2 id={slugify(category.name)}>
@@ -164,7 +165,7 @@ const categories = (await fetchData() as AwesomePrivacy)?.categories || [];
164165 width: 100%;
165166 padding: var(--space-sm) var(--space-md);
166167 background: var(--accent-3);
167 color: var(--accent-fg);
168 color: var(--accent-3-fg);
168169 font-family: var(--font-subtitle);
169170 font-size: var(--text-md);
170171 font-weight: bold;
@@ -209,8 +210,8 @@ const categories = (await fetchData() as AwesomePrivacy)?.categories || [];
209210 transition: var(--transition-fast);
210211 display: block;
211212 padding: var(--space-xs) 0;
212 &:hover { color: var(--accent); opacity: 1; }
213 &.active { color: var(--accent); opacity: 1; font-weight: bold; }
213 &:hover { color: var(--accent-text); opacity: 1; }
214 &.active { color: var(--accent-text); opacity: 1; font-weight: bold; }
214215 }
215216 }
216217 }
@@ -230,11 +231,11 @@ const categories = (await fetchData() as AwesomePrivacy)?.categories || [];
230231 justify-content: center;
231232 align-items: center;
232233 gap: var(--space-md);
233 a { color: var(--accent-3); text-decoration: none; }
234 a { color: var(--accent-3-text); text-decoration: none; }
234235 :global(svg) {
235236 width: var(--text-4xl);
236237 height: var(--text-4xl);
237 color: var(--accent-3);
238 color: var(--accent-3-text);
238239 }
239240 }
240241
@@ -260,7 +261,7 @@ const categories = (await fetchData() as AwesomePrivacy)?.categories || [];
260261 }
261262
262263 .nothing-yet {
263 background: var(--accent-fg);
264 background: var(--surface);
264265 border: var(--border-heavy);
265266 box-shadow: var(--shadow-lg);
266267 border-radius: var(--curve-sm);
@@ -270,7 +271,7 @@ const categories = (await fetchData() as AwesomePrivacy)?.categories || [];
270271 font-style: italic;
271272 text-align: center;
272273 margin: var(--space-2xl) auto;
273 a { color: var(--accent); }
274 a { color: var(--accent-text); }
274275 }
275276 }
276277 }
@@ -284,7 +285,7 @@ const categories = (await fetchData() as AwesomePrivacy)?.categories || [];
284285 overflow: visible;
285286 border: var(--border-heavy);
286287 box-shadow: var(--shadow-lg);
287 background: var(--accent-fg);
288 background: var(--surface);
288289 border-radius: var(--curve-sm);
289290
290291 .toc-toggle { display: block; }
web/src/pages/browse.astro +9 −9
@@ -10,7 +10,7 @@ const categories: Category[] = (await fetchData())?.categories;
1010
1111<Layout title="Browse">
1212 <div class="head-wrap">
13 <h2>Browse</h2>
13 <h1>Browse</h1>
1414 <span>
1515 <input
1616 id="searchInput"
@@ -32,7 +32,7 @@ const categories: Category[] = (await fetchData())?.categories;
3232 {
3333 categories.map((category) => (
3434 <li class="category">
35 <SectionList title={category.name} sections={category.sections} />
35 <SectionList title={category.name} sections={category.sections} headingLevel={2} />
3636 </li>
3737 ))
3838 }
@@ -138,19 +138,19 @@ const categories: Category[] = (await fetchData())?.categories;
138138 border-radius: var(--curve-sm);
139139 font-size: var(--text-md);
140140 box-shadow: var(--shadow-sm);
141 color: var(--accent-3);
141 color: var(--accent-3-text);
142142 background: var(--background-form);
143143 &:focus {
144144 outline: none;
145145 box-shadow: var(--shadow-sm-hover);
146146 }
147147 }
148 h2 {
148 h1 {
149149 font-family: var(--font-subtitle);
150150 font-weight: bold;
151151 font-size: var(--text-4xl);
152152 margin: 0;
153 color: var(--accent-3);
153 color: var(--accent-3-text);
154154 }
155155 }
156156
@@ -158,7 +158,7 @@ const categories: Category[] = (await fetchData())?.categories;
158158 margin: 0 auto;
159159 width: 85vw;
160160 a {
161 color: var(--accent-3);
161 color: var(--accent-3-text);
162162 }
163163 }
164164
@@ -169,7 +169,7 @@ const categories: Category[] = (await fetchData())?.categories;
169169 display: none;
170170 .zilch {
171171 font-size: var(--text-3xl);
172 color: var(--accent-3);
172 color: var(--accent-3-text);
173173 opacity: var(--opacity-dim);
174174 font-weight: bold;
175175 }
@@ -190,7 +190,7 @@ const categories: Category[] = (await fetchData())?.categories;
190190 width: 95%;
191191 }
192192 .category {
193 background: var(--accent-fg);
193 background: var(--surface);
194194 border: var(--border-heavy);
195195 border-radius: var(--curve-sm);
196196 box-shadow: var(--shadow-md);
@@ -217,7 +217,7 @@ const categories: Category[] = (await fetchData())?.categories;
217217 color: var(--foreground);
218218 }
219219 .service-count {
220 color: var(--accent-3);
220 color: var(--accent-3-text);
221221 }
222222 }
223223 }
web/src/pages/changelog.astro +4 −3
@@ -14,7 +14,7 @@ const changelog = await fetchChangelog();
1414 <div class="changelog-page">
1515 <Main>
1616 <div class="changelog-head">
17 <h2>Changelog</h2>
17 <h1>Changelog</h1>
1818 <a
1919 class="rss-link"
2020 href="/rss.xml"
@@ -64,7 +64,8 @@ const changelog = await fetchChangelog();
6464 gap: var(--space-md);
6565 flex-wrap: wrap;
6666 }
67 h2 {
67 h1 {
68 font-family: var(--font-subtitle);
6869 font-size: var(--text-3xl);
6970 margin: 0;
7071 }
@@ -76,7 +77,7 @@ const changelog = await fetchChangelog();
7677 font-size: var(--text-sm);
7778 font-weight: bold;
7879 text-decoration: none;
79 color: var(--accent-fg);
80 color: var(--accent-3-fg);
8081 background: var(--accent-3);
8182 border: var(--border-light);
8283 box-shadow: var(--shadow-sm);
web/src/pages/index.astro +7 −7
@@ -103,7 +103,7 @@ const description =
103103 display: flex;
104104 align-items: end;
105105 gap: var(--space-md);
106 background: var(--accent-fg);
106 background: var(--surface);
107107 border: var(--border-heavy);
108108 border-radius: var(--curve-sm);
109109 box-shadow: var(--shadow-lg);
@@ -126,7 +126,7 @@ const description =
126126 flex-shrink: 0;
127127 padding: var(--space-sm) var(--space-lg);
128128 background: var(--accent-3);
129 color: var(--accent-fg);
129 color: var(--accent-3-fg);
130130 font-family: var(--font-subtitle);
131131 font-size: var(--text-md);
132132 font-weight: bold;
@@ -154,19 +154,19 @@ const description =
154154
155155 h2 {
156156 font-size: var(--text-4xl);
157 color: var(--accent-3);
157 color: var(--accent-3-text);
158158 font-family: var(--font-subtitle);
159159 text-align: center;
160160 margin: var(--space-xl) 0 var(--space-md) 0;
161161 a {
162162 text-decoration: none;
163 color: var(--accent-3);
163 color: var(--accent-3-text);
164164 @include underline-hover(var(--accent));
165165 }
166166 }
167167
168168 .about-summary {
169 background: var(--accent-fg);
169 background: var(--surface);
170170 border: var(--border-heavy);
171171 border-radius: var(--curve-sm);
172172 box-shadow: var(--shadow-md);
@@ -186,7 +186,7 @@ const description =
186186 column-gap: var(--space-md);
187187 padding: 0;
188188 .category {
189 background: var(--accent-fg);
189 background: var(--surface);
190190 border: var(--border-heavy);
191191 border-radius: var(--curve-sm);
192192 box-shadow: var(--shadow-md);
@@ -217,7 +217,7 @@ const description =
217217 color: var(--foreground);
218218 }
219219 .service-count {
220 color: var(--accent-3);
220 color: var(--accent-3-text);
221221 }
222222 }
223223 }
web/src/pages/inventory/[...inventoryId].astro +1 −1
@@ -74,7 +74,7 @@ if (serviceList.error) {
7474 font-weight: bold;
7575 font-size: var(--text-4xl);
7676 margin: 0;
77 color: var(--accent-3);
77 color: var(--accent-3-text);
7878 }
7979 .buttons {
8080 margin: var(--space-md) auto;
web/src/pages/inventory/index.astro +2 −2
@@ -13,8 +13,8 @@ const categories = (await fetchData())?.categories || ([] as Category[]);
1313
1414<Layout title="Saved Services">
1515 <main>
16 <h1 class="sr-only">Saved Services</h1>
1617 <div class="top-row">
17 <!-- <h2>Inventory</h2> -->
1818 <EditableTitle client:load />
1919 <GetSharableLink client:load />
2020 </div>
@@ -48,7 +48,7 @@ const categories = (await fetchData())?.categories || ([] as Category[]);
4848 font-weight: bold;
4949 font-size: var(--text-4xl);
5050 margin: 0;
51 color: var(--accent-3);
51 color: var(--accent-3-text);
5252 }
5353 .buttons {
5454 margin: var(--space-md) auto;
web/src/pages/search/[...searchTerm].astro +4 −4
@@ -121,7 +121,7 @@ const beer = putResultsIntoGroups();
121121
122122 h1 {
123123 font-size: var(--text-4xl);
124 color: var(--accent-3);
124 color: var(--accent-3-text);
125125 font-family: var(--font-subtitle);
126126 text-align: center;
127127 margin: var(--space-md) 0;
@@ -134,7 +134,7 @@ const beer = putResultsIntoGroups();
134134 margin: var(--space-md) auto 0 auto;
135135 h3 {
136136 margin: 0;
137 color: var(--accent-3);
137 color: var(--accent-3-text);
138138 font-size: var(--text-xl);
139139 }
140140 p {
@@ -153,7 +153,7 @@ const beer = putResultsIntoGroups();
153153 .category {
154154 padding: var(--space-md);
155155 box-shadow: var(--shadow-md);
156 background: var(--accent-fg);
156 background: var(--surface);
157157 border: var(--border-heavy);
158158 border-radius: var(--curve-sm);
159159 display: inline-flex;
@@ -183,7 +183,7 @@ const beer = putResultsIntoGroups();
183183 height: var(--text-3xl);
184184 opacity: var(--opacity-dim);
185185 text-shadow: 3px 3px 0 black;
186 color: var(--accent-3);
186 color: var(--accent-3-text);
187187 transition: var(--transition-normal);
188188 }
189189 }
web/src/pages/search/index.astro +2 −2
@@ -24,7 +24,7 @@ const categories = (await fetchData())?.categories;
2424 display: flex;
2525 flex-direction: column;
2626 box-shadow: var(--shadow-md);
27 background: var(--accent-fg);
27 background: var(--surface);
2828 border: var(--border-heavy);
2929 border-radius: var(--curve-sm);
3030 margin: var(--space-lg) auto;
@@ -35,7 +35,7 @@ const categories = (await fetchData())?.categories;
3535
3636 h1 {
3737 font-size: var(--text-4xl);
38 color: var(--accent-3);
38 color: var(--accent-3-text);
3939 font-family: var(--font-subtitle);
4040 text-align: center;
4141 margin: var(--space-md) 0;
web/src/pages/sitemap.astro +6 −6
@@ -8,7 +8,7 @@ const categories = ((await fetchData()) as AwesomePrivacy)?.categories || [];
88
99<Layout title="All Links | Awesome Privacy">
1010 <main>
11 <h2>Sitemap</h2>
11 <h1>Sitemap</h1>
1212 <p>
1313 Below is a full listing of all pages on this site.<br />
1414 <small
@@ -151,7 +151,7 @@ const categories = ((await fetchData()) as AwesomePrivacy)?.categories || [];
151151 padding: 0 var(--space-lg);
152152 border: var(--border-heavy);
153153 box-shadow: var(--shadow-lg);
154 background: var(--accent-fg);
154 background: var(--surface);
155155 position: relative;
156156 p {
157157 font-size: var(--text-lg);
@@ -168,8 +168,7 @@ const categories = ((await fetchData()) as AwesomePrivacy)?.categories || [];
168168 ul {
169169 padding-left: 1.2rem;
170170 list-style: none;
171 border-left: 3px solid var(--transparent-accent);
172 border-radius: 4px;
171 border-left: 1px solid var(--surface-line);
173172 li {
174173 font-weight: 600;
175174 ul li {
@@ -197,7 +196,8 @@ const categories = ((await fetchData()) as AwesomePrivacy)?.categories || [];
197196 }
198197 }
199198
200 h2 {
199 h1 {
200 font-family: var(--font-subtitle);
201201 font-size: var(--text-3xl);
202202 margin: -2rem 0 var(--space-lg) -4rem;
203203 box-shadow: var(--shadow-lg);
@@ -233,7 +233,7 @@ const categories = ((await fetchData()) as AwesomePrivacy)?.categories || [];
233233 border-radius: var(--curve-sm);
234234 font-size: var(--text-base);
235235 box-shadow: var(--shadow-sm);
236 color: var(--accent-3);
236 color: var(--accent-3-text);
237237 background: var(--background-form);
238238 &:focus {
239239 outline: none;
web/src/pages/submit.astro +4 −3
@@ -11,8 +11,9 @@ const commits = ((await fetchGitHubStats('lissy93/awesome-privacy')) || {})
1111const isDisabled = true; // will set this back to false if/when we have better way to manage the AI spam
1212---
1313
14<Layout title="Awesome Privacy">
14<Layout title="Submit a Change | Awesome Privacy">
1515 <section>
16 <h1 class="page-title">Submit a Change</h1>
1617 <h2>About our Data</h2>
1718 <p class="about-data">
1819 All data on Awesome Privacy is community maintained via Git, this keeps
@@ -115,7 +116,7 @@ const isDisabled = true; // will set this back to false if/when we have better w
115116 <li title={commit.sha}>
116117 {commit.message}
117118 <br />
118 <img width="14" src={commit.authorAvatar} alt="" />
119 <img width="14" src={commit.authorAvatar} alt="" loading="lazy" />
119120 <small>
120121 By{' '}
121122 <a href={`https://github.com/${commit.authorUsername}`}>
@@ -147,7 +148,7 @@ const isDisabled = true; // will set this back to false if/when we have better w
147148 padding: 0 var(--space-lg);
148149 border: var(--border-heavy);
149150 box-shadow: var(--shadow-lg);
150 background: var(--accent-fg);
151 background: var(--surface);
151152 border-radius: var(--curve-sm);
152153 @media (max-width: 768px) {
153154 max-width: 95%;
web/src/styles/typography.css +5 −17
@@ -86,25 +86,13 @@
8686 url('/fonts/Lekton/Lekton-Bold.ttf') format('truetype');
8787}
8888
89html {
90 font-family: system-ui, sans-serif;
91}
92
9389code {
94 font-family:
95 Menlo,
96 Monaco,
97 Lucida Console,
98 Liberation Mono,
99 DejaVu Sans Mono,
100 Bitstream Vera Sans Mono,
101 Courier New,
102 monospace;
90 font-family: var(--font-code);
10391}
10492
10593.heading,
10694h1 {
107 font-family: 'Libre Franklin', sans-serif;
95 font-family: var(--font-heading);
10896 font-optical-sizing: auto;
10997 font-weight: 800;
11098 font-style: normal;
@@ -116,7 +104,7 @@ h3,
116104h4,
117105h5,
118106h6 {
119 font-family: 'Lekton', sans-serif;
107 font-family: var(--font-subtitle);
120108 font-weight: 700;
121109 font-style: normal;
122110}
@@ -132,9 +120,9 @@ blockquote,
132120pre,
133121strong,
134122i {
135 font-family: 'Rubik', sans-serif;
123 font-family: var(--font-body);
136124}
137125
138126a {
139 color: var(--accent);
127 color: var(--accent-text);
140128}
web/src/styles/values.css +45 −12
@@ -1,14 +1,26 @@
11html {
2 --accent: #f45397;
3 --accent-fg: #1e1f21;
2 --ink-dark: #1e1f21;
3 --ink-light: #fff;
44
5 --accent: #f45397;
56 --accent-2: #ffdf60;
67 --accent-3: #5f53f4;
78 --accent-4: #28dffd;
89
10 /* Legible ink for text sitting on each accent fill (theme-independent) */
11 --accent-fg: var(--ink-dark);
12 --accent-2-fg: var(--ink-dark);
13 --accent-3-fg: var(--ink-light);
14 --accent-4-fg: var(--ink-dark);
15
16 /* Accent tints legible as text on --background / --surface */
17 --accent-text: var(--accent);
18 --accent-3-text: #8b82f7;
19
920 --bright: #fff;
1021
1122 --foreground: #fff;
23 --foreground-muted: #b9b9c0;
1224 --background-hr-color: #2f2f2f;
1325
1426 --curve-sm: 4px;
@@ -29,6 +41,8 @@ html {
2941 --bg-gradient-comp-1: #151517;
3042 --bg-gradient-comp-2: #151517;
3143 --background-form: #19191c;
44 --surface: #1e1f21;
45 --surface-line: #ffffff1f;
3246
3347 --box-outline: #000;
3448
@@ -48,7 +62,7 @@ html {
4862 --border-heavy: 2px solid var(--box-outline);
4963 --border-light: 1px solid var(--box-outline);
5064
51 --font-code: 'Courier New', Courier, monospace;
65 --font-code: Menlo, Monaco, 'Liberation Mono', 'Courier New', monospace;
5266
5367 --text-xs: 0.75rem;
5468 --text-sm: 0.85rem;
@@ -68,7 +82,7 @@ html {
6882 --space-xl: 3rem;
6983 --space-2xl: 4rem;
7084
71 --opacity-dim: 0.5;
85 --opacity-dim: 0.65;
7286 --opacity-muted: 0.6;
7387 --opacity-soft: 0.7;
7488 --opacity-subtle: 0.8;
@@ -85,10 +99,10 @@ html {
8599 --rating-c: #c7cc22;
86100 --rating-d: #e1bb23;
87101 --rating-e: #df8b1e;
88 --rating-f: #df541e;
89 --rating-g: #df1e1e;
102 --rating-f: #f2703a;
103 --rating-g: #f8524f;
90104 --rating-neutral: #ecd40f;
91 --rating-unknown: grey;
105 --rating-unknown: #9a9aa2;
92106
93107 --changelog-add: #6fdd8b;
94108 --changelog-rem: #fdcc0b;
@@ -96,17 +110,36 @@ html {
96110 --changelog-rej: #ff2d55;
97111
98112 &[data-theme='light'] {
99 --accent-fg: #fff;
113 --accent-text: #c2185b;
114 --accent-3-text: #5346e8;
115
100116 --foreground: #13151a;
117 --foreground-muted: #55565e;
101118 --background: #f1ebf1;
102119 --bg-gradient-comp-1: #feecff;
103120 --bg-gradient-comp-2: #e1e4fb;
104121 --background-form: #fff;
122 --surface: #fff;
123 --surface-line: #0000001f;
105124 --background-hr-color: #ececec;
106125
107 --changelog-rem: #b59207;
108 --changelog-rej: #d71e41;
109 --changelog-mod: #2e89b5;
110 --changelog-add: #509762;
126 --success: #006e32;
127 --success-muted: #097a36;
128 --danger: #a80032;
129
130 --rating-a: #186636;
131 --rating-b: #3b6b1d;
132 --rating-c: #5f6211;
133 --rating-d: #6b590f;
134 --rating-e: #77490e;
135 --rating-f: #8c3211;
136 --rating-g: #991414;
137 --rating-neutral: #6b6007;
138 --rating-unknown: #54555b;
139
140 --changelog-rem: #7a6204;
141 --changelog-rej: #b81936;
142 --changelog-mod: #256f92;
143 --changelog-add: #33683f;
111144 }
112145}