From a51f9ffb467c647fb69f2cbdc6e20daa8062aec3 Mon Sep 17 00:00:00 2001 From: James Ritchie Date: Thu, 15 Dec 2022 17:22:47 +0000 Subject: [PATCH] New Org page styled up --- .../navigation/OrganizationMenu.tsx | 2 +- .../app/components/primitives/Buttons.tsx | 4 +-- apps/webapp/app/routes/__app/orgs/new.tsx | 33 +++++++------------ 3 files changed, 15 insertions(+), 24 deletions(-) diff --git a/apps/webapp/app/components/navigation/OrganizationMenu.tsx b/apps/webapp/app/components/navigation/OrganizationMenu.tsx index 696567ede..6842f1ec2 100644 --- a/apps/webapp/app/components/navigation/OrganizationMenu.tsx +++ b/apps/webapp/app/components/navigation/OrganizationMenu.tsx @@ -10,7 +10,7 @@ import { useOrganizations, } from "~/hooks/useOrganizations"; -const actionClassNames = "text-green-500"; +const actionClassNames = "text-white"; export function OrganizationMenu() { const organizations = useOrganizations(); diff --git a/apps/webapp/app/components/primitives/Buttons.tsx b/apps/webapp/app/components/primitives/Buttons.tsx index e17774f4e..12d61d09a 100644 --- a/apps/webapp/app/components/primitives/Buttons.tsx +++ b/apps/webapp/app/components/primitives/Buttons.tsx @@ -5,11 +5,11 @@ const commonClasses = "inline-flex items-center justify-center rounded max-w-max px-4 py-2 gap-2 text-sm transition whitespace-nowrap"; const primaryClasses = classnames( commonClasses, - "bg-blue-500 text-white hover:bg-blue-600 focus:bg-blue-600" + "bg-blue-600 text-white hover:bg-blue-700 focus:bg-blue-700" ); const secondaryClasses = classnames( commonClasses, - "bg-slate-800 text-white hover:bg-slate-900 focus:bg-slate-700" + "bg-slate-850 text-white hover:bg-slate-900 focus:bg-slate-700" ); type ButtonProps = React.DetailedHTMLProps< diff --git a/apps/webapp/app/routes/__app/orgs/new.tsx b/apps/webapp/app/routes/__app/orgs/new.tsx index f409c638b..787423702 100644 --- a/apps/webapp/app/routes/__app/orgs/new.tsx +++ b/apps/webapp/app/routes/__app/orgs/new.tsx @@ -1,9 +1,10 @@ -import { BriefcaseIcon } from "@heroicons/react/24/outline"; +import { BookmarkIcon, BriefcaseIcon } from "@heroicons/react/24/outline"; import type { ActionFunction } from "@remix-run/node"; import { json, redirect } from "@remix-run/node"; import { Form, useActionData } from "@remix-run/react"; import * as React from "react"; import { PrimaryButton, SecondaryLink } from "~/components/primitives/Buttons"; +import { Header1 } from "~/components/primitives/text/Headers"; import { createOrganization } from "~/models/organization.server"; import { requireUserId } from "~/services/session.server"; @@ -49,15 +50,11 @@ export default function NewOrganizationPage() { }, [actionData]); return ( -
-
-

+
+
+ Create a new Organization -

-

- Use Organizations to hold a collection of Projects. A typical - Organization is named after a company or team. -

+
- +
- + Cancel - - Create + + Create Organization