Skip to content

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

1.0 KB
Raw Blame
import { cn } from "@rallly/ui";

// The window the desktop demo sits in: a light border and a soft, layered
// shadow.
export const DemoWindow = ({ children }: { children: React.ReactNode }) => (
  <div className="overflow-hidden rounded-2xl border border-gray-200/80 bg-white shadow-[0_1px_2px_rgb(0_0_0/0.04),0_8px_24px_-6px_rgb(0_0_0/0.06),0_24px_64px_-16px_rgb(0_0_0/0.10)]">
    {children}
  </div>
);

// The phone's glass bezel. The screen radius is the frame radius minus the 1px
// border and 6px padding so the corners stay concentric.
export const DemoFrame = ({
  children,
  className,
}: {
  children: React.ReactNode;
  className?: string;
}) => (
  <div
    className={cn(
      "rounded-3xl border border-white/60 bg-white/60 p-1.5 shadow-sm backdrop-blur-xl",
      className,
    )}
  >
    {children}
  </div>
);

export const DemoScreen = ({
  children,
  className,
}: {
  children: React.ReactNode;
  className?: string;
}) => (
  <div
    className={cn("overflow-hidden rounded-[17px] border bg-white", className)}
  >
    {children}
  </div>
);