From 13308194ec98e0e5175f5f8896a3c82e9fd9b788 Mon Sep 17 00:00:00 2001 From: giancarlo Date: Mon, 8 Apr 2024 20:00:52 +0800 Subject: [PATCH] Update admin and marketing layouts, add new admin components Refined both admin and marketing layouts for a clearer design. Newly added components for the admin page include admin-account-page, admin-members-table and admin-memberships-table. Also included in this update are route renaming, minor text edits and corrections in the code. --- .../_components/site-navigation.tsx | 4 +- .../_components/site-page-header.tsx | 7 +- apps/web/app/(marketing)/blog/page.tsx | 2 +- apps/web/app/(marketing)/docs/page.tsx | 20 ++- apps/web/app/(marketing)/faq/page.tsx | 2 +- apps/web/app/(marketing)/layout.tsx | 2 +- apps/web/app/(marketing)/page.tsx | 72 +++++------ apps/web/app/(marketing)/pricing/page.tsx | 2 +- .../web/app/admin/accounts/[account]/page.tsx | 7 -- apps/web/app/admin/accounts/[id]/page.tsx | 45 +++++++ apps/web/app/admin/accounts/page.tsx | 18 ++- apps/web/app/admin/layout.tsx | 4 + .../src/components/admin-account-page.tsx | 104 ++++++++++++++++ ...nts-table.tsx => admin-accounts-table.tsx} | 116 +++++++++++++----- .../admin/src/components/admin-dashboard.tsx | 2 +- .../src/components/admin-members-table.tsx | 67 ++++++++++ .../components/admin-memberships-table.tsx | 54 ++++++++ supabase/migrations/20221215192558_schema.sql | 1 - 18 files changed, 426 insertions(+), 103 deletions(-) delete mode 100644 apps/web/app/admin/accounts/[account]/page.tsx create mode 100644 apps/web/app/admin/accounts/[id]/page.tsx create mode 100644 packages/features/admin/src/components/admin-account-page.tsx rename packages/features/admin/src/components/{accounts-table.tsx => admin-accounts-table.tsx} (53%) create mode 100644 packages/features/admin/src/components/admin-members-table.tsx create mode 100644 packages/features/admin/src/components/admin-memberships-table.tsx diff --git a/apps/web/app/(marketing)/_components/site-navigation.tsx b/apps/web/app/(marketing)/_components/site-navigation.tsx index de98afd1a..c5cb33814 100644 --- a/apps/web/app/(marketing)/_components/site-navigation.tsx +++ b/apps/web/app/(marketing)/_components/site-navigation.tsx @@ -46,7 +46,9 @@ export function SiteNavigation() {
{NavItems} diff --git a/apps/web/app/(marketing)/_components/site-page-header.tsx b/apps/web/app/(marketing)/_components/site-page-header.tsx index c07e4dff3..709a819be 100644 --- a/apps/web/app/(marketing)/_components/site-page-header.tsx +++ b/apps/web/app/(marketing)/_components/site-page-header.tsx @@ -1,4 +1,3 @@ -import { Heading } from '@kit/ui/heading'; import { cn } from '@kit/ui/utils'; export function SitePageHeader(props: { @@ -8,9 +7,11 @@ export function SitePageHeader(props: { }) { return (
- {props.title} +

+ {props.title} +

{props.subtitle} diff --git a/apps/web/app/(marketing)/blog/page.tsx b/apps/web/app/(marketing)/blog/page.tsx index a1f3c69e5..800c9893f 100644 --- a/apps/web/app/(marketing)/blog/page.tsx +++ b/apps/web/app/(marketing)/blog/page.tsx @@ -25,7 +25,7 @@ async function BlogPage() { return (
-
+
!item.parentId); return ( -
- -
- + +
+ - -
-
-
+ +
+ ); } diff --git a/apps/web/app/(marketing)/faq/page.tsx b/apps/web/app/(marketing)/faq/page.tsx index 68550a91c..220c88b1b 100644 --- a/apps/web/app/(marketing)/faq/page.tsx +++ b/apps/web/app/(marketing)/faq/page.tsx @@ -68,7 +68,7 @@ async function FAQPage() { />
-
+
+
{props.children} diff --git a/apps/web/app/(marketing)/page.tsx b/apps/web/app/(marketing)/page.tsx index 9f2e587d7..ef7e8fff4 100644 --- a/apps/web/app/(marketing)/page.tsx +++ b/apps/web/app/(marketing)/page.tsx @@ -13,57 +13,50 @@ import { withI18n } from '~/lib/i18n/with-i18n'; function Home() { return ( -
-
+
+
-
+
The leading SaaS Starter Kit for ambitious developers - - The SaaS Starter Kit +
+ + The SaaS Starter Kit - straight from the future - + without compromises + -
- - Here you can write a short description of your SaaS - +
+ + Build and launch a SaaS in days, not months + - - - This subheading is usually laid out on multiple lines - - - - - Impress your customers, straight to the point. - + + + Focus on your business, not on the tech + + +
-
+
- - - Free plan. No credit card required. -
@@ -222,8 +215,7 @@ function HeroTitle({ children }: React.PropsWithChildren) { return (

{children} @@ -233,7 +225,7 @@ function HeroTitle({ children }: React.PropsWithChildren) { function Pill(props: React.PropsWithChildren) { return ( -

+

{props.children}

); @@ -266,14 +258,14 @@ function RightFeatureContainer(props: React.PropsWithChildren) { function MainCallToActionButton() { return ( -