Files
gpustack-ui/src/components/footer/index.tsx
T
lofyerandClaude Opus 4.8 81bcd6a5ac feat(branding): rebrand footer vendor to MesaStack, trim footer/topbar
- Footer vendor label unified to "MesaStack" across all locales.
- Remove footer Help button; keep version as plain text (no click).
- Remove top-right GitHub star widget (delete unused github-star.tsx);
  keep version as plain text (no click), retain upgrade "New" badge.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-27 14:28:06 +08:00

65 lines
1.7 KiB
TypeScript

import { GPUStackVersionAtom } from '@/atoms/user';
import { useIntl } from '@umijs/max';
import { Divider, Typography } from 'antd';
import { createStyles } from 'antd-style';
import { useAtomValue } from 'jotai';
import styled from 'styled-components';
const CompanyWrapper = styled.div`
display: flex;
align-items: center;
gap: 4px;
padding-inline: 0 8px;
`;
const useStyles = createStyles(({ token, css }) => ({
footer: css`
bottom: 0;
width: 100%;
background-color: transparent;
padding: 20px 0;
text-align: center;
font-size: var(--font-size-middle);
color: ${token.colorTextTertiary};
`,
'footer-content-left-text': {
display: 'flex',
justifyContent: 'center',
alignItems: 'center'
}
}));
const Footer: React.FC = () => {
const intl = useIntl();
const { styles } = useStyles();
const version = useAtomValue(GPUStackVersionAtom);
return (
<>
<div className={styles.footer}>
<div className="footer-content">
<div className="footer-content-left">
<div className={styles['footer-content-left-text']}>
<CompanyWrapper>
<span>&copy;</span>
<span> {new Date().getFullYear()}</span>
<Typography.Link
href="https://gpustack.ai"
target="_blank"
rel="noopener noreferrer"
>
{intl.formatMessage({ id: 'settings.company' })}
</Typography.Link>
</CompanyWrapper>
<Divider orientation="vertical" />
<span>{version?.version}</span>
</div>
</div>
</div>
</div>
</>
);
};
export default Footer;