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