mirror of
https://github.com/revanced/revanced-website.git
synced 2025-04-29 22:24:31 +02:00
chore: merge dev
to main
(#173)
This commit is contained in:
commit
45e55794b7
@ -1,10 +1,14 @@
|
||||
<script lang="ts">
|
||||
import type {Social} from '$lib/types';
|
||||
import type { Social } from '$lib/types';
|
||||
export let social = '';
|
||||
export let data: Social[];
|
||||
</script>
|
||||
|
||||
<a href={data.find(jsonSocial => jsonSocial.name === social)?.url} rel="noreferrer" target="_blank">
|
||||
<a
|
||||
href={data.find((jsonSocial) => jsonSocial.name.toLowerCase() === social.toLowerCase())?.url}
|
||||
rel="noreferrer"
|
||||
target="_blank"
|
||||
>
|
||||
<div>
|
||||
<img src="socials/{social}.svg" alt={social} />
|
||||
</div>
|
||||
|
@ -10,10 +10,10 @@
|
||||
<div class="social-host">
|
||||
<Query {query} let:data>
|
||||
{#if data}
|
||||
<SocialButton social="github" data={data.socials}/>
|
||||
<SocialButton social="discord" data={data.socials}/>
|
||||
<SocialButton social="reddit" data={data.socials}/>
|
||||
<SocialButton social="telegram" data={data.socials}/>
|
||||
<SocialButton social="github" data={data.socials} />
|
||||
<SocialButton social="discord" data={data.socials} />
|
||||
<SocialButton social="reddit" data={data.socials} />
|
||||
<SocialButton social="telegram" data={data.socials} />
|
||||
{/if}
|
||||
</Query>
|
||||
</div>
|
||||
|
Loading…
x
Reference in New Issue
Block a user