Skip to content

Commit

Permalink
feat: fonts
Browse files Browse the repository at this point in the history
  • Loading branch information
darwin.apolinario committed Oct 2, 2023
1 parent 2bf36df commit f7888e8
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
4 changes: 2 additions & 2 deletions public/styles/custom.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
html {
scroll-behavior: smooth;
font-family: Mulish, Arial, Helvetica;
font-family: Mulish, Arial, Helvetica,sans-serif;
}

h1 span {
Expand Down Expand Up @@ -28,7 +28,7 @@ h2 span {
flex-shrink: 0;
width: 40px;
height: 40px;
font-family: 'Mulish', Arial, Helvetica;
font-family: 'Mulish', Arial, Helvetica,sans-serif;
font-size: 1.25rem;
line-height: 1;
border-radius: 4px;
Expand Down
2 changes: 2 additions & 0 deletions src/components/globals/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -11779,3 +11779,5 @@ export const navigationCustom = [
children: [],
},
];

export const FONT_FAMILY = `Mulish, Arial, sans-serif`;
8 changes: 6 additions & 2 deletions src/revamp/ui/HeroV2/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import useMediaQuery from '@mui/material/useMediaQuery';
import { useTheme } from '@mui/material/styles';
import { generateAlt } from 'utils';
import { useEffect, useState } from 'react';
import { FONT_FAMILY } from 'components/globals/constants';

const media =
'https://kfg6bckb.media.zestyio.com/Zesty-io-2023-Homepage-hero.webp',
Expand Down Expand Up @@ -136,7 +137,7 @@ const Hero = ({
style={{
opacity: index === currentTextIndex ? 1 : 0.5, // Set opacity based on the current index
transition: 'opacity 0.5s ease-in-out', // Add a smooth transition
fontFamily: `Mulish, Arial, sans-serif`,
fontFamily: FONT_FAMILY,
}}
>
{text}
Expand All @@ -150,7 +151,7 @@ const Hero = ({
fontSize={{ xs: 24, tablet: '62px' }}
lineHeight={{ xs: '18px', tablet: '56px' }}
style={{
fontFamily: `Mulish, Arial, sans-serif`,
fontFamily: FONT_FAMILY,
}}
mb={{ xs: 2, tablet: '20px', lg: '4px', desktopWide: '12px' }}
>
Expand All @@ -172,6 +173,7 @@ const Hero = ({
color="primary"
size={isLg ? 'extraLarge' : 'large'}
title={primaryBtn}
style={{ fontFamily: FONT_FAMILY }}
>
{primaryBtn}
</Button>
Expand All @@ -181,6 +183,7 @@ const Hero = ({
color="primary"
size={isLg ? 'extraLarge' : 'large'}
title={secondaryBtn}
style={{ fontFamily: FONT_FAMILY }}
>
{secondaryBtn}
</Button>
Expand All @@ -189,6 +192,7 @@ const Hero = ({
<Typography
mb={3}
sx={(theme) => ({
fontFamily: FONT_FAMILY,
[theme.breakpoints.down('lg')]: {
letterSpacing: '1px',
fontSize: '12px',
Expand Down

0 comments on commit f7888e8

Please sign in to comment.