Reorder Header items.

Center Logo
Move Settings/Jobs buttons to left side
This commit is contained in:
2025-06-17 15:31:57 +02:00
parent 486f6f60fb
commit e64f325022

View File

@ -9,6 +9,8 @@ export default function Header({children} : {children? : ReactElement<any, any>
return (
<Sheet className={"header"} sx={{position: "sticky !important", zIndex: 100}}>
<Stack direction={"row"} spacing={2} sx={{width: "100%", alignItems: "center"}}>
{children}
<Box sx={{flexGrow: 1}} />
<img src={"/blahaj.png"} style={{cursor: "grab", maxHeight: "100%"}}/>
<Typography level={"h2"} sx={{
background: "linear-gradient(110deg, var(--joy-palette-primary-solidBg), var(--joy-palette-success-400))",
@ -17,10 +19,9 @@ export default function Header({children} : {children? : ReactElement<any, any>
fontWeight: "bold",
cursor: "default"
}}>Tranga</Typography>
<Box sx={{flexGrow: 1}} />
<Link href={"https://github.com/C9Glax/tranga"} color={"neutral"} height={"min-content"} ><GitHub /> Server</Link>
<Link href={"https://github.com/C9Glax/tranga-website"} color={"neutral"} height={"min-content"} ><GitHub /> Website</Link>
<Box sx={{flexGrow: 1}} />
{children}
</Stack>
</Sheet>
);