Skip to content

Rallly is an open-source scheduling and collaboration tool designed to make organizing events and meetings easier.

💄 Match the event card styling to the landing page demo (#3525)

Luke Vella4ff2d76dbfd0
diff --git a/apps/web/src/app/[locale]/(optional-space)/poll/[urlId]/admin-page.tsx b/apps/web/src/app/[locale]/(optional-space)/poll/[urlId]/admin-page.tsx
index fab4029c3..39907cf38 100644
--- a/apps/web/src/app/[locale]/(optional-space)/poll/[urlId]/admin-page.tsx
+++ b/apps/web/src/app/[locale]/(optional-space)/poll/[urlId]/admin-page.tsx
@@ -30,7 +30,10 @@ export function AdminPage({
<GuestPollAlert />
<EventCard
description={
- <EventMetaDescription className="mt-4" content={poll.description} />
+ <EventMetaDescription
+ className="mt-1 text-muted-foreground"
+ content={poll.description}
+ />
}
/>
<VotingForm>
diff --git a/apps/web/src/app/[locale]/invite/[urlId]/page.tsx b/apps/web/src/app/[locale]/invite/[urlId]/page.tsx
index 847b8b9d3..3698d91ab 100644
--- a/apps/web/src/app/[locale]/invite/[urlId]/page.tsx
+++ b/apps/web/src/app/[locale]/invite/[urlId]/page.tsx
@@ -94,7 +94,7 @@ async function InvitePageContent({ params, searchParams }: PageProps) {
// Rendered here so the markdown parser stays on the server
description={
<EventMetaDescription
- className="mt-4"
+ className="mt-1 text-muted-foreground"
content={poll.description}
/>
}
diff --git a/apps/web/src/features/poll/components/event-card.tsx b/apps/web/src/features/poll/components/event-card.tsx
index 352a11f42..ea262980d 100644
--- a/apps/web/src/features/poll/components/event-card.tsx
+++ b/apps/web/src/features/poll/components/event-card.tsx
@@ -24,7 +24,10 @@ function IconDescriptionList({
}: React.HTMLAttributes<HTMLDListElement>) {
return (
<dl
- className={cn("flex flex-wrap items-center gap-4 text-xs", className)}
+ className={cn(
+ "flex flex-wrap items-center gap-4 text-muted-foreground text-sm",
+ className,
+ )}
{...props}
>
{children}
@@ -83,9 +86,9 @@ export function EventDetails({
</p>
</div>
) : null}
- <EventMetaTitle>{poll.title}</EventMetaTitle>
+ <EventMetaTitle className="text-lg">{poll.title}</EventMetaTitle>
{description}
- <EventMetaList className="mt-4">
+ <EventMetaList className="mt-3">
{poll.user ? (
<EventMetaItem>
<User2Icon />
@@ -120,9 +123,9 @@ export function EventCard({ description }: { description: React.ReactNode }) {
return (
<Card>
<RandomGradientBar />
- <CardContent>
+ <CardContent className="p-4 sm:p-5">
<EventDetails description={description} />
- <h2 className="mt-4 mb-1.5 text-muted-foreground text-xs">
+ <h2 className="mt-3 mb-1.5 font-medium text-sm">
<Trans i18nKey="responseOptions" defaults="Response options" />
</h2>
<IconDescriptionList aria-label="Response options">
diff --git a/apps/web/src/features/poll/components/event-meta.tsx b/apps/web/src/features/poll/components/event-meta.tsx
index a91e1d321..378bf2129 100644
--- a/apps/web/src/features/poll/components/event-meta.tsx
+++ b/apps/web/src/features/poll/components/event-meta.tsx
@@ -22,7 +22,7 @@ export function EventMetaList({
className?: string;
children: React.ReactNode;
}) {
- return <ul className={cn(className, "space-y-2")}>{children}</ul>;
+ return <ul className={cn("space-y-1.5", className)}>{children}</ul>;
}
export function EventMetaItem({
@@ -38,7 +38,7 @@ export function EventMetaItem({
className,
// The icon holds its column and the text wraps beside it rather
// than under it, so a long location stays legible.
- "flex items-start gap-1.5 text-sm [&>*:not(svg)]:min-w-0 [&_svg]:mt-0.5 [&_svg]:size-4 [&_svg]:shrink-0 [&_svg]:text-muted-foreground",
+ "flex items-start gap-2 text-muted-foreground text-sm [&>*:not(svg)]:min-w-0 [&_svg]:mt-0.5 [&_svg]:size-4 [&_svg]:shrink-0 [&_svg]:text-gray-400",
)}
>
{children}