2024-05-31 19:49:46 +05:30
|
|
|
import React from 'react';
|
|
|
|
|
import { Box, Button, Icon, Icons, Text, config, toRem } from 'folds';
|
|
|
|
|
import { Page, PageHero, PageHeroSection } from '../../components/page';
|
2026-05-13 22:52:33 -04:00
|
|
|
import LotusLogo from '../../../../public/res/Lotus.png';
|
2026-05-13 23:03:14 -04:00
|
|
|
import pkg from '../../../../package.json';
|
2024-05-31 19:49:46 +05:30
|
|
|
|
|
|
|
|
export function WelcomePage() {
|
|
|
|
|
return (
|
|
|
|
|
<Page>
|
|
|
|
|
<Box
|
|
|
|
|
grow="Yes"
|
|
|
|
|
style={{ padding: config.space.S400, paddingBottom: config.space.S700 }}
|
|
|
|
|
alignItems="Center"
|
|
|
|
|
justifyContent="Center"
|
|
|
|
|
>
|
|
|
|
|
<PageHeroSection>
|
|
|
|
|
<PageHero
|
2026-05-21 20:49:33 -04:00
|
|
|
icon={
|
|
|
|
|
<img
|
|
|
|
|
width="70"
|
|
|
|
|
height="70"
|
|
|
|
|
src={LotusLogo}
|
|
|
|
|
alt="Lotus Chat"
|
|
|
|
|
style={{ objectFit: 'contain' }}
|
|
|
|
|
/>
|
|
|
|
|
}
|
2026-05-13 22:22:06 -04:00
|
|
|
title="Welcome to Lotus Chat"
|
2024-05-31 19:49:46 +05:30
|
|
|
subTitle={
|
|
|
|
|
<span>
|
2026-05-13 23:03:14 -04:00
|
|
|
A Matrix client for Lotus Guild.{' '}
|
2024-05-31 19:49:46 +05:30
|
|
|
<a
|
2026-05-13 17:56:39 -04:00
|
|
|
href="https://code.lotusguild.org/LotusGuild/cinny/releases"
|
2024-05-31 19:49:46 +05:30
|
|
|
target="_blank"
|
|
|
|
|
rel="noreferrer noopener"
|
|
|
|
|
>
|
2026-05-13 23:03:14 -04:00
|
|
|
v{pkg.version}
|
2024-05-31 19:49:46 +05:30
|
|
|
</a>
|
|
|
|
|
</span>
|
|
|
|
|
}
|
|
|
|
|
>
|
|
|
|
|
<Box justifyContent="Center">
|
|
|
|
|
<Box grow="Yes" style={{ maxWidth: toRem(300) }} direction="Column" gap="300">
|
|
|
|
|
<Button
|
|
|
|
|
as="a"
|
2026-05-13 17:56:39 -04:00
|
|
|
href="https://code.lotusguild.org/LotusGuild/cinny"
|
2024-05-31 19:49:46 +05:30
|
|
|
target="_blank"
|
|
|
|
|
rel="noreferrer noopener"
|
|
|
|
|
before={<Icon size="200" src={Icons.Code} />}
|
|
|
|
|
>
|
|
|
|
|
<Text as="span" size="B400" truncate>
|
|
|
|
|
Source Code
|
|
|
|
|
</Text>
|
|
|
|
|
</Button>
|
|
|
|
|
<Button
|
|
|
|
|
as="a"
|
2026-05-13 17:56:39 -04:00
|
|
|
href="https://matrix.lotusguild.org"
|
2024-05-31 19:49:46 +05:30
|
|
|
target="_blank"
|
|
|
|
|
rel="noreferrer noopener"
|
|
|
|
|
fill="Soft"
|
|
|
|
|
before={<Icon size="200" src={Icons.Heart} />}
|
|
|
|
|
>
|
|
|
|
|
<Text as="span" size="B400" truncate>
|
|
|
|
|
Support
|
|
|
|
|
</Text>
|
|
|
|
|
</Button>
|
|
|
|
|
</Box>
|
|
|
|
|
</Box>
|
|
|
|
|
</PageHero>
|
|
|
|
|
</PageHeroSection>
|
|
|
|
|
</Box>
|
|
|
|
|
</Page>
|
|
|
|
|
);
|
|
|
|
|
}
|