mirror of
https://github.com/revanced/revanced-website.git
synced 2025-04-29 14:14:30 +02:00
refactor: make the DMCA GUID a prop
This commit is contained in:
parent
44e60e02a6
commit
c811a50806
@ -1,19 +1,17 @@
|
||||
<script lang="ts">
|
||||
import { RV_DMCA_GUID } from '$env/static/public';
|
||||
import { page } from '$app/state';
|
||||
|
||||
let refurl: string = $state('');
|
||||
$effect(() => {
|
||||
refurl = window.location.href;
|
||||
});
|
||||
type Props = { guid: string };
|
||||
let { guid }: Props = $props();
|
||||
</script>
|
||||
|
||||
<a
|
||||
href="//www.dmca.com/Protection/Status.aspx?ID={RV_DMCA_GUID}&refurl={refurl}"
|
||||
href="//www.dmca.com/Protection/Status.aspx?ID={guid}&refurl={page.url.href}"
|
||||
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}"
|
||||
src="https://images.dmca.com/Badges/dmca-badge-w150-5x1-08.png?ID={guid}"
|
||||
alt="DMCA.com Protection Status"
|
||||
/>
|
||||
</a>
|
||||
|
@ -1,9 +1,19 @@
|
||||
<script lang="ts">
|
||||
import { RV_DMCA_GUID } from '$env/static/public';
|
||||
|
||||
import DmcaBadge from '$components/atoms/DmcaBadge.svelte';
|
||||
import SquigglyDivider from '$components/atoms/SquigglyDivider.svelte';
|
||||
</script>
|
||||
|
||||
<footer>
|
||||
<SquigglyDivider />
|
||||
<DmcaBadge />
|
||||
|
||||
<div class="footer-top">
|
||||
<section class="main-content"></section>
|
||||
<section class="links-container"></section>
|
||||
</div>
|
||||
|
||||
<div class="footer-bottom"></div>
|
||||
|
||||
<DmcaBadge guid={RV_DMCA_GUID} />
|
||||
</footer>
|
||||
|
Loading…
x
Reference in New Issue
Block a user