Skip to content

Commit e2e8153

Browse files
committed
feat(homepage): improve style of navbar
1 parent 51d93bb commit e2e8153

File tree

1 file changed

+26
-8
lines changed
  • services/homepage/src/components/ui/AppBar

1 file changed

+26
-8
lines changed

services/homepage/src/components/ui/AppBar/AppBar.tsx

Lines changed: 26 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,19 +16,37 @@ export function AppBar(): React.ReactElement {
1616

1717
return (
1818
<MuiAppBar
19-
color="inherit"
19+
color="transparent"
2020
position="fixed"
21-
sx={{ zIndex: (theme) => theme.zIndex.drawer + 1 }}
21+
sx={{ border: "none", zIndex: (theme) => theme.zIndex.drawer + 1 }}
2222
variant="outlined"
2323
>
2424
<Toolbar sx={{ display: "flex", justifyContent: "left" }}>
25-
<Box sx={{ flexGrow: 1 }}>
26-
<Typography color="primary" variant="h6">
27-
{CONFIG.APP.NAME}
28-
</Typography>
29-
</Box>
25+
<Typography
26+
color="primary"
27+
sx={(theme) => ({
28+
background: `linear-gradient(to right, ${theme.palette.primary.main}, ${theme.palette.secondary.main})`,
29+
backgroundClip: "text",
30+
color: "transparent",
31+
fontWeight: 600,
32+
fontFamily: "sans-serif",
33+
textShadow: `1px 1px 1px white`,
34+
userSelect: "none",
35+
})}
36+
variant="h5"
37+
>
38+
{CONFIG.APP.NAME}
39+
</Typography>
3040

31-
<Button component="a" href={CONFIG.URLS.APP} variant="text">
41+
<Box sx={{ flexGrow: 1 }}></Box>
42+
43+
<Button
44+
component="a"
45+
color="primary"
46+
href={CONFIG.URLS.APP}
47+
sx={{ borderColor: "white", color: "white" }}
48+
variant="outlined"
49+
>
3250
{t("nav.login")}
3351
</Button>
3452
</Toolbar>

0 commit comments

Comments
 (0)