|
1 | 1 | import React, { useState, useEffect } from 'react'; |
2 | 2 | import Layout from '@theme/Layout'; |
| 3 | +import Link from '@docusaurus/Link'; |
3 | 4 | import { Box, Button, Container, Grid, Stack, Tab, Tabs, Typography } from '@mui/material'; |
4 | 5 | import { TabContext, TabPanel } from '@mui/lab'; |
5 | 6 | import bgImage from '../../static/img/hero-secondary-background.webp'; |
@@ -132,10 +133,7 @@ export const Home = () => { |
132 | 133 | }} |
133 | 134 | height='100%' |
134 | 135 | > |
135 | | - <Grid |
136 | | - item |
137 | | - md={6} |
138 | | - > |
| 136 | + <Grid item md={6}> |
139 | 137 | <Stack |
140 | 138 | alignItems={{ |
141 | 139 | md: 'flex-start', |
@@ -166,53 +164,47 @@ export const Home = () => { |
166 | 164 | { |
167 | 165 | children: '1. Set up collector and source', |
168 | 166 | 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', |
170 | 168 | }, |
171 | 169 | { |
172 | 170 | children: '2. Explore your data insights', |
173 | 171 | 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', |
175 | 173 | }, |
176 | 174 | { |
177 | 175 | children: '3. Monitor and secure your environment', |
178 | 176 | 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', |
180 | 178 | }, |
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> |
206 | 204 | ))} |
207 | 205 | </Stack> |
208 | 206 | </Grid> |
209 | | - <Grid |
210 | | - item |
211 | | - md={6} |
212 | | - pl={{ |
213 | | - md: 13, |
214 | | - }} |
215 | | - > |
| 207 | + <Grid item md={6} pl={{ md: 13 }}> |
216 | 208 | <Box |
217 | 209 | component='img' |
218 | 210 | alt='hero background image' |
|
0 commit comments