starter client

This commit is contained in:
Ruidy 2022-04-07 11:56:53 -04:00
parent 541495ac89
commit db7eaded75
16 changed files with 9687 additions and 0 deletions

23
client/.gitignore vendored Normal file
View file

@ -0,0 +1,23 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
# dependencies
/node_modules
/.pnp
.pnp.js
# testing
/coverage
# production
/build
# misc
.DS_Store
.env.local
.env.development.local
.env.test.local
.env.production.local
npm-debug.log*
yarn-debug.log*
yarn-error.log*

41
client/package.json Normal file
View file

@ -0,0 +1,41 @@
{
"name": "client",
"version": "0.1.0",
"private": true,
"dependencies": {
"@mantine/core": "^4.1.2",
"@mantine/hooks": "^4.1.2",
"@testing-library/jest-dom": "^5.14.1",
"@testing-library/react": "^12.0.0",
"@testing-library/user-event": "^13.2.1",
"ethers": "^5.6.2",
"react": "^18.0.0",
"react-dom": "^18.0.0",
"react-scripts": "5.0.0",
"web-vitals": "^2.1.0"
},
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject"
},
"eslintConfig": {
"extends": [
"react-app",
"react-app/jest"
]
},
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
}
}

BIN
client/public/favicon.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.8 KiB

17
client/public/index.html Normal file
View file

@ -0,0 +1,17 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<link rel="icon" href="%PUBLIC_URL%/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="theme-color" content="#000000" />
<meta name="description" content="Web site created using create-react-app" />
<link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" />
<link rel="manifest" href="%PUBLIC_URL%/manifest.json" />
<title>React App</title>
</head>
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
<div id="root"></div>
</body>
</html>

BIN
client/public/logo192.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.2 KiB

BIN
client/public/logo512.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.4 KiB

View file

@ -0,0 +1,25 @@
{
"short_name": "React App",
"name": "Create React App Sample",
"icons": [
{
"src": "favicon.ico",
"sizes": "64x64 32x32 24x24 16x16",
"type": "image/x-icon"
},
{
"src": "logo192.png",
"type": "image/png",
"sizes": "192x192"
},
{
"src": "logo512.png",
"type": "image/png",
"sizes": "512x512"
}
],
"start_url": ".",
"display": "standalone",
"theme_color": "#000000",
"background_color": "#ffffff"
}

3
client/public/robots.txt Normal file
View file

@ -0,0 +1,3 @@
# https://www.robotstxt.org/robotstxt.html
User-agent: *
Disallow:

133
client/src/App.css Normal file
View file

@ -0,0 +1,133 @@
.App {
height: 100vh;
background-color: #0d1116;
overflow: scroll;
text-align: center;
}
.container {
height: 100%;
background-color: #0d1116;
display: flex;
flex-direction: column;
justify-content: space-between;
}
.header-container {
padding-top: 30px;
}
.header {
margin: 0;
font-size: 50px;
font-weight: bold;
}
.sub-text {
font-size: 25px;
color: white;
}
.gradient-text {
background: -webkit-linear-gradient(left, #60c657 30%, #35aee2 60%);
background-clip: text;
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
.cta-button {
height: 45px;
border: 0;
width: auto;
padding-left: 40px;
padding-right: 40px;
border-radius: 5px;
cursor: pointer;
font-size: 16px;
font-weight: bold;
color: white;
}
.connect-wallet-button {
background: -webkit-linear-gradient(left, #60c657, #35aee2);
background-size: 200% 200%;
animation: gradient-animation 4s ease infinite;
}
.mint-button {
background: -webkit-linear-gradient(left, #a200d6, #ff6fdf);
background-size: 200% 200%;
animation: gradient-animation 4s ease infinite;
margin-right: 15px;
}
.opensea-button {
background-color: rgb(32, 129, 226);
}
.mint-count {
color: white;
font-size: 18px;
font-weight: bold;
}
.footer-container {
display: flex;
justify-content: center;
align-items: center;
padding-bottom: 30px;
}
.twitter-logo {
width: 35px;
height: 35px;
}
.footer-text {
color: white;
font-size: 16px;
font-weight: bold;
}
/* KeyFrames */
@-webkit-keyframes gradient-animation {
0% {
background-position: 0% 50%;
}
50% {
background-position: 100% 50%;
}
100% {
background-position: 0% 50%;
}
}
@-moz-keyframes gradient-animation {
0% {
background-position: 0% 50%;
}
50% {
background-position: 100% 50%;
}
100% {
background-position: 0% 50%;
}
}
@keyframes gradient-animation {
0% {
background-position: 0% 50%;
}
50% {
background-position: 100% 50%;
}
100% {
background-position: 0% 50%;
}
}

17
client/src/App.js Normal file
View file

@ -0,0 +1,17 @@
import "./App.css";
function App() {
return (
<div className="App">
<div className="container">
<div className="header-container">
<p className="header gradient-text">EpicNFTs Collection</p>
<p className="sub-text">Each unique. Each beautiful. Discover your NFT today.</p>
<button className="cta-button connect-wallet-button">Connect with Wallet</button>
</div>
</div>
</div>
);
}
export default App;

8
client/src/App.test.js Normal file
View file

@ -0,0 +1,8 @@
import { render, screen } from '@testing-library/react';
import App from './App';
test('renders learn react link', () => {
render(<App />);
const linkElement = screen.getByText(/learn react/i);
expect(linkElement).toBeInTheDocument();
});

18
client/src/index.css Normal file
View file

@ -0,0 +1,18 @@
body,
html {
margin: 0;
}
body {
padding: 0;
font-family: -apple-system, Inter, BlinkMacSystemFont, 'Segoe UI', 'Roboto',
'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
code {
font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
monospace;
}

17
client/src/index.js Normal file
View file

@ -0,0 +1,17 @@
import React from "react";
import ReactDOM from "react-dom";
import reportWebVitals from "./reportWebVitals";
import App from "./App";
import "./index.css";
import { MantineProvider } from "@mantine/core";
ReactDOM.render(
<React.StrictMode>
<MantineProvider>
<App />
</MantineProvider>
</React.StrictMode>,
document.getElementById("root")
);
reportWebVitals();

View file

@ -0,0 +1,13 @@
const reportWebVitals = onPerfEntry => {
if (onPerfEntry && onPerfEntry instanceof Function) {
import('web-vitals').then(({ getCLS, getFID, getFCP, getLCP, getTTFB }) => {
getCLS(onPerfEntry);
getFID(onPerfEntry);
getFCP(onPerfEntry);
getLCP(onPerfEntry);
getTTFB(onPerfEntry);
});
}
};
export default reportWebVitals;

5
client/src/setupTests.js Normal file
View file

@ -0,0 +1,5 @@
// jest-dom adds custom jest matchers for asserting on DOM nodes.
// allows you to do things like:
// expect(element).toHaveTextContent(/react/i)
// learn more: https://github.com/testing-library/jest-dom
import '@testing-library/jest-dom';

9367
client/yarn.lock Normal file

File diff suppressed because it is too large Load diff