diff --git a/apps/website/screens/components/footer/code/FooterCodePage.tsx b/apps/website/screens/components/footer/code/FooterCodePage.tsx index 0de8bdbb3..4dee76a7b 100644 --- a/apps/website/screens/components/footer/code/FooterCodePage.tsx +++ b/apps/website/screens/components/footer/code/FooterCodePage.tsx @@ -4,12 +4,22 @@ import DocFooter from "@/common/DocFooter"; import StatusBadge from "@/common/StatusBadge"; import Code, { ExtendedTableCode, TableCode } from "@/common/Code"; +const bottomLinksTypeString = `{ + href: string; + text: string; +}[]`; + const logoTypeString = `{ - href?: string; src: string; - title?: string; + alt: string; }`; +const socialLinkTypeString = `{ + href: string; + title: string; + logo: string | SVG; +}[]`; + const sections = [ { title: "Props", @@ -27,7 +37,7 @@ const sections = [ bottomLinks - {"{ href: string; text: string; }[]"} + {bottomLinksTypeString} An array of objects representing the links that will be rendered at the bottom part of the footer. Each @@ -46,9 +56,12 @@ const sections = [ children - React.ReactNode + ReactNode + + + Contains DxcFooter.LeftContent and DxcFooter.RightContent components to customize the left and right + content of the footer respectively. - The center section of the footer. Can be used to render custom content in this area. - @@ -63,33 +76,33 @@ const sections = [ - logo + leftContent - - {"Logo"} -

- being Logo an object with the following properties: -

- {logoTypeString} - + ReactNode - Logo to be displayed inside the header. + Content to be displayed on the left side of the footer under the logo. - - margin - 'xxsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge' + + + logo + + + + + {logoTypeString} + - Size of the top margin to be applied to the footer. + Logo to be displayed inside the footer. - - mode @@ -111,12 +124,23 @@ const sections = [ 'default' + + + + + rightContent + + + + ReactNode + + Content to be displayed on the right side of the footer before the socialLinks if provided. + - + socialLinks - - {`{ href: string; title: string; logo: string | (React.ReactNode & React.SVGProps ); }[]`} - + {socialLinkTypeString} An array of objects representing the links that will be rendered as icons at the top-right side of the @@ -148,7 +172,8 @@ const sections = [ number - Value of the tabindex for all interactive elements, except those inside the custom area. + Value of the tabindex for all interactive elements, except those inside the leftContent and + rightContent. 0 @@ -158,29 +183,6 @@ const sections = [ ), }, - { - title: "Examples", - subSections: [ - { - title: "Footer in application layout", - content: ( -