diff --git a/apps/web/src/app/(dashboard)/dashboard/page.tsx b/apps/web/src/app/(dashboard)/dashboard/page.tsx index 6af737a68..a9d650eb6 100644 --- a/apps/web/src/app/(dashboard)/dashboard/page.tsx +++ b/apps/web/src/app/(dashboard)/dashboard/page.tsx @@ -34,23 +34,22 @@ export default async function DashboardPage() { }), ]); - const cardData = [ - { icon: FileCheck, title: 'Completed', status: stats.COMPLETED }, - { icon: File, title: 'Drafts', status: stats.DRAFT }, - { icon: Clock, title: 'Pending', status: stats.PENDING }, - ]; - return (

Dashboard

+
- {cardData.map((card) => ( - - - - ))} + + + + + + + + +
- ; +
diff --git a/apps/web/src/app/(signing)/sign/[token]/date-field.tsx b/apps/web/src/app/(signing)/sign/[token]/date-field.tsx index 599aa8358..8e2201df9 100644 --- a/apps/web/src/app/(signing)/sign/[token]/date-field.tsx +++ b/apps/web/src/app/(signing)/sign/[token]/date-field.tsx @@ -82,17 +82,13 @@ export const DateField = ({ field, recipient }: DateFieldProps) => {
)} -

- {field.inserted ? field.customText : 'Date'} -

