Skip to content

Commit

Permalink
Pretty-up the loading indicator, use brand styles.
Browse files Browse the repository at this point in the history
  • Loading branch information
dannon committed Nov 12, 2024
1 parent bb2eab4 commit 41505b7
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions website/pages/workflow/[id].vue
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ onBeforeMount(async () => {
} else {
selectedInstance.value = instances[0].value;
}
loading.value = false;
// loading.value = false;
});
const onInstanceChange = (value: string) => {
Expand All @@ -130,9 +130,10 @@ const onInstanceChange = (value: string) => {
</script>

<template>
<div v-if="loading" class="max-w-3xl mx-auto py-8">
<div class="flex justify-center items-center">
<div class="loader"></div>
<div v-if="loading" class="flex mx-auto justify-center items-center" style="height: 60vh;">
<div class="relative">
<div class="loader border-t-8 border-hokey-pokey"></div>
<div class="absolute inset-0 flex justify-center items-center text-xl font-bold font-mono">Loading...</div>
</div>
</div>
<NuxtLayout v-else>
Expand Down Expand Up @@ -223,11 +224,9 @@ const onInstanceChange = (value: string) => {

<style scoped>
.loader {
border: 16px solid #f3f3f3;
border-top: 16px solid #3498db;
border-radius: 50%;
width: 120px;
height: 120px;
width: 240px;
height: 240px;
animation: spin 2s linear infinite;
}
Expand Down

0 comments on commit 41505b7

Please sign in to comment.