revanced-website/src/lib/components/molecules/ContributorHost.svelte
2022-10-09 23:09:21 -04:00

29 lines
690 B
Svelte

<script lang="ts">
import ContributorButton from "../atoms/ContributorButton.svelte";
export let peoples: Array<String>;
import { onMount } from 'svelte';
onMount(async () => {
const response = await fetch('https://releases.rvcd.win/contributors');
const json = await response.json();
console.log(json);
});
</script>
<div class="social-host">
{#each peoples as person}
<ContributorButton username={person}></ContributorButton>
{/each}
</div>
<style>
.social-host {
gap: 2rem;
width: 100;
display: grid;
align-items: center;
grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
}
</style>