mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-19 14:20:31 +00:00
feat: wip invoice mail receipt preview
This commit is contained in:
@@ -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)};
|
||||
}
|
||||
}
|
||||
`,
|
||||
)}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user