Skip to content

Commit

Permalink
Alternative hero styling
Browse files Browse the repository at this point in the history
  • Loading branch information
YodaLightsabr committed Oct 31, 2024
1 parent 74347a7 commit 118c59b
Showing 1 changed file with 22 additions and 20 deletions.
42 changes: 22 additions & 20 deletions components/Header.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,27 +56,11 @@ export default function Header({ concise }) {
</Box>

<Box as="header" sx={{
background: ["sheet", "sheet", "sheet", colorMode == "dark" ? "sheet" : "linear-gradient(90deg, rgba(249, 250, 252, 1) 27%, rgb(255 255 255) 80%)"],
color: 'text'
}}>
<Container variant="wide" sx={{
background: ["sheet", "sheet", "sheet", colorMode == "dark" ? "sheet" : "linear-gradient(90deg, rgba(249,250,252,1) 27%, rgba(221,229,237,1) 80%)"],
...(concise ? { pt: 4, pb: 2, display: "flex", justifyContent: "center", position: "relative" } : { pt: 5, pb: [3, 4], position: "relative" })
}}>

<Box sx={{
display: "flex",
justifyContent: "flex-start",
alignItems: "flex-start",
flexDirection: "row",
mb: 4,
gap: 3,
...(concise ? {
width: "100%",
maxWidth: "800px",
} : {}),
}}>
<Image src="/ui.png" alt="UI" sx={{
color: 'text',
position: "relative"
}}>
<Image src="/ui.png" alt="UI" sx={{
position: "absolute",
bottom: "0px",
right: "0px",
Expand All @@ -94,6 +78,24 @@ export default function Header({ concise }) {
zIndex: 999,
display: ["none", "none", "none", colorMode == "dark" ? "block" : "none"]
}} />

<Container variant="wide" sx={{
background: ["sheet", "sheet", "sheet", colorMode == "dark" ? "sheet" : "linear-gradient(90deg, rgba(249,250,252,1) 27%, rgba(221,229,237,1) 80%)"],
...(concise ? { pt: 4, pb: 2, display: "flex", justifyContent: "center", position: "relative" } : { pt: 5, pb: [3, 4], position: "relative" })
}}>

<Box sx={{
display: "flex",
justifyContent: "flex-start",
alignItems: "flex-start",
flexDirection: "row",
mb: 4,
gap: 3,
...(concise ? {
width: "100%",
maxWidth: "800px",
} : {}),
}}>
<Link href="/">
<Image src="https://assets.hackclub.com/hcb-light.svg" alt="HCB Logo" sx={{
height: "50px"
Expand Down

0 comments on commit 118c59b

Please sign in to comment.