diff options
author | 2020-09-28 02:23:04 +0100 | |
---|---|---|
committer | 2020-09-28 02:23:04 +0100 | |
commit | 01d7fdef889350a25767d5b1999f8698de7ba5a6 (patch) | |
tree | b2b7ef8d957a6cf00b0192c10e89f5f8e2a7682e /src/components/HeaderBar/index.tsx | |
parent | Initialize project using Create React App (diff) |
Initial commit
Diffstat (limited to 'src/components/HeaderBar/index.tsx')
-rw-r--r-- | src/components/HeaderBar/index.tsx | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/src/components/HeaderBar/index.tsx b/src/components/HeaderBar/index.tsx new file mode 100644 index 0000000..200221c --- /dev/null +++ b/src/components/HeaderBar/index.tsx @@ -0,0 +1,49 @@ +/** @jsx jsx */ +import { css, jsx } from "@emotion/core"; +import SVG from "react-inlinesvg"; + +import header1 from "./header_1.svg"; +import header2 from "./header_2.svg"; + +const headerImageStyles = css` +z-index: -1; +top: 0; +position: absolute; +width: 100%; +transition: height 1s; + +@media (max-width: 660px) { + height: 140px; +} +`; + +function HeaderBar() { + return <div> + <div> + <SVG src={header1} css={headerImageStyles}/> + <SVG src={header2} css={headerImageStyles}/> + </div> + <h1 css={css` + font-size: 4em; + margin: 0; + margin-top: 10px; + margin-left: 30px; + margin-bottom: 200px; + transition-property: font-size, margin-bottom; + transition-duration: 1s; + + @media (max-width: 660px) { + margin-bottom: 100px; + font-size: 3em; + } + + @media (max-width: 510px) { + font-size: 2em; + } + `}> + Python Discord Forms + </h1> + </div> +} + +export default HeaderBar; |