Skip to content

Commit a633cd7

Browse files
committed
Merge branch 'main' into chvik/berry
2 parents b293bf2 + c06e3f4 commit a633cd7

File tree

1 file changed

+31
-39
lines changed

1 file changed

+31
-39
lines changed

src/pages/index.tsx

Lines changed: 31 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import React, { useState, useEffect } from 'react';
22
import Layout from '@theme/Layout';
3+
import Link from '@docusaurus/Link';
34
import { Box, Button, Container, Grid, Stack, Tab, Tabs, Typography } from '@mui/material';
45
import { TabContext, TabPanel } from '@mui/lab';
56
import bgImage from '../../static/img/hero-secondary-background.webp';
@@ -132,10 +133,7 @@ export const Home = () => {
132133
}}
133134
height='100%'
134135
>
135-
<Grid
136-
item
137-
md={6}
138-
>
136+
<Grid item md={6}>
139137
<Stack
140138
alignItems={{
141139
md: 'flex-start',
@@ -166,53 +164,47 @@ export const Home = () => {
166164
{
167165
children: '1. Set up collector and source',
168166
description: 'Set up a Sumo Logic collector and source',
169-
href: 'https://help.sumologic.com/docs/get-started/quickstart/#step-1-get-your-data-into-sumo',
167+
to: '/docs/get-started/quickstart#step-1-get-your-data-into-sumo',
170168
},
171169
{
172170
children: '2. Explore your data insights',
173171
description: 'Explore your insights',
174-
href: 'https://help.sumologic.com/docs/get-started/quickstart/#step-2-search-and-analyze-your-data',
172+
to: '/docs/get-started/quickstart#step-2-search-and-analyze-your-data',
175173
},
176174
{
177175
children: '3. Monitor and secure your environment',
178176
description: 'Monitor, troubleshoot, and secure your environment',
179-
href: 'https://help.sumologic.com/docs/get-started/quickstart/#step-3-monitor-and-troubleshoot-your-environment',
177+
to: '/docs/get-started/quickstart#step-3-monitor-and-troubleshoot-your-environment',
180178
},
181-
].map(({ children, ...rest }) => (
182-
<Button
183-
key={rest.href}
184-
sx={{
185-
bgcolor: 'transparent',
186-
border: '.5px solid',
187-
borderColor: '#e3e3e3',
188-
borderRadius: 2,
189-
fontFamily: 'Lab Grotesque',
190-
textTransform: 'none',
191-
width: {
192-
md: 'auto',
193-
xs: '100%',
194-
},
195-
'&:hover': {
196-
bgcolor: '#0045BE',
197-
borderColor: '#0045BE',
198-
color: '#e3e3e3',
199-
},
200-
}}
201-
variant='contained'
202-
{...rest}
203-
>
204-
{children}
205-
</Button>
179+
].map(({ children, to }) => (
180+
<Link key={to} to={to} style={{ textDecoration: 'none' }}>
181+
<Button
182+
sx={{
183+
bgcolor: 'transparent',
184+
border: '.5px solid',
185+
borderColor: '#e3e3e3',
186+
borderRadius: 2,
187+
fontFamily: 'Lab Grotesque',
188+
textTransform: 'none',
189+
width: {
190+
md: 'auto',
191+
xs: '100%',
192+
},
193+
'&:hover': {
194+
bgcolor: '#0045BE',
195+
borderColor: '#0045BE',
196+
color: '#e3e3e3',
197+
},
198+
}}
199+
variant='contained'
200+
>
201+
{children}
202+
</Button>
203+
</Link>
206204
))}
207205
</Stack>
208206
</Grid>
209-
<Grid
210-
item
211-
md={6}
212-
pl={{
213-
md: 13,
214-
}}
215-
>
207+
<Grid item md={6} pl={{ md: 13 }}>
216208
<Box
217209
component='img'
218210
alt='hero background image'

0 commit comments

Comments
 (0)