|
| 1 | +import React from 'react'; |
| 2 | +import { Link } from 'react-router-dom'; |
| 3 | +import { Box, Button, Typography } from '@mui/material'; |
| 4 | +import { styled } from '@mui/material/styles'; |
| 5 | + |
| 6 | +const ButtonsContainer = styled(Box)` |
| 7 | + display: flex; |
| 8 | + justify-content: flex-start; |
| 9 | + gap: 1rem; |
| 10 | + margin: 2rem 0; |
| 11 | +`; |
| 12 | + |
| 13 | +const StyledButton = styled((props) => <Button variant="contained" {...props} />)` |
| 14 | + background-color: #333; |
| 15 | + color: white; |
| 16 | + font-size: 1rem; |
| 17 | + text-transform: capitalize; |
| 18 | + &:hover { |
| 19 | + background-color: #555; |
| 20 | + } |
| 21 | +`; |
| 22 | + |
| 23 | +const StyledAbstract = styled(Typography)` |
| 24 | + max-width: 600px; |
| 25 | + margin-bottom: 2rem; |
| 26 | +`; |
| 27 | + |
| 28 | +const Welcome = () => { |
| 29 | + return ( |
| 30 | + <Box component="main" px={4}> |
| 31 | + <Box component="header"> |
| 32 | + <Typography component="h1" variant="h4" mt={4} mb={6}> |
| 33 | + Welcome to Qdrant! |
| 34 | + </Typography> |
| 35 | + </Box> |
| 36 | + |
| 37 | + <Box component="section"> |
| 38 | + <Typography component="h2" variant="h5" mb="1rem"> |
| 39 | + Begin by setting up your collection |
| 40 | + </Typography> |
| 41 | + <StyledAbstract> |
| 42 | + Start building your app by creating a collection and inserting your vectors. Interactive tutorials will show |
| 43 | + you how to organize data and perform searches. |
| 44 | + </StyledAbstract> |
| 45 | + <ButtonsContainer> |
| 46 | + <StyledButton variant="contained" component={Link} to="/tutorial/quickstart"> |
| 47 | + Quickstart |
| 48 | + </StyledButton> |
| 49 | + <StyledButton variant="contained" component={Link} to="/tutorial/loadcontent"> |
| 50 | + Load Sample Data |
| 51 | + </StyledButton> |
| 52 | + </ButtonsContainer> |
| 53 | + </Box> |
| 54 | + |
| 55 | + <Box component="section"> |
| 56 | + <Typography component="h2" variant="h5" mb="1rem"> |
| 57 | + Connect to your new project |
| 58 | + </Typography> |
| 59 | + <StyledAbstract> |
| 60 | + Easily interact with your database using Qdrant SDKs and our REST API. Use these libraries to connect, query, |
| 61 | + and manage your vector data from the app. |
| 62 | + </StyledAbstract> |
| 63 | + <ButtonsContainer> |
| 64 | + <StyledButton |
| 65 | + className="btn" |
| 66 | + component={'a'} |
| 67 | + href="https://api.qdrant.tech/api-reference" |
| 68 | + target="_blank" |
| 69 | + rel="noopener noreferrer" |
| 70 | + > |
| 71 | + API Reference |
| 72 | + </StyledButton> |
| 73 | + </ButtonsContainer> |
| 74 | + </Box> |
| 75 | + </Box> |
| 76 | + ); |
| 77 | +}; |
| 78 | + |
| 79 | +export default Welcome; |
0 commit comments