Created base template for contact and repo pages.

Fixed styling issues on toasts on small screens.
This commit is contained in:
2023-09-26 23:15:42 +01:00
parent 86652a4f09
commit ebf9a21478
6 changed files with 18 additions and 2 deletions

View File

@ -36,7 +36,7 @@
box-shadow: .5em .5em .5em var(--red);
}
dialog::backdrop {
background: rgba(0, 0, 0, 0.3);
background: rgba(0, 0, 0, 0.7);
}
dialog > div {
padding: 1em;
@ -53,7 +53,7 @@
}
}
dialog[open]::backdrop {
animation: fade 0.5s ease-out;
animation: fade 0.3s ease-out;
}
@keyframes fade {
from {

View File

@ -41,6 +41,7 @@
align-items: center;
margin: 0 auto 0.5rem auto;
width: 20rem;
max-width: 80%;
}
.error {
background: IndianRed;

View File

@ -163,6 +163,9 @@
{/each}
</ul>
</div>
<div style="display: none;">{addToast(new Toast("Click on a skill to open a prompt", ToastType.Info, true, 4000))}</div>
<div style="display: none;">{addToast(new Toast("Welcome!", ToastType.Success, true, 3000))}</div>
{:catch}
<div class="card">
<div class="card-header">
@ -172,6 +175,8 @@
<div style="display: none;">{addToast(new Toast("Unable to load me.json", ToastType.Error, true, 3000))}</div>
{/await}
<!--Modal to be displayed on click-->
{#if activeModal != null}
<Modal bind:showModal>
<h2 slot="header" class="card-header">

View File

@ -0,0 +1 @@
<h1>Contact</h1>

View File

@ -0,0 +1,3 @@
<h1>Repos</h1>
<p>Stay tunded! This is still in development.</p>
<p>Come back later to find out what projects I'm currently working on!</p>