Building a Home

This commit is contained in:
Benj 2022-06-12 17:19:27 +08:00
parent 569f7bc883
commit 61a5eea04d
34 changed files with 1035 additions and 137 deletions

View File

@ -1,10 +1,9 @@
# Getting Started with Create React App
# The Grasscutter Website (Project Meadow)
Finally an official Grasscutter website!
This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).
## Available Scripts
In the project directory, you can run:
## Commonly used scripts
### `npm start`
@ -14,11 +13,6 @@ Open [http://localhost:3000](http://localhost:3000) to view it in your browser.
The page will reload when you make changes.\
You may also see any lint errors in the console.
### `npm test`
Launches the test runner in the interactive watch mode.\
See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.
### `npm run build`
Builds the app for production to the `build` folder.\
@ -29,42 +23,7 @@ Your app is ready to be deployed!
See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.
### `npm run eject`
**More scripts are available [here](https://create-react-app.dev/docs/available-scripts)**
**Note: this is a one-way operation. Once you `eject`, you can't go back!**
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.
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.
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.
## Learn More
You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).
To learn React, check out the [React documentation](https://reactjs.org/).
### Code Splitting
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)
### Analyzing the Bundle Size
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)
### Making a Progressive Web App
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)
### Advanced Configuration
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)
### Deployment
This section has moved here: [https://facebook.github.io/create-react-app/docs/deployment](https://facebook.github.io/create-react-app/docs/deployment)
### `npm run build` fails to minify
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)
### More Information from the Template
Please see [Create React App](https://create-react-app.dev/) or [the documentation page](https://create-react-app.dev/docs/getting-started)

275
package-lock.json generated
View File

@ -8,11 +8,18 @@
"name": "grasscutters-web",
"version": "0.1.0",
"dependencies": {
"@fortawesome/fontawesome-svg-core": "^6.1.1",
"@fortawesome/free-brands-svg-icons": "^6.1.1",
"@fortawesome/free-regular-svg-icons": "^6.1.1",
"@fortawesome/free-solid-svg-icons": "^6.1.1",
"@fortawesome/react-fontawesome": "^0.1.18",
"@testing-library/jest-dom": "^5.16.4",
"@testing-library/react": "^13.1.1",
"@testing-library/user-event": "^13.5.0",
"react": "^18.0.0",
"react-cookie": "^4.1.1",
"react-dom": "^18.0.0",
"react-router-dom": "^6.3.0",
"react-scripts": "5.0.1",
"web-vitals": "^2.1.4"
}
@ -2031,6 +2038,75 @@
"url": "https://github.com/sponsors/sindresorhus"
}
},
"node_modules/@fortawesome/fontawesome-common-types": {
"version": "6.1.1",
"resolved": "https://registry.npmjs.org/@fortawesome/fontawesome-common-types/-/fontawesome-common-types-6.1.1.tgz",
"integrity": "sha512-wVn5WJPirFTnzN6tR95abCx+ocH+3IFLXAgyavnf9hUmN0CfWoDjPT/BAWsUVwSlYYVBeCLJxaqi7ZGe4uSjBA==",
"hasInstallScript": true,
"engines": {
"node": ">=6"
}
},
"node_modules/@fortawesome/fontawesome-svg-core": {
"version": "6.1.1",
"resolved": "https://registry.npmjs.org/@fortawesome/fontawesome-svg-core/-/fontawesome-svg-core-6.1.1.tgz",
"integrity": "sha512-NCg0w2YIp81f4V6cMGD9iomfsIj7GWrqmsa0ZsPh59G7PKiGN1KymZNxmF00ssuAlo/VZmpK6xazsGOwzKYUMg==",
"hasInstallScript": true,
"dependencies": {
"@fortawesome/fontawesome-common-types": "6.1.1"
},
"engines": {
"node": ">=6"
}
},
"node_modules/@fortawesome/free-brands-svg-icons": {
"version": "6.1.1",
"resolved": "https://registry.npmjs.org/@fortawesome/free-brands-svg-icons/-/free-brands-svg-icons-6.1.1.tgz",
"integrity": "sha512-mFbI/czjBZ+paUtw5NPr2IXjun5KAC8eFqh1hnxowjA4mMZxWz4GCIksq6j9ZSa6Uxj9JhjjDVEd77p2LN2Blg==",
"hasInstallScript": true,
"dependencies": {
"@fortawesome/fontawesome-common-types": "6.1.1"
},
"engines": {
"node": ">=6"
}
},
"node_modules/@fortawesome/free-regular-svg-icons": {
"version": "6.1.1",
"resolved": "https://registry.npmjs.org/@fortawesome/free-regular-svg-icons/-/free-regular-svg-icons-6.1.1.tgz",
"integrity": "sha512-xXiW7hcpgwmWtndKPOzG+43fPH7ZjxOaoeyooptSztGmJxCAflHZxXNK0GcT0uEsR4jTGQAfGklDZE5NHoBhKg==",
"hasInstallScript": true,
"dependencies": {
"@fortawesome/fontawesome-common-types": "6.1.1"
},
"engines": {
"node": ">=6"
}
},
"node_modules/@fortawesome/free-solid-svg-icons": {
"version": "6.1.1",
"resolved": "https://registry.npmjs.org/@fortawesome/free-solid-svg-icons/-/free-solid-svg-icons-6.1.1.tgz",
"integrity": "sha512-0/5exxavOhI/D4Ovm2r3vxNojGZioPwmFrKg0ZUH69Q68uFhFPs6+dhAToh6VEQBntxPRYPuT5Cg1tpNa9JUPg==",
"hasInstallScript": true,
"dependencies": {
"@fortawesome/fontawesome-common-types": "6.1.1"
},
"engines": {
"node": ">=6"
}
},
"node_modules/@fortawesome/react-fontawesome": {
"version": "0.1.18",
"resolved": "https://registry.npmjs.org/@fortawesome/react-fontawesome/-/react-fontawesome-0.1.18.tgz",
"integrity": "sha512-RwLIB4TZw0M9gvy5u+TusAA0afbwM4JQIimNH/j3ygd6aIvYPQLqXMhC9ErY26J23rDPyDZldIfPq/HpTTJ/tQ==",
"dependencies": {
"prop-types": "^15.8.1"
},
"peerDependencies": {
"@fortawesome/fontawesome-svg-core": "~1 || ~6",
"react": ">=16.x"
}
},
"node_modules/@humanwhocodes/config-array": {
"version": "0.9.5",
"resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.9.5.tgz",
@ -3434,6 +3510,11 @@
"@types/node": "*"
}
},
"node_modules/@types/cookie": {
"version": "0.3.3",
"resolved": "https://registry.npmjs.org/@types/cookie/-/cookie-0.3.3.tgz",
"integrity": "sha512-LKVP3cgXBT9RYj+t+9FDKwS5tdI+rPBXaNSkma7hvqy35lc7mAokC2zsqWJH0LaqIt3B962nuYI77hsJoT1gow=="
},
"node_modules/@types/eslint": {
"version": "7.29.0",
"resolved": "https://registry.npmjs.org/@types/eslint/-/eslint-7.29.0.tgz",
@ -3486,6 +3567,15 @@
"@types/node": "*"
}
},
"node_modules/@types/hoist-non-react-statics": {
"version": "3.3.1",
"resolved": "https://registry.npmjs.org/@types/hoist-non-react-statics/-/hoist-non-react-statics-3.3.1.tgz",
"integrity": "sha512-iMIqiko6ooLrTh1joXodJK5X9xeEALT1kM5G3ZLhD3hszxBdIEd5C75U834D9mLcINgD4OyZf5uQXjkuYydWvA==",
"dependencies": {
"@types/react": "*",
"hoist-non-react-statics": "^3.3.0"
}
},
"node_modules/@types/html-minifier-terser": {
"version": "6.1.0",
"resolved": "https://registry.npmjs.org/@types/html-minifier-terser/-/html-minifier-terser-6.1.0.tgz",
@ -7953,6 +8043,27 @@
"he": "bin/he"
}
},
"node_modules/history": {
"version": "5.3.0",
"resolved": "https://registry.npmjs.org/history/-/history-5.3.0.tgz",
"integrity": "sha512-ZqaKwjjrAYUYfLG+htGaIIZ4nioX2L70ZUMIFysS3xvBsSG4x/n1V6TXV3N8ZYNuFGlDirFg32T7B6WOUPDYcQ==",
"dependencies": {
"@babel/runtime": "^7.7.6"
}
},
"node_modules/hoist-non-react-statics": {
"version": "3.3.2",
"resolved": "https://registry.npmjs.org/hoist-non-react-statics/-/hoist-non-react-statics-3.3.2.tgz",
"integrity": "sha512-/gGivxi8JPKWNm/W0jSmzcMPpfpPLc3dY/6GxhX2hQ9iGj3aDfklV4ET7NjKpSinLpJ5vafa9iiGIEZg10SfBw==",
"dependencies": {
"react-is": "^16.7.0"
}
},
"node_modules/hoist-non-react-statics/node_modules/react-is": {
"version": "16.13.1",
"resolved": "https://registry.npmjs.org/react-is/-/react-is-16.13.1.tgz",
"integrity": "sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ=="
},
"node_modules/hoopy": {
"version": "0.1.4",
"resolved": "https://registry.npmjs.org/hoopy/-/hoopy-0.1.4.tgz",
@ -13033,6 +13144,19 @@
"node": ">=14"
}
},
"node_modules/react-cookie": {
"version": "4.1.1",
"resolved": "https://registry.npmjs.org/react-cookie/-/react-cookie-4.1.1.tgz",
"integrity": "sha512-ffn7Y7G4bXiFbnE+dKhHhbP+b8I34mH9jqnm8Llhj89zF4nPxPutxHT1suUqMeCEhLDBI7InYwf1tpaSoK5w8A==",
"dependencies": {
"@types/hoist-non-react-statics": "^3.0.1",
"hoist-non-react-statics": "^3.0.0",
"universal-cookie": "^4.0.0"
},
"peerDependencies": {
"react": ">= 16.3.0"
}
},
"node_modules/react-dev-utils": {
"version": "12.0.1",
"resolved": "https://registry.npmjs.org/react-dev-utils/-/react-dev-utils-12.0.1.tgz",
@ -13180,6 +13304,30 @@
"node": ">=0.10.0"
}
},
"node_modules/react-router": {
"version": "6.3.0",
"resolved": "https://registry.npmjs.org/react-router/-/react-router-6.3.0.tgz",
"integrity": "sha512-7Wh1DzVQ+tlFjkeo+ujvjSqSJmkt1+8JO+T5xklPlgrh70y7ogx75ODRW0ThWhY7S+6yEDks8TYrtQe/aoboBQ==",
"dependencies": {
"history": "^5.2.0"
},
"peerDependencies": {
"react": ">=16.8"
}
},
"node_modules/react-router-dom": {
"version": "6.3.0",
"resolved": "https://registry.npmjs.org/react-router-dom/-/react-router-dom-6.3.0.tgz",
"integrity": "sha512-uaJj7LKytRxZNQV8+RbzJWnJ8K2nPsOOEuX7aQstlMZKQT0164C+X2w6bnkqU3sjtLvpd5ojrezAyfZ1+0sStw==",
"dependencies": {
"history": "^5.2.0",
"react-router": "6.3.0"
},
"peerDependencies": {
"react": ">=16.8",
"react-dom": ">=16.8"
}
},
"node_modules/react-scripts": {
"version": "5.0.1",
"resolved": "https://registry.npmjs.org/react-scripts/-/react-scripts-5.0.1.tgz",
@ -14920,6 +15068,15 @@
"node": ">=8"
}
},
"node_modules/universal-cookie": {
"version": "4.0.4",
"resolved": "https://registry.npmjs.org/universal-cookie/-/universal-cookie-4.0.4.tgz",
"integrity": "sha512-lbRVHoOMtItjWbM7TwDLdl8wug7izB0tq3/YVKhT/ahB4VDvWMyvnADfnJI8y6fSvsjh51Ix7lTGC6Tn4rMPhw==",
"dependencies": {
"@types/cookie": "^0.3.3",
"cookie": "^0.4.0"
}
},
"node_modules/universalify": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.0.tgz",
@ -17286,6 +17443,51 @@
}
}
},
"@fortawesome/fontawesome-common-types": {
"version": "6.1.1",
"resolved": "https://registry.npmjs.org/@fortawesome/fontawesome-common-types/-/fontawesome-common-types-6.1.1.tgz",
"integrity": "sha512-wVn5WJPirFTnzN6tR95abCx+ocH+3IFLXAgyavnf9hUmN0CfWoDjPT/BAWsUVwSlYYVBeCLJxaqi7ZGe4uSjBA=="
},
"@fortawesome/fontawesome-svg-core": {
"version": "6.1.1",
"resolved": "https://registry.npmjs.org/@fortawesome/fontawesome-svg-core/-/fontawesome-svg-core-6.1.1.tgz",
"integrity": "sha512-NCg0w2YIp81f4V6cMGD9iomfsIj7GWrqmsa0ZsPh59G7PKiGN1KymZNxmF00ssuAlo/VZmpK6xazsGOwzKYUMg==",
"requires": {
"@fortawesome/fontawesome-common-types": "6.1.1"
}
},
"@fortawesome/free-brands-svg-icons": {
"version": "6.1.1",
"resolved": "https://registry.npmjs.org/@fortawesome/free-brands-svg-icons/-/free-brands-svg-icons-6.1.1.tgz",
"integrity": "sha512-mFbI/czjBZ+paUtw5NPr2IXjun5KAC8eFqh1hnxowjA4mMZxWz4GCIksq6j9ZSa6Uxj9JhjjDVEd77p2LN2Blg==",
"requires": {
"@fortawesome/fontawesome-common-types": "6.1.1"
}
},
"@fortawesome/free-regular-svg-icons": {
"version": "6.1.1",
"resolved": "https://registry.npmjs.org/@fortawesome/free-regular-svg-icons/-/free-regular-svg-icons-6.1.1.tgz",
"integrity": "sha512-xXiW7hcpgwmWtndKPOzG+43fPH7ZjxOaoeyooptSztGmJxCAflHZxXNK0GcT0uEsR4jTGQAfGklDZE5NHoBhKg==",
"requires": {
"@fortawesome/fontawesome-common-types": "6.1.1"
}
},
"@fortawesome/free-solid-svg-icons": {
"version": "6.1.1",
"resolved": "https://registry.npmjs.org/@fortawesome/free-solid-svg-icons/-/free-solid-svg-icons-6.1.1.tgz",
"integrity": "sha512-0/5exxavOhI/D4Ovm2r3vxNojGZioPwmFrKg0ZUH69Q68uFhFPs6+dhAToh6VEQBntxPRYPuT5Cg1tpNa9JUPg==",
"requires": {
"@fortawesome/fontawesome-common-types": "6.1.1"
}
},
"@fortawesome/react-fontawesome": {
"version": "0.1.18",
"resolved": "https://registry.npmjs.org/@fortawesome/react-fontawesome/-/react-fontawesome-0.1.18.tgz",
"integrity": "sha512-RwLIB4TZw0M9gvy5u+TusAA0afbwM4JQIimNH/j3ygd6aIvYPQLqXMhC9ErY26J23rDPyDZldIfPq/HpTTJ/tQ==",
"requires": {
"prop-types": "^15.8.1"
}
},
"@humanwhocodes/config-array": {
"version": "0.9.5",
"resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.9.5.tgz",
@ -18274,6 +18476,11 @@
"@types/node": "*"
}
},
"@types/cookie": {
"version": "0.3.3",
"resolved": "https://registry.npmjs.org/@types/cookie/-/cookie-0.3.3.tgz",
"integrity": "sha512-LKVP3cgXBT9RYj+t+9FDKwS5tdI+rPBXaNSkma7hvqy35lc7mAokC2zsqWJH0LaqIt3B962nuYI77hsJoT1gow=="
},
"@types/eslint": {
"version": "7.29.0",
"resolved": "https://registry.npmjs.org/@types/eslint/-/eslint-7.29.0.tgz",
@ -18326,6 +18533,15 @@
"@types/node": "*"
}
},
"@types/hoist-non-react-statics": {
"version": "3.3.1",
"resolved": "https://registry.npmjs.org/@types/hoist-non-react-statics/-/hoist-non-react-statics-3.3.1.tgz",
"integrity": "sha512-iMIqiko6ooLrTh1joXodJK5X9xeEALT1kM5G3ZLhD3hszxBdIEd5C75U834D9mLcINgD4OyZf5uQXjkuYydWvA==",
"requires": {
"@types/react": "*",
"hoist-non-react-statics": "^3.3.0"
}
},
"@types/html-minifier-terser": {
"version": "6.1.0",
"resolved": "https://registry.npmjs.org/@types/html-minifier-terser/-/html-minifier-terser-6.1.0.tgz",
@ -21614,6 +21830,29 @@
"resolved": "https://registry.npmjs.org/he/-/he-1.2.0.tgz",
"integrity": "sha512-F/1DnUGPopORZi0ni+CvrCgHQ5FyEAHRLSApuYWMmrbSwoN2Mn/7k+Gl38gJnR7yyDZk6WLXwiGod1JOWNDKGw=="
},
"history": {
"version": "5.3.0",
"resolved": "https://registry.npmjs.org/history/-/history-5.3.0.tgz",
"integrity": "sha512-ZqaKwjjrAYUYfLG+htGaIIZ4nioX2L70ZUMIFysS3xvBsSG4x/n1V6TXV3N8ZYNuFGlDirFg32T7B6WOUPDYcQ==",
"requires": {
"@babel/runtime": "^7.7.6"
}
},
"hoist-non-react-statics": {
"version": "3.3.2",
"resolved": "https://registry.npmjs.org/hoist-non-react-statics/-/hoist-non-react-statics-3.3.2.tgz",
"integrity": "sha512-/gGivxi8JPKWNm/W0jSmzcMPpfpPLc3dY/6GxhX2hQ9iGj3aDfklV4ET7NjKpSinLpJ5vafa9iiGIEZg10SfBw==",
"requires": {
"react-is": "^16.7.0"
},
"dependencies": {
"react-is": {
"version": "16.13.1",
"resolved": "https://registry.npmjs.org/react-is/-/react-is-16.13.1.tgz",
"integrity": "sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ=="
}
}
},
"hoopy": {
"version": "0.1.4",
"resolved": "https://registry.npmjs.org/hoopy/-/hoopy-0.1.4.tgz",
@ -25133,6 +25372,16 @@
"whatwg-fetch": "^3.6.2"
}
},
"react-cookie": {
"version": "4.1.1",
"resolved": "https://registry.npmjs.org/react-cookie/-/react-cookie-4.1.1.tgz",
"integrity": "sha512-ffn7Y7G4bXiFbnE+dKhHhbP+b8I34mH9jqnm8Llhj89zF4nPxPutxHT1suUqMeCEhLDBI7InYwf1tpaSoK5w8A==",
"requires": {
"@types/hoist-non-react-statics": "^3.0.1",
"hoist-non-react-statics": "^3.0.0",
"universal-cookie": "^4.0.0"
}
},
"react-dev-utils": {
"version": "12.0.1",
"resolved": "https://registry.npmjs.org/react-dev-utils/-/react-dev-utils-12.0.1.tgz",
@ -25243,6 +25492,23 @@
"resolved": "https://registry.npmjs.org/react-refresh/-/react-refresh-0.11.0.tgz",
"integrity": "sha512-F27qZr8uUqwhWZboondsPx8tnC3Ct3SxZA3V5WyEvujRyyNv0VYPhoBg1gZ8/MV5tubQp76Trw8lTv9hzRBa+A=="
},
"react-router": {
"version": "6.3.0",
"resolved": "https://registry.npmjs.org/react-router/-/react-router-6.3.0.tgz",
"integrity": "sha512-7Wh1DzVQ+tlFjkeo+ujvjSqSJmkt1+8JO+T5xklPlgrh70y7ogx75ODRW0ThWhY7S+6yEDks8TYrtQe/aoboBQ==",
"requires": {
"history": "^5.2.0"
}
},
"react-router-dom": {
"version": "6.3.0",
"resolved": "https://registry.npmjs.org/react-router-dom/-/react-router-dom-6.3.0.tgz",
"integrity": "sha512-uaJj7LKytRxZNQV8+RbzJWnJ8K2nPsOOEuX7aQstlMZKQT0164C+X2w6bnkqU3sjtLvpd5ojrezAyfZ1+0sStw==",
"requires": {
"history": "^5.2.0",
"react-router": "6.3.0"
}
},
"react-scripts": {
"version": "5.0.1",
"resolved": "https://registry.npmjs.org/react-scripts/-/react-scripts-5.0.1.tgz",
@ -26533,6 +26799,15 @@
"crypto-random-string": "^2.0.0"
}
},
"universal-cookie": {
"version": "4.0.4",
"resolved": "https://registry.npmjs.org/universal-cookie/-/universal-cookie-4.0.4.tgz",
"integrity": "sha512-lbRVHoOMtItjWbM7TwDLdl8wug7izB0tq3/YVKhT/ahB4VDvWMyvnADfnJI8y6fSvsjh51Ix7lTGC6Tn4rMPhw==",
"requires": {
"@types/cookie": "^0.3.3",
"cookie": "^0.4.0"
}
},
"universalify": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.0.tgz",

