fix styling issue
This commit is contained in:
@@ -84,7 +84,7 @@
|
|||||||
onclick={flipCard}
|
onclick={flipCard}
|
||||||
></div>
|
></div>
|
||||||
<!-- Image Container with Gradient Overlay -->
|
<!-- Image Container with Gradient Overlay -->
|
||||||
<div class="relative h-80 overflow-hidden rounded-2xl">
|
<div class="relative h-80 overflow-hidden rounded-t-2xl">
|
||||||
{#if thumbnail}
|
{#if thumbnail}
|
||||||
<img class="h-full w-full object-cover" src={thumbnail} alt={eventTitle} />
|
<img class="h-full w-full object-cover" src={thumbnail} alt={eventTitle} />
|
||||||
{:else if eventCategory?.[0] === 'social'}
|
{:else if eventCategory?.[0] === 'social'}
|
||||||
@@ -105,7 +105,7 @@
|
|||||||
|
|
||||||
<!-- Gradient overlay -->
|
<!-- Gradient overlay -->
|
||||||
<div
|
<div
|
||||||
class="via-ecsess-800/30 to-ecsess-950 absolute inset-0 rounded-2xl bg-gradient-to-b from-transparent"
|
class="via-ecsess-800/30 to-ecsess-950 absolute inset-0 rounded-t-2xl bg-gradient-to-b from-transparent"
|
||||||
></div>
|
></div>
|
||||||
<!-- Event Title Overlay -->
|
<!-- Event Title Overlay -->
|
||||||
<div class="absolute right-0 bottom-0 left-0 p-6">
|
<div class="absolute right-0 bottom-0 left-0 p-6">
|
||||||
@@ -284,9 +284,6 @@
|
|||||||
|
|
||||||
<style>
|
<style>
|
||||||
.flip-box {
|
.flip-box {
|
||||||
/* height: 100%;
|
|
||||||
width: 100%;
|
|
||||||
perspective: 1000px; Remove this if you don't want the 3D effect */
|
|
||||||
@apply h-full w-full perspective-[1000px];
|
@apply h-full w-full perspective-[1000px];
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -319,14 +316,14 @@
|
|||||||
|
|
||||||
.flip-box-front,
|
.flip-box-front,
|
||||||
.flip-box-back {
|
.flip-box-back {
|
||||||
@apply grid-1/1 h-full w-full rounded-2xl [-webkit-backface-visibility:hidden] backface-hidden;
|
@apply col-1 row-1 h-full w-full [-webkit-backface-visibility:hidden] backface-hidden;
|
||||||
}
|
}
|
||||||
.flip-box-front {
|
.flip-box-front {
|
||||||
@apply transform-rotate-y-0 z-2 transform-3d;
|
@apply rotate-y-0 z-2 transform-3d;
|
||||||
}
|
}
|
||||||
|
|
||||||
.flip-box-back {
|
.flip-box-back {
|
||||||
@apply transform-rotate-y-180;
|
@apply rotate-y-180;
|
||||||
}
|
}
|
||||||
|
|
||||||
.show-back {
|
.show-back {
|
||||||
|
|||||||
Reference in New Issue
Block a user