Skip to content

Commit

Permalink
feat(web-ui): add meet styled text (#886)
Browse files Browse the repository at this point in the history
Co-authored-by: Johan Book <{ID}+{username}@users.noreply.github.com>
  • Loading branch information
johanbook and Johan Book authored Jul 19, 2024
1 parent 54ad7cd commit bb8bb89
Showing 1 changed file with 26 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
import { ReactElement, ReactNode } from "react";

import { Typography } from "@mui/material";

import { Nav } from "src/components/nav";
import { CurrentOrganizationAvatar } from "src/components/nav/AppBar/CurrentOrganizationAvatar";
import { config } from "src/config";

interface BlogPostListPageNavProps {
children: ReactNode;
Expand All @@ -9,5 +13,26 @@ interface BlogPostListPageNavProps {
export function BlogPostListPageNav({
children,
}: BlogPostListPageNavProps): ReactElement {
return <Nav>{children}</Nav>;
const appBarContent = (
<>
<CurrentOrganizationAvatar />

<Typography
sx={(theme) => ({
background: `linear-gradient(to right, ${theme.palette.primary.main}, ${theme.palette.secondary.main})`,
backgroundClip: "text",
color: "transparent",
fontFamily: "sans-serif",
fontWeight: 600,
ml: 3,
textShadow: "1px 1px 1px white",
})}
variant="h5"
>
{config.APP.NAME}
</Typography>
</>
);

return <Nav appBarContent={appBarContent}>{children}</Nav>;
}

0 comments on commit bb8bb89

Please sign in to comment.