View File

@ -3,11 +3,18 @@
"version": "0.1.0",
"private": true,
"dependencies": {
"@fortawesome/fontawesome-svg-core": "^6.1.1",
"@fortawesome/free-brands-svg-icons": "^6.1.1",
"@fortawesome/free-regular-svg-icons": "^6.1.1",
"@fortawesome/free-solid-svg-icons": "^6.1.1",
"@fortawesome/react-fontawesome": "^0.1.18",
"@testing-library/jest-dom": "^5.16.4",
"@testing-library/react": "^13.1.1",
"@testing-library/user-event": "^13.5.0",
"react": "^18.0.0",
"react-cookie": "^4.1.1",
"react-dom": "^18.0.0",
"react-router-dom": "^6.3.0",
"react-scripts": "5.0.1",
"web-vitals": "^2.1.4"
},

View File

@ -1,38 +1,201 @@
.App {
text-align: center;
@font-face {
font-family: "Michroma";
src: url("./fonts/Michroma/Michroma-Regular.ttf");
}
.App-logo {
height: 40vmin;
pointer-events: none;
body {
padding: 0;
margin: 0;
font-family: "Michroma";
background-color: #333;
color: white;
}
@media (prefers-reduced-motion: no-preference) {
.App-logo {
animation: App-logo-spin infinite 20s linear;
}
div.App {
position:fixed;
width:100%;
height:100%;
top:0px;
left:0px;
overflow: auto;
}
.App-header {
background-color: #282c34;
min-height: 100vh;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
font-size: calc(10px + 2vmin);
color: white;
#portal {
position: absolute;
top: 0;
left: 0;
bottom: 0;
right: 0;
z-index: 2;
pointer-events: none;
}
.App-link {
color: #61dafb;
div.center {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
@keyframes App-logo-spin {
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
nav {
height: 45px;
width: 100%;
background-color: #333;
overflow: hidden;
}
nav div.title {
float: left;
width: 30%;
height: 100%;
}
nav div.title h1 {
margin: 0;
padding: 0;
padding-top: 10px;
padding-right: 100px;
float: right;
text-align: center;
}
nav div.title h1 a {
color: white;
text-decoration: none;
font-weight: 100;
}
nav div.nav-links {
float: left;
width: 65%;
height: 100%;
}
nav div.nav-links ul {
list-style-type: none;
margin: 0;
padding: 0;
}
nav div.nav-links ul li {
float: left;
transition: 0.2s ease;
}
nav div.nav-links ul li a {
transition: 0.2s ease;
float: left;
color: #f2f2f2;
text-align: center;
padding: 14px 16px;
text-decoration: none;
font-size: 17px;
}
nav div.nav-links ul li:hover a {
background-color: #ddd;
color: black;
}
nav div.social {
float: left;
width: 5%;
height: 100%;
}
nav div.social ul {
list-style-type: none;
margin: 0;
padding: 0;
}
nav div.social ul li {
float: left;
transition: 0.2s ease;
}
nav div.social ul li a {
transition: 0.2s ease;
float: left;
color: #f2f2f2;
text-align: center;
padding: 14px 16px;
text-decoration: none;
font-size: 17px;
}
nav div.social ul li:hover a {
background-color: #ddd;
color: black;
}
/*******************/
/*******Modal*******/
/*******************/
div.modal {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
background-color: #222;
padding: 25px;
z-index: 10000;
color: white;
pointer-events: all;
border-radius: 10px;
border-width: 0px;
border-color: rgba(0, 0, 0, 0);
}
div.modal input[type="button"] {
padding: 8px 0px;
width: calc(100% - 40px);
margin: 30px 20px 10px 20px;
font-family: "Michroma";
font-size: 20px;
font-weight: bold;
background-color: #4caf50;
color: white;
border: 0px;
border-radius: 6px;
cursor: pointer;
overflow: visible;
white-space: normal;
}
div.modalOverlay {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: rgba(0, 0, 0, 0.7);
z-index: 9999;
pointer-events: all;
}
/*******************/
/*****Error 404*****/
/*******************/
div.E404 {
padding: 40px;
}
div.E404 a {
color: cyan;
}
div#copyright-notice {
width: 100%;
height: 50px;
border-top: 5px solid #f9cb26;
text-align: center;
}

View File

@ -1,25 +1,23 @@
import logo from './logo.svg';
import './App.css';
import React from "react";
import "./App.css";
import Home from "./Home";
import { BrowserRouter as Router, Route, Routes } from "react-router-dom";
import Error404 from "./Error404";
import { CookiesProvider } from "react-cookie";
import Copyright from "./Copyright";
function App() {
return (
<div className="App">
<header className="App-header">
<img src={logo} className="App-logo" alt="logo" />
<p>
Edit <code>src/App.js</code> and save to reload.
</p>
<a
className="App-link"
href="https://reactjs.org"
target="_blank"
rel="noopener noreferrer"
>
Learn React
</a>
</header>
</div>
);
export default function App() {
return (
<CookiesProvider>
<Router>
<div className="App">
<Routes>
<Route path="/" element={<Home />} />
<Route element={<Error404/>} />
</Routes>
<Copyright />
</div>
</Router>
</CookiesProvider>
);
}
export default App;

View File

@ -1,8 +0,0 @@
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();
});

View File

@ -0,0 +1,9 @@
import React from 'react'
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'
export default function ClickableFontAwesome(props) {
return (
<p><a href={props.href}><FontAwesomeIcon icon={props.icon} /></a></p>
)
}

View File

@ -0,0 +1,31 @@
import React from "react";
import { faGithub } from "@fortawesome/free-brands-svg-icons";
import { faGlobe } from "@fortawesome/free-solid-svg-icons";
import ClickableFontAwesome from "./ClickableFontAwesome";
export default function TeamMember(props) {
return (
<div className="member">
<div className="content">
<img src={props.picture} alt={props.name} />
<div className="info">
<p className={!props.links ? "center" : null}>
{props.name}
{props.badge ? (
<span className="team-badge" style={{ backgroundColor: props.badgeColor }}>
{props.badge}
</span>
) : null}
</p>
{props.links ? (
<div className="links">
{props.website ? <ClickableFontAwesome icon={faGlobe} href={props.website} /> : null}
{props.github ? <ClickableFontAwesome icon={faGithub} href={`https://github.com/${props.github}`} /> : null}
</div>
) : null}
</div>
</div>
</div>
);
}

9
src/Copyright.js Normal file
View File

@ -0,0 +1,9 @@
import React from 'react'
export default function Copyright() {
return (
<div id="copyright-notice">
<p> &copy; Grasscutter Team 2022 </p>
</div>
)
}

15
src/Error404.js Normal file
View File

@ -0,0 +1,15 @@
import React, { Component } from 'react';
import { Link } from 'react-router-dom';
export default class Error404 extends Component {
render() {
return (
<div className="E404">
<h1>Error 404</h1>
<p>The page your looking for couldn't be found</p>
<p>Yeah.. I can't be bothered to style this...</p>
<br />
</div>
)
}
}

293
src/Home.css Normal file
View File

@ -0,0 +1,293 @@
.landing {
padding: 0px;
margin: 0px;
width: 100%;
height: 100vh;
background-color: #111;
}
.landing .background {
width: 100%;
height: 100%;
background: url(img/teyvat2.png) no-repeat center center fixed; /* src: https://www.reddit.com/r/Genshin_Impact/comments/s6dpa6/sunset_over_teyvat_panoramic_made_by_me/ */
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
filter: blur(6px);
-webkit-filter: blur(6px);
}
.landing .content {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 100%;
display: flex;
justify-content: center;
align-items: center;
}
.landing .content .logo {
height: 300px;
width: 300px;
float: left;
fill: #f9cb25;
overflow: visible !important;
}
.landing .content .text {
margin-left: 25px;
margin-top: 0px;
color: white;
}
.landing .content .text h1 {
margin: 0;
}
.landing .content .text p {
margin: 0;
padding-top: 15px;
}
.landing .content .text .links {
padding-top: 15px;
width: 100%;
display: flex;
justify-content: space-evenly;
}
.landing .content .text .links p {
padding: 0;
padding-top: 5px;
text-transform: uppercase;
font-weight: bold;
}
.landing .content button {
padding: 10px 10px;
border: 0;
border-radius: 6px;
font-family: "Michroma";
margin-right: 20px;
}
.landing .content button#dlatest {
background-color: greenyellow;
}
.landing .content button#ddevelopment {
background-color: rgb(255, 173, 47);
}
.landing .content button#dgrassclipper {
background-color: yellow;
}
.landing .scroll {
position: absolute;
top: 96%;
left: 50%;
transform: translate(-50%, -50%);
color: white;
opacity: 25%;
width: 100%;
display: flex;
justify-content: center;
align-items: center;
text-align: center;
}
.landing .scroll p {
float: left;
font-size: 20px;
text-align: center;
margin-top: 15px;
margin-left: 10px;
margin-right: 10px;
}
.landing .scroll .arrow {
float: left;
position: relative;
width: 50px;
height: 50px;
font-size: 40px;
}
.landing .scroll .arrow svg {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
animation: arrowbounce;
animation-duration: 3s;
animation-iteration-count: infinite;
animation-timing-function: ease-in-out;
}
@keyframes arrowbounce {
0% { top: 58% }
50% { top: 42% }
100% { top: 58% }
}
.team {
width: 100%;
height: 50vh;
}
.team h1 {
margin-top: 30px;
margin-left: 40px;
text-align: center;
}
.team .grid {
display: grid;
grid-template-columns: auto auto auto auto;
margin: 0px 40px;
}
.team .member {
display: inline-grid;
height: 60px;
margin: 14px 10px;
}
.team .member .content {
font-size: 23px;
height: 60px;
/*line-height: 60px;*/
float: left;
}
.team .member .content img {
border-radius: 50%;
width: 60px;
height: 60px;
float: left;
}
.team .member .content .info {
float: left;
width: calc(100% - 80px);
height: 100%;
padding-left: 20px;
}
.team .member .content .info p {
padding: 0;
margin: 0;
font-size: 25px;
}
.team .member .content .info p.center {
line-height: 60px;
}
.team .member .content .info p span.team-badge {
color: black;
margin-left: 8px;
background-color: #f9cb25;
padding: 3px 5px;
font-size: 10px;
border-radius: 5px;
margin-bottom: 50px;
vertical-align: middle;
}
.team .member .content .info .links {
background-color: red;
}
.team .member .content .info .links p {
float: left;
padding: 0;
margin: 0;
padding-right: 10px;
font-size: 16px;
}
.team .member .content .info .links p a {
color: white;
text-decoration: none;
text-decoration-color: none;
}
@media (max-width: 850px) and (orientation:portrait) {
.landing .content {
display: block;
width: 90%;
text-align: center;
}
.landing .content .logo {
float: initial;
}
.landing .content .text {
margin-left: 0px;
margin-top: 25px;
}
.landing .content .text .links {
display: block;
justify-content: initial;
}
}
@media (max-height: 700px) and (orientation:portrait) {
.landing .content .logo {
height: 250px;
width: 250px;
}
.landing .scroll p {
font-size: 15px;
font-weight: bold;
}
.landing .scroll i {
font-size: 30px;
}
}
@media (max-height: 630px) and (orientation:portrait) {
.landing .content .logo {
height: 175px;
width: 175px;
}
.landing .content .text {
margin-top: 10px;
}
.landing .content .text .links {
padding-top: 10px;
}
}
@media (max-height: 450px) and (orientation:landscape) {
.landing .content .text h1 {
font-size: 1.5em;
}
.landing .content .text p {
font-size: 0.8em;
}
.landing .content .logo {
height: 200px;
width: 200px;
}
}

81
src/Home.js Normal file
View File

@ -0,0 +1,81 @@
import "./Home.css";
//import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
//import { faAngleDown } from "@fortawesome/free-solid-svg-icons";
import TeamMember from "./Components/TeamMember";
import Logo from "./img/grasscutter-icon.png";
import MeledyPF from "./img/team/Meledy.webp";
import MagixPF from "./img/team/Magix.png";
import BenjPF from "./img/team/Benj.png";
import LunaticPF from "./img/team/Lunatic.webp";
import memetrollsXDPF from "./img/team/MemetrollsXD.webp";
import MlgmXyysdPF from "./img/team/MlgmXyysd.webp";
import SpikeHDPF from "./img/team/SpikeHD.webp";
import YazawaziPF from "./img/team/Yazawazi.webp";
import AlteriPF from "./img/team/Alteri.png";
import BirdulonPF from "./img/team/Birdulon.png";
import ShigetokiPF from "./img/team/Shigetoki.png";
import ExZorkPF from "./img/team/ExZork.png";
import NitroPF from "./img/team/Nitro.png";
import AyyLmaoPF from "./img/team/AyyLmao.png";
function Home() {
return (
<div className="Home">
<div className="landing">
<div className="background" />
<div className="content">
<img className="logo" src={Logo} alt="grasscutter logo" />
<div className="text">
<h1>Grasscutter</h1>
<p>A private server software for a Certain Anime Game&trade;</p>
<div className="links">
<button id="dlatest"> Download Latest Build </button>
<button id="ddevelopment"> Download Development Build </button>
<button id="dgrassclipper"> Download Cultivation </button>
</div>
<div className="links">
<button id="dsource"> Download Source </button>
</div>
</div>
</div>
<div className="scroll" id="scroll-down">
{/*
<div className="arrow">
<FontAwesomeIcon icon={faAngleDown} />
</div>
<p> SCROLL FOR MORE </p>
<div className="arrow">
<FontAwesomeIcon icon={faAngleDown} />
</div>
*/}
<p> MORE COMING SOON </p>
</div>
</div>
<div className="team">
<h1> Meet the Team </h1>
<div className="grid">
<TeamMember picture={MeledyPF} name="Meledy" links={true} github="Melledy" badge="CREATOR" badgeColor="#f9cb25" />
<TeamMember picture={MagixPF} name="Magix" links={true} github="KingRainbow44" website="https://magix.lol" />
<TeamMember picture={BenjPF} name="Benj" links={true} github="4Benj" website="https://4benj.com" />
<TeamMember picture={LunaticPF} name="Lunatic" links={true} github="lunaticwhat" website="https://lunatic.moe" />
<TeamMember picture={memetrollsXDPF} name="memetrollsXD" links={true} github="memetrollsXD" />
<TeamMember picture={MlgmXyysdPF} name="MlgmXyysd" links={true} github="MlgmXyysd" />
<TeamMember picture={SpikeHDPF} name="SpikeHD" links={true} github="SpikeHD" />
<TeamMember picture={YazawaziPF} name="Yazawazi" links={true} github="Yazawazi" />
<TeamMember picture={AlteriPF} name="Alteri" links={true} github="alt3ri" website="alt3ri.com" />
<TeamMember picture={BirdulonPF} name="Birdulon" links={true} github="Birdulon" />
<TeamMember picture={ExZorkPF} name="ExZork" links={true} github="exzork" />
<TeamMember picture={AyyLmaoPF} name="Ayy Lmao" links={true} github="lilmayofuksu" />
<TeamMember picture={NitroPF} name="Nitro" links={true} github="nitrog0d" badge="MELON" badgeColor="#ff3b6a" />
<TeamMember picture={ShigetokiPF} name="茂刻shigetoki" badge="ARTIST" badgeColor="#9b59b6" />
</div>
</div>
</div>
);
}
export default Home;

Binary file not shown.

View File

@ -0,0 +1,94 @@
Copyright (c) 2011, Vernon Adams (vern@newtypography.co.uk),
with Reserved Font Name Michroma.
This Font Software is licensed under the SIL Open Font License, Version 1.1.
This license is copied below, and is also available with a FAQ at:
http://scripts.sil.org/OFL
-----------------------------------------------------------
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
-----------------------------------------------------------
PREAMBLE
The goals of the Open Font License (OFL) are to stimulate worldwide
development of collaborative font projects, to support the font creation
efforts of academic and linguistic communities, and to provide a free and
open framework in which fonts may be shared and improved in partnership
with others.
The OFL allows the licensed fonts to be used, studied, modified and
redistributed freely as long as they are not sold by themselves. The
fonts, including any derivative works, can be bundled, embedded,
redistributed and/or sold with any software provided that any reserved
names are not used by derivative works. The fonts and derivatives,
however, cannot be released under any other type of license. The
requirement for fonts to remain under this license does not apply
to any document created using the fonts or their derivatives.
DEFINITIONS
"Font Software" refers to the set of files released by the Copyright
Holder(s) under this license and clearly marked as such. This may
include source files, build scripts and documentation.
"Reserved Font Name" refers to any names specified as such after the
copyright statement(s).
"Original Version" refers to the collection of Font Software components as
distributed by the Copyright Holder(s).
"Modified Version" refers to any derivative made by adding to, deleting,
or substituting -- in part or in whole -- any of the components of the
Original Version, by changing formats or by porting the Font Software to a
new environment.
"Author" refers to any designer, engineer, programmer, technical
writer or other person who contributed to the Font Software.
PERMISSION & CONDITIONS
Permission is hereby granted, free of charge, to any person obtaining
a copy of the Font Software, to use, study, copy, merge, embed, modify,
redistribute, and sell modified and unmodified copies of the Font
Software, subject to the following conditions:
1) Neither the Font Software nor any of its individual components,
in Original or Modified Versions, may be sold by itself.
2) Original or Modified Versions of the Font Software may be bundled,
redistributed and/or sold with any software, provided that each copy
contains the above copyright notice and this license. These can be
included either as stand-alone text files, human-readable headers or
in the appropriate machine-readable metadata fields within text or
binary files as long as those fields can be easily viewed by the user.
3) No Modified Version of the Font Software may use the Reserved Font
Name(s) unless explicit written permission is granted by the corresponding
Copyright Holder. This restriction only applies to the primary font name as
presented to the users.
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
Software shall not be used to promote, endorse or advertise any
Modified Version, except to acknowledge the contribution(s) of the
Copyright Holder(s) and the Author(s) or with their explicit written
permission.
5) The Font Software, modified or unmodified, in part or in whole,
must be distributed entirely under this license, and must not be
distributed under any other license. The requirement for fonts to
remain under this license does not apply to any document created
using the Font Software.
TERMINATION
This license becomes null and void if any of the above conditions are
not met.
DISCLAIMER
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
OTHER DEALINGS IN THE FONT SOFTWARE.

