feat(about): update tagline to "Squawk to yer mateys!" and display dynamic version number
This commit is contained in:
@@ -54,7 +54,7 @@ export function About({ requestClose }: AboutProps) {
|
|||||||
<Text size="H3">Paarrot</Text>
|
<Text size="H3">Paarrot</Text>
|
||||||
<Text size="T200">v{version}</Text>
|
<Text size="T200">v{version}</Text>
|
||||||
</Box>
|
</Box>
|
||||||
<Text>Yet another matrix client.</Text>
|
<Text>Squawk to yer mateys!</Text>
|
||||||
</Box>
|
</Box>
|
||||||
|
|
||||||
<Box gap="200" wrap="Wrap">
|
<Box gap="200" wrap="Wrap">
|
||||||
|
|||||||
@@ -1,9 +1,15 @@
|
|||||||
import React from 'react';
|
import React, { useEffect, useState } from 'react';
|
||||||
import { Box, Button, Icon, Icons, Text, config, toRem } from 'folds';
|
import { Box, Button, Icon, Icons, Text, config, toRem } from 'folds';
|
||||||
import { Page, PageHero, PageHeroSection } from '../../components/page';
|
import { Page, PageHero, PageHeroSection } from '../../components/page';
|
||||||
import PaarrotSVG from '../../../../public/res/svg/paarrot.svg';
|
import PaarrotSVG from '../../../../public/res/svg/paarrot.svg';
|
||||||
|
import { getVersion } from '@tauri-apps/api/app';
|
||||||
|
|
||||||
export function WelcomePage() {
|
export function WelcomePage() {
|
||||||
|
const [version, setVersion] = useState<string>('');
|
||||||
|
|
||||||
|
useEffect(() => {
|
||||||
|
getVersion().then(setVersion).catch(() => setVersion(''));
|
||||||
|
}, []);
|
||||||
return (
|
return (
|
||||||
<Page>
|
<Page>
|
||||||
<Box
|
<Box
|
||||||
@@ -18,14 +24,16 @@ export function WelcomePage() {
|
|||||||
title="Welcome to Paarrot"
|
title="Welcome to Paarrot"
|
||||||
subTitle={
|
subTitle={
|
||||||
<span>
|
<span>
|
||||||
Yet another matrix client.{' '}
|
Squawk to yer mateys!{' '}
|
||||||
|
{version && (
|
||||||
<a
|
<a
|
||||||
href="https://git.ruv.wtf/litruv/cinny-desktop/releases"
|
href="https://git.ruv.wtf/litruv/cinny-desktop/releases"
|
||||||
target="_blank"
|
target="_blank"
|
||||||
rel="noreferrer noopener"
|
rel="noreferrer noopener"
|
||||||
>
|
>
|
||||||
v4.10.2
|
v{version}
|
||||||
</a>
|
</a>
|
||||||
|
)}
|
||||||
</span>
|
</span>
|
||||||
}
|
}
|
||||||
>
|
>
|
||||||
|
|||||||
Reference in New Issue
Block a user