mirror of
https://github.com/revanced/revanced-website.git
synced 2025-04-30 06:34:35 +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">
|
<script lang="ts">
|
||||||
import { RV_DMCA_GUID } from '$env/static/public';
|
import { page } from '$app/state';
|
||||||
|
|
||||||
let refurl: string = $state('');
|
type Props = { guid: string };
|
||||||
$effect(() => {
|
let { guid }: Props = $props();
|
||||||
refurl = window.location.href;
|
|
||||||
});
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<a
|
<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"
|
title="DMCA.com Protection Status"
|
||||||
class="dmca-badge"
|
class="dmca-badge"
|
||||||
>
|
>
|
||||||
<img
|
<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"
|
alt="DMCA.com Protection Status"
|
||||||
/>
|
/>
|
||||||
</a>
|
</a>
|
||||||
|
@ -1,9 +1,19 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
|
import { RV_DMCA_GUID } from '$env/static/public';
|
||||||
|
|
||||||
import DmcaBadge from '$components/atoms/DmcaBadge.svelte';
|
import DmcaBadge from '$components/atoms/DmcaBadge.svelte';
|
||||||
import SquigglyDivider from '$components/atoms/SquigglyDivider.svelte';
|
import SquigglyDivider from '$components/atoms/SquigglyDivider.svelte';
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<footer>
|
<footer>
|
||||||
<SquigglyDivider />
|
<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>
|
</footer>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user