Skip to content

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

💄 UI refinements

Luke Velladd86c91a295d
diff --git a/apps/web/src/app/[locale]/not-found.tsx b/apps/web/src/app/[locale]/not-found.tsx
index 113a10b22..44b6ddb99 100644
--- a/apps/web/src/app/[locale]/not-found.tsx
+++ b/apps/web/src/app/[locale]/not-found.tsx
@@ -19,7 +19,10 @@ export default async function NotFoundPage() {
"Sorry, we couldn't find the page you're looking for. Here are some helpful links instead.",
})}
actions={
- <Link href="/" className={buttonVariants({ variant: "primary" })}>
+ <Link
+ href="/"
+ className={buttonVariants({ size: "lg", variant: "primary" })}
+ >
{t("errorBackToHome", { defaultValue: "Back to home" })}
</Link>
}
diff --git a/apps/web/src/components/error-page.tsx b/apps/web/src/components/error-page.tsx
index 073d1aeb7..c42351521 100644
--- a/apps/web/src/components/error-page.tsx
+++ b/apps/web/src/components/error-page.tsx
@@ -34,20 +34,18 @@ export function ErrorPage({
height={30}
className="mx-auto hidden dark:block"
/>
- <div className="mx-auto mt-20 max-w-2xl text-center sm:mt-24">
+ <div className="mx-auto mt-16 max-w-2xl text-center">
<p className="font-semibold text-base/8 text-primary">{label}</p>
- <h1 className="mt-4 text-balance font-semibold text-5xl text-foreground tracking-tight sm:text-6xl">
+ <h1 className="mt-4 text-balance font-semibold text-3xl text-foreground tracking-tight sm:text-5xl">
{title}
</h1>
- <p className="mt-6 text-pretty text-lg text-muted-foreground sm:text-xl/8">
+ <p className="mt-6 text-pretty text-muted-foreground text-xl">
{description}
</p>
</div>
- <div className="mx-auto mt-16 flow-root max-w-lg sm:mt-20">
- <ul className="-mt-6 divide-y divide-border border-border border-b">
- {children}
- </ul>
- <div className="mt-10 flex items-center justify-center gap-x-4">
+ <div className="mx-auto mt-16 flow-root max-w-lg">
+ <ul className="grid">{children}</ul>
+ <div className="mt-16 flex items-center justify-center gap-x-4">
{actions}
</div>
</div>
@@ -68,8 +66,8 @@ export function ErrorPageLinkItem({
description: React.ReactNode;
}) {
return (
- <li className="relative flex gap-x-6 py-6">
- <div className="flex size-10 flex-none items-center justify-center rounded-lg border border-border bg-card">
+ <li className="relative flex gap-x-6 rounded-xl p-4 hover:bg-accent">
+ <div className="flex size-12 flex-none items-center justify-center self-center rounded-lg border border-border bg-card shadow-xs">
{icon}
</div>
<div className="flex-auto">
@@ -79,7 +77,7 @@ export function ErrorPageLinkItem({
{title}
</Link>
</h3>
- <p className="mt-1 text-muted-foreground text-sm/6">{description}</p>
+ <p className="mt-0.5 text-muted-foreground text-sm/6">{description}</p>
</div>
<div className="flex-none self-center">
<ChevronRightIcon
diff --git a/packages/ui/src/button-variants.ts b/packages/ui/src/button-variants.ts
index bb4487ace..1e56c14e0 100644
--- a/packages/ui/src/button-variants.ts
+++ b/packages/ui/src/button-variants.ts
@@ -26,8 +26,8 @@ export const buttonVariants = cva(
"h-8 gap-1.5 px-2.5 text-sm has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",
xs: "h-6 gap-1 in-data-[slot=button-group]:rounded-lg rounded-[min(var(--radius-md),10px)] px-2 text-sm text-xs has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3",
sm: "h-7 gap-1 in-data-[slot=button-group]:rounded-lg rounded-[min(var(--radius-md),12px)] px-2.5 text-[0.8rem] text-sm has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3.5",
- lg: "h-10 gap-1.5 px-2.5 text-sm has-data-[icon=inline-end]:pr-3 has-data-[icon=inline-start]:pl-3",
- xl: "h-12 gap-2 px-4 text-base has-data-[icon=inline-end]:pr-4 has-data-[icon=inline-start]:pl-4",
+ lg: "h-10 gap-1.5 px-3 text-sm has-data-[icon=inline-end]:pr-2.5 has-data-[icon=inline-start]:pl-2.5",
+ xl: "h-12 gap-2 px-4 text-base has-data-[icon=inline-end]:pr-3.5 has-data-[icon=inline-start]:pl-3.5",
icon: "size-8",
"icon-xs":
"size-6 in-data-[slot=button-group]:rounded-lg rounded-[min(var(--radius-md),10px)] [&_svg:not([class*='size-'])]:size-3",