mirror of
https://github.com/revanced/revanced-website.git
synced 2025-04-30 06:34:35 +02:00
chore: merge dev
to main
(#173)
This commit is contained in:
commit
45e55794b7
@ -1,10 +1,14 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import type {Social} from '$lib/types';
|
import type { Social } from '$lib/types';
|
||||||
export let social = '';
|
export let social = '';
|
||||||
export let data: Social[];
|
export let data: Social[];
|
||||||
</script>
|
</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>
|
<div>
|
||||||
<img src="socials/{social}.svg" alt={social} />
|
<img src="socials/{social}.svg" alt={social} />
|
||||||
</div>
|
</div>
|
||||||
|
@ -10,10 +10,10 @@
|
|||||||
<div class="social-host">
|
<div class="social-host">
|
||||||
<Query {query} let:data>
|
<Query {query} let:data>
|
||||||
{#if data}
|
{#if data}
|
||||||
<SocialButton social="github" data={data.socials}/>
|
<SocialButton social="github" data={data.socials} />
|
||||||
<SocialButton social="discord" data={data.socials}/>
|
<SocialButton social="discord" data={data.socials} />
|
||||||
<SocialButton social="reddit" data={data.socials}/>
|
<SocialButton social="reddit" data={data.socials} />
|
||||||
<SocialButton social="telegram" data={data.socials}/>
|
<SocialButton social="telegram" data={data.socials} />
|
||||||
{/if}
|
{/if}
|
||||||
</Query>
|
</Query>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user