Create new entrypoint for sharable Wrapstodon (#37121)

This commit is contained in:
Echo
2025-12-04 16:48:10 +01:00
committed by GitHub
parent 75b9e9a8b0
commit 0dac31dfd5
8 changed files with 132 additions and 5 deletions

View File

@@ -0,0 +1,19 @@
.wrapper {
max-width: 40rem;
margin: 0 auto;
}
.footer {
text-align: center;
margin-top: 1rem;
display: flex;
flex-direction: column;
gap: 0.75rem;
align-items: center;
color: var(--color-text-secondary);
}
.logo {
width: 2rem;
opacity: 0.6;
}

View File

@@ -0,0 +1,18 @@
import type { FC } from 'react';
import { IconLogo } from '@/mastodon/components/logo';
import { AnnualReport } from './index';
import classes from './share.module.css';
export const WrapstodonShare: FC = () => {
return (
<main className={classes.wrapper}>
<AnnualReport share={false} />
<footer className={classes.footer}>
<IconLogo className={classes.logo} />
Generated with by the Mastodon team
</footer>
</main>
);
};