Spaces:
Running
Running
gpt-engineer-app[bot]
commited on
Commit
·
4efd7ff
1
Parent(s):
a2085ce
Improve conference card click effect
Browse filesUpdate the visual effect triggered when clicking on a conference card. The goal is to smoothly transition the card to a larger size.
- src/components/ConferenceDialog.tsx +1 -1
- src/index.css +56 -0
src/components/ConferenceDialog.tsx
CHANGED
|
@@ -29,7 +29,7 @@ const ConferenceDialog = ({ conference, open, onOpenChange }: ConferenceDialogPr
|
|
| 29 |
|
| 30 |
return (
|
| 31 |
<Dialog open={open} onOpenChange={onOpenChange}>
|
| 32 |
-
<DialogContent className="max-w-md">
|
| 33 |
<DialogHeader>
|
| 34 |
<DialogTitle className="text-xl font-bold">
|
| 35 |
{conference.title}
|
|
|
|
| 29 |
|
| 30 |
return (
|
| 31 |
<Dialog open={open} onOpenChange={onOpenChange}>
|
| 32 |
+
<DialogContent className="dialog-content max-w-md">
|
| 33 |
<DialogHeader>
|
| 34 |
<DialogTitle className="text-xl font-bold">
|
| 35 |
{conference.title}
|
src/index.css
CHANGED
|
@@ -43,3 +43,59 @@
|
|
| 43 |
.countdown {
|
| 44 |
@apply text-2xl font-semibold text-primary;
|
| 45 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 43 |
.countdown {
|
| 44 |
@apply text-2xl font-semibold text-primary;
|
| 45 |
}
|
| 46 |
+
|
| 47 |
+
@keyframes scale-up {
|
| 48 |
+
from {
|
| 49 |
+
transform: scale(0.95);
|
| 50 |
+
opacity: 0;
|
| 51 |
+
}
|
| 52 |
+
to {
|
| 53 |
+
transform: scale(1);
|
| 54 |
+
opacity: 1;
|
| 55 |
+
}
|
| 56 |
+
}
|
| 57 |
+
|
| 58 |
+
@keyframes scale-down {
|
| 59 |
+
from {
|
| 60 |
+
transform: scale(1);
|
| 61 |
+
opacity: 1;
|
| 62 |
+
}
|
| 63 |
+
to {
|
| 64 |
+
transform: scale(0.95);
|
| 65 |
+
opacity: 0;
|
| 66 |
+
}
|
| 67 |
+
}
|
| 68 |
+
|
| 69 |
+
.dialog-content {
|
| 70 |
+
animation: scale-up 0.3s ease-out;
|
| 71 |
+
}
|
| 72 |
+
|
| 73 |
+
.dialog-overlay {
|
| 74 |
+
animation: fade-in 0.3s ease-out;
|
| 75 |
+
}
|
| 76 |
+
|
| 77 |
+
[data-state="closed"] .dialog-content {
|
| 78 |
+
animation: scale-down 0.2s ease-out;
|
| 79 |
+
}
|
| 80 |
+
|
| 81 |
+
[data-state="closed"] .dialog-overlay {
|
| 82 |
+
animation: fade-out 0.2s ease-out;
|
| 83 |
+
}
|
| 84 |
+
|
| 85 |
+
@keyframes fade-in {
|
| 86 |
+
from {
|
| 87 |
+
opacity: 0;
|
| 88 |
+
}
|
| 89 |
+
to {
|
| 90 |
+
opacity: 1;
|
| 91 |
+
}
|
| 92 |
+
}
|
| 93 |
+
|
| 94 |
+
@keyframes fade-out {
|
| 95 |
+
from {
|
| 96 |
+
opacity: 1;
|
| 97 |
+
}
|
| 98 |
+
to {
|
| 99 |
+
opacity: 0;
|
| 100 |
+
}
|
| 101 |
+
}
|