forked from remix-run/react-router
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathLogo.js
More file actions
25 lines (23 loc) · 681 Bytes
/
Logo.js
File metadata and controls
25 lines (23 loc) · 681 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
import React from "react";
import { Block, Row } from "jsxstyle";
import { DARK_GRAY } from "../Theme.js";
import LogoImage from "../logo.png";
export default function Logo({ size = 230, shadow = true }) {
return (
<Row
background={DARK_GRAY}
width={size + "px"}
height={size + "px"}
alignItems="center"
justifyContent="center"
borderRadius="50%"
boxShadow={
shadow ? `2px ${size / 20}px ${size / 5}px hsla(0, 0%, 0%, 0.35)` : null
}
>
<Block position="relative" top="-4%" textAlign="center" width="100%">
<img src={LogoImage} alt="React Router logo" width="75%" />
</Block>
</Row>
);
}