fix: make button take up full width

This commit is contained in:
afn 2022-10-15 17:05:15 -04:00
parent d66c063789
commit c32bc268b3
2 changed files with 5 additions and 5 deletions

View File

@ -2,14 +2,14 @@
export let kind = 'secondary';
$: type = 'button-' + kind;
export let href = '#';
export let fontsize = '1.2rem';
export let width = 'max-content';
export let icon = "";
</script>
<a href={href}>
<div
class={type}
style="font-size: {fontsize};"
style="width: {width};"
>
<img src="icons/{icon}.svg" alt="{icon}"/>
<slot/>
@ -22,8 +22,8 @@
border-radius: 16px;
}
div, .button-secondary {
font-size: 1.1rem;
height: 60px;
width: max-content;
color: var(--white);
font-weight: 600;
border: none;

View File

@ -12,8 +12,8 @@
</h2>
<div class="hero-buttons">
<Button icon="download" kind="primary" href="download" fontsize="1.2rem">Download</Button>
<Button icon="docs" href="docs" fontsize="1.2rem" >Read The Docs</Button>
<Button icon="download" kind="primary" href="download" width="100%">Download</Button>
<Button icon="docs" href="docs" width="100%" >Read The Docs</Button>
</div>
</div>
</section>