diff --git a/src/app.css b/src/app.css index d1dd4f3..627bef5 100644 --- a/src/app.css +++ b/src/app.css @@ -204,3 +204,44 @@ h2 { @apply mt-3 text-sm leading-5; } } + +.flip-box { + height: 100%; + width: 100%; + perspective: 1000px; /* Remove this if you don't want the 3D effect */ + } + + .flip-box-inner { + display: grid; + width: 100%; + height: 100%; + text-align: center; + transition: transform 0.8s; + transform-style: preserve-3d; + } + + + .flip-box-front,.flip-box-back { + grid-area: 1/1; + width: 100%; + -webkit-backface-visibility: hidden; /* Safari */ + backface-visibility: hidden; + } + .flip-box-front { + z-index: 2; + transform: rotateY(0deg); + } + + .flip-box-front { + z-index: 2; + transform: rotateY(0deg); + } + + .flip-box-back { + transform: rotateY(180deg); + } + + .show-back { + transform: rotateY(180deg); + } + diff --git a/src/components/event/EventBlock.svelte b/src/components/event/EventBlock.svelte index 3548c1a..c6c7a44 100644 --- a/src/components/event/EventBlock.svelte +++ b/src/components/event/EventBlock.svelte @@ -1,5 +1,4 @@ +
- {:else if eventCategory?.[0] === 'technical'}
-
- {:else if eventCategory?.[0] === 'professional'}
-
- {:else if eventCategory?.[0] === 'academic'}
-
- {:else}
-
- {/if}
-
-
-
-
-
-
+ {:else if eventCategory?.[0] === 'technical'}
+
+ {:else if eventCategory?.[0] === 'professional'}
+
+ {:else if eventCategory?.[0] === 'academic'}
+
{:else}
-
- Upcoming
-
+
{/if}
- {#if eventCategory && eventCategory.length > 0}
- {date}
-{date}
+- {location ?? 'TBA'} -
+ ++ {location ?? 'TBA'} +
+No description available for this event.
+ {/if} - -