Skip to content

Commit c9974f9

Browse files
committed
chore: adds RSS CTA
1 parent d4067e0 commit c9974f9

2 files changed

Lines changed: 37 additions & 4 deletions

File tree

src/lib/components/Footer.svelte

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
import Seal from '$lib/assets/dc.webp';
33
import Button from './ui/button/button.svelte';
44
import DateStamp from './DateStamp.svelte';
5+
import { Rss } from 'lucide-svelte';
56
let { lastCommitDate = 'Recently' } = $props();
67
</script>
78

@@ -33,6 +34,10 @@
3334
>
3435
Support our work
3536
</Button>
37+
<Button variant="outline" href="/rss.xml" size="sm" target="_blank" class="gap-2">
38+
<Rss class="h-3 w-3" />
39+
RSS Feed
40+
</Button>
3641
</div>
3742
</div>
3843

src/routes/+page.svelte

Lines changed: 32 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
import Substance from '$lib/assets/substance.webp';
2525
import ViolencePhoto from '$lib/assets/violence.webp';
2626
import { MediaQuery } from 'svelte/reactivity';
27-
import { ExternalLink, Shuffle } from 'lucide-svelte';
27+
import { ExternalLink, Shuffle, Rss } from 'lucide-svelte';
2828
let { data } = $props();
2929
import cutsByOfficeData from '$lib/data/charts/cuts_by_office.json';
3030
import CensoredFilms from '$lib/components/charts/CensoredFilms.svelte';
@@ -215,7 +215,7 @@
215215
</div>
216216

217217
{#if newAdditions.length > 0}
218-
<section class="relative mb-8 py-2" aria-label="New Additions">
218+
<section class="relative py-2" aria-label="New Additions">
219219
<div
220220
class="mb-4 flex flex-col items-start justify-start gap-2 md:flex-row md:items-center md:justify-between"
221221
>
@@ -236,7 +236,9 @@
236236
</div>
237237
{/if}
238238
</div>
239-
<Button variant="default" size="sm" class="md:ml-2" href="/contribute">Contribute</Button>
239+
<Button variant="default" size="sm" class="md:ml-2" href="/contribute"
240+
>Contribute Data</Button
241+
>
240242
</div>
241243

242244
{#if newAdditionsGrid.length > 0}
@@ -327,7 +329,31 @@
327329
{/if}
328330
</section>
329331
{/if}
330-
332+
<section
333+
class="my-4 grid grid-cols-1 gap-4 rounded-xs md:grid-cols-12 md:items-center"
334+
aria-label="RSS Subscription"
335+
>
336+
<div class="flex items-center gap-4 md:col-span-8 lg:col-span-9">
337+
<div class="space-y-1">
338+
<p class="font-atkinson text-md leading-relaxed">
339+
Get notified about new film certifications and censorship data directly in your RSS
340+
reader.
341+
</p>
342+
</div>
343+
</div>
344+
<div class="md:col-span-4 lg:col-span-3 lg:text-right">
345+
<Button
346+
href="/rss.xml"
347+
target="_blank"
348+
variant="outline"
349+
size="sm"
350+
class="w-full bg-[#e29350] text-white hover:bg-[#e29350]/80 md:w-auto"
351+
>
352+
<Rss class="mr-2 h-4 w-4" />
353+
Subscribe via RSS
354+
</Button>
355+
</div>
356+
</section>
331357
{#if currentMovies.length > 0}
332358
<section class="relative py-2" aria-label="Popular films">
333359
<div class="flex items-center justify-start gap-2">
@@ -572,5 +598,7 @@
572598
>
573599
</div>
574600
</section>
601+
602+
<!-- RSS Subscription CTA -->
575603
</div>
576604
</main>

0 commit comments

Comments
 (0)