mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-05-24 02:02:36 -04:00
Add browse link on home page
This commit is contained in:
parent
aceb6ee14c
commit
034f048883
@ -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
|
||||
|
@ -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,
|
||||
|
@ -42,6 +42,7 @@
|
||||
},
|
||||
"navbar": {
|
||||
"home": "Home",
|
||||
"browse": "Browse",
|
||||
"search": "Search",
|
||||
"login": "Login"
|
||||
},
|
||||
|
@ -42,6 +42,7 @@
|
||||
},
|
||||
"navbar": {
|
||||
"home": "Accueil",
|
||||
"browse": "Liste",
|
||||
"search": "Rechercher",
|
||||
"login": "Connexion"
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user