diff --git a/client/src/common/homepageOptions.js b/client/src/common/homepageOptions.js index 8eb280ce9..088e8cf49 100644 --- a/client/src/common/homepageOptions.js +++ b/client/src/common/homepageOptions.js @@ -1,56 +1,130 @@ -export const shortcutBox = [ +import React from 'react'; +import { FormattedMessage as T } from 'react-intl'; + +export const accountsReceivable = [ { - title: 'Request time Off', - iconColor: '#F3FEFA', - description: - 'Cupidatat nulla minim sit duis duis laboris. Sint exercitation.', - }, - { - title: 'Benefits', - iconColor: '#F5F3FE', - description: - 'Cupidatat nulla minim sit duis duis laboris. Sint exercitation.', - }, - { - title: 'Schedule a one-on-one', - iconColor: '#F2F9FF', - description: - 'Cupidatat nulla minim sit duis duis laboris. Sint exercitation.', - }, - { - title: 'Payroll', - iconColor: '#FFFCED', - description: - 'Cupidatat nulla minim sit duis duis laboris. Sint exercitation.', - }, - { - title: 'Submit an expense', - iconColor: '#FDF1F1', - description: - 'Cupidatat nulla minim sit duis duis laboris. Sint exercitation.', - }, - { - title: 'Training', - iconColor: '#EFF1FE', - description: - 'Cupidatat nulla minim sit duis duis laboris. Sint exercitation.', + sectionTitle: , + shortcuts: [ + { + title: 'Sales invoices', + description: + 'Labore aute elit proident sit culpa. Commodo nulla veniam ullamco ullamco ut nulla pariatur eu. Esse tempor irure incididunt veniam sint excepteur quis.', + link: '/invoices', + }, + { + title: 'Sales estimates', + description: + 'Labore aute elit proident sit culpa. Commodo nulla veniam ullamco ullamco ut nulla pariatur eu. Esse tempor irure incididunt veniam sint excepteur quis.', + + link: '/estimates', + }, + { + title: 'Sales receipts', + description: + 'Labore aute elit proident sit culpa. Commodo nulla veniam ullamco ullamco ut nulla pariatur eu. Esse tempor irure incididunt veniam sint excepteur quis.', + + link: '/receipts', + }, + { + title: 'Customers', + description: + 'Labore aute elit proident sit culpa. Commodo nulla veniam ullamco ullamco ut nulla pariatur eu. Esse tempor irure incididunt veniam sint excepteur quis.', + + link: '/customers', + }, + { + title: 'Customers payment', + description: + 'Labore aute elit proident sit culpa. Commodo nulla veniam ullamco ullamco ut nulla pariatur eu. Esse tempor irure incididunt veniam sint excepteur quis.', + link: '/', + }, + ], }, ]; -export const announcementLists = [ +export const accountsPayable = [ { - title: 'Office closed on July 2nd', - description: - 'Incididunt Lorem ad sunt proident nulla exercitation consectetur reprehenderit labore qui.', - }, - { - title: 'New Password policy ', - description: - 'Incididunt Lorem ad sunt proident nulla exercitation consectetur reprehenderit labore qui.', - }, - { - title: 'Office closed on July 2nd', - description: - 'Incididunt Lorem ad sunt proident nulla exercitation consectetur reprehenderit labore qui.', + sectionTitle: , + shortcuts: [ + { + title: 'Purchase invoices', + description: + 'Labore aute elit proident sit culpa. Commodo nulla veniam ullamco ullamco ut nulla pariatur eu. Esse tempor irure incididunt veniam sint excepteur quis.', + + link: '/bills', + }, + { + title: 'Vendors', + description: + 'Labore aute elit proident sit culpa. Commodo nulla veniam ullamco ullamco ut nulla pariatur eu. Esse tempor irure incididunt veniam sint excepteur quis.', + link: '/vendors', + }, + { + title: 'Vendors payments', + description: + 'Labore aute elit proident sit culpa. Commodo nulla veniam ullamco ullamco ut nulla pariatur eu. Esse tempor irure incididunt veniam sint excepteur quis.', + + link: '/payment-mades', + }, + ], + }, +]; + +export const financialAccounting = [ + { + sectionTitle: , + shortcuts: [ + { + title: 'Chart of accounts', + description: + 'Labore aute elit proident sit culpa. Commodo nulla veniam ullamco ullamco ut nulla pariatur eu. Esse tempor irure incididunt veniam sint excepteur quis.', + + link: '/accounts', + }, + { + title: 'Manual journal', + description: + 'Labore aute elit proident sit culpa. Commodo nulla veniam ullamco ullamco ut nulla pariatur eu. Esse tempor irure incididunt veniam sint excepteur quis.', + link: '/manual-journals', + }, + { + title: 'Expenses', + description: + 'Labore aute elit proident sit culpa. Commodo nulla veniam ullamco ullamco ut nulla pariatur eu. Esse tempor irure incididunt veniam sint excepteur quis.', + link: '/expenses', + }, + { + title: 'Financial statements', + description: + 'Labore aute elit proident sit culpa. Commodo nulla veniam ullamco ullamco ut nulla pariatur eu. Esse tempor irure incididunt veniam sint excepteur quis.', + link: '/', + }, + ], + }, +]; + +export const productsServices = [ + { + sectionTitle: , + shortcuts: [ + { + title: 'Products & Services', + description: + 'Labore aute elit proident sit culpa. Commodo nulla veniam ullamco ullamco ut nulla pariatur eu. Esse tempor irure incididunt veniam sint excepteur quis.', + link: '/items', + }, + { + title: 'Products & Services Categories', + description: + 'Labore aute elit proident sit culpa. Commodo nulla veniam ullamco ullamco ut nulla pariatur eu. Esse tempor irure incididunt veniam sint excepteur quis.', + link: '/categories', + }, + { + title: 'Inventory Adjustments', + description: + 'Labore aute elit proident sit culpa. Commodo nulla veniam ullamco ullamco ut nulla pariatur eu. Esse tempor irure incididunt veniam sint excepteur quis.', + link: '/inventory-adjustments', + }, + ], }, ]; diff --git a/client/src/containers/Homepage/AccountsPayableSection.js b/client/src/containers/Homepage/AccountsPayableSection.js new file mode 100644 index 000000000..8f076261d --- /dev/null +++ b/client/src/containers/Homepage/AccountsPayableSection.js @@ -0,0 +1,7 @@ +import React from 'react'; +import ShortcutBoxesSection from './ShortcutBoxesSection'; +import { accountsPayable } from 'common/homepageOptions'; + +export default function AccountsPayableSection() { + return ; +} diff --git a/client/src/containers/Homepage/AccountsReceivableSection.js b/client/src/containers/Homepage/AccountsReceivableSection.js new file mode 100644 index 000000000..c3da40d8f --- /dev/null +++ b/client/src/containers/Homepage/AccountsReceivableSection.js @@ -0,0 +1,7 @@ +import React from 'react'; +import ShortcutBoxesSection from './ShortcutBoxesSection'; +import { accountsReceivable } from 'common/homepageOptions'; + +export default function AccountsReceivableSection() { + return ; +} diff --git a/client/src/containers/Homepage/FinancialAccountingSection.js b/client/src/containers/Homepage/FinancialAccountingSection.js new file mode 100644 index 000000000..ab89d973d --- /dev/null +++ b/client/src/containers/Homepage/FinancialAccountingSection.js @@ -0,0 +1,7 @@ +import React from 'react'; +import ShortcutBoxesSection from './ShortcutBoxesSection'; +import { financialAccounting } from 'common/homepageOptions'; + +export default function FinancialAccountingSection() { + return ; +} diff --git a/client/src/containers/Homepage/HomepageContent.js b/client/src/containers/Homepage/HomepageContent.js index fbdec2520..7c6f9665a 100644 --- a/client/src/containers/Homepage/HomepageContent.js +++ b/client/src/containers/Homepage/HomepageContent.js @@ -1,14 +1,17 @@ import React from 'react'; -import ShortcutBoxes from './ShortcutBoxes'; -import AnnouncementList from './AnnouncementList'; - +import AccountsReceivableSection from './AccountsReceivableSection'; +import AccountsPayableSection from './AccountsPayableSection'; +import FinancialAccountingSection from './FinancialAccountingSection'; +import ProductsServicesSection from './ProductsServicesSection'; import 'style/pages/HomePage/HomePage.scss'; function HomepageContent() { return ( -
- - +
+ + + +
); } diff --git a/client/src/containers/Homepage/ProductsServicesSection.js b/client/src/containers/Homepage/ProductsServicesSection.js new file mode 100644 index 000000000..ca9095dc0 --- /dev/null +++ b/client/src/containers/Homepage/ProductsServicesSection.js @@ -0,0 +1,7 @@ +import React from 'react'; +import ShortcutBoxesSection from './ShortcutBoxesSection'; +import { productsServices } from 'common/homepageOptions'; + +export default function ProductsServicesSection() { + return ; +} diff --git a/client/src/containers/Homepage/ShortcutBoxes.js b/client/src/containers/Homepage/ShortcutBoxes.js deleted file mode 100644 index fb19d9b16..000000000 --- a/client/src/containers/Homepage/ShortcutBoxes.js +++ /dev/null @@ -1,45 +0,0 @@ -import React from 'react'; -import { FormattedMessage as T, useIntl } from 'react-intl'; -import classNames from 'classnames'; -import { shortcutBox } from 'common/homepageOptions'; -import { Icon } from 'components'; - -function ShortcutBox({ title, iconColor, description }) { - return ( -
-
- - - - - - - - -
-
{title}
-
{description}
-
- ); -} - -function ShortcutBoxes() { - return ( -
- {shortcutBox.map(({ title, description, iconColor }) => { - return ( - - ); - })} -
- ); -} - -export default ShortcutBoxes; diff --git a/client/src/containers/Homepage/ShortcutBoxesSection.js b/client/src/containers/Homepage/ShortcutBoxesSection.js new file mode 100644 index 000000000..b66b3d54a --- /dev/null +++ b/client/src/containers/Homepage/ShortcutBoxesSection.js @@ -0,0 +1,39 @@ +import React from 'react'; +import { Link } from 'react-router-dom'; +import { For } from 'components'; + +import 'style/pages/FinancialStatements/FinancialSheets.scss'; + +function ShortcutBox({ title, link, description }) { + return ( +
+ + {title} + +

{description}

+
+ ); +} + +function ShortcutBoxes({ sectionTitle, shortcuts }) { + return ( +
+
{sectionTitle}
+
+ + + {/* {shortcuts.map(({ title, link, description }) => ( + + ))} */} +
+
+ ); +} + +export default function ShortcutBoxesSection({ section }) { + return ( +
+ +
+ ); +} diff --git a/client/src/lang/en/index.js b/client/src/lang/en/index.js index 4e436e30d..c91e604be 100644 --- a/client/src/lang/en/index.js +++ b/client/src/lang/en/index.js @@ -978,5 +978,8 @@ export default { payable_aging_summary: 'Payable Aging Summary', payment_receive_paper: 'Payment Receive Paper', specific_vendors: 'Specific Vendors', - + accounts_receivable_a_r: 'Accounts Receivable A/R', + accounts_payable_a_p: 'Accounts Payable A/P', + financial_accounting: ' Financial Accounting', + products_services_inventory: 'Products,Services & Inventory', };