mirror of
https://github.com/ReVanced/revanced-website.git
synced 2026-01-22 02:23:57 +00:00
@@ -1,12 +1,12 @@
|
||||
<script>
|
||||
import DownloadSelection from '../atoms/DownloadSelection.svelte';
|
||||
import DownloadChannel from '../atoms/DownloadChannel.svelte';
|
||||
import { createEventDispatcher } from 'svelte';
|
||||
|
||||
const dispatch = createEventDispatcher();
|
||||
|
||||
export let items = ['Manager', 'CLI', 'Patches', 'Integrations'];
|
||||
export let items = ['Stable', 'Development'];
|
||||
|
||||
export let activeTab = 'Manager';
|
||||
export let activeTab = 'Stable';
|
||||
|
||||
$: handleTabChange = (item) => {
|
||||
activeTab = item;
|
||||
@@ -15,10 +15,10 @@
|
||||
|
||||
<div class="download-selection">
|
||||
{#each items as item}
|
||||
<DownloadSelection active={item === activeTab}
|
||||
<DownloadChannel active={item === activeTab}
|
||||
on:click={handleTabChange(item)}>
|
||||
{item}
|
||||
</DownloadSelection>
|
||||
</DownloadChannel>
|
||||
{/each}
|
||||
</div>
|
||||
|
||||
25
src/lib/components/molecules/DownloadSelectorHost.svelte
Normal file
25
src/lib/components/molecules/DownloadSelectorHost.svelte
Normal file
@@ -0,0 +1,25 @@
|
||||
<script>
|
||||
import DownloadSelector from "../atoms/DownloadSelector.svelte";
|
||||
</script>
|
||||
|
||||
<div class="download-selector-main">
|
||||
<DownloadSelector></DownloadSelector>
|
||||
<DownloadSelector></DownloadSelector>
|
||||
<DownloadSelector></DownloadSelector>
|
||||
<DownloadSelector></DownloadSelector>
|
||||
</div>
|
||||
|
||||
|
||||
<style>
|
||||
.download-selector-main {
|
||||
margin-top: 2rem;
|
||||
padding: 12px 12px;
|
||||
border-radius: 25px;
|
||||
background-color: var(--grey-one);
|
||||
width: 100;
|
||||
gap:15px;
|
||||
align-items: center;
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user