-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream/master'
- Loading branch information
Showing
13 changed files
with
1,209 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
import React from "react"; | ||
import styled from "styled-components"; | ||
import { Info as InfoIcon } from "@material-ui/icons"; | ||
import { Link } from "react-router-dom"; | ||
|
||
interface AboutProps { | ||
visible: boolean; | ||
} | ||
|
||
export const About: React.FC<AboutProps> = React.memo(({ visible }) => { | ||
return ( | ||
<> | ||
{visible && ( | ||
<AboutButton to="/about"> | ||
<InfoIcon fontSize="small" /> | ||
</AboutButton> | ||
)} | ||
</> | ||
); | ||
}); | ||
|
||
const AboutButton = styled(Link)` | ||
position: fixed; | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
bottom: -3px; | ||
right: 140px; | ||
z-index: 10002; | ||
background-color: #ff9800; | ||
color: white; | ||
width: 40px; | ||
height: 40px; | ||
cursor: pointer; | ||
border: 1px solid rgba(0, 0, 0, 0.1); | ||
border-radius: 2px; | ||
background-clip: padding-box; | ||
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2); | ||
box-sizing: border-box; | ||
&:hover { | ||
border: 2px solid #ff9800; | ||
} | ||
`; |
Oops, something went wrong.