From 50a6093ba91eef18c0d38acfb1750fd9db56ab67 Mon Sep 17 00:00:00 2001 From: Dan Date: Sun, 3 Mar 2024 17:29:43 +0300 Subject: [PATCH] chore: improve popup appearance --- .../event-groups/[alias]/export/page.tsx | 11 ++- .../(.)schedule/event-groups/[alias]/page.tsx | 99 ++++++++++++------- 2 files changed, 70 insertions(+), 40 deletions(-) diff --git a/app/@modal/(.)schedule/event-groups/[alias]/export/page.tsx b/app/@modal/(.)schedule/event-groups/[alias]/export/page.tsx index 4a06d22..ae1a16f 100644 --- a/app/@modal/(.)schedule/event-groups/[alias]/export/page.tsx +++ b/app/@modal/(.)schedule/event-groups/[alias]/export/page.tsx @@ -64,10 +64,11 @@ export default function Page({ params: { alias } }: Props) { ref={refs.setFloating} style={transitionStyles} {...getFloatingProps()} - className="flex p-4" + className="flex h-fit w-full flex-col p-4 @2xl/export:w-3/4 @5xl/export:w-1/2" > -
-
+
+
+ {/* Heading and description */}
Export to your calendar @@ -83,6 +84,7 @@ export default function Page({ params: { alias } }: Props) { You can add the schedule to your favorite calendar application and it will be updated on schedule changes.
+ {/* Export steps */}
  • Copy the link. @@ -108,7 +110,8 @@ export default function Page({ params: { alias } }: Props) {
  • Paste the link and click Add.
-
+ {/* Calendar itself */} +
@@ -57,12 +60,15 @@ export default function Page({ params: { alias } }: Props) { ref={refs.setFloating} style={transitionStyles} {...getFloatingProps()} - className="flex p-4" + className="flex h-fit w-full flex-col p-4 @2xl/event:w-3/4 @5xl/event:w-1/2" > -
+
+ {/* EventGroup banner */}
- {group && ( -
-
-
-

- {group.name} -

-

- {group.description || - "Hello world, this is a long description about my life and this elective."} -

+ {/* Group information */} +
+ {/* Group name and description */} + {group && ( +
+
+
+

+ {group.name} +

+

+ {group.description || + "Hello world, this is a long description about my life and this elective."} +

+
+
-
+ )} + {/* Tags information */} +

Tags

- {group.tags?.map((tag) => ( -
- {tag.name} -
- ))} + {group ? ( + group.tags?.map((tag) => ( +
+ {tag.name} +
+ )) + ) : ( +

Loading tags...

+ )}
-
-

- Calendar -

+
+ {/* Calendar title and Export button */} +
+

+ Calendar +

+ {group ? ( -
-
+ ) : ( +

Loading...

+ )} +
+ {/* Calendar itself */} +
+ {group ? ( -
+ ) : ( +

Loading calendar...

+ )}
- )} +