Skip to content

Commit b633905

Browse files
authored
Correct home page font - Lab Grotesque (#5894)
* Correct home page font - Lab Grotesque * indentation * more indentation * Update src/pages/index.tsx * Update src/pages/index.tsx
1 parent fc79624 commit b633905

File tree

1 file changed

+34
-40
lines changed

1 file changed

+34
-40
lines changed

src/pages/index.tsx

Lines changed: 34 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -39,22 +39,22 @@ export const Home = () => {
3939
<Typography
4040
bgcolor='#0045BE'
4141
color='#e3e3e3'
42-
fontFamily='Lab Grotesque'
4342
fontSize={28}
4443
fontWeight={700}
4544
pt={3}
4645
px={2}
4746
pb={1}
4847
sx={{
4948
backgroundImage: 'linear-gradient(to right, rgb(0,0,153), rgb(0,70,190) 30%)',
49+
fontFamily:
50+
'var(--ifm-font-family-headings, var(--ifm-font-family-base, "Lab Grotesque", "Segoe UI", Roboto, Helvetica, Arial, sans-serif))',
5051
}}
5152
textAlign='center'
5253
>
5354
<Box
5455
component={SumoLogicDocsLogo}
55-
alt="Sumo Logic Docs logo"
56-
role="<img>"
57-
aria-hidden="true"
56+
role='img'
57+
aria-label='Sumo Logic Docs logo'
5858
height={{
5959
md: 36,
6060
xs: 28,
@@ -78,6 +78,8 @@ export const Home = () => {
7878
md: '100% 200%',
7979
xs: '100% 100%',
8080
},
81+
fontFamily:
82+
'var(--ifm-font-family-base, "Lab Grotesque", "Segoe UI", Roboto, Helvetica, Arial, sans-serif)',
8183
}}
8284
height={{
8385
md: 'auto',
@@ -111,19 +113,23 @@ export const Home = () => {
111113
>
112114
<Typography
113115
color='white'
114-
fontFamily='Lab Grotesque'
115116
fontSize={32}
116117
fontWeight={700}
117118
variant='h2'
119+
sx={{
120+
fontFamily:
121+
'var(--ifm-font-family-headings, var(--ifm-font-family-base, "Lab Grotesque", "Segoe UI", Roboto, Helvetica, Arial, sans-serif))',
122+
}}
118123
>
119124
New to Sumo?
120125
</Typography>
121126
<Typography
122127
color='#e3e3e3'
123-
fontFamily='Lab Grotesque'
124128
pb={2}
125129
textAlign='left'
126-
variant='p'
130+
component='p'
131+
variant='body1'
132+
sx={{ fontFamily: 'inherit' }}
127133
>
128134
Get started quickly with our search, visualization, analytics, and security capabilities.
129135
</Typography>
@@ -151,12 +157,12 @@ export const Home = () => {
151157
border: '.5px solid',
152158
borderColor: '#e3e3e3',
153159
borderRadius: 2,
154-
fontFamily: 'Lab Grotesque',
155160
textTransform: 'none',
156161
width: {
157162
md: 'auto',
158163
xs: '100%',
159164
},
165+
fontFamily: 'inherit',
160166
'&:hover': {
161167
bgcolor: '#0045BE',
162168
borderColor: '#0045BE',
@@ -201,7 +207,6 @@ export const Home = () => {
201207
>
202208
<Typography
203209
component='h2'
204-
fontFamily='Lab Grotesque'
205210
fontWeight={900}
206211
mb={{
207212
md: 'inherit',
@@ -210,15 +215,19 @@ export const Home = () => {
210215
}}
211216
textAlign='center'
212217
variant='h4'
218+
sx={{
219+
fontFamily:
220+
'var(--ifm-font-family-headings, var(--ifm-font-family-base, "Lab Grotesque", "Segoe UI", Roboto, Helvetica, Arial, sans-serif))',
221+
}}
213222
>
214223
Explore our product guides
215224
</Typography>
216225
<Typography
217226
component='p'
218-
fontFamily='Lab Grotesque'
219227
mb={4}
220228
textAlign='center'
221229
variant='subtitle1'
230+
sx={{ fontFamily: 'inherit' }}
222231
>
223232
Ensure app reliability and security with modern cloud-native monitoring and observability.
224233
</Typography>
@@ -268,46 +277,31 @@ export const Home = () => {
268277
{
269278
label: 'Other Solutions',
270279
},
271-
].map(({ label, ...rest }, index) => (
280+
].map(({ label }, index) => (
272281
<Tab
273282
key={label}
283+
value={String(index)}
274284
label={label}
275285
sx={{
276286
color: 'grey.700',
277-
fontFamily: 'Lab Grotesque',
278287
fontWeight: 'bold',
288+
fontFamily:
289+
'var(--ifm-font-family-headings, var(--ifm-font-family-base, "Lab Grotesque", "Segoe UI", Roboto, Helvetica, Arial, sans-serif))',
279290
}}
280-
value={String(index)}
281-
{...rest}
282291
/>
283292
))}
284293
</Tabs>
285-
{features.map((feature, index) => tab === String(index) && (
286-
<Grid
287-
component={TabPanel}
288-
container
289-
direction='row'
290-
justifyContent='center'
291-
key={index}
292-
py={6}
293-
spacing={4}
294-
value={String(index)}
295-
>
296-
{feature.map((config) => (
297-
<Grid
298-
item
299-
key={config.link}
300-
lg={4}
301-
md={6}
302-
xs={12}
303-
>
304-
<Feature
305-
length={feature.length}
306-
{...config}
307-
/>
308-
</Grid>
309-
))}
310-
</Grid>
294+
295+
{features.map((feature, index) => (
296+
<TabPanel key={index} value={String(index)} sx={{ px: 0 }}>
297+
<Grid container direction="row" justifyContent="center" spacing={4} py={6}>
298+
{feature.map((config) => (
299+
<Grid item key={config.link} lg={4} md={6} xs={12}>
300+
<Feature length={feature.length} {...config} />
301+
</Grid>
302+
))}
303+
</Grid>
304+
</TabPanel>
311305
))}
312306
</TabContext>
313307
</Stack>

0 commit comments

Comments
 (0)