diff --git a/src/lib/components/atoms/ContributorButton.svelte b/src/lib/components/atoms/ContributorButton.svelte index 17e64c3..58b3239 100644 --- a/src/lib/components/atoms/ContributorButton.svelte +++ b/src/lib/components/atoms/ContributorButton.svelte @@ -25,7 +25,7 @@ button { color: var(--white); - border-radius: 200px; + border-radius: 50%; overflow: hidden; border: 0; width:45px; @@ -33,14 +33,18 @@ max-height: 86px; max-width: 86px; cursor: pointer; - background-color: var(--grey-four); + background-color: transparent; transition: transform 0.4s var(--bezier-one); margin-bottom: 1rem; user-select: none; } a:hover { - background-color: var(--grey-one); + background-color: var(--grey-three); + } + + a:hover > h2 { + color: var(--red); } h2 { diff --git a/src/lib/components/molecules/ContributorHost.svelte b/src/lib/components/molecules/ContributorHost.svelte index 5097e03..3d6f6f1 100644 --- a/src/lib/components/molecules/ContributorHost.svelte +++ b/src/lib/components/molecules/ContributorHost.svelte @@ -5,31 +5,37 @@ import { fly } from 'svelte/transition'; import { quintOut } from 'svelte/easing'; - let contribs; + let contribs: Object; + let repo_link: string; export let repo: string; onMount (() => { - ContributorsStore.subscribe(async (data) => { - contribs = await data; - contribs = contribs[repo].contributors + ContributorsStore.subscribe(async (e) => { + let data = await e; + repo_link = 'https://github.com/' + data[repo].name; + contribs = data[repo].contributors }); }); let usersIwantToExplodeSoBadly = [ 'semantic-release-bot', ] + {#if contribs}
-

- ReVanced {repo === 'cli' ? 'CLI' : repo.charAt(0).toUpperCase() + repo.slice(1)} -

- + +

ReVanced {repo === 'cli' ? 'CLI' : repo.charAt(0).toUpperCase() + repo.slice(1)}

+
{#each contribs as contrib} {#if !usersIwantToExplodeSoBadly.includes(contrib.login)} - + {/if} {/each}
@@ -37,21 +43,39 @@ {/if} \ No newline at end of file diff --git a/src/routes/credits/+page.svelte b/src/routes/credits/+page.svelte index e5950be..c3c1be7 100644 --- a/src/routes/credits/+page.svelte +++ b/src/routes/credits/+page.svelte @@ -1,12 +1,8 @@
-

- ReVanced Contributors -

@@ -15,36 +11,10 @@
\ No newline at end of file