|
| 1 | +import { DxcBulletedList, DxcFlex, DxcParagraph } from "@dxc-technology/halstack-react"; |
| 2 | +import DocFooter from "@/common/DocFooter"; |
| 3 | +import QuickNavContainer from "@/common/QuickNavContainer"; |
| 4 | +import QuickNavContainerLayout from "@/common/QuickNavContainerLayout"; |
| 5 | +import anatomy from "./images/footer_anatomy.png"; |
| 6 | +import variants from "./images/footer_variants.png"; |
| 7 | +import Image from "@/common/Image"; |
| 8 | +import Figure from "@/common/Figure"; |
| 9 | + |
| 10 | +const sections = [ |
| 11 | + { |
| 12 | + title: "Introduction", |
| 13 | + content: ( |
| 14 | + <DxcParagraph> |
| 15 | + The footer is used as the final section of a page to display utility elements such as legal disclaimers, |
| 16 | + secondary links, copyright information, or the brand logo. Its purpose is to reinforce brand identity and |
| 17 | + provide consistent access across digital experiences without disrupting the main user flow. |
| 18 | + </DxcParagraph> |
| 19 | + ), |
| 20 | + }, |
| 21 | + { |
| 22 | + title: "Anatomy", |
| 23 | + content: ( |
| 24 | + <> |
| 25 | + <Image src={anatomy} alt="Footer's anatomy" /> |
| 26 | + <DxcBulletedList type="number"> |
| 27 | + <DxcBulletedList.Item> |
| 28 | + <strong>Container:</strong> The outer wrapper that defines the overall layout, padding, and alignment of all |
| 29 | + footer content. Ensures consistency across screen sizes. |
| 30 | + </DxcBulletedList.Item> |
| 31 | + <DxcBulletedList.Item> |
| 32 | + <strong>Logo:</strong> Represents the brand identity visually. Positioned on the left side, it helps |
| 33 | + reinforce company recognition across all pages. |
| 34 | + </DxcBulletedList.Item> |
| 35 | + <DxcBulletedList.Item> |
| 36 | + <strong>Social icons:</strong> A set of clickable icons linking to the company’s social media platforms |
| 37 | + (e.g., LinkedIn, Facebook). Placed on the right side for easy visibility and access. |
| 38 | + </DxcBulletedList.Item> |
| 39 | + <DxcBulletedList.Item> |
| 40 | + <strong>Copyright:</strong> Text displaying legal ownership of the content. Ensures users know the site is |
| 41 | + officially owned. |
| 42 | + </DxcBulletedList.Item> |
| 43 | + <DxcBulletedList.Item> |
| 44 | + <strong>Company links:</strong> A horizontal list of navigational hyperlinks such as Privacy Policy, Terms & |
| 45 | + Conditions, etc. Offers users access to important legal or informational resources. |
| 46 | + </DxcBulletedList.Item> |
| 47 | + </DxcBulletedList> |
| 48 | + </> |
| 49 | + ), |
| 50 | + }, |
| 51 | + { |
| 52 | + title: "Variants", |
| 53 | + content: ( |
| 54 | + <> |
| 55 | + <DxcParagraph> |
| 56 | + To maintain consistency in layout flexibility and brand presentation, the footer offers three primary |
| 57 | + variants: <strong>Default</strong>, <strong>With Navigation</strong>, and <strong>Small</strong>. |
| 58 | + </DxcParagraph> |
| 59 | + <DxcBulletedList> |
| 60 | + <DxcBulletedList.Item> |
| 61 | + <strong>Default:</strong> provides a balanced layout with branding and essential legal links. It offers a |
| 62 | + clean, uncluttered appearance suitable for most standard applications. |
| 63 | + </DxcBulletedList.Item> |
| 64 | + <DxcBulletedList.Item> |
| 65 | + <strong>With Navigation:</strong> includes additional navigational sections, enabling users to quickly |
| 66 | + access key areas of the site. This layout is ideal for content-heavy pages or enterprise-level applications |
| 67 | + requiring enhanced footer functionality. |
| 68 | + </DxcBulletedList.Item> |
| 69 | + <DxcBulletedList.Item> |
| 70 | + <strong>Small:</strong> offers a compact version of the footer, typically limited to branding and minimal |
| 71 | + legal text. It's best suited for lightweight experiences, login pages, or environments with constrained |
| 72 | + vertical space. |
| 73 | + </DxcBulletedList.Item> |
| 74 | + </DxcBulletedList> |
| 75 | + <Figure caption="Footer variants"> |
| 76 | + <Image src={variants} alt="Application layout design specifications" /> |
| 77 | + </Figure> |
| 78 | + <DxcParagraph> |
| 79 | + Choosing between these variants helps tailor the footer to a wide range of contexts, whether prioritizing |
| 80 | + simplicity, providing extended navigation, or optimizing for space efficiency. |
| 81 | + </DxcParagraph> |
| 82 | + </> |
| 83 | + ), |
| 84 | + }, |
| 85 | + { |
| 86 | + title: "Best practices", |
| 87 | + content: ( |
| 88 | + <> |
| 89 | + <DxcBulletedList> |
| 90 | + <DxcBulletedList.Item> |
| 91 | + <strong>Dock the footer to the bottom of the page:</strong> the footer should remain fixed at the bottom |
| 92 | + edge of the viewport and not scroll with the page content to maintain visibility and separation from dynamic |
| 93 | + areas. |
| 94 | + </DxcBulletedList.Item> |
| 95 | + <DxcBulletedList.Item> |
| 96 | + <strong>Ensure full-width alignment:</strong> the footer container should always span the full width of the |
| 97 | + screen to create a clean, structured boundary and support responsive behavior across breakpoints. |
| 98 | + </DxcBulletedList.Item> |
| 99 | + <DxcBulletedList.Item> |
| 100 | + <strong>Display copyright information on the right:</strong> consistently place legal disclaimers or |
| 101 | + copyright text aligned to the right edge of the footer to support predictable user expectations. |
| 102 | + </DxcBulletedList.Item> |
| 103 | + <DxcBulletedList.Item> |
| 104 | + <strong>Use a simplified or alternate logo:</strong> consider using a smaller or alternative version of the |
| 105 | + brand logo (isotype, imagotype, or monochrome variant) rather than duplicating the main header image to |
| 106 | + reduce visual redundancy. |
| 107 | + </DxcBulletedList.Item> |
| 108 | + <DxcBulletedList.Item> |
| 109 | + <strong>Limit the number of links:</strong> include only the most essential company links (e.g., Terms, |
| 110 | + Privacy, Accessibility) to avoid overwhelming users with excessive options. |
| 111 | + </DxcBulletedList.Item> |
| 112 | + <DxcBulletedList.Item> |
| 113 | + <strong>Select the most appropriate variant for context:</strong> choose the footer variant that best fits |
| 114 | + the content density and user goals of the page. |
| 115 | + </DxcBulletedList.Item> |
| 116 | + </DxcBulletedList> |
| 117 | + </> |
| 118 | + ), |
| 119 | + }, |
| 120 | +]; |
| 121 | + |
| 122 | +const FooterOverviewPage = () => ( |
| 123 | + <DxcFlex direction="column" gap="4rem"> |
| 124 | + <QuickNavContainerLayout> |
| 125 | + <QuickNavContainer sections={sections} startHeadingLevel={2} /> |
| 126 | + </QuickNavContainerLayout> |
| 127 | + <DocFooter githubLink="https://github.com/dxc-technology/halstack-react/blob/master/apps/website/screens/components/footer/overview/FooterOverviewPage.tsx" /> |
| 128 | + </DxcFlex> |
| 129 | +); |
| 130 | + |
| 131 | +export default FooterOverviewPage; |
0 commit comments