feat: wip invoice mail receipt preview

This commit is contained in:
Ahmed Bouhuolia
2024-10-22 14:00:36 +02:00
parent b7f316d25a
commit c0481f67ad
10 changed files with 76 additions and 23 deletions

View File

@@ -1,8 +1,9 @@
import { Text, Classes, Button, Intent, ButtonProps } from '@blueprintjs/core';
import clsx from 'classnames';
import { css } from '@emotion/css';
import { lighten } from 'polished';
import { Box, Group, Stack } from '@/components';
import styles from './PaymentPortal.module.scss';
import { css } from '@emotion/css';
export interface PaymentPageProps {
// # Company name
@@ -58,6 +59,8 @@ export interface PaymentPageProps {
// # Copyright
copyrightText?: string;
classNames?: Record<string, string>
}
export function InvoicePaymentPage({
@@ -67,7 +70,7 @@ export function InvoicePaymentPage({
organizationAddress,
// # Colors
primaryColor,
primaryColor = 'rgb(0, 82, 204)',
// # Customer
customerName,
@@ -114,9 +117,11 @@ export function InvoicePaymentPage({
// # Copyright
copyrightText = `© 2024 Bigcapital Technology, Inc. <br /> All rights reserved.`,
classNames,
}: PaymentPageProps) {
return (
<Box className={styles.root}>
<Box className={clsx(styles.root, classNames?.root)}>
<Stack spacing={0} className={styles.body}>
<Stack>
<Group spacing={10}>
@@ -217,6 +222,11 @@ export function InvoicePaymentPage({
css`
&.bp4-intent-primary {
background-color: ${primaryColor};
&:hover,
&:focus {
background-color: ${lighten(0.1, primaryColor)};
}
}
`,
)}

View File

@@ -7,7 +7,7 @@
border-radius: 10px;
box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.1);
width: 600px;
margin: 40px auto;
// margin: 40px auto;
color: #222;
background-color: #fff;
}