From b1d3439cc171af87d9f88e60118cd4db591a48f7 Mon Sep 17 00:00:00 2001 From: Joshua Graber Date: Thu, 5 Dec 2024 15:17:35 -0500 Subject: [PATCH] docs(components): update footer readme --- src/components/Footer/README.md | 65 ++++++++++++++++++++++++++------- 1 file changed, 51 insertions(+), 14 deletions(-) diff --git a/src/components/Footer/README.md b/src/components/Footer/README.md index fd5bb54..1f9b742 100644 --- a/src/components/Footer/README.md +++ b/src/components/Footer/README.md @@ -2,32 +2,49 @@ ## Props -| name | required? | types | description | default | -| --------------------- | --------- | -------- | ---------------------- | ----------------------------------------------------------- | -| `logoImageSrc` | no | `string` | Source of logo image | `'node_modules/pdap-design-system/dist/images/acronym.svg'` | -| `logoImageAnchorPath` | no | `string` | Flex alignment presets | `/` | +| name | required? | types | description | default | +| ----------------- | --------- | ---------------------------------- | ---------------------------- | ------- | +| `fundraisingData` | yes | `{ raised: string; goal: string }` | data from donor box campaign | | ## Notes The `Footer` component provides support for overriding the default social links. The `links` variable is `inject`ed by the component, using the following defaults: -``` +```vue export default { ... inject: { footerLinks: { default: [ { - to: 'https://github.com/orgs/Police-Data-Accessibility-Project', - text: 'Github', + href: 'https://github.com/orgs/Police-Data-Accessibility-Project', + text: 'Github', + icon: FOOTER_LINK_ICONS.GITHUB, + }, + { + href: 'https://discord.gg/wMqex8nKZJ', + text: 'Discord', + icon: FOOTER_LINK_ICONS.DISCORD, + }, + { + href: 'https://www.linkedin.com/company/pdap', + text: 'LinkedIn', + icon: FOOTER_LINK_ICONS.LINKEDIN, }, { - to: 'ttps://discord.gg/wMqex8nKZJ', - text: 'Discord', + href: 'https://pdap.io/jobs', + text: 'Jobs', + icon: FOOTER_LINK_ICONS.JOBS, }, { - to: 'https://www.linkedin.com/company/pdap', - text: 'LinkedIn', + href: 'https://newsletter.pdap.io/', + text: 'Newsletter', + icon: FOOTER_LINK_ICONS.NEWSLETTER, + }, + { + href: 'https://docs.pdap.io/', + text: 'Docs', + icon: FOOTER_LINK_ICONS.DOCS, }, ] } @@ -44,7 +61,7 @@ If we desire different links somewhere that `Footer` is rendered, simply `provid ## Example -``` +```vue