98fde12682
CI / Build & Quality Checks (push) Successful in 10m11s
@giphy/react-components@10.x calls styled-components internals (mergeAttributes) that do not exist in styled-components v6 — crashes on open. Reverted to 1.6.0 until giphy publishes a v6-compatible release. WelcomePage: remove Sentry test button (verified working), rename Support -> Lotus Matrix Guide. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
74 lines
2.3 KiB
TypeScript
74 lines
2.3 KiB
TypeScript
import React from 'react';
|
|
import { Box, Button, Icon, Icons, Text, config, toRem } from 'folds';
|
|
import { Page, PageHero, PageHeroSection } from '../../components/page';
|
|
import LotusLogo from '../../../../public/res/Lotus.png';
|
|
import pkg from '../../../../package.json';
|
|
|
|
export function WelcomePage() {
|
|
return (
|
|
<Page>
|
|
<Box
|
|
grow="Yes"
|
|
style={{ padding: config.space.S400, paddingBottom: config.space.S700 }}
|
|
alignItems="Center"
|
|
justifyContent="Center"
|
|
>
|
|
<PageHeroSection>
|
|
<PageHero
|
|
icon={
|
|
<img
|
|
width="70"
|
|
height="70"
|
|
src={LotusLogo}
|
|
alt="Lotus Chat"
|
|
style={{ objectFit: 'contain' }}
|
|
/>
|
|
}
|
|
title="Welcome to Lotus Chat"
|
|
subTitle={
|
|
<span>
|
|
A Matrix client for Lotus Guild.{' '}
|
|
<a
|
|
href="https://code.lotusguild.org/LotusGuild/cinny/releases"
|
|
target="_blank"
|
|
rel="noreferrer noopener"
|
|
>
|
|
v{pkg.version}
|
|
</a>
|
|
</span>
|
|
}
|
|
>
|
|
<Box justifyContent="Center">
|
|
<Box grow="Yes" style={{ maxWidth: toRem(300) }} direction="Column" gap="300">
|
|
<Button
|
|
as="a"
|
|
href="https://code.lotusguild.org/LotusGuild/cinny"
|
|
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"
|
|
href="https://matrix.lotusguild.org"
|
|
target="_blank"
|
|
rel="noreferrer noopener"
|
|
fill="Soft"
|
|
before={<Icon size="200" src={Icons.Heart} />}
|
|
>
|
|
<Text as="span" size="B400" truncate>
|
|
Lotus Matrix Guide
|
|
</Text>
|
|
</Button>
|
|
</Box>
|
|
</Box>
|
|
</PageHero>
|
|
</PageHeroSection>
|
|
</Box>
|
|
</Page>
|
|
);
|
|
}
|