Add browse link on home page

This commit is contained in:
Zoe Roux 2023-10-22 00:19:18 +02:00
parent aceb6ee14c
commit 034f048883
4 changed files with 18 additions and 3 deletions

View File

@ -29,12 +29,12 @@ export const A = ({
replace,
children,
...props
}: TextProps & { href: string; replace?: boolean; children: ReactNode }) => {
}: TextProps & { href?: string; replace?: boolean; children: ReactNode }) => {
const { css, theme } = useYoshiki();
return (
<TextLink
href={href}
href={href ?? ""}
replace={replace as any}
experimental={
replace

View File

@ -199,6 +199,7 @@ export const NavbarRight = () => {
export const Navbar = (props: Stylable) => {
const { css, theme } = useYoshiki();
const { t } = useTranslation();
return (
<Header
@ -223,7 +224,19 @@ export const Navbar = (props: Stylable) => {
props,
)}
>
<NavbarTitle {...css({ marginX: ts(2) })} />
<View {...css({ flexDirection: "row" })}>
<NavbarTitle {...css({ marginX: ts(2) })} />
<A
href="/browse"
{...css({
textTransform: "uppercase",
fontWeight: "bold",
color: (theme) => theme.contrast,
})}
>
{t("navbar.browse")}
</A>
</View>
<View
{...css({
flexGrow: 1,

View File

@ -42,6 +42,7 @@
},
"navbar": {
"home": "Home",
"browse": "Browse",
"search": "Search",
"login": "Login"
},

View File

@ -42,6 +42,7 @@
},
"navbar": {
"home": "Accueil",
"browse": "Liste",
"search": "Rechercher",
"login": "Connexion"
},