Skip to content

Commit 87e62ef

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

File tree

2 files changed

+35
-9
lines changed

2 files changed

+35
-9
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>

services/homepage/src/pages/LandingPage/LandingPage.component.tsx

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,15 @@ export function LandingPageComponent(): React.ReactElement {
3434
/>
3535

3636
<Box>
37-
<Typography color="white" gutterBottom sx={{ mb: 3 }} variant="h3">
37+
<Typography
38+
color="white"
39+
gutterBottom
40+
sx={{
41+
mb: 4,
42+
textShadow: `1px 1px 1px black`,
43+
}}
44+
variant="h3"
45+
>
3846
{t("landingpage.hero.text")}
3947
</Typography>
4048

0 commit comments

Comments
 (0)