mirror of
https://github.com/ReVanced/revanced-website.git
synced 2026-01-11 13:46:17 +00:00
chore: merge dev to main (#173)
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user