@bento-core/footer

1.0.0 • Public • Published

Footer Bento

ICDC frontend - Footer component (New Design) System Information placement is accomodate for the visibility. Screen Shot 2022-10-28 at 12 22 06 PM

Bento Tools Footer Component Screen Shot 2022-10-28 at 12 58 25 PM

Global footer Configuration.

{
	"footerLogoImage": "https://raw.githubusercontent.com/CBIIT/bento-frontend/master/src/assets/footer/FNL_logo.png",
	"footerLogoAltText": "https://raw.githubusercontent.com/CBIIT/bento-frontend/master/src/assets/footer/FNL_logo.png",
	"footerLogoHyperlink": "https://frederick.cancer.gov/",
	"footerStaticText": "NIH … Turning Discovery Into Health®",
	"maxSubsections": 3,
	"maxSubsectionsLinks": 4,
	"maxAnchorLinks": 4,
	"version": "1.0,0",
	"BEversion": "1.0.0",
	"FileServiceVersion": "1.2.0",
	"link_sections": [
		{
			"title": "About Bento",
			"items": [
				{
					"text": "Purpose",
					"link": "/purpose"
				},
				{
					"text": "Resources",
					"link": "/resources"
				},
				{
					"text": "Documentation",
					"link": "/documentation"
				}
			]
		},
        {
      "title": 'System Info',
      "systemInfoInLinkSection": true,
      "items": [
        {
          "text": 'Resource',
          "link": "/resources"
        },
        {
          "text": `FE Version: ${env.REACT_APP_FE_VERSION}`,
        },
        {
          "text": `BE Version: ${env.REACT_APP_BE_VERSION}`,
        },
      ],
    },
		{
      "title": "Support",
			"items": [
				{
					"text": "Contact Us",
					"link": "bento-help@nih.gov"
				},
				{
					"link": "https://www.linkedin.com/",
					"icon": "https://raw.githubusercontent.com/CBIIT/datacommons-assets/main/bento/images/icons/svgs/linkedInIcon.svg"
				}
			]
		}
  ],
  "global_footer_links": [
    {
      "text": "U.S. Department of Health and Human Services",
      "link": "https://www.hhs.gov"
    },
    {
      "text": "National Institutes of Health",
      "link": "https://www.nih.gov"
    },
    {
      "text": "National Cancer Institute",
      "link": "https://www.cancer.gov"
    },
    {
      "text": "USA.gov",
      "link": "https://www.usa.gov"
	}
  ]}

Updating style for horizontal line.

Use Themeprovider to update or remove horizontal line (MuiDivider) to implement new design

const themesLight = _.cloneDeep(themes.light);
  themesLight.overrides.MuiDivider = {
    root: {
      height: '0px',
    },
  };

  const computedTheme = createTheme({
    ...themesLight,
    ...overrides,
  });

  return (
    <MuiThemeProvider theme={computedTheme}>
      {children}
    </MuiThemeProvider>
  );
  <CustomThemeProvider>
    <Footer data={footerUpdatedData} />
  </CustomThemeProvider>

Readme

Keywords

none

Package Sidebar

Install

npm i @bento-core/footer

Weekly Downloads

15

Version

1.0.0

License

ISC

Unpacked Size

30.8 kB

Total Files

7

Last publish

Collaborators

  • nahomtes
  • sgvallala
  • huuaho
  • seni1
  • model_navigator
  • rznih
  • tudosen
  • esi_weiyu
  • amattu-nih
  • iksheth
  • joonleenih
  • n2iw