diff --git a/web/e.cash/components/h2/index.js b/web/e.cash/components/h2/index.js new file mode 100644 --- /dev/null +++ b/web/e.cash/components/h2/index.js @@ -0,0 +1,18 @@ +import GlitchText from '/components/glitch-text'; +import Image from 'next/image'; +import h2graphic from '/public/images/h2-graphic.svg'; +import { StyledH3, StyledH2, H2Image } from './styles'; + +export default function H2({ subtext, text }) { + return ( + <> + {subtext} + + + eCash + + + + + ); +} diff --git a/web/e.cash/components/h2/styles.js b/web/e.cash/components/h2/styles.js new file mode 100644 --- /dev/null +++ b/web/e.cash/components/h2/styles.js @@ -0,0 +1,29 @@ +import styled from 'styled-components'; + +export const StyledH3 = styled.h3` + margin: 0; + font-size: 20px; + font-weight: 400; + color: ${props => props.theme.colors.primaryLight}; + line-height: 1em; + margin-bottom: 10px; +`; + +export const StyledH2 = styled.h2` + margin: 0; + font-size: 55px; + font-weight: 700; + line-height: 1em; + position: relative; + margin-bottom: 70px; + display: inline-block; +`; + +export const H2Image = styled.div` + width: 380px; + height: 60px; + position: absolute; + top: 40px; + left: 0; + ${props => props.theme.filters.grayscale}; +`; diff --git a/web/e.cash/pages/index.js b/web/e.cash/pages/index.js --- a/web/e.cash/pages/index.js +++ b/web/e.cash/pages/index.js @@ -6,6 +6,7 @@ import { socials } from '/data/socials'; import { Hero, ButtonCtn } from '/styles/pages/homepage'; import Button from '/components/button'; +import H2 from '/components/h2'; export default function Home() { return ( @@ -50,6 +51,7 @@ +

); } diff --git a/web/e.cash/public/images/h2-graphic.svg b/web/e.cash/public/images/h2-graphic.svg new file mode 100755 --- /dev/null +++ b/web/e.cash/public/images/h2-graphic.svg @@ -0,0 +1 @@ +