feat(about): update tagline to "Squawk to yer mateys!" and display dynamic version number

This commit is contained in:
2026-02-20 00:46:12 +11:00
parent c366311c16
commit 7e7f017768
2 changed files with 18 additions and 10 deletions

View File

@@ -54,7 +54,7 @@ export function About({ requestClose }: AboutProps) {
<Text size="H3">Paarrot</Text>
<Text size="T200">v{version}</Text>
</Box>
<Text>Yet another matrix client.</Text>
<Text>Squawk to yer mateys!</Text>
</Box>
<Box gap="200" wrap="Wrap">

View File

@@ -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 { Page, PageHero, PageHeroSection } from '../../components/page';
import PaarrotSVG from '../../../../public/res/svg/paarrot.svg';
import { getVersion } from '@tauri-apps/api/app';
export function WelcomePage() {
const [version, setVersion] = useState<string>('');
useEffect(() => {
getVersion().then(setVersion).catch(() => setVersion(''));
}, []);
return (
<Page>
<Box
@@ -18,14 +24,16 @@ export function WelcomePage() {
title="Welcome to Paarrot"
subTitle={
<span>
Yet another matrix client.{' '}
Squawk to yer mateys!{' '}
{version && (
<a
href="https://git.ruv.wtf/litruv/cinny-desktop/releases"
target="_blank"
rel="noreferrer noopener"
>
v4.10.2
v{version}
</a>
)}
</span>
}
>