feat: logo pages

This commit is contained in:
afn
2022-11-25 03:52:32 -05:00
parent 6c4e30256b
commit ff3ee24a98
15 changed files with 55 additions and 369 deletions

View File

@@ -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;

View File

@@ -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 {