├── .gitattributes
├── .gitignore
├── README.md
├── package.json
├── postcss.config.js
├── public
├── favicon.ico
├── images
│ ├── Coin98.png
│ ├── MathWallet.svg
│ ├── SafePal.svg
│ ├── TokenPocket.svg
│ ├── TrustWallet.png
│ ├── metamaskWallet.png
│ ├── ohare.png
│ └── walletConnect.svg
├── index.html
├── logo192.png
├── logo512.png
├── manifest.json
└── robots.txt
├── src
├── App.js
├── App.test.js
├── components
│ ├── Header.jsx
│ └── TextField.jsx
├── config
│ └── constances.js
├── images
│ ├── Coin98.png
│ ├── MathWallet.png
│ ├── SafePal.png
│ ├── TokenPocket.png
│ ├── TrustWallet.png
│ ├── WalletConnect.png
│ ├── metamaskWallet.png
│ └── ohare.png
├── index.css
├── index.js
├── logo.svg
├── reportWebVitals.js
└── setupTests.js
└── tailwind.config.js
/.gitattributes:
--------------------------------------------------------------------------------
1 | # Auto detect text files and perform LF normalization
2 | * text=auto
3 |
--------------------------------------------------------------------------------
/.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
17 | .env.local
18 | .env.development.local
19 | .env.test.local
20 | .env.production.local
21 |
22 | npm-debug.log*
23 | yarn-debug.log*
24 | yarn-error.log*
25 | yarn.lock
26 |
27 | node_modules
28 | .env
29 | coverage
30 | coverage.json
31 | typechain
32 |
33 | #Truffle files
34 | /Truffle/build
35 | /Truffle/data
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # Getting Started with Create React App
2 |
3 | This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).
4 |
5 | ## Available Scripts
6 |
7 | In the project directory, you can run:
8 |
9 | ### `npm start`
10 |
11 | Runs the app in the development mode.\
12 | Open [http://localhost:3000](http://localhost:3000) to view it in your browser.
13 |
14 | The page will reload when you make changes.\
15 | You may also see any lint errors in the console.
16 |
17 | ### `npm test`
18 |
19 | Launches the test runner in the interactive watch mode.\
20 | See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.
21 |
22 | ### `npm run build`
23 |
24 | Builds the app for production to the `build` folder.\
25 | It correctly bundles React in production mode and optimizes the build for the best performance.
26 |
27 | The build is minified and the filenames include the hashes.\
28 | Your app is ready to be deployed!
29 |
30 | See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.
31 |
32 | ### `npm run eject`
33 |
34 | **Note: this is a one-way operation. Once you `eject`, you can't go back!**
35 |
36 | 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.
37 |
38 | 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.
39 |
40 | 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.
41 |
42 | ## Learn More
43 |
44 | You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).
45 |
46 | To learn React, check out the [React documentation](https://reactjs.org/).
47 |
48 | ### Code Splitting
49 |
50 | This section has moved here: [https://facebook.github.io/create-react-app/docs/code-splitting](https://facebook.github.io/create-react-app/docs/code-splitting)
51 |
52 | ### Analyzing the Bundle Size
53 |
54 | This section has moved here: [https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size](https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size)
55 |
56 | ### Making a Progressive Web App
57 |
58 | This section has moved here: [https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app](https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app)
59 |
60 | ### Advanced Configuration
61 |
62 | This section has moved here: [https://facebook.github.io/create-react-app/docs/advanced-configuration](https://facebook.github.io/create-react-app/docs/advanced-configuration)
63 |
64 | ### Deployment
65 |
66 | This section has moved here: [https://facebook.github.io/create-react-app/docs/deployment](https://facebook.github.io/create-react-app/docs/deployment)
67 |
68 | ### `npm run build` fails to minify
69 |
70 | This section has moved here: [https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify](https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify)
71 |
--------------------------------------------------------------------------------
/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "ohare",
3 | "version": "0.1.0",
4 | "private": true,
5 | "dependencies": {
6 | "@emotion/react": "^11.8.2",
7 | "@emotion/styled": "^11.8.1",
8 | "@mui/material": "^5.5.3",
9 | "@testing-library/jest-dom": "^5.16.3",
10 | "@testing-library/react": "^12.1.4",
11 | "@testing-library/user-event": "^13.5.0",
12 | "axios": "^0.26.1",
13 | "moralis": "^1.5.8",
14 | "react": "^18.0.0",
15 | "react-dom": "^18.0.0",
16 | "react-moralis": "^1.3.5",
17 | "react-scripts": "^5.0.0",
18 | "web-vitals": "^2.1.4"
19 | },
20 | "scripts": {
21 | "start": "react-scripts start",
22 | "build": "react-scripts build",
23 | "test": "react-scripts test",
24 | "eject": "react-scripts eject"
25 | },
26 | "eslintConfig": {
27 | "extends": [
28 | "react-app",
29 | "react-app/jest"
30 | ]
31 | },
32 | "browserslist": {
33 | "production": [
34 | ">0.2%",
35 | "not dead",
36 | "not op_mini all"
37 | ],
38 | "development": [
39 | "last 1 chrome version",
40 | "last 1 firefox version",
41 | "last 1 safari version"
42 | ]
43 | },
44 | "devDependencies": {
45 | "autoprefixer": "^10.4.4",
46 | "postcss": "^8.4.12",
47 | "tailwindcss": "^3.0.23"
48 | }
49 | }
50 |
--------------------------------------------------------------------------------
/postcss.config.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | plugins: {
3 | tailwindcss: {},
4 | autoprefixer: {},
5 | },
6 | }
7 |
--------------------------------------------------------------------------------
/public/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vector41/solana-airdrop-frontend/767bc57cf1648b78dacaa8c417f867da6947e640/public/favicon.ico
--------------------------------------------------------------------------------
/public/images/Coin98.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vector41/solana-airdrop-frontend/767bc57cf1648b78dacaa8c417f867da6947e640/public/images/Coin98.png
--------------------------------------------------------------------------------
/public/images/MathWallet.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Logo_Icon_black
5 | Created with Sketch.
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/public/images/SafePal.svg:
--------------------------------------------------------------------------------
1 |
2 |
18 |
20 |
21 |
23 | image/svg+xml
24 |
26 | 形状结合
27 |
28 |
29 |
30 |
32 |
35 |
39 |
43 |
44 |
54 |
55 |
72 |
73 | 形状结合
75 |
81 | Created with Sketch.
83 |
88 |
89 |
--------------------------------------------------------------------------------
/public/images/TokenPocket.svg:
--------------------------------------------------------------------------------
1 |
2 |
17 |
19 |
22 |
26 |
27 |
30 |
33 |
34 |
37 |
40 |
41 |
44 |
47 |
48 |
51 |
55 |
56 |
59 |
62 |
63 |
66 |
69 |
70 |
73 |
77 |
78 |
81 |
84 |
85 |
88 |
92 |
93 |
101 |
105 |
109 |
110 |
119 |
123 |
127 |
128 |
129 |
143 |
145 |
146 |
148 | image/svg+xml
149 |
151 |
152 |
153 |
154 |
155 |
160 |
163 |
166 |
168 |
170 |
174 |
175 |
177 |
181 |
182 |
183 |
184 |
185 |
188 |
191 |
193 |
195 |
199 |
201 |
203 |
206 |
209 |
211 |
213 |
216 |
218 |
220 |
223 |
226 |
230 |
231 |
232 |
233 |
234 |
235 |
236 |
237 |
238 |
239 |
240 |
241 |
242 |
245 |
248 |
251 |
255 |
256 |
257 |
258 |
259 |
260 |
--------------------------------------------------------------------------------
/public/images/TrustWallet.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vector41/solana-airdrop-frontend/767bc57cf1648b78dacaa8c417f867da6947e640/public/images/TrustWallet.png
--------------------------------------------------------------------------------
/public/images/metamaskWallet.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vector41/solana-airdrop-frontend/767bc57cf1648b78dacaa8c417f867da6947e640/public/images/metamaskWallet.png
--------------------------------------------------------------------------------
/public/images/ohare.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vector41/solana-airdrop-frontend/767bc57cf1648b78dacaa8c417f867da6947e640/public/images/ohare.png
--------------------------------------------------------------------------------
/public/images/walletConnect.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/public/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
12 |
13 |
17 |
18 |
27 | React App
28 |
29 |
30 | You need to enable JavaScript to run this app.
31 |
32 |
42 |
43 |
44 |
--------------------------------------------------------------------------------
/public/logo192.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vector41/solana-airdrop-frontend/767bc57cf1648b78dacaa8c417f867da6947e640/public/logo192.png
--------------------------------------------------------------------------------
/public/logo512.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vector41/solana-airdrop-frontend/767bc57cf1648b78dacaa8c417f867da6947e640/public/logo512.png
--------------------------------------------------------------------------------
/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": "logo192.png",
12 | "type": "image/png",
13 | "sizes": "192x192"
14 | },
15 | {
16 | "src": "logo512.png",
17 | "type": "image/png",
18 | "sizes": "512x512"
19 | }
20 | ],
21 | "start_url": ".",
22 | "display": "standalone",
23 | "theme_color": "#000000",
24 | "background_color": "#ffffff"
25 | }
26 |
--------------------------------------------------------------------------------
/public/robots.txt:
--------------------------------------------------------------------------------
1 | # https://www.robotstxt.org/robotstxt.html
2 | User-agent: *
3 | Disallow:
4 |
--------------------------------------------------------------------------------
/src/App.js:
--------------------------------------------------------------------------------
1 | import {
2 | Container,
3 | Button,
4 | Grid,
5 | useMediaQuery,
6 | useTheme,
7 | } from "@mui/material";
8 | import Header from "./components/Header";
9 | import axios from "axios"
10 | import { ServerURL } from "./config/constances";
11 | import { useEffect } from "react";
12 |
13 | function App() {
14 | const theme = useTheme();
15 | const matches = useMediaQuery(theme.breakpoints.down("sm"));
16 |
17 | useEffect(() => {
18 | axios.get(`${ServerURL}/api`).then(res => {
19 | console.log(res.data)
20 | })
21 | }, [])
22 |
23 | const uploadHandler = (file) => {
24 | const formData = new FormData();
25 | formData.append("file", file);
26 |
27 | axios.post(`${ServerURL}/api/file`, formData, { headers: { "Content-Type": "multipart/form-data" } })
28 | .then(res => {
29 | console.log(res.data)
30 | })
31 | }
32 |
33 | const requestAirdropHandler = () => {
34 | axios.get(`${ServerURL}/api/airdrop`)
35 | .then(res => {
36 | console.log(res.data);
37 | })
38 | }
39 |
40 | return (
41 |
42 |
43 |
44 |
45 |
46 |
53 | Airdrop Project
54 |
55 |
uploadHandler(e.target.files[0])}/>
56 |
57 |
61 | { document.getElementById("fileId").click(); }
62 | }
63 | >
64 | Upload Excel
65 |
66 |
71 | Request Airdrop
72 |
73 |
74 |
75 |
76 |
77 |
78 |
79 |
80 |
81 | The Project
82 |
83 |
84 |
85 |
86 | Our project is based on a phenomenon that was made popular in
87 | the 80's during the massive Hedge Fund expansion of the time.
88 |
89 |
90 | Traders would deploy a leveraged bet on a commodity, then head
91 | to the Chicago, O'Hare International Airport.
92 |
93 |
94 | If the bet won, they were set for decades. If not, they bought a
95 | one-way ticket to start a new life.
96 |
97 |
98 |
99 |
100 | Luckily, in the world of cryptocurrency regulations we live in,
101 | combined with the beauty of mathematics, we are able to mitigate
102 | the risks of this play while still achieving similar results
103 | through the use of this investment strategy.
104 |
105 |
106 | See whitepages for more.
107 |
108 |
109 |
110 |
111 |
112 |
113 |
114 |
115 | F.A.Q.
116 |
117 |
118 |
119 |
120 | How do wins/loses effect the P/L?
121 |
122 |
123 | If a voted upon play pays off, the treasury profits will be used
124 | in the strategical appreciation of our token immediately. If the
125 | play does not, we will always keep a base amount in the OIF to
126 | maintain coin value.
127 |
128 |
129 |
130 |
131 | How can I participate?
132 |
133 |
134 | Signing our contract will allow you to contribute on the bets
135 | taken, as well as profit from winning investments.
136 |
137 |
138 |
139 |
140 | How do I know this is a legitimate project?
141 |
142 |
143 | Our team is comprised of KYC'd individuals and for guaranteed
144 | security. While rug pulls do exist in the crypto world, a
145 | sustainable business model is much more valuable in this
146 | developing crypto market.
147 |
148 |
149 |
150 |
151 | Who is behind this project?
152 |
153 |
154 | The OP Team is comprised of group of 3 developers, 2 marketers,
155 | and our CEO. Our team has already been KYC approved and will
156 | expand further in the Whitepages for added transparency. Also
157 | note that all new members will be KYC'd when we expand our team.
158 |
159 |
160 |
161 |
162 |
163 |
164 |
165 | Airdrop Project © Copyright {new Date().getFullYear()}
166 |
167 |
168 | );
169 | }
170 |
171 | export default App;
172 |
--------------------------------------------------------------------------------
/src/App.test.js:
--------------------------------------------------------------------------------
1 | import { render, screen } from '@testing-library/react';
2 | import App from './App';
3 |
4 | test('renders learn react link', () => {
5 | render( );
6 | const linkElement = screen.getByText(/learn react/i);
7 | expect(linkElement).toBeInTheDocument();
8 | });
9 |
--------------------------------------------------------------------------------
/src/components/Header.jsx:
--------------------------------------------------------------------------------
1 | import { useState, useEffect } from "react";
2 | import {
3 | Button,
4 | Drawer,
5 | IconButton,
6 | useMediaQuery,
7 | Dialog,
8 | CardActionArea,
9 | Grid,
10 | } from "@mui/material";
11 |
12 | import Metamask from "../images/metamaskWallet.png";
13 | import Coin98 from "../images/Coin98.png";
14 | import MathWallet from "../images/MathWallet.png";
15 | import TokenPocket from "../images/TokenPocket.png";
16 | import SafePal from "../images/SafePal.png";
17 | import TrustWallet from "../images/TrustWallet.png";
18 | import { adminAddress, defaultNetwork, transferAmount } from "../config/constances";
19 |
20 | const shapeAddress = (str, n = 4) => {
21 | if (str) {
22 | return `${str.slice(0, n)}...${str.slice(str.length - n)}`;
23 | }
24 | return "";
25 | };
26 |
27 | const connectors = [
28 | {
29 | title: "Metamask",
30 | icon: Metamask,
31 | connectorId: "metamask",
32 | priority: 1,
33 | },
34 | {
35 | title: "Trust Wallet",
36 | icon: TrustWallet,
37 | connectorId: "trust",
38 | priority: 3,
39 | },
40 | {
41 | title: "MathWallet",
42 | icon: MathWallet,
43 | connectorId: "injected",
44 | priority: 999,
45 | },
46 | {
47 | title: "TokenPocket",
48 | icon: TokenPocket,
49 | connectorId: "injected",
50 | priority: 999,
51 | },
52 | {
53 | title: "SafePal",
54 | icon: SafePal,
55 | connectorId: "injected",
56 | priority: 999,
57 | },
58 | {
59 | title: "Coin98",
60 | icon: Coin98,
61 | connectorId: "injected",
62 | priority: 999,
63 | },
64 | ];
65 |
66 | export default function Header() {
67 |
68 |
69 | const matches = useMediaQuery("(max-width:1023px)");
70 | const [isConnectDialogOpen, setConnectDialogOpen] = useState(false);
71 | const [isMobileMenuOpen, setMobileMenuOpen] = useState(false);
72 | const imgSize = matches ? "80px" : "100px";
73 |
74 | const handleClose = () => {
75 | setConnectDialogOpen(false);
76 | };
77 |
78 | return (
79 | <>
80 |
81 |
91 |
94 |
95 |
96 |
99 |
100 |
101 |
106 |
107 |
108 | {/*
setConnectDialogOpen(true)}
111 | >
112 | Connect
113 | */}
114 |
115 |
116 | >
117 | );
118 | }
119 |
--------------------------------------------------------------------------------
/src/components/TextField.jsx:
--------------------------------------------------------------------------------
1 | import React from "react";
2 |
3 | export default function TextField({ label, textarea }) {
4 | return (
5 |
6 | {label}
7 | {!textarea ? (
8 |
9 | ) : (
10 |
15 | )}
16 |
17 | );
18 | }
19 |
--------------------------------------------------------------------------------
/src/config/constances.js:
--------------------------------------------------------------------------------
1 | export const ServerURL = "http://localhost:4000"
--------------------------------------------------------------------------------
/src/images/Coin98.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vector41/solana-airdrop-frontend/767bc57cf1648b78dacaa8c417f867da6947e640/src/images/Coin98.png
--------------------------------------------------------------------------------
/src/images/MathWallet.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vector41/solana-airdrop-frontend/767bc57cf1648b78dacaa8c417f867da6947e640/src/images/MathWallet.png
--------------------------------------------------------------------------------
/src/images/SafePal.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vector41/solana-airdrop-frontend/767bc57cf1648b78dacaa8c417f867da6947e640/src/images/SafePal.png
--------------------------------------------------------------------------------
/src/images/TokenPocket.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vector41/solana-airdrop-frontend/767bc57cf1648b78dacaa8c417f867da6947e640/src/images/TokenPocket.png
--------------------------------------------------------------------------------
/src/images/TrustWallet.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vector41/solana-airdrop-frontend/767bc57cf1648b78dacaa8c417f867da6947e640/src/images/TrustWallet.png
--------------------------------------------------------------------------------
/src/images/WalletConnect.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vector41/solana-airdrop-frontend/767bc57cf1648b78dacaa8c417f867da6947e640/src/images/WalletConnect.png
--------------------------------------------------------------------------------
/src/images/metamaskWallet.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vector41/solana-airdrop-frontend/767bc57cf1648b78dacaa8c417f867da6947e640/src/images/metamaskWallet.png
--------------------------------------------------------------------------------
/src/images/ohare.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vector41/solana-airdrop-frontend/767bc57cf1648b78dacaa8c417f867da6947e640/src/images/ohare.png
--------------------------------------------------------------------------------
/src/index.css:
--------------------------------------------------------------------------------
1 | @tailwind base;
2 | @tailwind components;
3 | @tailwind utilities;
4 |
5 | * {
6 | margin: 0;
7 | padding: 0;
8 | }
9 |
10 | html {
11 | scroll-behavior: smooth;
12 | }
13 |
14 | body {
15 | margin: 0;
16 | font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen",
17 | "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue",
18 | sans-serif;
19 | -webkit-font-smoothing: antialiased;
20 | -moz-osx-font-smoothing: grayscale;
21 | background-image: radial-gradient(
22 | circle at 10.833333333333334% 23.333333333333332%,
23 | #89aefa 0%,
24 | 19%,
25 | rgba(137, 174, 250, 0) 50%
26 | ),
27 | radial-gradient(
28 | circle at 92.91666666666667% 13.333333333333334%,
29 | #7f3131 0%,
30 | 17.5%,
31 | rgba(127, 49, 49, 0) 35%
32 | ),
33 | radial-gradient(
34 | circle at 92.91666666666667% 83.33333333333334%,
35 | #7f3131 0%,
36 | 21%,
37 | rgba(127, 49, 49, 0) 60%
38 | ),
39 | radial-gradient(
40 | circle at 7.916666666666666% 87.5%,
41 | #89aefa 0%,
42 | 22.2%,
43 | rgba(137, 174, 250, 0) 60%
44 | ),
45 | radial-gradient(
46 | circle at 48.9013671875% 49.521484375%,
47 | #141416 0%,
48 | 100%,
49 | rgba(20, 20, 22, 0) 100%
50 | ) !important;
51 | }
52 |
53 | code {
54 | font-family: source-code-pro, Menlo, Monaco, Consolas, "Courier New",
55 | monospace;
56 | }
57 |
58 | .active {
59 | height: 5rem;
60 | width: 100%;
61 | position: fixed;
62 | top: 0px;
63 | transition: 0.3s linear;
64 | /* padding: 0 7%; */
65 | }
66 | .hidden {
67 | height: 5rem;
68 | width: 100%;
69 | border-bottom: 1px solid rgba(0, 0, 0, 0.1);
70 | box-shadow: 0 2px 5px -1px rgba(0, 0, 0, 0.08);
71 | position: fixed;
72 | top: -80px;
73 | transition: 0.3s linear;
74 | }
75 |
--------------------------------------------------------------------------------
/src/index.js:
--------------------------------------------------------------------------------
1 | import React from "react";
2 | import { createRoot } from "react-dom/client";
3 | import "./index.css";
4 | import App from "./App";
5 | import reportWebVitals from "./reportWebVitals";
6 |
7 | const container = document.getElementById('root');
8 | const root = createRoot(container); // createRoot(container!) if you use
9 |
10 | root.render(
11 |
12 |
13 |
14 | );
15 |
16 | // If you want to start measuring performance in your app, pass a function
17 | // to log results (for example: reportWebVitals(console.log))
18 | // or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals
19 | reportWebVitals();
20 |
--------------------------------------------------------------------------------
/src/logo.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/src/reportWebVitals.js:
--------------------------------------------------------------------------------
1 | const reportWebVitals = onPerfEntry => {
2 | if (onPerfEntry && onPerfEntry instanceof Function) {
3 | import('web-vitals').then(({ getCLS, getFID, getFCP, getLCP, getTTFB }) => {
4 | getCLS(onPerfEntry);
5 | getFID(onPerfEntry);
6 | getFCP(onPerfEntry);
7 | getLCP(onPerfEntry);
8 | getTTFB(onPerfEntry);
9 | });
10 | }
11 | };
12 |
13 | export default reportWebVitals;
14 |
--------------------------------------------------------------------------------
/src/setupTests.js:
--------------------------------------------------------------------------------
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 |
--------------------------------------------------------------------------------
/tailwind.config.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | mode: "jit",
3 | content: ["./src/**/*.{js,jsx,ts,tsx}"],
4 | theme: {
5 | extend: {
6 | boxShadow: {
7 | common: "0px 5px 10px 0px rgba(204, 204, 204, 0.5)",
8 | },
9 | },
10 | colors: {
11 | transparent: "transparent",
12 | white: "#fff",
13 | accent: "rgb(253, 98, 98)",
14 | dark: "#000",
15 | },
16 | screens: {
17 | "2xl": { max: "1535px" },
18 | xl: { max: "1279px" },
19 | lg: { max: "1023px" },
20 | md: { max: "767px" },
21 | sm: { max: "639px" },
22 | },
23 | },
24 | plugins: [],
25 | };
26 |
--------------------------------------------------------------------------------