Binary file not shown.

After

Width:  |  Height:  |  Size: 185 KiB

BIN
src/img/team/Alteri.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 280 KiB

BIN
src/img/team/AyyLmao.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 290 KiB

BIN
src/img/team/Benj.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 42 KiB

BIN
src/img/team/Birdulon.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 MiB

BIN
src/img/team/ExZork.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 MiB

BIN
src/img/team/Lunatic.webp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

BIN
src/img/team/Magix.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 348 KiB

BIN
src/img/team/Meledy.webp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 KiB

BIN
src/img/team/MlgmXyysd.webp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.3 KiB

BIN
src/img/team/Nitro.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

BIN
src/img/team/Shigetoki.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 676 KiB

BIN
src/img/team/SpikeHD.webp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 294 B

BIN
src/img/team/Yazawazi.webp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.5 KiB

BIN
src/img/teyvat.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 949 KiB

BIN
src/img/teyvat2.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 431 KiB

View File

@ -1,17 +1,7 @@
import React from 'react';
import ReactDOM from 'react-dom/client';
import './index.css';
import App from './App';
import reportWebVitals from './reportWebVitals';
const root = ReactDOM.createRoot(document.getElementById('root'));
root.render(
<React.StrictMode>
<App />
</React.StrictMode>
);
// If you want to start measuring performance in your app, pass a function
// to log results (for example: reportWebVitals(console.log))
// or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals
reportWebVitals();
import { createRoot } from 'react-dom/client';
const container = document.getElementById('root');
const root = createRoot(container);
root.render(<App />);

View File

@ -1,13 +0,0 @@
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;

View File

@ -1,5 +0,0 @@
// 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';