Skip to content

Commit e1181cd

Browse files
committed
update layout
1 parent e1e8b57 commit e1181cd

File tree

2 files changed

+12
-5
lines changed

2 files changed

+12
-5
lines changed

public/banner.jpg

101 KB
Loading

src/components/Banner.tsx

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,21 +5,28 @@ import { InstructureBugClassic, InstructureBugColor } from "../assets/Logos";
55

66
interface BannerProps {
77
href?: string;
8+
variant?: "default" | "new";
89
}
910

10-
const Banner = ({ href }: BannerProps): React.ReactElement => {
11+
const Banner = ({
12+
href,
13+
variant = "default",
14+
}: BannerProps): React.ReactElement => {
1115
const LogoComponent =
12-
window?.location?.hash === "#/test"
13-
? InstructureBugColor
14-
: InstructureBugClassic;
16+
variant === "new" ? InstructureBugColor : InstructureBugClassic;
1517

1618
return (
17-
<View as="div" borderRadius="medium">
19+
<View as="div" borderRadius="medium" maxHeight="300px" maxWidth="300px">
1820
<View
1921
as="div"
2022
className="logoWrapper"
23+
height="300px"
24+
overflowX="hidden"
2125
overflowY="hidden"
2226
padding="medium"
27+
position="relative"
28+
style={{ aspectRatio: "1 / 1" }}
29+
width="300px"
2330
>
2431
{href ? (
2532
<Heading level="h1">

0 commit comments

Comments
 (0)