Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions src/contact.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,9 @@

<h1>Contact</h1>

<div class="loading-icon"></div>
<iframe
class="contact-form"
src="https://docs.google.com/forms/d/e/1FAIpQLSendg9Er7RWxs1AAUPJ7pL6K-QwXfz6uKZFKIXzG1nCiXRrvQ/viewform?embedded=true&showTitle=0"
frameborder="0"
>
Loading Google Form...
</iframe>
></iframe>
6 changes: 3 additions & 3 deletions src/events.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
---

<h1>Events</h1>

<div class="loading-icon"></div>
<iframe
class="calendar"
src="https://calendar.google.com/calendar/embed?&showCalendars=0&showPrint=0&showDate=0&showNav=0&showTitle=0&src=bmRpdGNvbW11bml0eUBnbWFpbC5jb20&src=YWRkcmVzc2Jvb2sjY29udGFjdHNAZ3JvdXAudi5jYWxlbmRhci5nb29nbGUuY29t"
scrolling="no"
>
Loading Google Calendar...
</iframe>
></iframe>
10 changes: 10 additions & 0 deletions src/scripts/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,14 @@ $(document).ready(() => {
localStorage.setItem('theme', newTheme);
applyTheme(newTheme);
});

// iframe loading
const iframe = document.querySelector('iframe');
if (iframe) {
setTimeout(() => {
iframe.style.visibility = 'visible';
const loadingIcon = document.querySelector('.loading-icon');
loadingIcon.style.display = 'none';
}, 2000);
}
});
20 changes: 20 additions & 0 deletions src/styles/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -341,6 +341,7 @@ iframe {
border-radius: 1rem;
background-color: var(--white);
overflow: hidden;
visibility: hidden;
}

.day-mode iframe {
Expand All @@ -352,6 +353,25 @@ iframe {
box-shadow: 0px 4px 6px rgba(128, 128, 128, 0.45);
}

.loading-icon {
width: 50px;
height: 50px;
border: 5px solid var(--day-blue);
border-top: 5px solid var(--day-purple);
border-radius: 50%;
animation: spin 3s linear infinite;
margin: 0 auto;
}

@keyframes spin {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}

/* home */

.tagline {
Expand Down
Loading