Commit b7c93b1005

b7c93b10053b019f9899b2cfc0173e56814d03b0

parent: faee68e333

Unsigned

Alicia Sykes <alicia@omg.lol> · 2024-03-24 13:03 UTC

Updates variables used, to allow for better dark mode

Layout: unified · split

web/src/components/Card.astro +3 −3
@@ -23,14 +23,14 @@ const { href, title, body } = Astro.props;
23 .link-card { 23 .link-card {
24 color: var(--foreground); 24 color: var(--foreground);
25 background: var(--background); 25 background: var(--background);
26 border: 2px solid var(--foreground); 26 border: 2px solid var(--box-outline);
27 box-shadow: 6px 6px 0 var(--foreground); 27 box-shadow: 6px 6px 0 var(--box-outline);
28 font-family: "Lekton", sans-serif; 28 font-family: "Lekton", sans-serif;
29 font-weight: 700; 29 font-weight: 700;
30 transition: all ease-in-out 0.1s; 30 transition: all ease-in-out 0.1s;
31 list-style: none; 31 list-style: none;
32 &:hover { 32 &:hover {
33 box-shadow: 8px 8px 0 var(--foreground); 33 box-shadow: 8px 8px 0 var(--box-outline);
34 background: var(--accent); 34 background: var(--accent);
35 color: var(--background); 35 color: var(--background);
36 36
web/src/components/Hero.astro +6 −6
@@ -72,8 +72,8 @@ import FontAwesome from "@components/form/FontAwesome.svelte"
72 color: var(--accent-3); 72 color: var(--accent-3);
73 -webkit-text-fill-color: var(--accent-3); 73 -webkit-text-fill-color: var(--accent-3);
74 -webkit-text-stroke-width: 2px; 74 -webkit-text-stroke-width: 2px;
75 -webkit-text-stroke-color: var(--foreground); 75 -webkit-text-stroke-color: var(--box-outline);
76 text-shadow: 3px 3px 0 var(--foreground); 76 text-shadow: 3px 3px 0 var(--box-outline);
77 @media(max-width: 768px) { 77 @media(max-width: 768px) {
78 font-size: 4rem; 78 font-size: 4rem;
79 } 79 }
@@ -84,9 +84,9 @@ import FontAwesome from "@components/form/FontAwesome.svelte"
84 padding: 0.5rem 1rem; 84 padding: 0.5rem 1rem;
85 color: var(--accent-fg); 85 color: var(--accent-fg);
86 background: var(--accent-3); 86 background: var(--accent-3);
87 border: 2px solid var(--foreground); 87 border: 2px solid var(--box-outline);
88 border-radius: var(--curve-sm); 88 border-radius: var(--curve-sm);
89 box-shadow: 6px 6px 0 var(--foreground); 89 box-shadow: 6px 6px 0 var(--box-outline);
90 font-family: "Lekton", sans-serif; 90 font-family: "Lekton", sans-serif;
91 font-weight: 700; 91 font-weight: 700;
92 max-width: 735px; 92 max-width: 735px;
@@ -97,8 +97,8 @@ import FontAwesome from "@components/form/FontAwesome.svelte"
97 max-width: 735px; 97 max-width: 735px;
98 text-align: center; 98 text-align: center;
99 margin: 0 auto; 99 margin: 0 auto;
100 border: 1px solid var(--foreground); 100 border: 1px solid var(--box-outline);
101 box-shadow: 3px 3px 0 var(--foreground); 101 box-shadow: 3px 3px 0 var(--box-outline);
102 background: var(--accent); 102 background: var(--accent);
103 border-radius: 18px; 103 border-radius: 18px;
104 padding: 0.5rem 1rem; 104 padding: 0.5rem 1rem;
web/src/components/form/Button.astro +3 −3
@@ -17,14 +17,14 @@ const {
17 .button { 17 .button {
18 font-family: "Lekton", sans-serif; 18 font-family: "Lekton", sans-serif;
19 text-align: center; 19 text-align: center;
20 border: 1px solid var(--foreground); 20 border: 1px solid var(--box-outline);
21 box-shadow: 3px 3px 0 var(--foreground); 21 box-shadow: 3px 3px 0 var(--box-outline);
22 background: var(--accent); 22 background: var(--accent);
23 border-radius: 18px; 23 border-radius: 18px;
24 padding: 0.5rem 1rem; 24 padding: 0.5rem 1rem;
25 transition: all 0.2s ease-in-out; 25 transition: all 0.2s ease-in-out;
26 &:hover { 26 &:hover {
27 box-shadow: 4px 4px 0 var(--foreground); 27 box-shadow: 4px 4px 0 var(--box-outline);
28 } 28 }
29 a { 29 a {
30 text-decoration: none; 30 text-decoration: none;
web/src/components/form/Social.astro +4 −3
@@ -97,10 +97,11 @@ const socialMedias = {
97 padding: 0; 97 padding: 0;
98 margin: 0; 98 margin: 0;
99 opacity: 0.8; 99 opacity: 0.8;
100 border: 1px solid var(--foreground); 100 border: 1px solid var(--box-outline);
101 box-shadow: 2px 2px 0 var(--foreground); 101 box-shadow: 2px 2px 0 var(--box-outline);
102 border-radius: var(--curve-sm); 102 border-radius: var(--curve-sm);
103 transition: all 0.2s ease-in-out; 103 transition: all 0.2s ease-in-out;
104 background: var(--background-form);
104 a { 105 a {
105 display: flex; 106 display: flex;
106 color: var(--foreground); 107 color: var(--foreground);
@@ -112,7 +113,7 @@ const socialMedias = {
112 } 113 }
113 } 114 }
114 &:hover { 115 &:hover {
115 box-shadow: 3px 3px 0 var(--foreground); 116 box-shadow: 3px 3px 0 var(--box-outline);
116 border-radius: var(--curve-md); 117 border-radius: var(--curve-md);
117 opacity: 1; 118 opacity: 1;
118 a { 119 a {
web/src/components/scafold/MainCard.astro +2 −2
@@ -10,8 +10,8 @@
10 padding: 1rem; 10 padding: 1rem;
11 width: 1000px; 11 width: 1000px;
12 max-width: calc(100% - 5rem); 12 max-width: calc(100% - 5rem);
13 border: 2px solid var(--foreground); 13 border: 2px solid var(--box-outline);
14 box-shadow: 6px 6px 0 var(--foreground); 14 box-shadow: 6px 6px 0 var(--box-outline);
15 background: var(--accent-fg); 15 background: var(--accent-fg);
16 position: relative; 16 position: relative;
17 } 17 }
web/src/components/scafold/NavBar.astro +3 −3
@@ -24,7 +24,7 @@ import FontAwesome from "@components/form/FontAwesome.svelte"
24 align-items: center; 24 align-items: center;
25 flex-wrap: wrap; 25 flex-wrap: wrap;
26 gap: 1rem; 26 gap: 1rem;
27 border-bottom: 2px solid var(--foreground); 27 border-bottom: 2px solid var(--accent-3);
28 28
29 .homepage { 29 .homepage {
30 text-decoration: none; 30 text-decoration: none;
@@ -62,13 +62,13 @@ import FontAwesome from "@components/form/FontAwesome.svelte"
62 font-family: "Lekton", sans-serif; 62 font-family: "Lekton", sans-serif;
63 font-weight: bold; 63 font-weight: bold;
64 color: var(--foreground); 64 color: var(--foreground);
65 border-left: 2px solid var(--foreground); 65 border-left: 2px solid var(--accent-3);
66 transition: background 0.3s, transform 0.3s, box-shadow 0.3s; 66 transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
67 transition-timing-function: ease-in-out; 67 transition-timing-function: ease-in-out;
68 &:hover { 68 &:hover {
69 background: var(--accent-3); 69 background: var(--accent-3);
70 color: var(--accent-fg); 70 color: var(--accent-fg);
71 border-bottom: 2px solid var(--foreground); 71 border-bottom: 2px solid var(--accent-3);
72 &:nth-child(4n+1) { 72 &:nth-child(4n+1) {
73 background-color: var(--accent); 73 background-color: var(--accent);
74 } 74 }
web/src/components/things/AddNewService.svelte +94 −6
@@ -11,6 +11,10 @@
11 const serviceDescription = writable(''); 11 const serviceDescription = writable('');
12 const serviceGithub = writable(''); 12 const serviceGithub = writable('');
13 const serviceTosdrId = writable(''); 13 const serviceTosdrId = writable('');
14 const serviceIosApp = writable('');
15 const serviceAndroidApp = writable('');
16 const serviceDiscordInvite = writable('');
17 const serviceSubreddit = writable('');
14 const serviceOpenSource = writable(false); 18 const serviceOpenSource = writable(false);
15 const serviceSecurityAudited = writable(false); 19 const serviceSecurityAudited = writable(false);
16 const serviceCrypto = writable(false); 20 const serviceCrypto = writable(false);
@@ -23,6 +27,10 @@
23 description: $serviceDescription, 27 description: $serviceDescription,
24 github: $serviceGithub, 28 github: $serviceGithub,
25 tosdrId: $serviceTosdrId, 29 tosdrId: $serviceTosdrId,
30 iosApp: $serviceIosApp,
31 androidApp: $serviceAndroidApp,
32 discordInvite: $serviceDiscordInvite,
33 subreddit: $serviceSubreddit,
26 openSource: $serviceOpenSource, 34 openSource: $serviceOpenSource,
27 securityAudited: $serviceSecurityAudited, 35 securityAudited: $serviceSecurityAudited,
28 acceptsCrypto: $serviceCrypto, 36 acceptsCrypto: $serviceCrypto,
@@ -36,6 +44,10 @@
36 serviceDescription: $serviceDescription, 44 serviceDescription: $serviceDescription,
37 serviceGithub: $serviceGithub, 45 serviceGithub: $serviceGithub,
38 serviceTosdrId: $serviceTosdrId, 46 serviceTosdrId: $serviceTosdrId,
47 serviceIosApp: $serviceIosApp,
48 serviceAndroidApp: $serviceAndroidApp,
49 serviceDiscordInvite: $serviceDiscordInvite,
50 serviceSubreddit: $serviceSubreddit,
39 serviceOpenSource: $serviceOpenSource, 51 serviceOpenSource: $serviceOpenSource,
40 serviceSecurityAudited: $serviceSecurityAudited, 52 serviceSecurityAudited: $serviceSecurityAudited,
41 serviceCrypto: $serviceCrypto, 53 serviceCrypto: $serviceCrypto,
@@ -56,6 +68,10 @@
56 serviceSecurityAudited: $serviceSecurityAudited, 68 serviceSecurityAudited: $serviceSecurityAudited,
57 serviceCrypto: $serviceCrypto, 69 serviceCrypto: $serviceCrypto,
58 additionalInfo: $additionalInfo, 70 additionalInfo: $additionalInfo,
71 serviceIosApp: $serviceIosApp,
72 serviceAndroidApp: $serviceAndroidApp,
73 serviceDiscordInvite: $serviceDiscordInvite,
74 serviceSubreddit: $serviceSubreddit,
59 }; 75 };
60 const issueCreationUrl = makeAdditionRequest(formData, yamlText); 76 const issueCreationUrl = makeAdditionRequest(formData, yamlText);
61 window.open(issueCreationUrl, '_blank'); 77 window.open(issueCreationUrl, '_blank');
@@ -70,6 +86,12 @@
70</p> 86</p>
71 87
72<form on:submit|preventDefault={handleSubmit}> 88<form on:submit|preventDefault={handleSubmit}>
89
90 <h3>Basics</h3>
91 <p class="sub-title-description">
92 All fields here are required.
93 </p>
94
73 <!-- Category Dropdown --> 95 <!-- Category Dropdown -->
74 <div class="form-row"> 96 <div class="form-row">
75 <label for="listing-category">Category</label> 97 <label for="listing-category">Category</label>
@@ -123,6 +145,16 @@
123 <p>Please provide a description for this listing. Keep it factual and objective. Markdown is supported.</p> 145 <p>Please provide a description for this listing. Keep it factual and objective. Markdown is supported.</p>
124 </div> 146 </div>
125 147
148 <!-- Section 2 -->
149 <h3>Third-Party Referencing</h3>
150 <p class="sub-title-description">
151 In order to create a comprehensive listing, we combine the data inputted above with other sources,
152 to give additional context and help users make informed decisions.
153 Metrics from these services are fetched automatically at build-time from our API.
154 <br />
155 All fields are optional, but the more information you provide, the better!
156 </p>
157
126 <!-- GitHub Repository --> 158 <!-- GitHub Repository -->
127 <div class="form-row"> 159 <div class="form-row">
128 <label for="service-github">GitHub Repository</label> 160 <label for="service-github">GitHub Repository</label>
@@ -144,6 +176,53 @@
144 </p> 176 </p>
145 </div> 177 </div>
146 178
179 <!-- Apple App Store URL -->
180 <div class="form-row">
181 <label for="service-tosdr-id">iOS App</label>
182 <input type="url" bind:value={$serviceIosApp} id="service-ios-app" autocomplete="off">
183 <p>
184 Paste the link to the mobile app on the Apple App Store.<br />
185 E.g. https://apps.apple.com/us/app/bitwarden-password-manager/id1137397744
186 </p>
187 </div>
188
189 <!-- Google Play App Store URL -->
190 <div class="form-row">
191 <label for="service-tosdr-id">Android App</label>
192 <input type="url" bind:value={$serviceAndroidApp} id="service-android-app" autocomplete="off">
193 <p>
194 Paste the link to the mobile app on the Google Play Store.<br />
195 E.g. https://play.google.com/store/apps/details?id=com.x8bit.bitwarden
196 </p>
197 </div>
198
199 <!-- Discord Server Invite Code -->
200 <div class="form-row">
201 <label for="service-tosdr-id">Discord Invite</label>
202 <input type="text" bind:value={$serviceDiscordInvite} id="service-discord-invite" autocomplete="off">
203 <p>
204 Paste the invite code to the Discord server for this service.<br />
205 E.g. If the invite URL is https://discord.com/invite/4JMAauFZBq the code is 4JMAauFZBq
206 </p>
207 </div>
208
209 <!-- Reddit sub name -->
210 <div class="form-row">
211 <label for="service-tosdr-id">Subreddit</label>
212 <input type="text" bind:value={$serviceSubreddit} id="service-subreddit" autocomplete="off">
213 <p>
214 If the service has a subreddit, please provide the name here.<br />
215 Don't include `r/` in the name, nor the full URL - just the sub name.
216 </p>
217 </div>
218
219 <!-- Section 3 - Checklist and details -->
220 <h3>Privacy Checklist</h3>
221 <p class="sub-title-description">
222 Finally, check the boxes that apply to the service you are submitting,
223 and then provide any additional information to back this up in the text area below.
224 </p>
225
147 <!-- Open Source Checkbox --> 226 <!-- Open Source Checkbox -->
148 <div class="form-row"> 227 <div class="form-row">
149 <label for="service-open-source">Is Open Source?</label> 228 <label for="service-open-source">Is Open Source?</label>
@@ -236,15 +315,17 @@
236 } 315 }
237 } 316 }
238 317
239 input, textarea { 318 input, textarea, select {
240 width: 100%; 319 width: 100%;
241 border: 1px solid var(--accent-3); 320 border: 1px solid var(--accent-3);
242 border-radius: var(--curve-md); 321 border-radius: var(--curve-md);
243 font-size: 1.2rem; 322 font-size: 1.2rem;
244 padding: 0.5rem 0; 323 padding: 0.5rem 0.25rem;
324 background: var(--background-form);
325 color: var(--foreground);
245 &:focus { 326 &:focus {
246 outline: none; 327 outline: none;
247 border: 2px solid var(--accent); 328 border: 1px solid var(--accent);
248 } 329 }
249 } 330 }
250 input { 331 input {
@@ -260,6 +341,7 @@
260 &[type="checkbox"] { 341 &[type="checkbox"] {
261 width: 2rem; 342 width: 2rem;
262 height: 2rem; 343 height: 2rem;
344 background: var(--background-form);
263 } 345 }
264 } 346 }
265 textarea { 347 textarea {
@@ -278,8 +360,8 @@
278 background: var(--accent-3); 360 background: var(--accent-3);
279 color: var(--accent-fg); 361 color: var(--accent-fg);
280 padding: 0.5rem 2rem; 362 padding: 0.5rem 2rem;
281 border: 1px solid var(--foreground); 363 border: 1px solid var(--box-outline);
282 box-shadow: 3px 3px 0 var(--foreground); 364 box-shadow: 3px 3px 0 var(--box-outline);
283 border-radius: var(--curve-lg); 365 border-radius: var(--curve-lg);
284 font-size: 1.8rem; 366 font-size: 1.8rem;
285 font-family: "Lekton", sans-serif; 367 font-family: "Lekton", sans-serif;
@@ -291,10 +373,16 @@
291 } 373 }
292 } 374 }
293 375
376 .sub-title-description {
377 margin-top: 0;
378 font-size: 0.8rem;
379 opacity: 0.6;
380 }
381
294 .output-yaml { 382 .output-yaml {
295 pre { 383 pre {
296 font-family: 'Courier New', Courier, monospace; 384 font-family: 'Courier New', Courier, monospace;
297 background: #cecbf780; 385 background: var(--background-form);
298 padding: 0.2rem 0.4rem; 386 padding: 0.2rem 0.4rem;
299 border-radius: var(--curve-sm); 387 border-radius: var(--curve-sm);
300 font-size: 0.9rem; 388 font-size: 0.9rem;
web/src/components/things/Comments.svelte +1 −1
@@ -2,7 +2,7 @@
2 <script async lang="javascript"> 2 <script async lang="javascript">
3 var remark_config = { 3 var remark_config = {
4 host: 'https://comments.as93.net', site_id: 'awesome-privacy.xyz', 4 host: 'https://comments.as93.net', site_id: 'awesome-privacy.xyz',
5 components: ['embed'], show_rss_subsription: true, theme: 'light', 5 components: ['embed'], show_rss_subsription: true, theme: 'dark',
6 }; 6 };
7 !(function (e, n) { 7 !(function (e, n) {
8 for (var o = 0; o < e.length; o++) { 8 for (var o = 0; o < e.length; o++) {
web/src/components/things/DataActions.svelte +3 −4
@@ -21,11 +21,10 @@
21 const getIframeSrc = () => { 21 const getIframeSrc = () => {
22 const host = 'https://github-embed.as93.net'; 22 const host = 'https://github-embed.as93.net';
23 const target = encodeURIComponent(getGitHubSrcFile()); 23 const target = encodeURIComponent(getGitHubSrcFile());
24 const opts = 'style=color-brewer&type=code&showBorder=on&showLineNumbers=on&showFileMeta=on&showFullPath=on&showCopy=on'; 24 const opts = 'style=felipec&type=code&showBorder=on&showLineNumbers=on&showFileMeta=on&showFullPath=on&showCopy=on';
25 return `${host}/iframe.html?target=${target}&${opts}`; 25 return `${host}/iframe.html?target=${target}&${opts}`;
26 }; 26 };
27 27
28
29 onMount(async () => { 28 onMount(async () => {
30 const results = await fetchSrcData(categoryName, sectionName, serviceName); 29 const results = await fetchSrcData(categoryName, sectionName, serviceName);
31 lineNumbers = results.lineNumbers 30 lineNumbers = results.lineNumbers
@@ -92,8 +91,8 @@
92 } 91 }
93 .button-link { 92 .button-link {
94 background: var(--accent-3); 93 background: var(--accent-3);
95 border: 1px solid var(--foreground); 94 border: 1px solid var(--box-outline);
96 box-shadow: 3px 3px 0 var(--foreground); 95 box-shadow: 3px 3px 0 var(--box-outline);
97 color: var(--accent-fg); 96 color: var(--accent-fg);
98 text-decoration: none; 97 text-decoration: none;
99 border-radius: 18px; 98 border-radius: 18px;
web/src/components/things/DockerDetailedInfo.astro +1 −1
@@ -224,7 +224,7 @@ const formatBigNumber = (num: number): string => {
224 224
225 pre { 225 pre {
226 font-family: 'Courier New', Courier, monospace; 226 font-family: 'Courier New', Courier, monospace;
227 background: #cecbf780; 227 background: var(--background-form);
228 padding: 0.6rem 1rem; 228 padding: 0.6rem 1rem;
229 border-radius: var(--curve-sm); 229 border-radius: var(--curve-sm);
230 font-size: 0.8rem; 230 font-size: 0.8rem;
web/src/components/things/Search.svelte +7 −5
@@ -139,10 +139,12 @@
139 input { 139 input {
140 padding: 0.5rem 1rem; 140 padding: 0.5rem 1rem;
141 font-size: 1.8rem; 141 font-size: 1.8rem;
142 border: 2px solid var(--foreground); 142 border: 2px solid var(--box-outline);
143 border-radius: var(--curve-lg); 143 border-radius: var(--curve-lg);
144 box-shadow: 3px 3px 0 var(--foreground); 144 box-shadow: 3px 3px 0 var(--box-outline);
145 z-index: 4; 145 z-index: 4;
146 background: var(--accent-fg);
147 color: var(--foreground);
146 &:focus { 148 &:focus {
147 outline: none; 149 outline: none;
148 border-color: var(--accent); 150 border-color: var(--accent);
@@ -153,16 +155,16 @@
153 .suggestions { 155 .suggestions {
154 ul { 156 ul {
155 position: absolute; 157 position: absolute;
156 background: white; 158 background: var(--background-form);
157 z-index: 3; 159 z-index: 3;
158 width: 100%; 160 width: 100%;
159 161
160 list-style: none; 162 list-style: none;
161 padding: 0; 163 padding: 0;
162 margin: 0; 164 margin: 0;
163 border: 2px solid var(--foreground); 165 border: 2px solid var(--box-outline);
164 border-radius: 0 0 var(--curve-lg) var(--curve-lg); 166 border-radius: 0 0 var(--curve-lg) var(--curve-lg);
165 box-shadow: 3px 3px 0 var(--foreground); 167 box-shadow: 3px 3px 0 var(--box-outline);
166 transform: translateY(-0.5rem); 168 transform: translateY(-0.5rem);
167 max-height: 500px; 169 max-height: 500px;
168 overflow-y: scroll; 170 overflow-y: scroll;
web/src/components/things/SectionList.astro +2 −1
@@ -54,7 +54,8 @@ h2 {
54 font-family: "Lekton", sans-serif; 54 font-family: "Lekton", sans-serif;
55 font-size: 2rem; 55 font-size: 2rem;
56 margin: -2rem 0 2rem -2rem; 56 margin: -2rem 0 2rem -2rem;
57 box-shadow: 6px 6px 0 var(--foreground); 57 box-shadow: 6px 6px 0 var(--box-outline);
58 border: 2px solid var(--box-outline);
58 background: var(--accent); 59 background: var(--accent);
59 color: var(--accent-fg); 60 color: var(--accent-fg);
60 width: fit-content; 61 width: fit-content;
web/src/components/things/ServiceList.astro +4 −4
@@ -236,7 +236,7 @@ const {
236 } 236 }
237 .view-service { 237 .view-service {
238 transition: all 0.2s ease-in-out; 238 transition: all 0.2s ease-in-out;
239 opacity: 0.8; 239 opacity: 0.95;
240 a { 240 a {
241 padding: 0.25rem 0.6rem; 241 padding: 0.25rem 0.6rem;
242 width: fit-content; 242 width: fit-content;
@@ -258,7 +258,7 @@ const {
258 align-items: center; 258 align-items: center;
259 // justify-content: center; 259 // justify-content: center;
260 gap: 0.25rem; 260 gap: 0.25rem;
261 opacity: 0.6; 261 // opacity: 0.6;
262 font-size: 0.9rem; 262 font-size: 0.9rem;
263 padding: 0.5rem 0; 263 padding: 0.5rem 0;
264 :global(svg) { 264 :global(svg) {
@@ -286,9 +286,9 @@ const {
286 } 286 }
287 } 287 }
288 .great { 288 .great {
289 color: #007930; // var(--success); 289 color: #0fb953; // var(--success);
290 :global(svg) { 290 :global(svg) {
291 color: #007930; // var(--success); 291 color: #0fb953; // var(--success);
292 } 292 }
293 } 293 }
294 } 294 }
web/src/components/things/SmartSuggestions.svelte +2 −2
@@ -94,8 +94,8 @@
94 background: var(--accent-fg); 94 background: var(--accent-fg);
95 padding: 1rem; 95 padding: 1rem;
96 border-radius: var(--curve-sm); 96 border-radius: var(--curve-sm);
97 border: 1px solid var(--foreground); 97 border: 1px solid var(--box-outline);
98 box-shadow: 3px 3px 0 var(--foreground); 98 box-shadow: 3px 3px 0 var(--box-outline);
99 color: var(--foreground); 99 color: var(--foreground);
100 text-decoration: none; 100 text-decoration: none;
101 101
web/src/layouts/Layout.astro +5 −16
@@ -77,20 +77,8 @@ const {
77 77
78 78
79<style is:global> 79<style is:global>
80 :root { 80
81 --accent: 136, 58, 234;
82 --accent-light: 224, 204, 250;
83 --accent-dark: 49, 10, 101;
84 --accent-gradient: linear-gradient(
85 45deg,
86 rgb(var(--accent)),
87 rgb(var(--accent-light)) 30%,
88 white 60%
89 );
90 }
91 html { 81 html {
92 background: var(--background);
93 background-size: 224px;
94 ::selection { 82 ::selection {
95 background: var(--accent); 83 background: var(--accent);
96 color: var(--accent-fg); 84 color: var(--accent-fg);
@@ -100,8 +88,9 @@ const {
100 body { 88 body {
101 margin: 0; 89 margin: 0;
102 min-height: 100vh; 90 min-height: 100vh;
103 background: #feecff; 91 color: var(--foreground);
104 background: -webkit-radial-gradient(circle, #feecff 0%, #e1e4fb 100%); 92 background: var(--background);
105 background: radial-gradient(circle, #feecff 0%, #e1e4fb 100%); 93 /* background: -webkit-radial-gradient(circle, var(--bg-gradient-comp-1) 0%, var(--bg-gradient-comp-2) 100%);
94 background: radial-gradient(circle, var(--bg-gradient-comp-1) 0%, var(--bg-gradient-comp-2) 100%); */
106 } 95 }
107</style> 96</style>
web/src/pages/[...listing].astro +59 −5
@@ -8,6 +8,8 @@ import PrivacyPolicyDetails from '@components/things/PrivacyPolicyDetails.astro'
8import WebsiteDetailedInfo from '@components/things/WebsiteDetailedInfo.astro'; 8import WebsiteDetailedInfo from '@components/things/WebsiteDetailedInfo.astro';
9import DockerDetailedInfo from '@components/things/DockerDetailedInfo.astro'; 9import DockerDetailedInfo from '@components/things/DockerDetailedInfo.astro';
10import IosAppDetailedInfo from '@components/things/IosAppDetailedInfo.astro'; 10import IosAppDetailedInfo from '@components/things/IosAppDetailedInfo.astro';
11import DiscordDetailedInfo from '@components/things/DiscordDetailedInfo.astro';
12import RedditDetailedInfo from '@components/things/RedditDetailedInfo.astro';
11import SocialShare from '@components/form/Social.astro'; 13import SocialShare from '@components/form/Social.astro';
12import DataActions from '@components/things/DataActions.svelte'; 14import DataActions from '@components/things/DataActions.svelte';
13import type { AwesomePrivacy, Section, Service } from '../types/Service'; 15import type { AwesomePrivacy, Section, Service } from '../types/Service';
@@ -17,6 +19,8 @@ import { fetchTosdrPrivacy } from '@utils/fetch-privacy-policy';
17import { fetchWebsiteInfo } from '@utils/fetch-website-info'; 19import { fetchWebsiteInfo } from '@utils/fetch-website-info';
18import { fetchDockerData } from '@utils/fetch-docker-instructions'; 20import { fetchDockerData } from '@utils/fetch-docker-instructions';
19import { fetchIosInfo } from '@utils/fetch-ios-info'; 21import { fetchIosInfo } from '@utils/fetch-ios-info';
22import { fetchDiscordInfo } from '@utils/fetch-discord-info';
23import { fetchRedditInfo } from '@utils/fetch-reddit-info';
20import { parseMarkdown, formatLink } from '@utils/parse-markdown'; 24import { parseMarkdown, formatLink } from '@utils/parse-markdown';
21import { site } from '@utils/config'; 25import { site } from '@utils/config';
22import FontAwesome from '@components/form/FontAwesome.svelte'; 26import FontAwesome from '@components/form/FontAwesome.svelte';
@@ -34,6 +38,8 @@ const {
34 url, 38 url,
35 github, 39 github,
36 tosdrId, 40 tosdrId,
41 discordInvite,
42 subreddit,
37 iosApp, 43 iosApp,
38 icon, 44 icon,
39 followWith, 45 followWith,
@@ -138,9 +144,23 @@ const ignoredSites = ['github.gom', 'wikipedia.'];
138const githubData = github ? await fetchGitHubStats(github) : null; 144const githubData = github ? await fetchGitHubStats(github) : null;
139const privacyData = tosdrId ? await fetchTosdrPrivacy(tosdrId) : null; 145const privacyData = tosdrId ? await fetchTosdrPrivacy(tosdrId) : null;
140const iosData = iosApp ? await fetchIosInfo(iosApp) : null; 146const iosData = iosApp ? await fetchIosInfo(iosApp) : null;
147const discordData = discordInvite ? await fetchDiscordInfo(discordInvite) : null;
148const redditData = subreddit ? await fetchRedditInfo(subreddit) : null;
141const dockerData = await fetchDockerData(name); 149const dockerData = await fetchDockerData(name);
142const websiteData = (url && !ignoredSites.some(ignoredSite => url.includes(ignoredSite))) ? await fetchWebsiteInfo(url) : null; 150const websiteData = (url && !ignoredSites.some(ignoredSite => url.includes(ignoredSite))) ? await fetchWebsiteInfo(url) : null;
143 151
152const findPrivacyPolicyLink = () => {
153 if (!privacyData) return null;
154 const docs = privacyData.parameters.documents;
155 if (docs) {
156 const privacyPolicy = (docs || []).find((doc) => doc.name.toLowerCase().includes('privacy policy'));
157 if (privacyPolicy) return privacyPolicy.url;
158 }
159 return `https://tosdr.org/en/service/${tosdrId}`;
160};
161
162const privacyPolicyLink = findPrivacyPolicyLink();
163
144const getApiEndpoint = () => { 164const getApiEndpoint = () => {
145 return `https://api.awesome-privacy.xyz/${slugify(categoryName)}/${slugify(parentSection.name)}/${slugify(name)}`; 165 return `https://api.awesome-privacy.xyz/${slugify(categoryName)}/${slugify(parentSection.name)}/${slugify(name)}`;
146} 166}
@@ -194,7 +214,7 @@ const getApiEndpoint = () => {
194 { tosdrId && ( 214 { tosdrId && (
195 <li> 215 <li>
196 <b>Privacy:</b> 216 <b>Privacy:</b>
197 <a href={`https://tosdr.org/en/service/${tosdrId}`}>{`tosdr.org/en/service/${tosdrId}`}</a> 217 <a href={privacyPolicyLink}>{formatLink(privacyPolicyLink || '')}</a>
198 </li> 218 </li>
199 )} 219 )}
200 { iosApp && ( 220 { iosApp && (
@@ -203,6 +223,24 @@ const getApiEndpoint = () => {
203 <a href={iosApp}>{formatLink(iosApp)}</a> 223 <a href={iosApp}>{formatLink(iosApp)}</a>
204 </li> 224 </li>
205 )} 225 )}
226 <!-- { androidApp && (
227 <li>
228 <b>Android App:</b>
229 <a href={androidApp}>{formatLink(androidApp)}</a>
230 </li>
231 )} -->
232 { discordInvite && (
233 <li>
234 <b>Discord Invite:</b>
235 <a href={`https://discord.com/invite/${discordInvite}`}>{discordInvite}</a>
236 </li>
237 )}
238 { subreddit && (
239 <li>
240 <b>Subreddit:</b>
241 <a href={`https://reddit.com/r/${subreddit}`}>r/{subreddit}</a>
242 </li>
243 )}
206 { url && ( 244 { url && (
207 <li> 245 <li>
208 <b>Web info:</b> 246 <b>Web info:</b>
@@ -241,7 +279,7 @@ const getApiEndpoint = () => {
241 ) : null } 279 ) : null }
242 </div> 280 </div>
243 </section> 281 </section>
244 { privacyData && ( 282 { privacyData && privacyData.parameters.points.length > 0 && (
245 <section> 283 <section>
246 <h3>{name} Privacy Policy</h3> 284 <h3>{name} Privacy Policy</h3>
247 <PrivacyPolicyDetails privacyData={privacyData} /> 285 <PrivacyPolicyDetails privacyData={privacyData} />
@@ -271,6 +309,15 @@ const getApiEndpoint = () => {
271 <DockerDetailedInfo docker={dockerData} /> 309 <DockerDetailedInfo docker={dockerData} />
272 </section> 310 </section>
273 )} 311 )}
312 { (discordData || redditData) && (
313 <section>
314 <h3>{name} Socials</h3>
315 <div class="social-wrap">
316 { discordData && <DiscordDetailedInfo discordData={discordData} /> }
317 { redditData && <RedditDetailedInfo redditData={redditData} /> }
318 </div>
319 </section>
320 )}
274 321
275 <section> 322 <section>
276 <h3>{name} Reviews</h3> 323 <h3>{name} Reviews</h3>
@@ -370,8 +417,8 @@ section {
370 padding: 1rem; 417 padding: 1rem;
371 min-height: 8rem; 418 min-height: 8rem;
372 position: relative; 419 position: relative;
373 border: 2px solid var(--foreground); 420 border: 2px solid var(--box-outline);
374 box-shadow: 6px 6px 0 var(--foreground); 421 box-shadow: 6px 6px 0 var(--box-outline);
375 background: var(--accent-fg); 422 background: var(--accent-fg);
376 423
377} 424}
@@ -383,7 +430,7 @@ p {
383h3 { 430h3 {
384 font-size: 2rem; 431 font-size: 2rem;
385 margin: -2rem 0 1rem -2rem; 432 margin: -2rem 0 1rem -2rem;
386 box-shadow: 6px 6px 0 var(--foreground); 433 box-shadow: 6px 6px 0 var(--box-outline);
387 background: var(--accent); 434 background: var(--accent);
388 color: var(--accent-fg); 435 color: var(--accent-fg);
389 width: fit-content; 436 width: fit-content;
@@ -571,6 +618,13 @@ pre {
571 } 618 }
572} 619}
573 620
621.social-wrap {
622 display: flex;
623 gap: 1rem;
624 flex-wrap: wrap;
625 justify-content: space-between;
626}
627
574.highlights { 628.highlights {
575 display: flex; 629 display: flex;
576 gap: 1rem; 630 gap: 1rem;
web/src/pages/[...section].astro +1 −1
@@ -217,7 +217,7 @@ section {
217h2 { 217h2 {
218 font-size: 2rem; 218 font-size: 2rem;
219 margin: -2rem 0 2rem -2rem; 219 margin: -2rem 0 2rem -2rem;
220 box-shadow: 6px 6px 0 var(--foreground); 220 box-shadow: 6px 6px 0 var(--box-outline);
221 background: var(--accent); 221 background: var(--accent);
222 color: var(--accent-fg); 222 color: var(--accent-fg);
223 width: fit-content; 223 width: fit-content;
web/src/pages/about.astro +2 −2
@@ -496,8 +496,8 @@ h3 {
496 img { 496 img {
497 margin: 0.5rem 1rem; 497 margin: 0.5rem 1rem;
498 border-radius: var(--curve-md); 498 border-radius: var(--curve-md);
499 border: 2px solid var(--foreground); 499 border: 2px solid var(--box-outline);
500 box-shadow: 4px 4px 0 var(--foreground); 500 box-shadow: 4px 4px 0 var(--box-outline);
501 } 501 }
502 .socials { 502 .socials {
503 display: flex; 503 display: flex;
web/src/pages/browse.astro +5 −5
@@ -124,14 +124,14 @@ if (typeof window !== 'undefined') {
124 } 124 }
125 input { 125 input {
126 padding: 0.5rem; 126 padding: 0.5rem;
127 border: 2px solid var(--foreground); 127 border: 2px solid var(--box-outline);
128 border-radius: var(--curve-sm); 128 border-radius: var(--curve-sm);
129 font-size: 1.2rem; 129 font-size: 1.2rem;
130 box-shadow: 3px 3px 0 var(--foreground); 130 box-shadow: 3px 3px 0 var(--box-outline);
131 color: var(--accent-3); 131 color: var(--accent-3);
132 &:focus { 132 &:focus {
133 outline: none; 133 outline: none;
134 box-shadow: 4px 4px 0 var(--foreground); 134 box-shadow: 4px 4px 0 var(--box-outline);
135 } 135 }
136 } 136 }
137 h2 { 137 h2 {
@@ -180,9 +180,9 @@ if (typeof window !== 'undefined') {
180 } 180 }
181 .category { 181 .category {
182 background: var(--accent-fg); 182 background: var(--accent-fg);
183 border: 2px solid var(--foreground); 183 border: 2px solid var(--box-outline);
184 border-radius: var(--curve-sm); 184 border-radius: var(--curve-sm);
185 box-shadow: 4px 4px 0 var(--foreground); 185 box-shadow: 4px 4px 0 var(--box-outline);
186 padding: 1rem; 186 padding: 1rem;
187 width: 85%; 187 width: 85%;
188 display: inline-flex; 188 display: inline-flex;
web/src/pages/index.astro +4 −4
@@ -121,9 +121,9 @@ const description = 'Privacy is a fundamental human right; '
121 121
122 .about-summary { 122 .about-summary {
123 background: var(--accent-fg); 123 background: var(--accent-fg);
124 border: 2px solid var(--foreground); 124 border: 2px solid var(--box-outline);
125 border-radius: var(--curve-sm); 125 border-radius: var(--curve-sm);
126 box-shadow: 4px 4px 0 var(--foreground); 126 box-shadow: 4px 4px 0 var(--box-outline);
127 padding: 1rem; 127 padding: 1rem;
128 width: 85%; 128 width: 85%;
129 margin: 0 auto; 129 margin: 0 auto;
@@ -135,9 +135,9 @@ const description = 'Privacy is a fundamental human right; '
135 padding: 0; 135 padding: 0;
136 .category { 136 .category {
137 background: var(--accent-fg); 137 background: var(--accent-fg);
138 border: 2px solid var(--foreground); 138 border: 2px solid var(--box-outline);
139 border-radius: var(--curve-sm); 139 border-radius: var(--curve-sm);
140 box-shadow: 4px 4px 0 var(--foreground); 140 box-shadow: 4px 4px 0 var(--box-outline);
141 padding: 1rem; 141 padding: 1rem;
142 width: 85%; 142 width: 85%;
143 display: inline-flex; 143 display: inline-flex;
web/src/pages/search/[...searchTerm].astro +2 −2
@@ -139,9 +139,9 @@ section {
139 column-gap: 1rem; 139 column-gap: 1rem;
140 .category { 140 .category {
141 padding: 1rem; 141 padding: 1rem;
142 box-shadow: 4px 4px 0 var(--foreground); 142 box-shadow: 4px 4px 0 var(--box-outline);
143 background: var(--accent-fg); 143 background: var(--accent-fg);
144 border: 2px solid var(--foreground); 144 border: 2px solid var(--box-outline);
145 border-radius: var(--curve-sm); 145 border-radius: var(--curve-sm);
146 display: inline-flex; 146 display: inline-flex;
147 flex-direction: column; 147 flex-direction: column;
web/src/pages/search/index.astro +2 −2
@@ -26,9 +26,9 @@ section {
26 display: flex; 26 display: flex;
27 flex-direction: column; 27 flex-direction: column;
28 padding: 1rem; 28 padding: 1rem;
29 box-shadow: 4px 4px 0 var(--foreground); 29 box-shadow: 4px 4px 0 var(--box-outline);
30 background: var(--accent-fg); 30 background: var(--accent-fg);
31 border: 2px solid var(--foreground); 31 border: 2px solid var(--box-outline);
32 border-radius: var(--curve-sm); 32 border-radius: var(--curve-sm);
33 margin: 2rem auto; 33 margin: 2rem auto;
34 padding: 1rem; 34 padding: 1rem;
web/src/pages/sitemap.astro +6 −6
@@ -133,8 +133,8 @@ main {
133 max-width: calc(100% - 5rem); 133 max-width: calc(100% - 5rem);
134 margin: 4rem auto 5rem auto; 134 margin: 4rem auto 5rem auto;
135 padding: 0 2rem; 135 padding: 0 2rem;
136 border: 2px solid var(--foreground); 136 border: 2px solid var(--box-outline);
137 box-shadow: 6px 6px 0 var(--foreground); 137 box-shadow: 6px 6px 0 var(--box-outline);
138 background: var(--accent-fg); 138 background: var(--accent-fg);
139 position: relative; 139 position: relative;
140 p { 140 p {
@@ -184,7 +184,7 @@ h2 {
184 gap: 1rem; 184 gap: 1rem;
185 font-size: 2rem; 185 font-size: 2rem;
186 margin: -2rem 0 2rem -4rem; 186 margin: -2rem 0 2rem -4rem;
187 box-shadow: 6px 6px 0 var(--foreground); 187 box-shadow: 6px 6px 0 var(--box-outline);
188 background: var(--accent); 188 background: var(--accent);
189 color: var(--accent-fg); 189 color: var(--accent-fg);
190 width: fit-content; 190 width: fit-content;
@@ -213,14 +213,14 @@ h2 {
213 } 213 }
214 input { 214 input {
215 padding: 0.25rem; 215 padding: 0.25rem;
216 border: 2px solid var(--foreground); 216 border: 2px solid var(--box-outline);
217 border-radius: var(--curve-sm); 217 border-radius: var(--curve-sm);
218 font-size: 1rem; 218 font-size: 1rem;
219 box-shadow: 3px 3px 0 var(--foreground); 219 box-shadow: 3px 3px 0 var(--box-outline);
220 color: var(--accent-3); 220 color: var(--accent-3);
221 &:focus { 221 &:focus {
222 outline: none; 222 outline: none;
223 box-shadow: 4px 4px 0 var(--foreground); 223 box-shadow: 4px 4px 0 var(--box-outline);
224 } 224 }
225 } 225 }
226} 226}