+ {!field.inserted && ( +

Date

+ )} + + {field.inserted && ( +

{field.customText}

+ )} ); }; diff --git a/apps/web/src/app/(signing)/sign/[token]/signing-field-container.tsx b/apps/web/src/app/(signing)/sign/[token]/signing-field-container.tsx index 329b9938b..cdf6dee24 100644 --- a/apps/web/src/app/(signing)/sign/[token]/signing-field-container.tsx +++ b/apps/web/src/app/(signing)/sign/[token]/signing-field-container.tsx @@ -60,16 +60,18 @@ export const SigningFieldContainer = ({ 'text-foreground hover:shadow-primary-foreground group flex h-full w-full flex-col items-center justify-center p-2', )} > - + {!field.inserted && !loading && ( + + )} {children} diff --git a/apps/web/src/components/(marketing)/faster-smarter-beautiful-bento.tsx b/apps/web/src/components/(marketing)/faster-smarter-beautiful-bento.tsx index 8b7eaf15c..2cbaaef53 100644 --- a/apps/web/src/components/(marketing)/faster-smarter-beautiful-bento.tsx +++ b/apps/web/src/components/(marketing)/faster-smarter-beautiful-bento.tsx @@ -16,21 +16,6 @@ export const FasterSmarterBeautifulBento = ({ className, ...props }: FasterSmarterBeautifulBentoProps) => { - const featureCards = [ - { - title: 'Beautiful.', - description: - 'Because signing should be celebrated. That’s why we care about the smallest detail in our product.', - image: cardBeautifulFigure, - }, - { - title: 'Smart.', - description: - 'Our custom templates come with smart rules that can help you save time and energy.', - image: cardSmartFigure, - }, - ]; - return (
@@ -60,19 +45,32 @@ export const FasterSmarterBeautifulBento = ({ - {featureCards.map((card, index) => ( - - -

- {card.title} - {card.description} -

-
- Its fast -
-
-
- ))} + + +

+ Beautiful. + Because signing should be celebrated. That’s why we care about the smallest detail in + our product. +

+ +
+ its fast +
+
+
+ + + +

+ Smart. + Our custom templates come with smart rules that can help you save time and energy. +

+ +
+ its fast +
+
+
); diff --git a/apps/web/src/components/(marketing)/footer.tsx b/apps/web/src/components/(marketing)/footer.tsx index df47b05da..255d91985 100644 --- a/apps/web/src/components/(marketing)/footer.tsx +++ b/apps/web/src/components/(marketing)/footer.tsx @@ -9,13 +9,13 @@ import { cn } from '@documenso/ui/lib/utils'; export type FooterProps = HTMLAttributes; -export const Footer = ({ className, ...props }: FooterProps) => { - const socialLinks = [ - { href: 'https://twitter.com/documenso', icon: }, - { href: 'https://github.com/documenso/documenso', icon: }, - { href: 'https://documenso.slack.com', icon: }, - ]; +const SOCIAL_LINKS = [ + { href: 'https://twitter.com/documenso', icon: }, + { href: 'https://github.com/documenso/documenso', icon: }, + { href: 'https://documenso.slack.com', icon: }, +]; +export const Footer = ({ className, ...props }: FooterProps) => { const footerLinks = [ { href: '/pricing', text: 'Pricing' }, { href: 'https://status.documenso.com', text: 'Status', target: '_blank' }, @@ -32,7 +32,7 @@ export const Footer = ({ className, ...props }: FooterProps) => {
- {socialLinks.map((link, index) => ( + {SOCIAL_LINKS.map((link, index) => ( {link.icon} diff --git a/apps/web/src/components/(marketing)/open-build-template-bento.tsx b/apps/web/src/components/(marketing)/open-build-template-bento.tsx index 779ef36e5..e7920500b 100644 --- a/apps/web/src/components/(marketing)/open-build-template-bento.tsx +++ b/apps/web/src/components/(marketing)/open-build-template-bento.tsx @@ -13,22 +13,6 @@ import cardTemplateFigure from '~/assets/card-template-figure.png'; export type OpenBuildTemplateBentoProps = HTMLAttributes; export const OpenBuildTemplateBento = ({ className, ...props }: OpenBuildTemplateBentoProps) => { - const cardData = [ - { - title: 'Build on top.', - description: 'Make it your own through advanced customization and adjustability.', - image: cardBuildFigure, - imageSize: 'max-w-xs', - }, - { - title: 'Template Store (Soon).', - description: - 'Choose a template from the community app store. Or submit your own template for others to use.', - image: cardTemplateFigure, - imageSize: 'max-w-sm', - }, - ]; - return (
@@ -58,19 +42,32 @@ export const OpenBuildTemplateBento = ({ className, ...props }: OpenBuildTemplat - {cardData.map((card, index) => ( - - -

- {card.title} - {card.description} -

-
- Its fast -
-
-
- ))} + + +

+ Build on top. + Make it your own through advanced customization and adjustability. +

+ +
+ its fast +
+
+
+ + + +

+ Template Store (Soon). + Choose a template from the community app store. Or submit your own template for others + to use. +

+ +
+ its fast +
+
+
); diff --git a/apps/web/src/components/(marketing)/share-connect-paid-widget-bento.tsx b/apps/web/src/components/(marketing)/share-connect-paid-widget-bento.tsx index 8c7fa74e5..05b6a3232 100644 --- a/apps/web/src/components/(marketing)/share-connect-paid-widget-bento.tsx +++ b/apps/web/src/components/(marketing)/share-connect-paid-widget-bento.tsx @@ -17,29 +17,6 @@ export const ShareConnectPaidWidgetBento = ({ className, ...props }: ShareConnectPaidWidgetBentoProps) => { - const cardData = [ - { - title: 'Connections (Soon).', - description: - 'Create connections and automations with Zapier and more to integrate with your favorite tools.', - image: cardConnectionsFigure, - imageSize: 'max-w-sm', - }, - { - title: 'Get paid (Soon).', - description: 'Integrated payments with stripe so you don’t have to worry about getting paid.', - image: cardPaidFigure, - imageSize: 'max-w-[14rem]', - }, - { - title: 'React Widget (Soon).', - description: - 'Easily embed Documenso into your product. Simply copy and paste our react widget into your application.', - image: cardWidgetFigure, - imageSize: 'max-w-xs', - }, - ]; - return (
@@ -68,19 +45,46 @@ export const ShareConnectPaidWidgetBento = ({ - {cardData.map((card, index) => ( - - -

- {card.title} - {card.description} -

-
- Its fast -
-
-
- ))} + + +

+ Connections (Soon). + Create connections and automations with Zapier and more to integrate with your + favorite tools. +

+ +
+ its fast +
+
+
+ + + +

+ Get paid (Soon). + Integrated payments with stripe so you don’t have to worry about getting paid. +

+ +
+ its fast +
+
+
+ + + +

+ React Widget (Soon). + Easily embed Documenso into your product. Simply copy and paste our react widget into + your application. +

+ +
+ its fast +
+
+
);