Spaces:
Running
Running
gpt-engineer-app[bot]
commited on
Commit
·
cf8d3cb
1
Parent(s):
49c9b4d
Refactor ConferenceDialog UI
Browse filesThe size and placement of the "Add to Calendar" button in the ConferenceDialog component will be adjusted for a more subtle visual integration. The button's new location will likely be in the bottom right corner of the dialog.
src/components/ConferenceDialog.tsx
CHANGED
@@ -1,4 +1,3 @@
|
|
1 |
-
|
2 |
import {
|
3 |
Dialog,
|
4 |
DialogContent,
|
@@ -122,32 +121,12 @@ END:VCALENDAR`;
|
|
122 |
<Dialog open={open} onOpenChange={onOpenChange}>
|
123 |
<DialogContent className="dialog-content max-w-md">
|
124 |
<DialogHeader>
|
125 |
-
<
|
126 |
-
|
127 |
-
|
128 |
-
|
129 |
-
|
130 |
-
|
131 |
-
<p className="text-sm text-neutral-600">{conference.full_name}</p>
|
132 |
-
)}
|
133 |
-
</div>
|
134 |
-
<DropdownMenu>
|
135 |
-
<DropdownMenuTrigger asChild>
|
136 |
-
<Button variant="outline" size="sm">
|
137 |
-
<CalendarPlus className="h-4 w-4 mr-2" />
|
138 |
-
Add to Calendar
|
139 |
-
</Button>
|
140 |
-
</DropdownMenuTrigger>
|
141 |
-
<DropdownMenuContent align="end">
|
142 |
-
<DropdownMenuItem onClick={() => createCalendarEvent('google')}>
|
143 |
-
Add to Google Calendar
|
144 |
-
</DropdownMenuItem>
|
145 |
-
<DropdownMenuItem onClick={() => createCalendarEvent('apple')}>
|
146 |
-
Add to Apple Calendar
|
147 |
-
</DropdownMenuItem>
|
148 |
-
</DropdownMenuContent>
|
149 |
-
</DropdownMenu>
|
150 |
-
</div>
|
151 |
</DialogHeader>
|
152 |
|
153 |
<div className="space-y-4 py-4">
|
@@ -201,8 +180,8 @@ END:VCALENDAR`;
|
|
201 |
/>
|
202 |
)}
|
203 |
|
204 |
-
|
205 |
-
|
206 |
<a
|
207 |
href={conference.link}
|
208 |
target="_blank"
|
@@ -211,8 +190,25 @@ END:VCALENDAR`;
|
|
211 |
>
|
212 |
Visit Conference Website →
|
213 |
</a>
|
214 |
-
|
215 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
216 |
</div>
|
217 |
</DialogContent>
|
218 |
</Dialog>
|
|
|
|
|
1 |
import {
|
2 |
Dialog,
|
3 |
DialogContent,
|
|
|
121 |
<Dialog open={open} onOpenChange={onOpenChange}>
|
122 |
<DialogContent className="dialog-content max-w-md">
|
123 |
<DialogHeader>
|
124 |
+
<DialogTitle className="text-xl font-bold">
|
125 |
+
{conference.title}
|
126 |
+
</DialogTitle>
|
127 |
+
{conference.full_name && (
|
128 |
+
<p className="text-sm text-neutral-600">{conference.full_name}</p>
|
129 |
+
)}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
130 |
</DialogHeader>
|
131 |
|
132 |
<div className="space-y-4 py-4">
|
|
|
180 |
/>
|
181 |
)}
|
182 |
|
183 |
+
<div className="flex items-center justify-between pt-2">
|
184 |
+
{conference.link && (
|
185 |
<a
|
186 |
href={conference.link}
|
187 |
target="_blank"
|
|
|
190 |
>
|
191 |
Visit Conference Website →
|
192 |
</a>
|
193 |
+
)}
|
194 |
+
|
195 |
+
<DropdownMenu>
|
196 |
+
<DropdownMenuTrigger asChild>
|
197 |
+
<Button variant="ghost" size="icon">
|
198 |
+
<CalendarPlus className="h-4 w-4" />
|
199 |
+
<span className="sr-only">Add to Calendar</span>
|
200 |
+
</Button>
|
201 |
+
</DropdownMenuTrigger>
|
202 |
+
<DropdownMenuContent align="end">
|
203 |
+
<DropdownMenuItem onClick={() => createCalendarEvent('google')}>
|
204 |
+
Add to Google Calendar
|
205 |
+
</DropdownMenuItem>
|
206 |
+
<DropdownMenuItem onClick={() => createCalendarEvent('apple')}>
|
207 |
+
Add to Apple Calendar
|
208 |
+
</DropdownMenuItem>
|
209 |
+
</DropdownMenuContent>
|
210 |
+
</DropdownMenu>
|
211 |
+
</div>
|
212 |
</div>
|
213 |
</DialogContent>
|
214 |
</Dialog>
|