├── .gitignore
├── README.md
├── netlify.toml
├── package-lock.json
├── package.json
├── public
├── IconicMark.png
├── _redirects
├── favicon.ico
├── index.html
├── manifest.json
├── robots.txt
└── whitepaper.pdf
├── src
├── App.css
├── App.test.tsx
├── App.tsx
├── Routes.tsx
├── assets
│ ├── discord.svg
│ ├── docs.svg
│ ├── github.svg
│ ├── hop-logo.svg
│ ├── landing-page-bg.svg
│ ├── medium.svg
│ ├── page-bg.svg
│ ├── twitter.svg
│ └── use-hop.svg
├── components
│ └── Section.tsx
├── config.ts
├── index.css
├── index.tsx
├── logo.svg
├── pages
│ ├── BasePage.tsx
│ ├── Careers.tsx
│ ├── FEDeveloper.tsx
│ └── Home.tsx
├── react-app-env.d.ts
├── reportWebVitals.ts
├── setupTests.ts
└── theme.tsx
├── tsconfig.json
└── yarn.lock
/.gitignore:
--------------------------------------------------------------------------------
1 | # See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2 |
3 | # dependencies
4 | /node_modules
5 | /.pnp
6 | .pnp.js
7 |
8 | # testing
9 | /coverage
10 |
11 | # production
12 | /build
13 |
14 | # misc
15 | .DS_Store
16 | .env.local
17 | .env.development.local
18 | .env.test.local
19 | .env.production.local
20 |
21 | npm-debug.log*
22 | yarn-debug.log*
23 | yarn-error.log*
24 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # Hop Landing Page
2 | ## Available Scripts
3 |
4 | In the project directory, you can run:
5 |
6 | ### `yarn start`
7 |
8 | Runs the app in the development mode.\
9 | Open [http://localhost:3000](http://localhost:3000) to view it in the browser.
10 |
11 | The page will reload if you make edits.\
12 | You will also see any lint errors in the console.
13 |
14 | ### `yarn test`
15 |
16 | Launches the test runner in the interactive watch mode.\
17 | See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.
18 |
19 | ### `yarn build`
20 |
21 | Builds the app for production to the `build` folder.\
22 | It correctly bundles React in production mode and optimizes the build for the best performance.
23 |
24 | The build is minified and the filenames include the hashes.\
25 | Your app is ready to be deployed!
26 |
27 | See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.
28 |
29 | ### `yarn eject`
30 |
31 | **Note: this is a one-way operation. Once you `eject`, you can’t go back!**
32 |
33 | If you aren’t satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project.
34 |
35 | Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own.
36 |
37 | You don’t have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it.
38 |
39 | ## Learn More
40 |
41 | You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).
42 |
43 | To learn React, check out the [React documentation](https://reactjs.org/).
44 |
--------------------------------------------------------------------------------
/netlify.toml:
--------------------------------------------------------------------------------
1 | [[redirects]]
2 | from = "/*"
3 | to = "/index.html"
4 | status = 200
5 |
6 | [[headers]]
7 | for = "/*"
8 | [headers.values]
9 | X-Frame-Options = "DENY"
10 | X-XSS-Protection = "1; mode=block"
11 | Referrer-Policy = "no-referrer"
12 | X-Content-Type-Options = "nosniff"
13 | Strict-Transport-Security = "max-age=31536000; includeSubDomains; preload"
14 | Feature-Policy = "geolocation 'none'; midi 'none'; sync-xhr 'none'; microphone 'none'; camera 'none'; magnetometer 'none'; gyroscope 'none'; fullscreen 'none'; payment 'none'"
15 |
--------------------------------------------------------------------------------
/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "landing-page",
3 | "version": "0.1.0",
4 | "private": true,
5 | "dependencies": {
6 | "@material-ui/core": "^4.12.1",
7 | "@testing-library/jest-dom": "^5.11.4",
8 | "@testing-library/react": "^11.1.0",
9 | "@testing-library/user-event": "^12.1.10",
10 | "@types/jest": "^26.0.15",
11 | "@types/node": "^12.0.0",
12 | "@types/react": "^17.0.0",
13 | "@types/react-dom": "^17.0.0",
14 | "@types/react-router-dom": "^5.1.8",
15 | "react": "^17.0.2",
16 | "react-dom": "^17.0.2",
17 | "react-router-dom": "^5.2.0",
18 | "react-scripts": "4.0.3",
19 | "typescript": "^4.1.2",
20 | "web-vitals": "^1.0.1"
21 | },
22 | "scripts": {
23 | "start": "PORT=3001 react-scripts start",
24 | "build": "INLINE_RUNTIME_CHUNK=false react-scripts build",
25 | "test": "react-scripts test",
26 | "eject": "react-scripts eject"
27 | },
28 | "eslintConfig": {
29 | "extends": [
30 | "react-app",
31 | "react-app/jest"
32 | ]
33 | },
34 | "browserslist": {
35 | "production": [
36 | ">0.2%",
37 | "not dead",
38 | "not op_mini all"
39 | ],
40 | "development": [
41 | "last 1 chrome version",
42 | "last 1 firefox version",
43 | "last 1 safari version"
44 | ]
45 | }
46 | }
47 |
--------------------------------------------------------------------------------
/public/IconicMark.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hop-protocol/landing-page/b89fb66e697737a9d5b755b5707b31edc8b269c9/public/IconicMark.png
--------------------------------------------------------------------------------
/public/_redirects:
--------------------------------------------------------------------------------
1 | /* /index.html 200
--------------------------------------------------------------------------------
/public/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hop-protocol/landing-page/b89fb66e697737a9d5b755b5707b31edc8b269c9/public/favicon.ico
--------------------------------------------------------------------------------
/public/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
12 |
16 |
17 |
21 |
22 |
31 | Hop Exchange
32 |
33 |
34 |
35 |
36 |
46 |
47 |
48 |
--------------------------------------------------------------------------------
/public/manifest.json:
--------------------------------------------------------------------------------
1 | {
2 | "short_name": "React App",
3 | "name": "Create React App Sample",
4 | "icons": [
5 | {
6 | "src": "favicon.ico",
7 | "sizes": "64x64 32x32 24x24 16x16",
8 | "type": "image/x-icon"
9 | },
10 | {
11 | "src": "IconicMark.png",
12 | "type": "image/png",
13 | "sizes": "150x150"
14 | }
15 | ],
16 | "start_url": ".",
17 | "display": "standalone",
18 | "theme_color": "#000000",
19 | "background_color": "#ffffff"
20 | }
21 |
--------------------------------------------------------------------------------
/public/robots.txt:
--------------------------------------------------------------------------------
1 | # https://www.robotstxt.org/robotstxt.html
2 | User-agent: *
3 | Disallow:
4 |
--------------------------------------------------------------------------------
/public/whitepaper.pdf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hop-protocol/landing-page/b89fb66e697737a9d5b755b5707b31edc8b269c9/public/whitepaper.pdf
--------------------------------------------------------------------------------
/src/App.css:
--------------------------------------------------------------------------------
1 | :root {
2 | font-size: 62.5%;
3 | }
4 |
--------------------------------------------------------------------------------
/src/App.test.tsx:
--------------------------------------------------------------------------------
1 | import React from 'react';
2 | import { render, screen } from '@testing-library/react';
3 | import App from './App';
4 |
5 | test('renders learn react link', () => {
6 | render();
7 | const linkElement = screen.getByText(/learn react/i);
8 | expect(linkElement).toBeInTheDocument();
9 | });
10 |
--------------------------------------------------------------------------------
/src/App.tsx:
--------------------------------------------------------------------------------
1 | import React from 'react';
2 | import {
3 | BrowserRouter as Router,
4 | } from 'react-router-dom'
5 | import { ThemeProvider } from '@material-ui/core/styles'
6 | import './App.css'
7 | import theme from './theme'
8 | import Routes from './Routes'
9 |
10 | function App() {
11 | return (
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 | );
20 | }
21 |
22 | export default App;
23 |
--------------------------------------------------------------------------------
/src/Routes.tsx:
--------------------------------------------------------------------------------
1 | import React, { FC } from 'react'
2 | import {
3 | Switch,
4 | Route
5 | } from 'react-router-dom'
6 | import Home from './pages/Home'
7 | import Careers from './pages/Careers'
8 | import FEDeveloper from './pages/FEDeveloper'
9 |
10 | type Props = {}
11 |
12 | const Routes: FC = () => {
13 | return (
14 | <>
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 | >
27 | )
28 | }
29 |
30 | export default Routes
--------------------------------------------------------------------------------
/src/assets/discord.svg:
--------------------------------------------------------------------------------
1 |
6 |
--------------------------------------------------------------------------------
/src/assets/docs.svg:
--------------------------------------------------------------------------------
1 |
5 |
--------------------------------------------------------------------------------
/src/assets/github.svg:
--------------------------------------------------------------------------------
1 |
11 |
--------------------------------------------------------------------------------
/src/assets/hop-logo.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/src/assets/landing-page-bg.svg:
--------------------------------------------------------------------------------
1 |
28 |
--------------------------------------------------------------------------------
/src/assets/medium.svg:
--------------------------------------------------------------------------------
1 |
4 |
--------------------------------------------------------------------------------
/src/assets/page-bg.svg:
--------------------------------------------------------------------------------
1 |
8 |
--------------------------------------------------------------------------------
/src/assets/twitter.svg:
--------------------------------------------------------------------------------
1 |
11 |
--------------------------------------------------------------------------------
/src/assets/use-hop.svg:
--------------------------------------------------------------------------------
1 |
28 |
--------------------------------------------------------------------------------
/src/components/Section.tsx:
--------------------------------------------------------------------------------
1 | import React, { FC, ReactNode } from 'react'
2 | import { makeStyles } from '@material-ui/core/styles'
3 | import Typography from '@material-ui/core/Typography'
4 |
5 | const useStyles = makeStyles(theme => ({
6 | root: {
7 | marginBottom: theme.padding.default
8 | },
9 | sectionTitle: {
10 | marginBottom: theme.padding.light
11 | },
12 | sectionBody: {
13 |
14 | }
15 | }))
16 |
17 | type Props = {
18 | title: string,
19 | body: ReactNode
20 | }
21 |
22 | const Section: FC = props => {
23 | const styles = useStyles()
24 | const { title, body } = props
25 |
26 | return (
27 |
28 |
29 | {title}
30 |
31 |
32 | {body}
33 |
34 |
35 | )
36 | }
37 |
38 | export default Section
--------------------------------------------------------------------------------
/src/config.ts:
--------------------------------------------------------------------------------
1 | export const hopUrl = 'https://app.hop.exchange/'
2 | export const discordUrl = 'https://discord.gg/PwCF88emV4'
3 | export const docsUrl = 'https://docs.hop.exchange/'
4 | export const faqUrl = 'https://help.hop.exchange/hc/en-us'
5 | export const githubUrl = 'https://github.com/hop-protocol'
6 | export const mediumUrl = 'https://medium.com/hop-protocol'
7 | export const twitterUrl = 'https://twitter.com/HopProtocol'
8 | export const forumUrl = 'https://forum.hop.exchange/'
9 |
--------------------------------------------------------------------------------
/src/index.css:
--------------------------------------------------------------------------------
1 | body {
2 | margin: 0;
3 | font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
4 | 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
5 | sans-serif;
6 | -webkit-font-smoothing: antialiased;
7 | -moz-osx-font-smoothing: grayscale;
8 | }
9 |
10 | code {
11 | font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
12 | monospace;
13 | }
14 |
--------------------------------------------------------------------------------
/src/index.tsx:
--------------------------------------------------------------------------------
1 | import React from 'react';
2 | import ReactDOM from 'react-dom';
3 | import './index.css';
4 | import App from './App';
5 | import reportWebVitals from './reportWebVitals';
6 |
7 | ReactDOM.render(
8 |
9 |
10 | ,
11 | document.getElementById('root')
12 | );
13 |
14 | // If you want to start measuring performance in your app, pass a function
15 | // to log results (for example: reportWebVitals(console.log))
16 | // or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals
17 | reportWebVitals();
18 |
--------------------------------------------------------------------------------
/src/logo.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/src/pages/BasePage.tsx:
--------------------------------------------------------------------------------
1 | import React, { FC } from 'react'
2 | import { makeStyles } from '@material-ui/core/styles'
3 | import Box from '@material-ui/core/Box'
4 | import background from '../assets/page-bg.svg';
5 |
6 | const useStyles = makeStyles(theme => ({
7 | background: {
8 | zIndex: -1,
9 | position: 'fixed',
10 | top: '-50%',
11 | left: '-50%',
12 | height: '200%',
13 | width: '200%'
14 | },
15 | outerContainer: {
16 | width: '100%',
17 | padding: '6.4rem 4.8rem',
18 | boxSizing: 'border-box'
19 | },
20 | innerContainer: {
21 | maxWidth: '72.0rem',
22 | width: '100%'
23 | }
24 | }))
25 |
26 | type Props = {}
27 |
28 | const BasePage: FC = props => {
29 | const styles = useStyles()
30 | const { children } = props
31 | return (
32 | <>
33 |
34 |
41 |
42 | {children}
43 |
44 |
45 | >
46 | )
47 | }
48 |
49 | export default BasePage
--------------------------------------------------------------------------------
/src/pages/Careers.tsx:
--------------------------------------------------------------------------------
1 | import React, { FC } from 'react'
2 | import { Link } from 'react-router-dom'
3 | import { makeStyles } from '@material-ui/core/styles'
4 | import Typography from '@material-ui/core/Typography'
5 | import Breadcrumbs from '@material-ui/core/Breadcrumbs'
6 | import MuiLink from '@material-ui/core/Link'
7 | import BasePage from './BasePage'
8 |
9 | const useStyles = makeStyles(theme => ({
10 | title: {
11 | marginBottom: theme.padding.default
12 | },
13 | link: {
14 | textDecoration: 'none'
15 | },
16 | breadcrumbs: {
17 | marginBottom: theme.padding.light
18 | }
19 | }))
20 |
21 | type Props = {}
22 |
23 | const Careers: FC = () => {
24 | const styles = useStyles()
25 |
26 | return (
27 |
28 |
29 |
30 | Hop
31 |
32 | Careers
33 |
34 |
35 | Careers
36 |
37 |
38 |
39 | Senior Frontend Developer
40 |
41 |
42 |
43 | )
44 | }
45 |
46 | export default Careers
--------------------------------------------------------------------------------
/src/pages/FEDeveloper.tsx:
--------------------------------------------------------------------------------
1 | import React, { FC } from 'react'
2 | import { makeStyles } from '@material-ui/core/styles'
3 | import Link from '@material-ui/core/Link'
4 | import Typography from '@material-ui/core/Typography'
5 | import Breadcrumbs from '@material-ui/core/Breadcrumbs'
6 | import Section from '../components/Section'
7 | import BasePage from './BasePage'
8 |
9 | const useStyles = makeStyles(theme => ({
10 | title: {
11 | marginBottom: theme.padding.default
12 | },
13 | link: {
14 | textDecoration: 'none'
15 | },
16 | breadcrumbs: {
17 | marginBottom: theme.padding.light
18 | }
19 | }))
20 |
21 | type Props = {}
22 |
23 | const FEDeveloper: FC = () => {
24 | const styles = useStyles()
25 |
26 | return (
27 |
28 |
29 |
30 | Hop
31 |
32 |
33 | Careers
34 |
35 | Senior Frontend Developer
36 |
37 |
38 | Senior Frontend Developer
39 |
40 |
44 |
48 | You will lead frontend development at Hop Protocol including development of Hop's primary user interface.
49 | {" "}(
50 |
55 | https://app.hop.exchange/
56 |
57 | ){" "}
58 | You will be responsible for ensuring that Hop is the simplest and most intuitive bridge experience by engaging with users and building delightful user interfaces.
59 | >
60 | }
61 | />
62 |
68 |
72 | Improve and maintain the core Hop interface as well as auxiliary interfaces
73 | Interact with users and determine their needs and pain points
74 | Manage and prioritize features, deadlines, and deliverables
75 | Help recruit, interview, train, and manage a growing frontend team
76 |
77 | }
78 | />
79 |
83 | Highly experienced with React
84 | Familiarity with React Hooks
85 | Experience with TypeScript
86 | Experience with ethers.js
87 | Ability to read Solidity and interact with smart contracts
88 |
89 | }
90 | />
91 |
95 | Based in Los Angeles but remote for the right candidate
96 | Competitive compensation and equity
97 | Full medical, dental, and vision insurance
98 | Unlimited vacation
99 | Company sponsored travel for conferences, retreats, and on-sites across the world
100 |
101 | }
102 | />
103 |
107 | Reach out in our
108 | {" "}
109 |
114 | Discord
115 |
116 | {" "}
117 | . Let us know why you want to join Hop and why you're a good fit.
118 | >
119 | }
120 | />
121 |
122 | )
123 | }
124 |
125 | export default FEDeveloper
126 |
--------------------------------------------------------------------------------
/src/pages/Home.tsx:
--------------------------------------------------------------------------------
1 | import React, { FC } from 'react'
2 | import { Link } from 'react-router-dom'
3 | import { makeStyles } from '@material-ui/core/styles'
4 | import background from '../assets/landing-page-bg.svg';
5 | import logo from '../assets/hop-logo.svg';
6 | import discord from '../assets/discord.svg';
7 | import github from '../assets/github.svg';
8 | import medium from '../assets/medium.svg';
9 | import twitter from '../assets/twitter.svg';
10 | import useHop from '../assets/use-hop.svg';
11 | import Box from '@material-ui/core/Box'
12 | import Typography from '@material-ui/core/Typography'
13 | import MuiLink from '@material-ui/core/Link'
14 | import {
15 | hopUrl,
16 | discordUrl,
17 | docsUrl,
18 | faqUrl,
19 | githubUrl,
20 | mediumUrl,
21 | twitterUrl,
22 | forumUrl
23 | } from '../config'
24 |
25 | const useStyles = makeStyles(theme => ({
26 | background: {
27 | zIndex: -1,
28 | position: 'fixed',
29 | top: '-50%',
30 | left: '-50%',
31 | height: '200%',
32 | width: '200%'
33 | },
34 | container: {
35 | height: '100vh',
36 | width: '100%'
37 | },
38 | logo: {
39 | width: '24rem'
40 | },
41 | link: {
42 | margin: '1.8rem',
43 | width: '3.0rem',
44 | opacity: '35%',
45 | '&:hover': {
46 | opacity: '70%'
47 | }
48 | },
49 | links: {
50 | position: 'absolute',
51 | bottom: '1.4rem'
52 | },
53 | footerLink: {
54 | textDecoration: 'none',
55 | margin: `0 ${theme.padding.extraLight}`,
56 | '&:hover': {
57 | textDecoration: 'inherit'
58 | }
59 | },
60 | useHop: {
61 | height: '5.0rem'
62 | },
63 | appButton: {
64 | marginTop: '5.6rem',
65 | borderRadius: '3.0rem',
66 | padding: 0,
67 | height: '5.0rem',
68 | '&:hover': {
69 | background: 'rgba(247, 189, 181, 0.05)'
70 | }
71 | }
72 | }))
73 |
74 | type Props = {}
75 |
76 | const Home: FC = () => {
77 | const styles = useStyles()
78 |
79 | return (
80 | <>
81 |
82 |
89 |
90 |
96 |
97 |
98 |
104 |
109 |
114 |
115 |
116 |
121 |
122 |
123 |
128 |
129 |
130 |
135 |
136 |
137 |
138 |
143 |
149 |
150 | FAQ
151 |
152 |
153 |
159 |
160 | Docs
161 |
162 |
163 |
169 |
170 | Forum
171 |
172 |
173 |
174 |
175 | Careers
176 |
177 |
178 |
179 |
180 |
181 | >
182 | )
183 | }
184 |
185 | export default Home
--------------------------------------------------------------------------------
/src/react-app-env.d.ts:
--------------------------------------------------------------------------------
1 | ///
2 |
--------------------------------------------------------------------------------
/src/reportWebVitals.ts:
--------------------------------------------------------------------------------
1 | import { ReportHandler } from 'web-vitals';
2 |
3 | const reportWebVitals = (onPerfEntry?: ReportHandler) => {
4 | if (onPerfEntry && onPerfEntry instanceof Function) {
5 | import('web-vitals').then(({ getCLS, getFID, getFCP, getLCP, getTTFB }) => {
6 | getCLS(onPerfEntry);
7 | getFID(onPerfEntry);
8 | getFCP(onPerfEntry);
9 | getLCP(onPerfEntry);
10 | getTTFB(onPerfEntry);
11 | });
12 | }
13 | };
14 |
15 | export default reportWebVitals;
16 |
--------------------------------------------------------------------------------
/src/setupTests.ts:
--------------------------------------------------------------------------------
1 | // jest-dom adds custom jest matchers for asserting on DOM nodes.
2 | // allows you to do things like:
3 | // expect(element).toHaveTextContent(/react/i)
4 | // learn more: https://github.com/testing-library/jest-dom
5 | import '@testing-library/jest-dom';
6 |
--------------------------------------------------------------------------------
/src/theme.tsx:
--------------------------------------------------------------------------------
1 | import { CSSProperties } from 'react'
2 | import createBreakpoints from '@material-ui/core/styles/createBreakpoints'
3 | import { TypographyOptions } from '@material-ui/core/styles/createTypography'
4 |
5 | // https://stackoverflow.com/a/64135466/1439168
6 | import { unstable_createMuiStrictModeTheme as createMuiTheme } from '@material-ui/core/styles'
7 |
8 | declare module '@material-ui/core/styles/createTheme' {
9 | interface Theme {
10 | padding: {
11 | thick: CSSProperties['paddingTop']
12 | default: CSSProperties['paddingTop']
13 | light: CSSProperties['paddingTop']
14 | extraLight: CSSProperties['paddingTop']
15 | }
16 | }
17 |
18 | // allow configuration using `createMuiTheme`
19 | interface ThemeOptions {
20 | padding?: {
21 | thick?: CSSProperties['paddingTop']
22 | default?: CSSProperties['paddingTop']
23 | light?: CSSProperties['paddingTop']
24 | extraLight?: CSSProperties['paddingTop']
25 | }
26 | }
27 | }
28 |
29 | export const palette = {
30 | primary: {
31 | light: '#c462fc',
32 | main: '#B32EFF',
33 | dark: '#7213a8',
34 | contrastText: 'white'
35 | },
36 | background: {
37 | default: '#F0F0F3',
38 | paper: '#F0F0F3'
39 | },
40 | action: {
41 | active: '#B32EFF',
42 | hover: '#c462fc',
43 | selected: '#B32EFF',
44 | disabled: 'rgba(5, 21, 36, 0.2)'
45 | },
46 | secondary: {
47 | main: 'rgba(70, 82, 92)',
48 | light: 'rgba(70, 82, 92, 0.2)'
49 | },
50 | success: {
51 | main: 'rgba(0, 167, 47)',
52 | light: 'rgba(0, 167, 47, 0.2)'
53 | },
54 | error: {
55 | main: 'rgba(197, 6, 2)',
56 | light: 'rgba(197, 6, 2, 0.12)'
57 | },
58 | info: {
59 | main: 'rgba(33, 114, 229)',
60 | light: 'rgba(33, 114, 229, 0.12)'
61 | },
62 | text: {
63 | primary: '#051524',
64 | secondary: '#46525C',
65 | disabled: 'rgba(5, 21, 36, 0.2)'
66 | }
67 | }
68 |
69 | const typography: TypographyOptions = {
70 | fontFamily: [
71 | 'Nunito',
72 | '-apple-system',
73 | 'BlinkMacSystemFont',
74 | '"Segoe UI"',
75 | 'Roboto',
76 | '"Helvetica Neue"',
77 | 'Arial',
78 | 'sans-serif',
79 | '"Apple Color Emoji"',
80 | '"Segoe UI Emoji"',
81 | '"Segoe UI Symbol"'
82 | ].join(','),
83 | h1: {
84 | fontSize: '8.2rem',
85 | fontWeight: 300
86 | },
87 | h2: {
88 | fontSize: '6.0rem',
89 | fontWeight: 600
90 | },
91 | h3: {
92 | fontSize: '4.1rem',
93 | fontWeight: 600
94 | },
95 | h4: {
96 | fontSize: '2.7rem',
97 | fontWeight: 700
98 | },
99 | h5: {
100 | fontSize: '2.4rem',
101 | fontWeight: 700
102 | },
103 | h6: {
104 | fontSize: '2.0rem',
105 | fontWeight: 700
106 | },
107 | subtitle1: {
108 | fontSize: '1.8rem',
109 | fontWeight: 700
110 | },
111 | subtitle2: {
112 | fontSize: '1.6rem',
113 | fontWeight: 700
114 | },
115 | body1: {
116 | fontSize: '1.8rem',
117 | fontWeight: 600
118 | },
119 | body2: {
120 | fontSize: '1.2rem',
121 | fontWeight: 400
122 | },
123 | button: {
124 | fontSize: '1.8rem',
125 | fontWeight: 700,
126 | textTransform: 'capitalize'
127 | }
128 | }
129 |
130 | const padding = {
131 | thick: '4.2rem',
132 | default: '2.8rem',
133 | light: '1.8rem',
134 | extraLight: '1.2rem'
135 | }
136 |
137 | const breakpoints = createBreakpoints({})
138 |
139 | const theme = createMuiTheme({
140 | palette,
141 | padding,
142 | typography,
143 | breakpoints,
144 | overrides: {
145 | MuiTouchRipple: {
146 | rippleVisible: {
147 | color: 'rgba(247, 189, 181, 0.8)'
148 | }
149 | }
150 | }
151 | })
152 |
153 | export default theme
154 |
--------------------------------------------------------------------------------
/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "target": "es5",
4 | "lib": [
5 | "dom",
6 | "dom.iterable",
7 | "esnext"
8 | ],
9 | "allowJs": true,
10 | "skipLibCheck": true,
11 | "esModuleInterop": true,
12 | "allowSyntheticDefaultImports": true,
13 | "strict": true,
14 | "forceConsistentCasingInFileNames": true,
15 | "noFallthroughCasesInSwitch": true,
16 | "module": "esnext",
17 | "moduleResolution": "node",
18 | "resolveJsonModule": true,
19 | "isolatedModules": true,
20 | "noEmit": true,
21 | "jsx": "react-jsx"
22 | },
23 | "include": [
24 | "src"
25 | ]
26 | }
27 |
--------------------------------------------------------------------------------