mirror of
https://github.com/revanced/revanced-website.git
synced 2025-04-30 06:34:35 +02:00
feat: add DMCA badge
This commit is contained in:
parent
7528f908e7
commit
3b65d0095d
19
src/lib/components/atoms/DmcaBadge.svelte
Normal file
19
src/lib/components/atoms/DmcaBadge.svelte
Normal file
@ -0,0 +1,19 @@
|
||||
<script lang="ts">
|
||||
const RV_DMCA_GUID = 'test'; // TODO: replace later
|
||||
|
||||
let refurl: string = $state('');
|
||||
$effect(() => {
|
||||
refurl = window.location.href;
|
||||
});
|
||||
</script>
|
||||
|
||||
<a
|
||||
href="//www.dmca.com/Protection/Status.aspx?ID={RV_DMCA_GUID}&refurl={refurl}"
|
||||
title="DMCA.com Protection Status"
|
||||
class="dmca-badge"
|
||||
>
|
||||
<img
|
||||
src="https://images.dmca.com/Badges/dmca-badge-w150-5x1-08.png?ID={RV_DMCA_GUID}"
|
||||
alt="DMCA.com Protection Status"
|
||||
/></a
|
||||
>
|
@ -1,7 +1,9 @@
|
||||
<script lang="ts">
|
||||
import DmcaBadge from '$components/atoms/DmcaBadge.svelte';
|
||||
import SquigglyDivider from '$components/atoms/SquigglyDivider.svelte';
|
||||
</script>
|
||||
|
||||
<footer>
|
||||
<SquigglyDivider />
|
||||
<DmcaBadge />
|
||||
</footer>
|
||||
|
Loading…
x
Reference in New Issue
Block a user