mirror of
https://github.com/ReVanced/revanced-website.git
synced 2026-01-27 04:41:03 +00:00
feat: logo pages
This commit is contained in:
@@ -5,9 +5,10 @@
|
||||
export let maxWidth = false;
|
||||
export let icon = '';
|
||||
export let target = '';
|
||||
export let unclickable = false;
|
||||
</script>
|
||||
|
||||
<a {href} {target}>
|
||||
<a {href} {target} on:click class:unclickable>
|
||||
<div class={type} style="width: {maxWidth ? '100%' : 'max-content'}">
|
||||
{#if icon}
|
||||
<img src="../icons/{icon}.svg" alt={icon} />
|
||||
@@ -22,6 +23,10 @@
|
||||
border-radius: 16px;
|
||||
}
|
||||
|
||||
.unclickable {
|
||||
pointer-events: none;
|
||||
cursor:not-allowed;
|
||||
}
|
||||
div,
|
||||
.button-secondary {
|
||||
min-width: max-content;
|
||||
|
||||
@@ -1,9 +1,10 @@
|
||||
<script lang="ts">
|
||||
export let name: string;
|
||||
export let logo: string;
|
||||
export let file: string;
|
||||
export let filename: string;
|
||||
export let id: string;
|
||||
export let selected: Array<string>;
|
||||
export let clicked = false;
|
||||
|
||||
const handleClick = () => {
|
||||
clicked = !clicked;
|
||||
@@ -15,16 +16,16 @@
|
||||
// the Updater
|
||||
selected = selected;
|
||||
}
|
||||
console.log(selected)
|
||||
};
|
||||
|
||||
let clicked = false;
|
||||
</script>
|
||||
|
||||
<div on:click={handleClick} class:clicked>
|
||||
<img src={logo} alt={file} />
|
||||
<img src={logo} alt={filename} />
|
||||
<span class="text">
|
||||
<h2>{name}</h2>
|
||||
<h6>{file}</h6>
|
||||
<h6>{filename}</h6>
|
||||
</span>
|
||||
</div>
|
||||
|
||||
@@ -69,8 +70,8 @@
|
||||
color: var(--accent-color);
|
||||
}
|
||||
|
||||
div:hover:not(.clicked) {
|
||||
background-color: var(--grey-two);
|
||||
div:hover {
|
||||
filter: brightness(0.85);
|
||||
}
|
||||
|
||||
img {
|
||||
|
||||
Reference in New Issue
Block a user