Update landing page with version number in footer

This commit is contained in:
Mo Tarbin 2024-07-29 02:46:24 -04:00
parent 8e0c467d00
commit 539cf5c24a
2 changed files with 14 additions and 1 deletions

View file

@ -4,6 +4,7 @@ import Box from '@mui/joy/Box'
import Link from '@mui/joy/Link' import Link from '@mui/joy/Link'
import Typography from '@mui/joy/Typography' import Typography from '@mui/joy/Typography'
import * as React from 'react' import * as React from 'react'
import { version } from '../../../package.json'
function Footer() { function Footer() {
return ( return (
@ -103,6 +104,9 @@ function Footer() {
<Link disabled={true} level='body2' sx={{ display: 'block' }}> <Link disabled={true} level='body2' sx={{ display: 'block' }}>
Changelog(soon) Changelog(soon)
</Link> </Link>
<Link disabled={true} level='body2' sx={{ display: 'block' }}>
V{version}
</Link>
</Box> </Box>
{/* <Box> {/* <Box>
<Typography level='body2' fontWeight='bold' mb={1}> <Typography level='body2' fontWeight='bold' mb={1}>

View file

@ -7,6 +7,7 @@ import {
Storage, Storage,
} from '@mui/icons-material' } from '@mui/icons-material'
import { Box, Button, Card, Grid, styled, Typography } from '@mui/joy' import { Box, Button, Card, Grid, styled, Typography } from '@mui/joy'
import { useNavigate } from 'react-router-dom'
const IconContainer = styled('div')({ const IconContainer = styled('div')({
display: 'flex', display: 'flex',
alignItems: 'center', alignItems: 'center',
@ -65,6 +66,7 @@ function StartOptionCard({ icon: Icon, title, description, button, index }) {
} }
const GettingStarted = () => { const GettingStarted = () => {
const navigate = useNavigate()
const information = [ const information = [
{ {
title: 'Donetick Web', title: 'Donetick Web',
@ -72,7 +74,14 @@ const GettingStarted = () => {
description: description:
'The easiest way! just create account and start using DoneTick', 'The easiest way! just create account and start using DoneTick',
button: ( button: (
<Button size='lg' fullWidth startDecorator={<AutoAwesome />}> <Button
size='lg'
fullWidth
startDecorator={<AutoAwesome />}
onClick={() => {
navigate('/my/chores')
}}
>
Start Now! Start Now!
</Button> </Button>
), ),