Skip to content

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

💄Improve dark mode support

Luke Vella86b1eed743bf
diff --git a/apps/web/src/app/[locale]/quick-create/page.tsx b/apps/web/src/app/[locale]/quick-create/page.tsx
index aea764864..962b1b525 100644
--- a/apps/web/src/app/[locale]/quick-create/page.tsx
+++ b/apps/web/src/app/[locale]/quick-create/page.tsx
@@ -1,10 +1,10 @@
import { Button } from "@rallly/ui/button";
+import { Card } from "@rallly/ui/card";
import { Icon } from "@rallly/ui/icon";
import { LogInIcon } from "lucide-react";
import type { Metadata } from "next";
import Link from "next/link";
import { notFound } from "next/navigation";
-
import {
isQuickCreateEnabled,
QuickCreateWidget,
@@ -19,7 +19,7 @@ export default async function QuickCreatePage() {
const { t } = await getTranslation();
return (
<div className="flex h-dvh p-2">
- <div className="flex flex-1 flex-col gap-6 rounded-xl border bg-white p-6">
+ <Card className="flex flex-1 flex-col gap-6 p-6">
<div className="mx-auto w-full max-w-md flex-1">
<div className="space-y-8">
<div className="flex-1">
@@ -37,7 +37,7 @@ export default async function QuickCreatePage() {
</Link>
</Button>
</div>
- </div>
+ </Card>
</div>
);
}
diff --git a/apps/web/src/components/maintenance.tsx b/apps/web/src/components/maintenance.tsx
deleted file mode 100644
index 4e03d66f3..000000000
--- a/apps/web/src/components/maintenance.tsx
+++ /dev/null
@@ -1,19 +0,0 @@
-import Head from "next/head";
-
-const Maintenance: React.FunctionComponent = () => {
- return (
- <div className="flex h-full flex-col items-center justify-center bg-gray-100">
- <Head>
- <title>Down for maintenance - Be right back</title>
- </Head>
- <div className="w-96 rounded-lg border bg-white p-8 text-center shadow-xs">
- <div className="">
- The site is currently down for some maintenance and will be back
- shortly…
- </div>
- </div>
- </div>
- );
-};
-
-export default Maintenance;
diff --git a/apps/web/src/components/poll/notifications-toggle.tsx b/apps/web/src/components/poll/notifications-toggle.tsx
index b4237c394..ec205ea2a 100644
--- a/apps/web/src/components/poll/notifications-toggle.tsx
+++ b/apps/web/src/components/poll/notifications-toggle.tsx
@@ -4,7 +4,6 @@ import { Tooltip, TooltipContent, TooltipTrigger } from "@rallly/ui/tooltip";
import { BellOffIcon, BellRingIcon } from "lucide-react";
import { usePathname, useRouter } from "next/navigation";
import type * as React from "react";
-import { Skeleton } from "@/components/skeleton";
import { Trans } from "@/components/trans";
import { useUser } from "@/components/user-provider";
import { useTranslation } from "@/i18n/client";
@@ -61,10 +60,6 @@ const NotificationsToggle: React.FunctionComponent = () => {
const { t } = useTranslation();
- if (!watchers) {
- return <Skeleton className="size-9" />;
- }
-
return (
<Tooltip>
<TooltipTrigger asChild>
diff --git a/apps/web/src/components/skeleton.tsx b/apps/web/src/components/skeleton.tsx
deleted file mode 100644
index 21ee8d3e6..000000000
--- a/apps/web/src/components/skeleton.tsx
+++ /dev/null
@@ -1,29 +0,0 @@
-import { cn } from "@rallly/ui";
-import type React from "react";
-
-export const Skeleton = (props: {
- className?: string;
- children?: React.ReactNode;
-}) => {
- return (
- <div
- className={cn("animate-pulse rounded-md bg-gray-200", props.className)}
- >
- {props.children}
- </div>
- );
-};
-
-export function SkeletonCard({
- children,
- className,
-}: {
- children?: React.ReactNode;
- className?: string;
-}) {
- return (
- <div className={cn("rounded-md bg-white shadow-xs", className)}>
- {children}
- </div>
- );
-}