From dfdeda1ff9aebe9317446b33f94d19af3b1705ab Mon Sep 17 00:00:00 2001 From: Mario Date: Fri, 6 Sep 2024 17:56:56 +0200 Subject: [PATCH] refactor(tooling-explorer): Rebrand homepage footer (#2282) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix(tooling-explorer): Rebrand homepage footer * fix(tooling-explorer): Add container css to footer * refactor: remove unnecessary legal text * fix: footer background color --------- Co-authored-by: Begoña Alvarez Co-authored-by: cpl121 <100352899+cpl121@users.noreply.github.com> --- apps/explorer/src/components/Icon.tsx | 22 -------------- .../explorer/src/components/footer/Footer.tsx | 28 ++++------------- .../src/components/footer/FooterIcon.tsx | 9 ------ apps/explorer/src/components/footer/Legal.tsx | 2 +- apps/explorer/src/components/footer/index.ts | 1 - apps/explorer/src/components/index.ts | 1 - .../src/lib/constants/footer.constants.ts | 30 +++++++------------ 7 files changed, 18 insertions(+), 75 deletions(-) delete mode 100644 apps/explorer/src/components/Icon.tsx delete mode 100644 apps/explorer/src/components/footer/FooterIcon.tsx diff --git a/apps/explorer/src/components/Icon.tsx b/apps/explorer/src/components/Icon.tsx deleted file mode 100644 index debb400b139..00000000000 --- a/apps/explorer/src/components/Icon.tsx +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright (c) 2024 IOTA Stiftung -// SPDX-License-Identifier: Apache-2.0 - -interface IconProps { - icon: React.FunctionComponent>; - width?: string; - height?: string; - fill?: string; -} - -function Icon({ - icon, - width = '24px', - height = '24px', - fill = 'currentColor', -}: IconProps): JSX.Element { - const IconComponent = icon; - - return ; -} - -export default Icon; diff --git a/apps/explorer/src/components/footer/Footer.tsx b/apps/explorer/src/components/footer/Footer.tsx index 70e1d262896..16911f0d4fc 100644 --- a/apps/explorer/src/components/footer/Footer.tsx +++ b/apps/explorer/src/components/footer/Footer.tsx @@ -5,11 +5,9 @@ import { Text } from '@iota/ui'; import { LegalLinks, LegalText } from './Legal'; -import { FooterIcon } from './FooterIcon'; -import { ReactComponent as IotaFoundationRed } from '../../assets/mysten_labs_red.svg'; +import { IotaLogoWeb } from '@iota/ui-icons'; import { Link } from '~/components/ui'; -import { FOOTER_LINKS, SOCIAL_LINKS } from '~/lib/constants'; -import Icon from '../Icon'; +import { FOOTER_LINKS } from '~/lib/constants'; function FooterLinks(): JSX.Element { return ( @@ -25,31 +23,17 @@ function FooterLinks(): JSX.Element { ))} - -
    - {SOCIAL_LINKS.map(({ icon, href }) => ( -
  • - -
    - - - -
    - -
  • - ))} -
); } function Footer(): JSX.Element { return ( -