refactor(ui): rename topbar to boardsbar and add desktop footer for board, thread, and catalog

This commit is contained in:
plebeius
2026-02-23 16:47:51 +08:00
parent a7721fc252
commit 4433834c1c
39 changed files with 672 additions and 294 deletions
+2
View File
@@ -0,0 +1,2 @@
export { default } from './site-legal-meta';
export type { SiteLegalMetaOrder, SiteLegalMetaProps } from './site-legal-meta';
@@ -0,0 +1,41 @@
import Version from '../version';
export type SiteLegalMetaOrder = 'version-first' | 'license-first';
export type SiteLegalMetaProps = {
/** Order of blocks: version-first (homepage) or license-first (board/post footer) */
order?: SiteLegalMetaOrder;
};
const LicenseText = () => <span>5chan is free and open source software under GPLv2 license.</span>;
const VersionFeedbackContact = () => (
<>
<Version /> {' '}
<a href='https://github.com/bitsocialhq/5chan/issues/new' target='_blank' rel='noopener noreferrer'>
Feedback
</a>{' '}
{' '}
<a href='https://github.com/bitsocialhq/5chan/graphs/contributors' target='_blank' rel='noopener noreferrer'>
Contact
</a>
</>
);
const SiteLegalMeta = ({ order = 'version-first' }: SiteLegalMetaProps) => {
const first = order === 'version-first' ? <VersionFeedbackContact /> : <LicenseText />;
const second = order === 'version-first' ? <LicenseText /> : <VersionFeedbackContact />;
return (
<>
<br />
{first}
<br />
<br />
<br />
{second}
</>
);
};
export default SiteLegalMeta;