Command Palette

Search for a command...

Building Blocks for the Web

Clean, modern building blocks. Copy and paste into your apps. Works with all React frameworks. Open Source. Free forever.

A simple forgot password form
Open in New Tab
forgot-password-01
app/forgot-password/page.tsx
import { styled } from "styled-system/jsx";
import { ForgotPasswordForm } from "@/components/forgot-password-form";

export default function ForgotPasswordPage() {
  return (
    <styled.div
      css={{
        display: "flex",
        minH: "svh",
        w: "full",
        alignItems: "center",
        justifyContent: "center",
        p: "6",
        md: { p: "10" },
      }}
    >
      <styled.div css={{ w: "full", maxW: "sm" }}>
        <ForgotPasswordForm />
      </styled.div>
    </styled.div>
  );
}
A simple forgot password form.
forgot-password-01
forgot-password-01forgot-password-01
app/forgot-password/page.tsx
import { LuGalleryVerticalEnd } from "react-icons/lu";
import { css } from "styled-system/css";
import { styled } from "styled-system/jsx";
import { ForgotPasswordForm } from "@/components/forgot-password-form";

export default function ForgotPasswordPage() {
  return (
    <styled.div
      css={{
        display: "grid",
        minH: "svh",
        lg: { gridTemplateColumns: "repeat(2, minmax(0, 1fr))" },
      }}
    >
      <styled.div css={{ display: "flex", flexDir: "column", gap: "4", p: "6", md: { p: "10" } }}>
        <styled.div
          css={{
            display: "flex",
            justifyContent: "center",
            gap: "2",
            md: { justifyContent: "flex-start" },
          }}
        >
          <styled.a
            href="#"
            css={{ display: "flex", alignItems: "center", gap: "2", fontWeight: "medium" }}
          >
            <styled.div
              css={{
                bg: "primary",
                color: "primary.fg",
                display: "flex",
                w: "6",
                h: "6",
                alignItems: "center",
                justifyContent: "center",
                rounded: "md",
              }}
            >
              <LuGalleryVerticalEnd className={css({ w: "4", h: "4" })} />
            </styled.div>
            Acme Inc.
          </styled.a>
        </styled.div>
        <styled.div
          css={{ display: "flex", flex: "1", alignItems: "center", justifyContent: "center" }}
        >
          <styled.div css={{ w: "full", maxW: "xs" }}>
            <ForgotPasswordForm />
          </styled.div>
        </styled.div>
      </styled.div>
      <styled.div
        css={{ bg: "muted", pos: "relative", display: "none", lg: { display: "block" } }}
        className="bg-muted relative hidden lg:block"
      >
        <styled.img
          src="/placeholder.svg"
          alt="Image"
          css={{
            pos: "absolute",
            inset: "0",
            h: "full",
            w: "full",
            objectFit: "cover",
            _dark: { filter: "brightness(0.2) grayscale(100%)" },
          }}
        />
      </styled.div>
    </styled.div>
  );
}
A two column forgot password page with a cover image.
forgot-password-02
forgot-password-02forgot-password-02
app/forgot-password/page.tsx
import { LuGalleryVerticalEnd } from "react-icons/lu";
import { css } from "styled-system/css";
import { styled } from "styled-system/jsx";
import { ForgotPasswordForm } from "@/components/forgot-password-form";

export default function ForgotPasswordPage() {
  return (
    <styled.div
      css={{
        bg: "muted",
        display: "flex",
        minH: "svh",
        flexDir: "column",
        alignItems: "center",
        justifyContent: "center",
        gap: "6",
        p: "6",
        md: { p: "10" },
      }}
    >
      <styled.div css={{ display: "flex", w: "full", maxW: "sm", flexDir: "column", gap: "6" }}>
        <styled.a
          href="#"
          css={{
            display: "flex",
            alignItems: "center",
            gap: "2",
            alignSelf: "center",
            fontWeight: "medium",
          }}
        >
          <styled.div
            css={{
              bg: "primary",
              color: "primary.fg",
              display: "flex",
              w: "6",
              h: "6",
              alignItems: "center",
              justifyContent: "center",
              rounded: "md",
            }}
          >
            <LuGalleryVerticalEnd className={css({ w: "4", h: "4" })} />
          </styled.div>
          Acme Inc.
        </styled.a>
        <ForgotPasswordForm />
      </styled.div>
    </styled.div>
  );
}
A forgot password page with a muted background color.
forgot-password-03
forgot-password-03forgot-password-03
A forgot password page with form and image
Open in New Tab
forgot-password-04
app/forgot-password/page.tsx
import { styled } from "styled-system/jsx";
import { ForgotPasswordForm } from "@/components/forgot-password-form";

export default function ForgotPasswordPage() {
  return (
    <styled.div
      css={{
        bg: "muted",
        display: "flex",
        minH: "svh",
        flexDir: "column",
        alignItems: "center",
        justifyContent: "center",
        p: "6",
        md: { p: "10" },
      }}
    >
      <styled.div css={{ w: "full", maxW: "sm", md: { maxW: "3xl" } }}>
        <ForgotPasswordForm />
      </styled.div>
    </styled.div>
  );
}
A forgot password page with form and image.
forgot-password-04
forgot-password-04forgot-password-04
A plain forgot password page
Open in New Tab
forgot-password-05
app/forgot-password/page.tsx
import { styled } from "styled-system/jsx";
import { ForgotPasswordForm } from "@/components/forgot-password-form";

export default function ForgotPasswordPage() {
  return (
    <styled.div
      css={{
        bg: "bg",
        display: "flex",
        minH: "svh",
        flexDir: "column",
        alignItems: "center",
        justifyContent: "center",
        gap: "6",
        p: "6",
        md: { p: "10" },
      }}
    >
      <styled.div css={{ w: "full", maxW: "sm" }}>
        <ForgotPasswordForm />
      </styled.div>
    </styled.div>
  );
}
A plain forgot password page.
forgot-password-05
forgot-password-05forgot-password-05