Skip to content

Commit

Permalink
remove footer/header till our designer is ready (#9)
Browse files Browse the repository at this point in the history
* drop husky

* drop 0 if no elements present

* cleanups

* remove footer/header till our designer is ready
  • Loading branch information
anna-liepina authored Jan 15, 2024
1 parent 7529962 commit ad4e9f0
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 13 deletions.
22 changes: 13 additions & 9 deletions src/components/features/ctf-components/ctf-footer/ctf-footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -260,10 +260,12 @@ export const CtfFooter = (props: FooterFieldsFragment) => {
return (
<>
<Container {...containerProps} maxWidth={false} className={classes.footerContainer}>
<footer className={classes.footer}>
{footerContent?.menuItemsCollection?.items?.length && (
{
!!footerContent?.menuItemsCollection?.items?.length && (
<footer className={classes.footer}>
<nav role="navigation" className={classes.menuWrapper}>
{footerContent.menuItemsCollection.items.map(
{
footerContent.menuItemsCollection.items.map(
menuItem =>
menuItem && (
<div key={menuItem.sys.id} className={classes.menuColumn}>
Expand All @@ -290,17 +292,19 @@ export const CtfFooter = (props: FooterFieldsFragment) => {
</ul>
</div>
),
)}
)
}
</nav>
)}
</footer>
</footer>
)
}
</Container>
<Container maxWidth={false} className={classes.footerCorporateContainer}>
<section className={classes.footerCorporate}>
<div className={classes.corporateLogoMenu}>
<div className={classes.corporateLogoContainer}>
<Logo className={classes.corporateLogo} />
</div>
{/* <div className={classes.corporateLogoContainer}> */}
{/* <Logo className={classes.corporateLogo} /> */}
{/* </div> */}

<section className={classes.copyrightAndLegal}>
<p className={classes.copyright}>
Expand Down
8 changes: 4 additions & 4 deletions src/components/templates/header/header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import { makeStyles } from '@mui/styles';
import { useTranslation } from 'next-i18next';

import { CtfNavigationGql } from '@src/components/features/ctf-components/ctf-navigation/ctf-navigation-gql';
import { Link } from '@src/components/shared/link';
import Logo from '@src/icons/colorful-coin-logo.svg';
// import { Link } from '@src/components/shared/link';
// import Logo from '@src/icons/download.svg';
import { HEADER_HEIGHT, HEADER_HEIGHT_MD, CONTAINER_WIDTH } from '@src/theme';

const useStyles = makeStyles((theme: Theme) => ({
Expand Down Expand Up @@ -85,9 +85,9 @@ export const Header = (props: HeaderPropsInterface) => {
style={{
maxWidth: `${CONTAINER_WIDTH / 10}rem`,
}}>
<Link href="/" withoutMaterial title={t('common.homepage')}>
{/* <Link href="/" withoutMaterial title={t('common.homepage')}>
<Logo className={classes.corporateLogo} />
</Link>
</Link> */}
<Box display={{ xs: 'none', md: 'block' }}>
<div className={classes.menuWrapper}>
<CtfNavigationGql />
Expand Down

0 comments on commit ad4e9f0

Please sign in to comment.