💬(frontend) change site name to Docs

The site name was Impress, we change it to Docs.
This commit is contained in:
Anthony LC
2024-05-27 12:02:42 +02:00
committed by Anthony LC
parent 6e46b686ab
commit d0d0b44f57
4 changed files with 8 additions and 8 deletions

View File

@@ -17,12 +17,12 @@ test.describe('Header', () => {
header.getByAltText('Freedom Equality Fraternity Logo'), header.getByAltText('Freedom Equality Fraternity Logo'),
).toBeVisible(); ).toBeVisible();
await expect(header.getByAltText('Impress Logo')).toBeVisible(); await expect(header.getByAltText('Docs Logo')).toBeVisible();
await expect(header.locator('h2').getByText('Impress')).toHaveCSS( await expect(header.locator('h2').getByText('Docs')).toHaveCSS(
'color', 'color',
'rgb(0, 0, 145)', 'rgb(0, 0, 145)',
); );
await expect(header.locator('h2').getByText('Impress')).toHaveCSS( await expect(header.locator('h2').getByText('Docs')).toHaveCSS(
'font-family', 'font-family',
/Marianne/i, /Marianne/i,
); );

View File

@@ -10,7 +10,7 @@ import { LanguagePicker } from '../language/';
import { AccountDropdown } from './AccountDropdown'; import { AccountDropdown } from './AccountDropdown';
import { LaGaufre } from './LaGaufre'; import { LaGaufre } from './LaGaufre';
import { default as IconImpress } from './assets/icon-impress.svg?url'; import { default as IconDocs } from './assets/icon-docs.svg?url';
export const HEADER_HEIGHT = '100px'; export const HEADER_HEIGHT = '100px';
@@ -51,9 +51,9 @@ export const Header = () => {
/> />
<StyledLink href="/"> <StyledLink href="/">
<Box $align="center" $gap="1rem" $direction="row"> <Box $align="center" $gap="1rem" $direction="row">
<Image priority src={IconImpress} alt={t('Impress Logo')} /> <Image priority src={IconDocs} alt={t('Docs Logo')} />
<Text $margin="none" as="h2" $theme="primary"> <Text $margin="none" as="h2" $theme="primary">
{t('Impress')} {t('Docs')}
</Text> </Text>
</Box> </Box>
</StyledLink> </StyledLink>

View File

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB

View File

@@ -18,8 +18,8 @@ export default function App({ Component, pageProps }: AppPropsWithLayout) {
return ( return (
<> <>
<Head> <Head>
<title>{t('Impress')}</title> <title>{t('Docs')}</title>
<meta name="description" content={t('Impress Description')} /> <meta name="description" content={t('Docs Description')} />
<link rel="icon" href="/favicon.ico" sizes="any" /> <link rel="icon" href="/favicon.ico" sizes="any" />
</Head> </Head>
<AppProvider>{getLayout(<Component {...pageProps} />)}</AppProvider> <AppProvider>{getLayout(<Component {...pageProps} />)}</AppProvider>