Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions packages/demo/src/i18n/locales/en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ import type { Translation } from "./fr";
export const en: Translation = {
header: {
title: "Viewer",
subtitle: "Lorem ipsum dolor sit amet",
description: "Excepteur sint occaecat cupidatat non proident",
},
navbar: {
istex: "istex",
Expand Down
2 changes: 2 additions & 0 deletions packages/demo/src/i18n/locales/fr.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
export const fr = {
header: {
title: "Viewer",
subtitle: "Lorem ipsum dolor sit amet",
description: "Excepteur sint occaecat cupidatat non proident",
},
navbar: {
istex: "istex",
Expand Down
11 changes: 11 additions & 0 deletions packages/demo/src/layout/Header.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
import { Box, Container, Stack, Typography } from "@mui/material";
import { useTranslation } from "react-i18next";
import headerBackground from "../images/header-background.webp";
import istexSearchLogo from "../images/istex-search.svg";

export default function Header() {
const { t } = useTranslation();
return (
<Box
component="header"
Expand Down Expand Up @@ -41,6 +43,15 @@ export default function Header() {
View
</Typography>
</Stack>
<Typography
component={"strong"}
sx={{ color: "white", mb: 2, fontWeight: "bold" }}
>
{t("header.subtitle")}
</Typography>
<Typography sx={{ color: "white" }}>
{t("header.description")}
</Typography>
</Container>
</Box>
);
Expand Down
Loading