Commit 0045369d7d
Unsigned
Layout: unified · split
web/src/components/Hero.astro +1 −1
| @@ -62,7 +62,7 @@ import FontAwesome from '@components/form/FontAwesome.svelte'; | ||
| 62 | 62 | text-align: center; |
| 63 | 63 | font-size: var(--text-xl); |
| 64 | 64 | padding: var(--space-sm) var(--space-md); |
| 65 | color: var(--accent-fg); | |
| 65 | color: var(--accent-3-fg); | |
| 66 | 66 | background: var(--accent-3); |
| 67 | 67 | border: var(--border-heavy); |
| 68 | 68 | border-radius: var(--curve-sm); |
web/src/components/form/EditableTitle.svelte +2 −2
| @@ -66,7 +66,7 @@ | ||
| 66 | 66 | font-weight: bold; |
| 67 | 67 | font-size: var(--text-4xl); |
| 68 | 68 | margin: 0; |
| 69 | color: var(--accent-3); | |
| 69 | color: var(--accent-3-text); | |
| 70 | 70 | } |
| 71 | 71 | .title-display { |
| 72 | 72 | all: unset; |
| @@ -83,7 +83,7 @@ | ||
| 83 | 83 | font-family: var(--font-subtitle); |
| 84 | 84 | font-weight: bold; |
| 85 | 85 | font-size: var(--text-4xl); |
| 86 | color: var(--accent-3); | |
| 86 | color: var(--accent-3-text); | |
| 87 | 87 | background: transparent; |
| 88 | 88 | border: none; |
| 89 | 89 | border-bottom: 2px solid var(--accent-3); |
web/src/components/form/FontAwesome.svelte +4
| @@ -76,6 +76,10 @@ | ||
| 76 | 76 | viewReport: solidIcons.faShieldHalved, |
| 77 | 77 | externalLink: solidIcons.faArrowUpRightFromSquare, |
| 78 | 78 | |
| 79 | // Theme | |
| 80 | themeDark: solidIcons.faMoon, | |
| 81 | themeLight: solidIcons.faSun, | |
| 82 | ||
| 79 | 83 | //Misc |
| 80 | 84 | ratingStar: solidIcons.faStar, |
| 81 | 85 | saveListing: solidIcons.faBookmark, |
web/src/components/form/ThemeSwitcher.svelte +34 −34
| @@ -1,23 +1,17 @@ | ||
| 1 | 1 | <script lang="ts"> |
| 2 | 2 | import { onMount } from 'svelte'; |
| 3 | import FontAwesome from '@components/form/FontAwesome.svelte'; | |
| 3 | 4 | |
| 4 | 5 | let theme = $state('dark'); |
| 5 | 6 | |
| 6 | 7 | onMount(() => { |
| 7 | const storedTheme = localStorage.getItem('theme'); | |
| 8 | theme = storedTheme || 'dark'; | |
| 9 | applyTheme(theme); | |
| 8 | theme = document.documentElement.dataset.theme || 'dark'; | |
| 10 | 9 | }); |
| 11 | 10 | |
| 12 | 11 | 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; | |
| 21 | 15 | } |
| 22 | 16 | </script> |
| 23 | 17 | |
| @@ -26,27 +20,25 @@ | ||
| 26 | 20 | onclick={toggleTheme} |
| 27 | 21 | aria-label={`Switch to ${theme === 'dark' ? 'light' : 'dark'} theme`} |
| 28 | 22 | > |
| 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> | |
| 33 | 27 | </button> |
| 34 | 28 | |
| 35 | 29 | <style lang="scss"> |
| 36 | 30 | .theme-switcher { |
| 37 | 31 | cursor: pointer; |
| 38 | 32 | display: inline-flex; |
| 39 | align-items: center; | |
| 40 | justify-content: center; | |
| 33 | padding: var(--space-xs); | |
| 41 | 34 | border: var(--border-heavy); |
| 42 | 35 | 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); | |
| 46 | 37 | box-shadow: var(--shadow-sm); |
| 38 | transition: var(--transition-normal); | |
| 47 | 39 | |
| 48 | 40 | &:hover { |
| 49 | background-color: rgba(255, 255, 255, 0.3); | |
| 41 | box-shadow: var(--shadow-sm-hover); | |
| 50 | 42 | } |
| 51 | 43 | } |
| 52 | 44 | |
| @@ -54,38 +46,46 @@ | ||
| 54 | 46 | display: flex; |
| 55 | 47 | align-items: center; |
| 56 | 48 | justify-content: space-between; |
| 49 | gap: var(--space-sm); | |
| 57 | 50 | width: 4rem; |
| 58 | 51 | 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; | |
| 62 | 54 | position: relative; |
| 63 | transition: background 0.3s ease; | |
| 55 | background: var(--surface); | |
| 56 | border-radius: var(--curve-lg); | |
| 64 | 57 | |
| 65 | 58 | &::before { |
| 66 | 59 | content: ''; |
| 67 | 60 | position: absolute; |
| 68 | top: var(--space-xs); | |
| 61 | top: 50%; | |
| 69 | 62 | left: var(--space-xs); |
| 70 | 63 | width: 1.6rem; |
| 71 | 64 | height: 1.6rem; |
| 72 | 65 | border-radius: 50%; |
| 73 | background: var(--background); | |
| 74 | opacity: var(--opacity-muted); | |
| 66 | background: var(--accent-3); | |
| 75 | 67 | transition: transform 0.3s ease; |
| 76 | } | |
| 77 | ||
| 78 | &.dark::before { | |
| 79 | transform: translateX(0); | |
| 68 | transform: translateY(-50%); | |
| 80 | 69 | } |
| 81 | 70 | |
| 82 | 71 | &:not(.dark)::before { |
| 83 | transform: translateX(2.2rem); | |
| 72 | transform: translate(2.2rem, -50%); | |
| 84 | 73 | } |
| 85 | 74 | } |
| 86 | 75 | |
| 87 | 76 | .theme-icon { |
| 88 | 77 | 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); | |
| 90 | 90 | } |
| 91 | 91 | </style> |
web/src/components/scafold/Footer.astro +1 −1
| @@ -25,7 +25,7 @@ const year = new Date().getFullYear(); | ||
| 25 | 25 | padding: var(--space-sm) 0; |
| 26 | 26 | margin: 0 auto; |
| 27 | 27 | a { |
| 28 | color: var(--accent); | |
| 28 | color: var(--accent-text); | |
| 29 | 29 | } |
| 30 | 30 | } |
| 31 | 31 | </style> |
web/src/components/scafold/MainCard.astro +1 −1
| @@ -10,7 +10,7 @@ | ||
| 10 | 10 | max-width: var(--width-container-max); |
| 11 | 11 | border: var(--border-heavy); |
| 12 | 12 | box-shadow: var(--shadow-lg); |
| 13 | background: var(--accent-fg); | |
| 13 | background: var(--surface); | |
| 14 | 14 | position: relative; |
| 15 | 15 | } |
| 16 | 16 | </style> |
web/src/components/scafold/NavBar.astro +8 −17
| @@ -96,7 +96,7 @@ const navLinks = [ | ||
| 96 | 96 | |
| 97 | 97 | <style lang="scss"> |
| 98 | 98 | .site-header { |
| 99 | background: var(--accent-fg); | |
| 99 | background: var(--surface); | |
| 100 | 100 | display: flex; |
| 101 | 101 | flex-wrap: wrap; |
| 102 | 102 | justify-content: space-between; |
| @@ -123,7 +123,7 @@ const navLinks = [ | ||
| 123 | 123 | transition: var(--transition-normal); |
| 124 | 124 | } |
| 125 | 125 | &:hover :global(svg) { |
| 126 | color: var(--accent); | |
| 126 | color: var(--accent-text); | |
| 127 | 127 | transform: scale(1.05); |
| 128 | 128 | } |
| 129 | 129 | } |
| @@ -173,20 +173,21 @@ const navLinks = [ | ||
| 173 | 173 | background 0.3s ease-in-out, |
| 174 | 174 | color 0.3s ease-in-out; |
| 175 | 175 | &:hover { |
| 176 | color: var(--accent-fg); | |
| 177 | 176 | &:nth-child(4n + 1) { |
| 178 | 177 | background: var(--accent); |
| 178 | color: var(--accent-fg); | |
| 179 | 179 | } |
| 180 | 180 | &:nth-child(4n + 2) { |
| 181 | 181 | background: var(--accent-2); |
| 182 | color: var(--foreground); | |
| 182 | color: var(--accent-2-fg); | |
| 183 | 183 | } |
| 184 | 184 | &:nth-child(4n + 3) { |
| 185 | 185 | background: var(--accent-3); |
| 186 | color: var(--accent-3-fg); | |
| 186 | 187 | } |
| 187 | 188 | &:nth-child(4n + 4) { |
| 188 | 189 | background: var(--accent-4); |
| 189 | color: var(--foreground); | |
| 190 | color: var(--accent-4-fg); | |
| 190 | 191 | } |
| 191 | 192 | } |
| 192 | 193 | } |
| @@ -233,7 +234,7 @@ const navLinks = [ | ||
| 233 | 234 | position: absolute; |
| 234 | 235 | top: 100%; |
| 235 | 236 | left: 0; |
| 236 | background: var(--accent-fg); | |
| 237 | background: var(--surface); | |
| 237 | 238 | border-bottom: 2px solid var(--accent-3); |
| 238 | 239 | z-index: 100; |
| 239 | 240 | height: auto; |
| @@ -247,20 +248,10 @@ const navLinks = [ | ||
| 247 | 248 | border-bottom: 1px solid var(--accent-3-translucent); |
| 248 | 249 | } |
| 249 | 250 | .theme-switcher { |
| 250 | display: none; | |
| 251 | margin: var(--space-md) auto; | |
| 251 | 252 | } |
| 252 | 253 | } |
| 253 | 254 | } |
| 254 | 255 | } |
| 255 | 256 | |
| 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 | } | |
| 266 | 257 | </style> |
web/src/components/things/AddNewService.svelte +2 −3
| @@ -445,7 +445,7 @@ | ||
| 445 | 445 | margin: var(--space-sm) auto var(--space-md) auto; |
| 446 | 446 | border: var(--border-heavy); |
| 447 | 447 | box-shadow: var(--shadow-sm); |
| 448 | background: var(--accent-fg); | |
| 448 | background: var(--surface); | |
| 449 | 449 | border-radius: var(--curve-sm); |
| 450 | 450 | background: color-mix(in srgb, var(--changelog-rem) 20%, transparent); |
| 451 | 451 | } |
| @@ -532,7 +532,6 @@ | ||
| 532 | 532 | .open-in-gh { |
| 533 | 533 | margin: 0 auto; |
| 534 | 534 | font-size: var(--text-sm); |
| 535 | opacity: var(--opacity-muted); | |
| 536 | 535 | display: block; |
| 537 | 536 | text-align: center; |
| 538 | 537 | } |
| @@ -540,7 +539,7 @@ | ||
| 540 | 539 | button { |
| 541 | 540 | cursor: pointer; |
| 542 | 541 | background: var(--accent-3); |
| 543 | color: var(--accent-fg); | |
| 542 | color: var(--accent-3-fg); | |
| 544 | 543 | padding: var(--space-sm) var(--space-lg); |
| 545 | 544 | border: var(--border-light); |
| 546 | 545 | box-shadow: var(--shadow-sm); |
web/src/components/things/AndroidDetailedInfo.astro +1 −1
| @@ -376,7 +376,7 @@ const reportUrl = hasAndroid ? exodusReportUrl(androidData!.report) : null; | ||
| 376 | 376 | .score-denom { |
| 377 | 377 | font-size: var(--text-sm); |
| 378 | 378 | font-weight: normal; |
| 379 | opacity: var(--opacity-muted); | |
| 379 | color: var(--foreground-muted); | |
| 380 | 380 | } |
| 381 | 381 | &.score-good { |
| 382 | 382 | color: var(--success); |
web/src/components/things/ChangelogTimeline.svelte +5 −5
| @@ -335,7 +335,7 @@ | ||
| 335 | 335 | {/if} |
| 336 | 336 | |
| 337 | 337 | {#each Object.entries(grouped) as [month, monthItems] (month)} |
| 338 | <h3 class="month-header">{month}</h3> | |
| 338 | <h2 class="month-header">{month}</h2> | |
| 339 | 339 | {#each monthItems as item (item.sha)} |
| 340 | 340 | <article class="entry"> |
| 341 | 341 | <time class="entry-date">{formatDate(item.date)}</time> |
| @@ -449,7 +449,7 @@ | ||
| 449 | 449 | border: var(--border-heavy); |
| 450 | 450 | border-radius: var(--curve-lg); |
| 451 | 451 | box-shadow: var(--shadow-xs); |
| 452 | background: var(--accent-fg); | |
| 452 | background: var(--surface); | |
| 453 | 453 | color: var(--foreground); |
| 454 | 454 | &:focus { |
| 455 | 455 | outline: none; |
| @@ -536,7 +536,7 @@ | ||
| 536 | 536 | margin: 1.5rem 0 var(--space-sm) 0; |
| 537 | 537 | padding-bottom: 0.3rem; |
| 538 | 538 | border-bottom: 1px solid var(--accent-3); |
| 539 | color: var(--accent-3); | |
| 539 | color: var(--accent-3-text); | |
| 540 | 540 | font-family: var(--font-subtitle); |
| 541 | 541 | } |
| 542 | 542 | |
| @@ -573,7 +573,7 @@ | ||
| 573 | 573 | .author a { |
| 574 | 574 | color: var(--foreground); |
| 575 | 575 | &:hover { |
| 576 | color: var(--accent); | |
| 576 | color: var(--accent-text); | |
| 577 | 577 | } |
| 578 | 578 | } |
| 579 | 579 | .avatar { |
| @@ -630,7 +630,7 @@ | ||
| 630 | 630 | text-decoration: none; |
| 631 | 631 | } |
| 632 | 632 | a.svc-name:hover { |
| 633 | color: var(--accent); | |
| 633 | color: var(--accent-text); | |
| 634 | 634 | text-decoration: underline; |
| 635 | 635 | } |
| 636 | 636 | |
web/src/components/things/DataActions.svelte +4 −4
| @@ -186,7 +186,7 @@ | ||
| 186 | 186 | background: var(--accent-3); |
| 187 | 187 | border: var(--border-light); |
| 188 | 188 | box-shadow: var(--shadow-sm); |
| 189 | color: var(--accent-fg); | |
| 189 | color: var(--accent-3-fg); | |
| 190 | 190 | text-decoration: none; |
| 191 | 191 | border-radius: var(--curve-pill); |
| 192 | 192 | padding: var(--space-sm) var(--space-md); |
| @@ -213,7 +213,7 @@ | ||
| 213 | 213 | flex-wrap: wrap; |
| 214 | 214 | padding: 0.3rem 0; |
| 215 | 215 | font-size: 0.95rem; |
| 216 | border-bottom: 1px solid rgba(255, 255, 255, 0.05); | |
| 216 | border-bottom: 1px solid var(--surface-line); | |
| 217 | 217 | &:last-child { |
| 218 | 218 | border-bottom: none; |
| 219 | 219 | } |
| @@ -253,7 +253,7 @@ | ||
| 253 | 253 | a { |
| 254 | 254 | color: var(--foreground); |
| 255 | 255 | &:hover { |
| 256 | color: var(--accent); | |
| 256 | color: var(--accent-text); | |
| 257 | 257 | } |
| 258 | 258 | } |
| 259 | 259 | } |
| @@ -262,7 +262,7 @@ | ||
| 262 | 262 | padding: 0.05rem 0.3rem; |
| 263 | 263 | border-radius: var(--curve-sm); |
| 264 | 264 | background: var(--accent-3); |
| 265 | color: var(--accent-fg); | |
| 265 | color: var(--accent-3-fg); | |
| 266 | 266 | text-decoration: none; |
| 267 | 267 | font-family: var(--font-subtitle); |
| 268 | 268 | &:hover { |
web/src/components/things/DeleteListing.svelte +1 −1
| @@ -66,7 +66,7 @@ | ||
| 66 | 66 | width: 1rem; |
| 67 | 67 | transition: var(--transition-normal); |
| 68 | 68 | &:hover { |
| 69 | color: var(--accent-3); | |
| 69 | color: var(--accent-3-text); | |
| 70 | 70 | opacity: 1; |
| 71 | 71 | } |
| 72 | 72 | } |
web/src/components/things/DiscordDetailedInfo.astro +2 −3
| @@ -15,7 +15,7 @@ const { discordData } = Astro.props; | ||
| 15 | 15 | <li> |
| 16 | 16 | <span class="lbl">Server Name</span> |
| 17 | 17 | <span class="val" |
| 18 | ><img src={discordData.icon} alt="" width="16" />{ | |
| 18 | ><img src={discordData.icon} alt="" width="16" loading="lazy" />{ | |
| 19 | 19 | discordData.name |
| 20 | 20 | }</span |
| 21 | 21 | > |
| @@ -50,8 +50,7 @@ const { discordData } = Astro.props; | ||
| 50 | 50 | class="banner" |
| 51 | 51 | width="300" |
| 52 | 52 | src={discordData.banner} |
| 53 | alt={`${discordData.name} banner`} | |
| 54 | /> | |
| 53 | alt={`${discordData.name} banner`} loading="lazy" /> | |
| 55 | 54 | ) |
| 56 | 55 | } |
| 57 | 56 | </div> |
web/src/components/things/DockerDetailedInfo.astro +1 −1
| @@ -21,7 +21,7 @@ const formatBigNumber = (num: number): string => { | ||
| 21 | 21 | { docker.template && ( |
| 22 | 22 | <h4>Container Info</h4> |
| 23 | 23 | <p class="dockerhub-title"> |
| 24 | <img src={docker.template.logo} alt="" width="16" /> | |
| 24 | <img src={docker.template.logo} alt="" width="16" loading="lazy" /> | |
| 25 | 25 | {docker.template.name} |
| 26 | 26 | </p> |
| 27 | 27 | <p class="dockerhub-description">{docker.template.description}</p> |
web/src/components/things/GetSharableLink.svelte +1 −1
| @@ -65,7 +65,7 @@ | ||
| 65 | 65 | box-shadow: var(--shadow-sm); |
| 66 | 66 | padding: var(--space-xs) var(--space-sm); |
| 67 | 67 | border-radius: var(--curve-sm); |
| 68 | color: var(--foreground); | |
| 68 | color: var(--accent-3-fg); | |
| 69 | 69 | font-family: var(--font-subtitle); |
| 70 | 70 | font-size: var(--text-md); |
| 71 | 71 | cursor: pointer; |
web/src/components/things/GitHubDetailedInfo.astro +5 −5
| @@ -132,7 +132,7 @@ const languageChart = `https://quickchart.io/chart?c=${generateChartData(gitHubD | ||
| 132 | 132 | <div class="left"> |
| 133 | 133 | <h4>Author</h4> |
| 134 | 134 | <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" /> | |
| 136 | 136 | <a target="_blank" href={`https://github.com/${gitHubData.info.ownerUsername}`}> |
| 137 | 137 | {gitHubData.info.ownerUsername} |
| 138 | 138 | </a> |
| @@ -175,9 +175,9 @@ const languageChart = `https://quickchart.io/chart?c=${generateChartData(gitHubD | ||
| 175 | 175 | </div> |
| 176 | 176 | <div class="right"> |
| 177 | 177 | <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" /> | |
| 179 | 179 | <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" /> | |
| 181 | 181 | </div> |
| 182 | 182 | <div class="long-list-data"> |
| 183 | 183 | <div class="left list-wrap"> |
| @@ -185,7 +185,7 @@ const languageChart = `https://quickchart.io/chart?c=${generateChartData(gitHubD | ||
| 185 | 185 | <ul> |
| 186 | 186 | {gitHubData.contributors.map((contributor) => ( |
| 187 | 187 | <li> |
| 188 | <img src={contributor.avatar} alt="" width="20" height="20" /> | |
| 188 | <img src={contributor.avatar} alt="" width="20" height="20" loading="lazy" /> | |
| 189 | 189 | <a href={`https://github.com/${contributor.username}`} target="_blank"> |
| 190 | 190 | @{contributor.username} |
| 191 | 191 | </a> ({contributor.contributions}) |
| @@ -198,7 +198,7 @@ const languageChart = `https://quickchart.io/chart?c=${generateChartData(gitHubD | ||
| 198 | 198 | <ul> |
| 199 | 199 | {gitHubData.commits.map((commit) => ( |
| 200 | 200 | <li> |
| 201 | <img src={commit.authorAvatar} alt="" width="20" height="20" /> | |
| 201 | <img src={commit.authorAvatar} alt="" width="20" height="20" loading="lazy" /> | |
| 202 | 202 | <a href={`https://github.com/${commit.authorUsername}`} target="_blank"> |
| 203 | 203 | {commit.authorName} |
| 204 | 204 | </a> |
web/src/components/things/IosAppDetailedInfo.astro +2 −2
| @@ -29,7 +29,7 @@ const putCommaInNumber = (num: number | string | undefined) => { | ||
| 29 | 29 | <div class="left"> |
| 30 | 30 | <h4>App Info</h4> |
| 31 | 31 | <p class="website-title"> |
| 32 | <img src={iosData.artworkUrl60} alt="" width="16" /> | |
| 32 | <img src={iosData.artworkUrl60} alt="" width="16" loading="lazy" /> | |
| 33 | 33 | {iosData.trackName} |
| 34 | 34 | </p> |
| 35 | 35 | <p class="website-description">{iosData.description}</p> |
| @@ -116,7 +116,7 @@ const putCommaInNumber = (num: number | string | undefined) => { | ||
| 116 | 116 | <ul class="screenshots"> |
| 117 | 117 | {iosData.screenshotUrls.map((url) => ( |
| 118 | 118 | <li> |
| 119 | <img src={url} alt="App screenshot" width="100" /> | |
| 119 | <img src={url} alt="App screenshot" width="100" loading="lazy" /> | |
| 120 | 120 | </li> |
| 121 | 121 | ))} |
| 122 | 122 | </ul> |
web/src/components/things/ItemGitHubMetrics.astro +2 −2
| @@ -125,9 +125,9 @@ const metrics = await getMetrics(github); | ||
| 125 | 125 | display: flex; |
| 126 | 126 | gap: var(--space-xs); |
| 127 | 127 | transition: var(--transition-normal); |
| 128 | color: var(--accent-3); | |
| 128 | color: var(--accent-3-text); | |
| 129 | 129 | &:hover { |
| 130 | color: var(--accent-3); | |
| 130 | color: var(--accent-3-text); | |
| 131 | 131 | text-decoration: underline; |
| 132 | 132 | } |
| 133 | 133 | } |
web/src/components/things/LatestUpdates.astro +2 −2
| @@ -112,7 +112,7 @@ const formatDate = (iso: string) => | ||
| 112 | 112 | |
| 113 | 113 | <style lang="scss"> |
| 114 | 114 | .latest-updates { |
| 115 | background: var(--accent-fg); | |
| 115 | background: var(--surface); | |
| 116 | 116 | border: var(--border-heavy); |
| 117 | 117 | border-radius: var(--curve-sm); |
| 118 | 118 | box-shadow: var(--shadow-md); |
| @@ -143,7 +143,7 @@ const formatDate = (iso: string) => | ||
| 143 | 143 | color: var(--foreground); |
| 144 | 144 | min-width: 0; |
| 145 | 145 | &:hover .name { |
| 146 | color: var(--accent); | |
| 146 | color: var(--accent-text); | |
| 147 | 147 | } |
| 148 | 148 | .name { |
| 149 | 149 | font-weight: bold; |
web/src/components/things/ListingHero.astro +2 −3
| @@ -228,7 +228,7 @@ const highlights = [ | ||
| 228 | 228 | position: relative; |
| 229 | 229 | border: var(--border-heavy); |
| 230 | 230 | box-shadow: var(--shadow-lg); |
| 231 | background: var(--accent-fg); | |
| 231 | background: var(--surface); | |
| 232 | 232 | } |
| 233 | 233 | |
| 234 | 234 | .service-head { |
| @@ -339,7 +339,7 @@ const highlights = [ | ||
| 339 | 339 | color: var(--foreground); |
| 340 | 340 | text-decoration: none; |
| 341 | 341 | &:hover { |
| 342 | color: var(--accent); | |
| 342 | color: var(--accent-text); | |
| 343 | 343 | } |
| 344 | 344 | } |
| 345 | 345 | span { |
| @@ -360,7 +360,6 @@ const highlights = [ | ||
| 360 | 360 | display: flex; |
| 361 | 361 | align-items: center; |
| 362 | 362 | gap: var(--space-xs); |
| 363 | opacity: var(--opacity-muted); | |
| 364 | 363 | font-size: var(--text-sm); |
| 365 | 364 | padding: var(--space-sm) 0; |
| 366 | 365 | :global(svg) { |
web/src/components/things/RedditDetailedInfo.astro +2 −3
| @@ -13,7 +13,7 @@ const { redditData } = Astro.props; | ||
| 13 | 13 | <div class="left"> |
| 14 | 14 | <h3>Reddit</h3> |
| 15 | 15 | <p class="website-title"> |
| 16 | <img src={redditData.info.icon} alt="" width="16" /> | |
| 16 | <img src={redditData.info.icon} alt="" width="16" loading="lazy" /> | |
| 17 | 17 | {redditData.info.title || redditData.info.name} |
| 18 | 18 | </p> |
| 19 | 19 | <p class="website-description">{redditData.info.description}</p> |
| @@ -23,8 +23,7 @@ const { redditData } = Astro.props; | ||
| 23 | 23 | class="banner" |
| 24 | 24 | width="300" |
| 25 | 25 | src={redditData.info.banner} |
| 26 | alt="Banner" | |
| 27 | /> | |
| 26 | alt="Banner" loading="lazy" /> | |
| 28 | 27 | ) |
| 29 | 28 | } |
| 30 | 29 | <ul class="list-table"> |
web/src/components/things/SaveListing.svelte +1 −1
| @@ -93,7 +93,7 @@ | ||
| 93 | 93 | } |
| 94 | 94 | &:hover { |
| 95 | 95 | :global(svg) { |
| 96 | color: var(--accent-3); | |
| 96 | color: var(--accent-3-text); | |
| 97 | 97 | opacity: 1; |
| 98 | 98 | } |
| 99 | 99 | } |
web/src/components/things/SavedServices.svelte +1 −1
| @@ -85,7 +85,7 @@ | ||
| 85 | 85 | } |
| 86 | 86 | |
| 87 | 87 | .nothing-yet { |
| 88 | background: var(--accent-fg); | |
| 88 | background: var(--surface); | |
| 89 | 89 | border: var(--border-heavy); |
| 90 | 90 | border-radius: var(--curve-sm); |
| 91 | 91 | box-shadow: var(--shadow-md); |
web/src/components/things/Search.svelte +48 −20
| @@ -48,17 +48,7 @@ | ||
| 48 | 48 | return ''; |
| 49 | 49 | }; |
| 50 | 50 | |
| 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); | |
| 62 | 52 | |
| 63 | 53 | const results: SearchItem[] = $derived( |
| 64 | 54 | searchQuery && fuse |
| @@ -68,6 +58,31 @@ | ||
| 68 | 58 | .slice(0, 25) |
| 69 | 59 | : [], |
| 70 | 60 | ); |
| 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 | }); | |
| 71 | 86 | </script> |
| 72 | 87 | |
| 73 | 88 | <div class="search-wrap"> |
| @@ -81,15 +96,26 @@ | ||
| 81 | 96 | id="search" |
| 82 | 97 | placeholder={previousSearch || 'Start typing...'} |
| 83 | 98 | 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} | |
| 84 | 104 | bind:value={searchQuery} |
| 85 | 105 | onkeydown={handleKeyDown} |
| 86 | 106 | /> |
| 87 | 107 | |
| 88 | 108 | {#if searchQuery.length > 0} |
| 89 | 109 | <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 | > | |
| 93 | 119 | <a |
| 94 | 120 | href={makeResultLink( |
| 95 | 121 | result.category, |
| @@ -182,8 +208,7 @@ | ||
| 182 | 208 | box-shadow: var(--shadow-sm); |
| 183 | 209 | transform: translateY(-0.5rem); |
| 184 | 210 | max-height: 500px; |
| 185 | overflow-y: scroll; | |
| 186 | background: var(--background-form); | |
| 211 | overflow-y: auto; | |
| 187 | 212 | li.result-row { |
| 188 | 213 | padding: var(--space-sm) var(--space-md); |
| 189 | 214 | margin: var(--space-sm) 0; |
| @@ -198,7 +223,7 @@ | ||
| 198 | 223 | align-items: center; |
| 199 | 224 | gap: var(--space-sm); |
| 200 | 225 | i { |
| 201 | color: var(--accent); | |
| 226 | color: var(--accent-text); | |
| 202 | 227 | font-weight: bold; |
| 203 | 228 | font-style: normal; |
| 204 | 229 | } |
| @@ -207,7 +232,7 @@ | ||
| 207 | 232 | width: 1.25rem; |
| 208 | 233 | height: 1.25rem; |
| 209 | 234 | font-size: 10px; |
| 210 | color: var(--accent); | |
| 235 | color: var(--accent-text); | |
| 211 | 236 | overflow: hidden; |
| 212 | 237 | background: var(--accent-translucent); |
| 213 | 238 | padding: 1px; |
| @@ -218,9 +243,12 @@ | ||
| 218 | 243 | opacity: var(--opacity-soft); |
| 219 | 244 | } |
| 220 | 245 | } |
| 221 | &:hover { | |
| 246 | &:hover, | |
| 247 | &.active { | |
| 222 | 248 | background: var(--accent); |
| 223 | .name i { | |
| 249 | a, | |
| 250 | .name i, | |
| 251 | .path { | |
| 224 | 252 | color: var(--accent-fg); |
| 225 | 253 | } |
| 226 | 254 | } |
web/src/components/things/SectionList.astro +14 −8
| @@ -8,21 +8,23 @@ interface Props { | ||
| 8 | 8 | title: string; |
| 9 | 9 | sections: Section[]; |
| 10 | 10 | bigTitle?: boolean; |
| 11 | headingLevel?: 2 | 3; | |
| 11 | 12 | } |
| 12 | 13 | |
| 13 | const { title, sections, bigTitle } = Astro.props; | |
| 14 | const { title, sections, bigTitle, headingLevel = 3 } = Astro.props; | |
| 15 | const Heading = `h${headingLevel}` as 'h2' | 'h3'; | |
| 14 | 16 | --- |
| 15 | 17 | |
| 16 | 18 | <div class="wrap"> |
| 17 | 19 | { |
| 18 | 20 | bigTitle ? ( |
| 19 | <h2> | |
| 21 | <h1> | |
| 20 | 22 | <FontAwesome iconName={slugify(title)} /> |
| 21 | 23 | {title}{' '} |
| 22 | </h2> | |
| 24 | </h1> | |
| 23 | 25 | ) : ( |
| 24 | 26 | <a class="category-title" href={`/${slugify(title)}`}> |
| 25 | <h3>{title}</h3> | |
| 27 | <Heading>{title}</Heading> | |
| 26 | 28 | </a> |
| 27 | 29 | ) |
| 28 | 30 | } |
| @@ -63,7 +65,7 @@ const { title, sections, bigTitle } = Astro.props; | ||
| 63 | 65 | } |
| 64 | 66 | } |
| 65 | 67 | |
| 66 | h2 { | |
| 68 | h1 { | |
| 67 | 69 | font-family: var(--font-subtitle); |
| 68 | 70 | font-size: var(--text-3xl); |
| 69 | 71 | margin: -2rem 0 var(--space-lg) -2rem; |
| @@ -88,6 +90,7 @@ const { title, sections, bigTitle } = Astro.props; | ||
| 88 | 90 | color: var(--foreground); |
| 89 | 91 | z-index: 2; |
| 90 | 92 | position: relative; |
| 93 | h2, | |
| 91 | 94 | h3 { |
| 92 | 95 | font-family: var(--font-subtitle); |
| 93 | 96 | font-weight: bold; |
| @@ -104,12 +107,16 @@ const { title, sections, bigTitle } = Astro.props; | ||
| 104 | 107 | margin: var(--space-sm) 0; |
| 105 | 108 | font-size: var(--text-md); |
| 106 | 109 | a { |
| 110 | display: inline-flex; | |
| 111 | align-items: center; | |
| 112 | gap: var(--space-xs); | |
| 113 | min-height: 24px; | |
| 107 | 114 | text-decoration: none; |
| 108 | 115 | color: var(--foreground); |
| 109 | 116 | @include underline-hover(var(--accent-3), 2px, 80%, 0.15s); |
| 110 | 117 | } |
| 111 | 118 | .service-count { |
| 112 | color: var(--accent-3); | |
| 119 | color: var(--accent-3-text); | |
| 113 | 120 | } |
| 114 | 121 | } |
| 115 | 122 | } |
| @@ -123,8 +130,7 @@ const { title, sections, bigTitle } = Astro.props; | ||
| 123 | 130 | width: 2rem; |
| 124 | 131 | height: 2rem; |
| 125 | 132 | opacity: var(--opacity-dim); |
| 126 | text-shadow: 3px 3px 0 black; | |
| 127 | color: var(--accent-3); | |
| 133 | color: var(--accent-3-text); | |
| 128 | 134 | transition: var(--transition-normal); |
| 129 | 135 | } |
| 130 | 136 | } |
web/src/components/things/ServiceIcon.astro +1 −1
| @@ -89,7 +89,7 @@ const iconSize = Math.round(size * 0.45); | ||
| 89 | 89 | background: var(--accent-3-translucent); |
| 90 | 90 | } |
| 91 | 91 | .icon-state { |
| 92 | color: var(--accent-3); | |
| 92 | color: var(--accent-3-text); | |
| 93 | 93 | } |
| 94 | 94 | .icon-state.broken { |
| 95 | 95 | display: none; |
web/src/components/things/ServiceList.astro +7 −7
| @@ -64,7 +64,7 @@ const sortedServices = [...(services || [])].sort((a, b) => | ||
| 64 | 64 | class="service-title" |
| 65 | 65 | href={`/${slugify(categoryName)}/${slugify(sectionName)}/${slugify(service.name)}`} |
| 66 | 66 | > |
| 67 | {subHeading ? <h4>{service.name}</h4> : <h3>{service.name}</h3>} | |
| 67 | {subHeading ? <h3>{service.name}</h3> : <h2>{service.name}</h2>} | |
| 68 | 68 | </a> |
| 69 | 69 | {service.followWith && ( |
| 70 | 70 | <p class="follow-with">({service.followWith})</p> |
| @@ -242,8 +242,8 @@ const sortedServices = [...(services || [])].sort((a, b) => | ||
| 242 | 242 | text-decoration: none; |
| 243 | 243 | color: var(--foreground); |
| 244 | 244 | @include underline-hover(var(--accent-3)); |
| 245 | h3, | |
| 246 | h4 { | |
| 245 | h2, | |
| 246 | h3 { | |
| 247 | 247 | margin: 0; |
| 248 | 248 | font-size: var(--text-xl); |
| 249 | 249 | } |
| @@ -254,7 +254,7 @@ const sortedServices = [...(services || [])].sort((a, b) => | ||
| 254 | 254 | height: 2.5rem; |
| 255 | 255 | border-radius: var(--curve-sm); |
| 256 | 256 | overflow: hidden; |
| 257 | color: var(--accent); | |
| 257 | color: var(--accent-text); | |
| 258 | 258 | } |
| 259 | 259 | .follow-with { |
| 260 | 260 | opacity: var(--opacity-soft); |
| @@ -299,7 +299,7 @@ const sortedServices = [...(services || [])].sort((a, b) => | ||
| 299 | 299 | right: var(--space-md); |
| 300 | 300 | font-size: var(--text-sm); |
| 301 | 301 | background: var(--accent-3); |
| 302 | color: var(--accent-fg); | |
| 302 | color: var(--accent-3-fg); | |
| 303 | 303 | text-decoration: none; |
| 304 | 304 | border-radius: var(--curve-md); |
| 305 | 305 | } |
| @@ -327,9 +327,9 @@ const sortedServices = [...(services || [])].sort((a, b) => | ||
| 327 | 327 | display: flex; |
| 328 | 328 | gap: var(--space-xs); |
| 329 | 329 | &:hover { |
| 330 | color: var(--accent-3); | |
| 330 | color: var(--accent-3-text); | |
| 331 | 331 | :global(svg) { |
| 332 | color: var(--accent-3); | |
| 332 | color: var(--accent-3-text); | |
| 333 | 333 | } |
| 334 | 334 | } |
| 335 | 335 | } |
web/src/components/things/SmartSuggestions.svelte +3 −3
| @@ -85,7 +85,7 @@ | ||
| 85 | 85 | width: 80vw; |
| 86 | 86 | max-width: 900px; |
| 87 | 87 | margin: var(--space-md) auto; |
| 88 | color: var(--accent-3); | |
| 88 | color: var(--accent-3-text); | |
| 89 | 89 | font-size: var(--text-xl); |
| 90 | 90 | } |
| 91 | 91 | section { |
| @@ -96,7 +96,7 @@ | ||
| 96 | 96 | max-width: 900px; |
| 97 | 97 | margin: 0 auto; |
| 98 | 98 | .service-result { |
| 99 | background: var(--accent-fg); | |
| 99 | background: var(--surface); | |
| 100 | 100 | padding: var(--space-md); |
| 101 | 101 | border-radius: var(--curve-sm); |
| 102 | 102 | border: var(--border-light); |
| @@ -133,7 +133,7 @@ | ||
| 133 | 133 | |
| 134 | 134 | font-size: 10px; |
| 135 | 135 | overflow: hidden; |
| 136 | color: var(--accent); | |
| 136 | color: var(--accent-text); | |
| 137 | 137 | } |
| 138 | 138 | |
| 139 | 139 | .service-link { |
web/src/components/things/WebsiteDetailedInfo.astro +7 −6
| @@ -55,7 +55,7 @@ const webCheckLink = `https://web-check.xyz/check/${webCheckTarget}`; | ||
| 55 | 55 | <div class="left"> |
| 56 | 56 | <h4>Website</h4> |
| 57 | 57 | <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" /> | |
| 59 | 59 | {websiteInfo.web_page.title} |
| 60 | 60 | </p> |
| 61 | 61 | <p class="website-description">{websiteInfo.web_page.description}</p> |
| @@ -135,7 +135,7 @@ const webCheckLink = `https://web-check.xyz/check/${webCheckTarget}`; | ||
| 135 | 135 | <ul> |
| 136 | 136 | {websiteInfo.geo_location.countries.map((country) => ( |
| 137 | 137 | <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" /> | |
| 139 | 139 | {country} |
| 140 | 140 | </li> |
| 141 | 141 | ))} |
| @@ -168,10 +168,10 @@ const webCheckLink = `https://web-check.xyz/check/${webCheckTarget}`; | ||
| 168 | 168 | ))} |
| 169 | 169 | </ul> |
| 170 | 170 | <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" /> | |
| 172 | 172 | <div class="link-to-web-check"> |
| 173 | 173 | <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" /> | |
| 175 | 175 | <div class="btn-text"> |
| 176 | 176 | <span>View full report at</span> |
| 177 | 177 | <b class="web-check-title">web-check.xyz</b> |
| @@ -279,12 +279,13 @@ const webCheckLink = `https://web-check.xyz/check/${webCheckTarget}`; | ||
| 279 | 279 | float: right; |
| 280 | 280 | font-size: var(--text-base); |
| 281 | 281 | transform: scale(0.8); |
| 282 | opacity: var(--opacity-subtle); | |
| 283 | 282 | transition: var(--transition-normal); |
| 284 | &:hover { opacity: 1; } | |
| 285 | 283 | :global(.button) { |
| 286 | 284 | background: var(--accent-3); |
| 287 | 285 | } |
| 286 | :global(.button a) { | |
| 287 | color: var(--accent-3-fg); | |
| 288 | } | |
| 288 | 289 | span { |
| 289 | 290 | font-size: var(--text-sm); |
| 290 | 291 | } |
web/src/components/things/service-card.scss +2 −4
| @@ -6,7 +6,7 @@ | ||
| 6 | 6 | padding: var(--space-md); |
| 7 | 7 | border: var(--border-heavy); |
| 8 | 8 | box-shadow: var(--shadow-lg); |
| 9 | background: var(--accent-fg); | |
| 9 | background: var(--surface); | |
| 10 | 10 | border-radius: var(--curve-sm); |
| 11 | 11 | position: relative; |
| 12 | 12 | overflow: hidden; |
| @@ -54,12 +54,11 @@ | ||
| 54 | 54 | gap: var(--space-sm); |
| 55 | 55 | justify-content: space-between; |
| 56 | 56 | a { |
| 57 | color: var(--accent-3); | |
| 57 | color: var(--accent-3-text); | |
| 58 | 58 | font-size: var(--text-sm); |
| 59 | 59 | display: inline-flex; |
| 60 | 60 | align-items: center; |
| 61 | 61 | gap: var(--space-xs); |
| 62 | opacity: var(--opacity-subtle); | |
| 63 | 62 | text-decoration: none; |
| 64 | 63 | max-width: 50%; |
| 65 | 64 | min-width: 25%; |
| @@ -68,7 +67,6 @@ | ||
| 68 | 67 | } |
| 69 | 68 | &:hover { |
| 70 | 69 | text-decoration: underline; |
| 71 | opacity: 1; | |
| 72 | 70 | } |
| 73 | 71 | :global(svg) { |
| 74 | 72 | width: 1rem; |
web/src/layouts/Layout.astro +77 −5
| @@ -64,6 +64,16 @@ const makeSearchLd = () => { | ||
| 64 | 64 | <!doctype html> |
| 65 | 65 | <html lang="en" data-theme="dark"> |
| 66 | 66 | <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> | |
| 67 | 77 | <ClientRouter /> |
| 68 | 78 | |
| 69 | 79 | <!-- Core info --> |
| @@ -175,8 +185,11 @@ const makeSearchLd = () => { | ||
| 175 | 185 | /> |
| 176 | 186 | </head> |
| 177 | 187 | <body> |
| 188 | <a href="#main-content" class="skip-link">Skip to content</a> | |
| 178 | 189 | {!hideNav && <NavBar />} |
| 179 | <slot /> | |
| 190 | <div id="main-content"> | |
| 191 | <slot /> | |
| 192 | </div> | |
| 180 | 193 | <Footer /> |
| 181 | 194 | </body> |
| 182 | 195 | </html> |
| @@ -196,16 +209,54 @@ const makeSearchLd = () => { | ||
| 196 | 209 | } |
| 197 | 210 | body { |
| 198 | 211 | margin: 0; |
| 199 | min-height: 100vh; | |
| 212 | min-height: 100dvh; | |
| 213 | display: flex; | |
| 214 | flex-direction: column; | |
| 200 | 215 | color: var(--foreground); |
| 201 | 216 | background: var(--background); |
| 202 | 217 | } |
| 218 | #main-content { | |
| 219 | flex: 1; | |
| 220 | } | |
| 203 | 221 | |
| 204 | 222 | :focus-visible { |
| 205 | outline: 2px solid var(--accent); | |
| 223 | outline: 2px solid var(--accent-text); | |
| 206 | 224 | outline-offset: 2px; |
| 207 | 225 | } |
| 208 | 226 | |
| 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 | ||
| 209 | 260 | .pagination-navigation { |
| 210 | 261 | display: flex; |
| 211 | 262 | justify-content: space-between; |
| @@ -251,7 +302,7 @@ const makeSearchLd = () => { | ||
| 251 | 302 | color: var(--foreground); |
| 252 | 303 | transition: var(--transition-fast); |
| 253 | 304 | &:hover { |
| 254 | color: var(--accent); | |
| 305 | color: var(--accent-text); | |
| 255 | 306 | } |
| 256 | 307 | } |
| 257 | 308 | @media (max-width: 768px) { |
| @@ -259,6 +310,26 @@ const makeSearchLd = () => { | ||
| 259 | 310 | } |
| 260 | 311 | } |
| 261 | 312 | |
| 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 | ||
| 262 | 333 | .small-button { |
| 263 | 334 | display: inline-block; |
| 264 | 335 | font-family: var(--font-subtitle); |
| @@ -294,6 +365,7 @@ const makeSearchLd = () => { | ||
| 294 | 365 | .notable-mentions, |
| 295 | 366 | .word-of-warning, |
| 296 | 367 | .submit-alternative { |
| 368 | h2, | |
| 297 | 369 | h3 { |
| 298 | 370 | font-size: var(--text-lg); |
| 299 | 371 | margin: var(--space-md) 0; |
| @@ -308,7 +380,7 @@ const makeSearchLd = () => { | ||
| 308 | 380 | color: var(--foreground); |
| 309 | 381 | transition: var(--transition-fast); |
| 310 | 382 | &:hover { |
| 311 | color: var(--accent); | |
| 383 | color: var(--accent-text); | |
| 312 | 384 | } |
| 313 | 385 | } |
| 314 | 386 | } |
web/src/pages/404.astro +3 −2
| @@ -5,7 +5,7 @@ import Buton from '@components/form/Button.astro'; | ||
| 5 | 5 | |
| 6 | 6 | <Layout title="404 | Awesome Privacy"> |
| 7 | 7 | <article class="oh-crap"> |
| 8 | <h2>404</h2> | |
| 8 | <h1>404</h1> | |
| 9 | 9 | <p class="what-happened">Page not found 😢</p> |
| 10 | 10 | <p class="why-happened"> |
| 11 | 11 | It seems this page doesn't exist (yet). We're sorry about that. |
| @@ -42,7 +42,8 @@ import Buton from '@components/form/Button.astro'; | ||
| 42 | 42 | align-items: center; |
| 43 | 43 | justify-content: center; |
| 44 | 44 | min-height: calc(100vh - 6rem); |
| 45 | h2 { | |
| 45 | h1 { | |
| 46 | font-family: var(--font-subtitle); | |
| 46 | 47 | font-size: 12rem; |
| 47 | 48 | margin: 0; |
| 48 | 49 | } |
web/src/pages/[...listing].astro +1 −1
| @@ -458,7 +458,7 @@ const makeSoftwareSchema = () => { | ||
| 458 | 458 | position: relative; |
| 459 | 459 | border: var(--border-heavy); |
| 460 | 460 | box-shadow: var(--shadow-lg); |
| 461 | background: var(--accent-fg); | |
| 461 | background: var(--surface); | |
| 462 | 462 | } |
| 463 | 463 | |
| 464 | 464 | p { |
web/src/pages/[...section].astro +7 −6
| @@ -156,7 +156,7 @@ const { previous, next } = makePaginationLinks(); | ||
| 156 | 156 | </span> |
| 157 | 157 | </div> |
| 158 | 158 | |
| 159 | <h2>{title}</h2> | |
| 159 | <h1>{title}</h1> | |
| 160 | 160 | |
| 161 | 161 | {intro && ( |
| 162 | 162 | <section class="intro"> |
| @@ -187,7 +187,7 @@ const { previous, next } = makePaginationLinks(); | ||
| 187 | 187 | |
| 188 | 188 | {notableMentions && ( |
| 189 | 189 | <section class="notable-mentions"> |
| 190 | <h3>Notable Mentions</h3> | |
| 190 | <h2>Notable Mentions</h2> | |
| 191 | 191 | { Array.isArray(notableMentions) ? |
| 192 | 192 | <ul> |
| 193 | 193 | {notableMentions.map((mention) => ( |
| @@ -207,20 +207,20 @@ const { previous, next } = makePaginationLinks(); | ||
| 207 | 207 | |
| 208 | 208 | {furtherInfo && ( |
| 209 | 209 | <section class="further-info"> |
| 210 | <h3>Notes</h3> | |
| 210 | <h2>Notes</h2> | |
| 211 | 211 | <p set:html={parseMarkdown(furtherInfo)}></p> |
| 212 | 212 | </section> |
| 213 | 213 | )} |
| 214 | 214 | |
| 215 | 215 | {wordOfWarning && ( |
| 216 | 216 | <section class="word-of-warning"> |
| 217 | <h3>Word of Warning</h3> | |
| 217 | <h2>Word of Warning</h2> | |
| 218 | 218 | <p set:html={parseMarkdown(wordOfWarning)}></p> |
| 219 | 219 | </section> |
| 220 | 220 | )} |
| 221 | 221 | |
| 222 | 222 | {services.length > 0 && (<section class="submit-alternative"> |
| 223 | <h3>Submit New Entry</h3> | |
| 223 | <h2>Submit New Entry</h2> | |
| 224 | 224 | <p> |
| 225 | 225 | Are we missing anything? |
| 226 | 226 | You can help us improve this page, by <a href="/submit">submitting a new entry</a> |
| @@ -257,7 +257,8 @@ section { | ||
| 257 | 257 | } |
| 258 | 258 | } |
| 259 | 259 | |
| 260 | h2 { | |
| 260 | h1 { | |
| 261 | font-family: var(--font-subtitle); | |
| 261 | 262 | font-size: var(--text-3xl); |
| 262 | 263 | margin: -2rem 0 var(--space-lg) -2rem; |
| 263 | 264 | box-shadow: var(--shadow-lg); |
web/src/pages/about.astro +9 −12
| @@ -64,6 +64,7 @@ const licenseContent = async () => { | ||
| 64 | 64 | <Layout title="About | Awesome Privacy" description={appDescription}> |
| 65 | 65 | <div class="about-page"> |
| 66 | 66 | <Main> |
| 67 | <h1 class="page-title">About Awesome Privacy</h1> | |
| 67 | 68 | <h2 id="objective">Objective</h2> |
| 68 | 69 | <p> |
| 69 | 70 | Large data-hungry corporations dominate the digital world but with |
| @@ -137,7 +138,7 @@ const licenseContent = async () => { | ||
| 137 | 138 | target="_blank" |
| 138 | 139 | rel="noreferrer" |
| 139 | 140 | > |
| 140 | <img src={sponsor.avatarUrl} alt={sponsor.login} /> | |
| 141 | <img src={sponsor.avatarUrl} alt={sponsor.login || ""} width="80" height="80" loading="lazy" /> | |
| 141 | 142 | <p>{sponsor.name || sponsor.login}</p> |
| 142 | 143 | </a> |
| 143 | 144 | ))} |
| @@ -146,8 +147,7 @@ const licenseContent = async () => { | ||
| 146 | 147 | <img |
| 147 | 148 | class="fallback-img" |
| 148 | 149 | 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" /> | |
| 151 | 151 | ) |
| 152 | 152 | } |
| 153 | 153 | |
| @@ -167,7 +167,7 @@ const licenseContent = async () => { | ||
| 167 | 167 | target="_blank" |
| 168 | 168 | rel="noreferrer" |
| 169 | 169 | > |
| 170 | <img src={contributor.avatar_url} alt={contributor.login} /> | |
| 170 | <img src={contributor.avatar_url} alt={contributor.login || ""} width="80" height="80" loading="lazy" /> | |
| 171 | 171 | <p>{contributor.login}</p> |
| 172 | 172 | </a> |
| 173 | 173 | ))} |
| @@ -176,8 +176,7 @@ const licenseContent = async () => { | ||
| 176 | 176 | <img |
| 177 | 177 | class="fallback-img" |
| 178 | 178 | 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" /> | |
| 181 | 180 | ) |
| 182 | 181 | } |
| 183 | 182 | |
| @@ -235,8 +234,7 @@ const licenseContent = async () => { | ||
| 235 | 234 | width="180" |
| 236 | 235 | height="240" |
| 237 | 236 | 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" /> | |
| 240 | 238 | </a> |
| 241 | 239 | <div class="socials"> |
| 242 | 240 | { |
| @@ -273,8 +271,7 @@ const licenseContent = async () => { | ||
| 273 | 271 | width="20" |
| 274 | 272 | height="20" |
| 275 | 273 | alt={project.title} |
| 276 | src={project.icon} | |
| 277 | /> | |
| 274 | src={project.icon} loading="lazy" /> | |
| 278 | 275 | <a href={project.link} target="_blank" rel="noreferrer"> |
| 279 | 276 | {project.title} |
| 280 | 277 | </a>{' '} |
| @@ -369,7 +366,7 @@ const licenseContent = async () => { | ||
| 369 | 366 | font-size: var(--text-sm); |
| 370 | 367 | opacity: var(--opacity-soft); |
| 371 | 368 | :global(a) { |
| 372 | color: var(--accent-3); | |
| 369 | color: var(--accent-3-text); | |
| 373 | 370 | } |
| 374 | 371 | } |
| 375 | 372 | :global(code) { |
| @@ -450,7 +447,7 @@ const licenseContent = async () => { | ||
| 450 | 447 | font-size: var(--text-lg); |
| 451 | 448 | font-style: italic; |
| 452 | 449 | font-weight: 300; |
| 453 | color: var(--accent-3); | |
| 450 | color: var(--accent-3-text); | |
| 454 | 451 | text-align: center; |
| 455 | 452 | max-width: 550px; |
| 456 | 453 | margin: 0 auto; |
web/src/pages/all.astro +9 −8
| @@ -44,6 +44,7 @@ const categories = (await fetchData() as AwesomePrivacy)?.categories || []; | ||
| 44 | 44 | </aside> |
| 45 | 45 | |
| 46 | 46 | <main> |
| 47 | <h1 class="page-title">All Listings</h1> | |
| 47 | 48 | {categories.map((category) => ( |
| 48 | 49 | <Fragment> |
| 49 | 50 | <h2 id={slugify(category.name)}> |
| @@ -164,7 +165,7 @@ const categories = (await fetchData() as AwesomePrivacy)?.categories || []; | ||
| 164 | 165 | width: 100%; |
| 165 | 166 | padding: var(--space-sm) var(--space-md); |
| 166 | 167 | background: var(--accent-3); |
| 167 | color: var(--accent-fg); | |
| 168 | color: var(--accent-3-fg); | |
| 168 | 169 | font-family: var(--font-subtitle); |
| 169 | 170 | font-size: var(--text-md); |
| 170 | 171 | font-weight: bold; |
| @@ -209,8 +210,8 @@ const categories = (await fetchData() as AwesomePrivacy)?.categories || []; | ||
| 209 | 210 | transition: var(--transition-fast); |
| 210 | 211 | display: block; |
| 211 | 212 | 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; } | |
| 214 | 215 | } |
| 215 | 216 | } |
| 216 | 217 | } |
| @@ -230,11 +231,11 @@ const categories = (await fetchData() as AwesomePrivacy)?.categories || []; | ||
| 230 | 231 | justify-content: center; |
| 231 | 232 | align-items: center; |
| 232 | 233 | gap: var(--space-md); |
| 233 | a { color: var(--accent-3); text-decoration: none; } | |
| 234 | a { color: var(--accent-3-text); text-decoration: none; } | |
| 234 | 235 | :global(svg) { |
| 235 | 236 | width: var(--text-4xl); |
| 236 | 237 | height: var(--text-4xl); |
| 237 | color: var(--accent-3); | |
| 238 | color: var(--accent-3-text); | |
| 238 | 239 | } |
| 239 | 240 | } |
| 240 | 241 | |
| @@ -260,7 +261,7 @@ const categories = (await fetchData() as AwesomePrivacy)?.categories || []; | ||
| 260 | 261 | } |
| 261 | 262 | |
| 262 | 263 | .nothing-yet { |
| 263 | background: var(--accent-fg); | |
| 264 | background: var(--surface); | |
| 264 | 265 | border: var(--border-heavy); |
| 265 | 266 | box-shadow: var(--shadow-lg); |
| 266 | 267 | border-radius: var(--curve-sm); |
| @@ -270,7 +271,7 @@ const categories = (await fetchData() as AwesomePrivacy)?.categories || []; | ||
| 270 | 271 | font-style: italic; |
| 271 | 272 | text-align: center; |
| 272 | 273 | margin: var(--space-2xl) auto; |
| 273 | a { color: var(--accent); } | |
| 274 | a { color: var(--accent-text); } | |
| 274 | 275 | } |
| 275 | 276 | } |
| 276 | 277 | } |
| @@ -284,7 +285,7 @@ const categories = (await fetchData() as AwesomePrivacy)?.categories || []; | ||
| 284 | 285 | overflow: visible; |
| 285 | 286 | border: var(--border-heavy); |
| 286 | 287 | box-shadow: var(--shadow-lg); |
| 287 | background: var(--accent-fg); | |
| 288 | background: var(--surface); | |
| 288 | 289 | border-radius: var(--curve-sm); |
| 289 | 290 | |
| 290 | 291 | .toc-toggle { display: block; } |
web/src/pages/browse.astro +9 −9
| @@ -10,7 +10,7 @@ const categories: Category[] = (await fetchData())?.categories; | ||
| 10 | 10 | |
| 11 | 11 | <Layout title="Browse"> |
| 12 | 12 | <div class="head-wrap"> |
| 13 | <h2>Browse</h2> | |
| 13 | <h1>Browse</h1> | |
| 14 | 14 | <span> |
| 15 | 15 | <input |
| 16 | 16 | id="searchInput" |
| @@ -32,7 +32,7 @@ const categories: Category[] = (await fetchData())?.categories; | ||
| 32 | 32 | { |
| 33 | 33 | categories.map((category) => ( |
| 34 | 34 | <li class="category"> |
| 35 | <SectionList title={category.name} sections={category.sections} /> | |
| 35 | <SectionList title={category.name} sections={category.sections} headingLevel={2} /> | |
| 36 | 36 | </li> |
| 37 | 37 | )) |
| 38 | 38 | } |
| @@ -138,19 +138,19 @@ const categories: Category[] = (await fetchData())?.categories; | ||
| 138 | 138 | border-radius: var(--curve-sm); |
| 139 | 139 | font-size: var(--text-md); |
| 140 | 140 | box-shadow: var(--shadow-sm); |
| 141 | color: var(--accent-3); | |
| 141 | color: var(--accent-3-text); | |
| 142 | 142 | background: var(--background-form); |
| 143 | 143 | &:focus { |
| 144 | 144 | outline: none; |
| 145 | 145 | box-shadow: var(--shadow-sm-hover); |
| 146 | 146 | } |
| 147 | 147 | } |
| 148 | h2 { | |
| 148 | h1 { | |
| 149 | 149 | font-family: var(--font-subtitle); |
| 150 | 150 | font-weight: bold; |
| 151 | 151 | font-size: var(--text-4xl); |
| 152 | 152 | margin: 0; |
| 153 | color: var(--accent-3); | |
| 153 | color: var(--accent-3-text); | |
| 154 | 154 | } |
| 155 | 155 | } |
| 156 | 156 | |
| @@ -158,7 +158,7 @@ const categories: Category[] = (await fetchData())?.categories; | ||
| 158 | 158 | margin: 0 auto; |
| 159 | 159 | width: 85vw; |
| 160 | 160 | a { |
| 161 | color: var(--accent-3); | |
| 161 | color: var(--accent-3-text); | |
| 162 | 162 | } |
| 163 | 163 | } |
| 164 | 164 | |
| @@ -169,7 +169,7 @@ const categories: Category[] = (await fetchData())?.categories; | ||
| 169 | 169 | display: none; |
| 170 | 170 | .zilch { |
| 171 | 171 | font-size: var(--text-3xl); |
| 172 | color: var(--accent-3); | |
| 172 | color: var(--accent-3-text); | |
| 173 | 173 | opacity: var(--opacity-dim); |
| 174 | 174 | font-weight: bold; |
| 175 | 175 | } |
| @@ -190,7 +190,7 @@ const categories: Category[] = (await fetchData())?.categories; | ||
| 190 | 190 | width: 95%; |
| 191 | 191 | } |
| 192 | 192 | .category { |
| 193 | background: var(--accent-fg); | |
| 193 | background: var(--surface); | |
| 194 | 194 | border: var(--border-heavy); |
| 195 | 195 | border-radius: var(--curve-sm); |
| 196 | 196 | box-shadow: var(--shadow-md); |
| @@ -217,7 +217,7 @@ const categories: Category[] = (await fetchData())?.categories; | ||
| 217 | 217 | color: var(--foreground); |
| 218 | 218 | } |
| 219 | 219 | .service-count { |
| 220 | color: var(--accent-3); | |
| 220 | color: var(--accent-3-text); | |
| 221 | 221 | } |
| 222 | 222 | } |
| 223 | 223 | } |
web/src/pages/changelog.astro +4 −3
| @@ -14,7 +14,7 @@ const changelog = await fetchChangelog(); | ||
| 14 | 14 | <div class="changelog-page"> |
| 15 | 15 | <Main> |
| 16 | 16 | <div class="changelog-head"> |
| 17 | <h2>Changelog</h2> | |
| 17 | <h1>Changelog</h1> | |
| 18 | 18 | <a |
| 19 | 19 | class="rss-link" |
| 20 | 20 | href="/rss.xml" |
| @@ -64,7 +64,8 @@ const changelog = await fetchChangelog(); | ||
| 64 | 64 | gap: var(--space-md); |
| 65 | 65 | flex-wrap: wrap; |
| 66 | 66 | } |
| 67 | h2 { | |
| 67 | h1 { | |
| 68 | font-family: var(--font-subtitle); | |
| 68 | 69 | font-size: var(--text-3xl); |
| 69 | 70 | margin: 0; |
| 70 | 71 | } |
| @@ -76,7 +77,7 @@ const changelog = await fetchChangelog(); | ||
| 76 | 77 | font-size: var(--text-sm); |
| 77 | 78 | font-weight: bold; |
| 78 | 79 | text-decoration: none; |
| 79 | color: var(--accent-fg); | |
| 80 | color: var(--accent-3-fg); | |
| 80 | 81 | background: var(--accent-3); |
| 81 | 82 | border: var(--border-light); |
| 82 | 83 | box-shadow: var(--shadow-sm); |
web/src/pages/index.astro +7 −7
| @@ -103,7 +103,7 @@ const description = | ||
| 103 | 103 | display: flex; |
| 104 | 104 | align-items: end; |
| 105 | 105 | gap: var(--space-md); |
| 106 | background: var(--accent-fg); | |
| 106 | background: var(--surface); | |
| 107 | 107 | border: var(--border-heavy); |
| 108 | 108 | border-radius: var(--curve-sm); |
| 109 | 109 | box-shadow: var(--shadow-lg); |
| @@ -126,7 +126,7 @@ const description = | ||
| 126 | 126 | flex-shrink: 0; |
| 127 | 127 | padding: var(--space-sm) var(--space-lg); |
| 128 | 128 | background: var(--accent-3); |
| 129 | color: var(--accent-fg); | |
| 129 | color: var(--accent-3-fg); | |
| 130 | 130 | font-family: var(--font-subtitle); |
| 131 | 131 | font-size: var(--text-md); |
| 132 | 132 | font-weight: bold; |
| @@ -154,19 +154,19 @@ const description = | ||
| 154 | 154 | |
| 155 | 155 | h2 { |
| 156 | 156 | font-size: var(--text-4xl); |
| 157 | color: var(--accent-3); | |
| 157 | color: var(--accent-3-text); | |
| 158 | 158 | font-family: var(--font-subtitle); |
| 159 | 159 | text-align: center; |
| 160 | 160 | margin: var(--space-xl) 0 var(--space-md) 0; |
| 161 | 161 | a { |
| 162 | 162 | text-decoration: none; |
| 163 | color: var(--accent-3); | |
| 163 | color: var(--accent-3-text); | |
| 164 | 164 | @include underline-hover(var(--accent)); |
| 165 | 165 | } |
| 166 | 166 | } |
| 167 | 167 | |
| 168 | 168 | .about-summary { |
| 169 | background: var(--accent-fg); | |
| 169 | background: var(--surface); | |
| 170 | 170 | border: var(--border-heavy); |
| 171 | 171 | border-radius: var(--curve-sm); |
| 172 | 172 | box-shadow: var(--shadow-md); |
| @@ -186,7 +186,7 @@ const description = | ||
| 186 | 186 | column-gap: var(--space-md); |
| 187 | 187 | padding: 0; |
| 188 | 188 | .category { |
| 189 | background: var(--accent-fg); | |
| 189 | background: var(--surface); | |
| 190 | 190 | border: var(--border-heavy); |
| 191 | 191 | border-radius: var(--curve-sm); |
| 192 | 192 | box-shadow: var(--shadow-md); |
| @@ -217,7 +217,7 @@ const description = | ||
| 217 | 217 | color: var(--foreground); |
| 218 | 218 | } |
| 219 | 219 | .service-count { |
| 220 | color: var(--accent-3); | |
| 220 | color: var(--accent-3-text); | |
| 221 | 221 | } |
| 222 | 222 | } |
| 223 | 223 | } |
web/src/pages/inventory/[...inventoryId].astro +1 −1
| @@ -74,7 +74,7 @@ if (serviceList.error) { | ||
| 74 | 74 | font-weight: bold; |
| 75 | 75 | font-size: var(--text-4xl); |
| 76 | 76 | margin: 0; |
| 77 | color: var(--accent-3); | |
| 77 | color: var(--accent-3-text); | |
| 78 | 78 | } |
| 79 | 79 | .buttons { |
| 80 | 80 | margin: var(--space-md) auto; |
web/src/pages/inventory/index.astro +2 −2
| @@ -13,8 +13,8 @@ const categories = (await fetchData())?.categories || ([] as Category[]); | ||
| 13 | 13 | |
| 14 | 14 | <Layout title="Saved Services"> |
| 15 | 15 | <main> |
| 16 | <h1 class="sr-only">Saved Services</h1> | |
| 16 | 17 | <div class="top-row"> |
| 17 | <!-- <h2>Inventory</h2> --> | |
| 18 | 18 | <EditableTitle client:load /> |
| 19 | 19 | <GetSharableLink client:load /> |
| 20 | 20 | </div> |
| @@ -48,7 +48,7 @@ const categories = (await fetchData())?.categories || ([] as Category[]); | ||
| 48 | 48 | font-weight: bold; |
| 49 | 49 | font-size: var(--text-4xl); |
| 50 | 50 | margin: 0; |
| 51 | color: var(--accent-3); | |
| 51 | color: var(--accent-3-text); | |
| 52 | 52 | } |
| 53 | 53 | .buttons { |
| 54 | 54 | margin: var(--space-md) auto; |
web/src/pages/search/[...searchTerm].astro +4 −4
| @@ -121,7 +121,7 @@ const beer = putResultsIntoGroups(); | ||
| 121 | 121 | |
| 122 | 122 | h1 { |
| 123 | 123 | font-size: var(--text-4xl); |
| 124 | color: var(--accent-3); | |
| 124 | color: var(--accent-3-text); | |
| 125 | 125 | font-family: var(--font-subtitle); |
| 126 | 126 | text-align: center; |
| 127 | 127 | margin: var(--space-md) 0; |
| @@ -134,7 +134,7 @@ const beer = putResultsIntoGroups(); | ||
| 134 | 134 | margin: var(--space-md) auto 0 auto; |
| 135 | 135 | h3 { |
| 136 | 136 | margin: 0; |
| 137 | color: var(--accent-3); | |
| 137 | color: var(--accent-3-text); | |
| 138 | 138 | font-size: var(--text-xl); |
| 139 | 139 | } |
| 140 | 140 | p { |
| @@ -153,7 +153,7 @@ const beer = putResultsIntoGroups(); | ||
| 153 | 153 | .category { |
| 154 | 154 | padding: var(--space-md); |
| 155 | 155 | box-shadow: var(--shadow-md); |
| 156 | background: var(--accent-fg); | |
| 156 | background: var(--surface); | |
| 157 | 157 | border: var(--border-heavy); |
| 158 | 158 | border-radius: var(--curve-sm); |
| 159 | 159 | display: inline-flex; |
| @@ -183,7 +183,7 @@ const beer = putResultsIntoGroups(); | ||
| 183 | 183 | height: var(--text-3xl); |
| 184 | 184 | opacity: var(--opacity-dim); |
| 185 | 185 | text-shadow: 3px 3px 0 black; |
| 186 | color: var(--accent-3); | |
| 186 | color: var(--accent-3-text); | |
| 187 | 187 | transition: var(--transition-normal); |
| 188 | 188 | } |
| 189 | 189 | } |
web/src/pages/search/index.astro +2 −2
| @@ -24,7 +24,7 @@ const categories = (await fetchData())?.categories; | ||
| 24 | 24 | display: flex; |
| 25 | 25 | flex-direction: column; |
| 26 | 26 | box-shadow: var(--shadow-md); |
| 27 | background: var(--accent-fg); | |
| 27 | background: var(--surface); | |
| 28 | 28 | border: var(--border-heavy); |
| 29 | 29 | border-radius: var(--curve-sm); |
| 30 | 30 | margin: var(--space-lg) auto; |
| @@ -35,7 +35,7 @@ const categories = (await fetchData())?.categories; | ||
| 35 | 35 | |
| 36 | 36 | h1 { |
| 37 | 37 | font-size: var(--text-4xl); |
| 38 | color: var(--accent-3); | |
| 38 | color: var(--accent-3-text); | |
| 39 | 39 | font-family: var(--font-subtitle); |
| 40 | 40 | text-align: center; |
| 41 | 41 | margin: var(--space-md) 0; |
web/src/pages/sitemap.astro +6 −6
| @@ -8,7 +8,7 @@ const categories = ((await fetchData()) as AwesomePrivacy)?.categories || []; | ||
| 8 | 8 | |
| 9 | 9 | <Layout title="All Links | Awesome Privacy"> |
| 10 | 10 | <main> |
| 11 | <h2>Sitemap</h2> | |
| 11 | <h1>Sitemap</h1> | |
| 12 | 12 | <p> |
| 13 | 13 | Below is a full listing of all pages on this site.<br /> |
| 14 | 14 | <small |
| @@ -151,7 +151,7 @@ const categories = ((await fetchData()) as AwesomePrivacy)?.categories || []; | ||
| 151 | 151 | padding: 0 var(--space-lg); |
| 152 | 152 | border: var(--border-heavy); |
| 153 | 153 | box-shadow: var(--shadow-lg); |
| 154 | background: var(--accent-fg); | |
| 154 | background: var(--surface); | |
| 155 | 155 | position: relative; |
| 156 | 156 | p { |
| 157 | 157 | font-size: var(--text-lg); |
| @@ -168,8 +168,7 @@ const categories = ((await fetchData()) as AwesomePrivacy)?.categories || []; | ||
| 168 | 168 | ul { |
| 169 | 169 | padding-left: 1.2rem; |
| 170 | 170 | list-style: none; |
| 171 | border-left: 3px solid var(--transparent-accent); | |
| 172 | border-radius: 4px; | |
| 171 | border-left: 1px solid var(--surface-line); | |
| 173 | 172 | li { |
| 174 | 173 | font-weight: 600; |
| 175 | 174 | ul li { |
| @@ -197,7 +196,8 @@ const categories = ((await fetchData()) as AwesomePrivacy)?.categories || []; | ||
| 197 | 196 | } |
| 198 | 197 | } |
| 199 | 198 | |
| 200 | h2 { | |
| 199 | h1 { | |
| 200 | font-family: var(--font-subtitle); | |
| 201 | 201 | font-size: var(--text-3xl); |
| 202 | 202 | margin: -2rem 0 var(--space-lg) -4rem; |
| 203 | 203 | box-shadow: var(--shadow-lg); |
| @@ -233,7 +233,7 @@ const categories = ((await fetchData()) as AwesomePrivacy)?.categories || []; | ||
| 233 | 233 | border-radius: var(--curve-sm); |
| 234 | 234 | font-size: var(--text-base); |
| 235 | 235 | box-shadow: var(--shadow-sm); |
| 236 | color: var(--accent-3); | |
| 236 | color: var(--accent-3-text); | |
| 237 | 237 | background: var(--background-form); |
| 238 | 238 | &:focus { |
| 239 | 239 | outline: none; |
web/src/pages/submit.astro +4 −3
| @@ -11,8 +11,9 @@ const commits = ((await fetchGitHubStats('lissy93/awesome-privacy')) || {}) | ||
| 11 | 11 | const isDisabled = true; // will set this back to false if/when we have better way to manage the AI spam |
| 12 | 12 | --- |
| 13 | 13 | |
| 14 | <Layout title="Awesome Privacy"> | |
| 14 | <Layout title="Submit a Change | Awesome Privacy"> | |
| 15 | 15 | <section> |
| 16 | <h1 class="page-title">Submit a Change</h1> | |
| 16 | 17 | <h2>About our Data</h2> |
| 17 | 18 | <p class="about-data"> |
| 18 | 19 | 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 | ||
| 115 | 116 | <li title={commit.sha}> |
| 116 | 117 | {commit.message} |
| 117 | 118 | <br /> |
| 118 | <img width="14" src={commit.authorAvatar} alt="" /> | |
| 119 | <img width="14" src={commit.authorAvatar} alt="" loading="lazy" /> | |
| 119 | 120 | <small> |
| 120 | 121 | By{' '} |
| 121 | 122 | <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 | ||
| 147 | 148 | padding: 0 var(--space-lg); |
| 148 | 149 | border: var(--border-heavy); |
| 149 | 150 | box-shadow: var(--shadow-lg); |
| 150 | background: var(--accent-fg); | |
| 151 | background: var(--surface); | |
| 151 | 152 | border-radius: var(--curve-sm); |
| 152 | 153 | @media (max-width: 768px) { |
| 153 | 154 | max-width: 95%; |
web/src/styles/typography.css +5 −17
| @@ -86,25 +86,13 @@ | ||
| 86 | 86 | url('/fonts/Lekton/Lekton-Bold.ttf') format('truetype'); |
| 87 | 87 | } |
| 88 | 88 | |
| 89 | html { | |
| 90 | font-family: system-ui, sans-serif; | |
| 91 | } | |
| 92 | ||
| 93 | 89 | code { |
| 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); | |
| 103 | 91 | } |
| 104 | 92 | |
| 105 | 93 | .heading, |
| 106 | 94 | h1 { |
| 107 | font-family: 'Libre Franklin', sans-serif; | |
| 95 | font-family: var(--font-heading); | |
| 108 | 96 | font-optical-sizing: auto; |
| 109 | 97 | font-weight: 800; |
| 110 | 98 | font-style: normal; |
| @@ -116,7 +104,7 @@ h3, | ||
| 116 | 104 | h4, |
| 117 | 105 | h5, |
| 118 | 106 | h6 { |
| 119 | font-family: 'Lekton', sans-serif; | |
| 107 | font-family: var(--font-subtitle); | |
| 120 | 108 | font-weight: 700; |
| 121 | 109 | font-style: normal; |
| 122 | 110 | } |
| @@ -132,9 +120,9 @@ blockquote, | ||
| 132 | 120 | pre, |
| 133 | 121 | strong, |
| 134 | 122 | i { |
| 135 | font-family: 'Rubik', sans-serif; | |
| 123 | font-family: var(--font-body); | |
| 136 | 124 | } |
| 137 | 125 | |
| 138 | 126 | a { |
| 139 | color: var(--accent); | |
| 127 | color: var(--accent-text); | |
| 140 | 128 | } |
web/src/styles/values.css +45 −12
| @@ -1,14 +1,26 @@ | ||
| 1 | 1 | html { |
| 2 | --accent: #f45397; | |
| 3 | --accent-fg: #1e1f21; | |
| 2 | --ink-dark: #1e1f21; | |
| 3 | --ink-light: #fff; | |
| 4 | 4 | |
| 5 | --accent: #f45397; | |
| 5 | 6 | --accent-2: #ffdf60; |
| 6 | 7 | --accent-3: #5f53f4; |
| 7 | 8 | --accent-4: #28dffd; |
| 8 | 9 | |
| 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 | ||
| 9 | 20 | --bright: #fff; |
| 10 | 21 | |
| 11 | 22 | --foreground: #fff; |
| 23 | --foreground-muted: #b9b9c0; | |
| 12 | 24 | --background-hr-color: #2f2f2f; |
| 13 | 25 | |
| 14 | 26 | --curve-sm: 4px; |
| @@ -29,6 +41,8 @@ html { | ||
| 29 | 41 | --bg-gradient-comp-1: #151517; |
| 30 | 42 | --bg-gradient-comp-2: #151517; |
| 31 | 43 | --background-form: #19191c; |
| 44 | --surface: #1e1f21; | |
| 45 | --surface-line: #ffffff1f; | |
| 32 | 46 | |
| 33 | 47 | --box-outline: #000; |
| 34 | 48 | |
| @@ -48,7 +62,7 @@ html { | ||
| 48 | 62 | --border-heavy: 2px solid var(--box-outline); |
| 49 | 63 | --border-light: 1px solid var(--box-outline); |
| 50 | 64 | |
| 51 | --font-code: 'Courier New', Courier, monospace; | |
| 65 | --font-code: Menlo, Monaco, 'Liberation Mono', 'Courier New', monospace; | |
| 52 | 66 | |
| 53 | 67 | --text-xs: 0.75rem; |
| 54 | 68 | --text-sm: 0.85rem; |
| @@ -68,7 +82,7 @@ html { | ||
| 68 | 82 | --space-xl: 3rem; |
| 69 | 83 | --space-2xl: 4rem; |
| 70 | 84 | |
| 71 | --opacity-dim: 0.5; | |
| 85 | --opacity-dim: 0.65; | |
| 72 | 86 | --opacity-muted: 0.6; |
| 73 | 87 | --opacity-soft: 0.7; |
| 74 | 88 | --opacity-subtle: 0.8; |
| @@ -85,10 +99,10 @@ html { | ||
| 85 | 99 | --rating-c: #c7cc22; |
| 86 | 100 | --rating-d: #e1bb23; |
| 87 | 101 | --rating-e: #df8b1e; |
| 88 | --rating-f: #df541e; | |
| 89 | --rating-g: #df1e1e; | |
| 102 | --rating-f: #f2703a; | |
| 103 | --rating-g: #f8524f; | |
| 90 | 104 | --rating-neutral: #ecd40f; |
| 91 | --rating-unknown: grey; | |
| 105 | --rating-unknown: #9a9aa2; | |
| 92 | 106 | |
| 93 | 107 | --changelog-add: #6fdd8b; |
| 94 | 108 | --changelog-rem: #fdcc0b; |
| @@ -96,17 +110,36 @@ html { | ||
| 96 | 110 | --changelog-rej: #ff2d55; |
| 97 | 111 | |
| 98 | 112 | &[data-theme='light'] { |
| 99 | --accent-fg: #fff; | |
| 113 | --accent-text: #c2185b; | |
| 114 | --accent-3-text: #5346e8; | |
| 115 | ||
| 100 | 116 | --foreground: #13151a; |
| 117 | --foreground-muted: #55565e; | |
| 101 | 118 | --background: #f1ebf1; |
| 102 | 119 | --bg-gradient-comp-1: #feecff; |
| 103 | 120 | --bg-gradient-comp-2: #e1e4fb; |
| 104 | 121 | --background-form: #fff; |
| 122 | --surface: #fff; | |
| 123 | --surface-line: #0000001f; | |
| 105 | 124 | --background-hr-color: #ececec; |
| 106 | 125 | |
| 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; | |
| 111 | 144 | } |
| 112 | 145 | } |