diff options
| author | Andrew Lee <alee14498@protonmail.com> | 2022-02-12 11:42:15 -0500 |
|---|---|---|
| committer | Andrew Lee <alee14498@protonmail.com> | 2022-02-12 11:42:15 -0500 |
| commit | 1f9b96db4b39ce57e75eea20ee3c01b982bea182 (patch) | |
| tree | be9e1a552b6c5871e293f150749e8cbb6627c476 | |
| parent | 17d45a625ae06800f9f36ddc304e53ad1740dcf3 (diff) | |
| download | personal-website-1f9b96db4b39ce57e75eea20ee3c01b982bea182.tar.gz personal-website-1f9b96db4b39ce57e75eea20ee3c01b982bea182.tar.bz2 personal-website-1f9b96db4b39ce57e75eea20ee3c01b982bea182.zip | |
More progress
| -rw-r--r-- | components/computer.js | 29 | ||||
| -rw-r--r-- | package.json | 3 | ||||
| -rw-r--r-- | pages/api/hello.js | 5 | ||||
| -rw-r--r-- | pages/index.js | 8 | ||||
| -rw-r--r-- | pages/tos.js | 90 | ||||
| -rw-r--r-- | styles/Home.module.css | 5 | ||||
| -rw-r--r-- | styles/globals.css | 2 | ||||
| -rw-r--r-- | yarn.lock | 5 |
8 files changed, 137 insertions, 10 deletions
diff --git a/components/computer.js b/components/computer.js new file mode 100644 index 0000000..fe13aac --- /dev/null +++ b/components/computer.js @@ -0,0 +1,29 @@ +import * as THREE from 'three' + +const Computer = () => { + const camera = new THREE.Scene(); + + const renderer = new THREE.WebGLRenderer(); + renderer.setSize( window.innerWidth, window.innerHeight ); + document.body.appendChild( renderer.domElement ); + + const geometry = new THREE.BoxGeometry(); + const material = new THREE.MeshBasicMaterial( { color: 0x00ff00 } ); + const cube = new THREE.Mesh( geometry, material ); + scene.add( cube ); + + camera.position.z = 5; + + function animate() { + requestAnimationFrame( animate ); + + cube.rotation.x += 0.01; + cube.rotation.y += 0.01; + + renderer.render( scene, camera ); + }; + + animate(); +} + +export default Computer;
\ No newline at end of file diff --git a/package.json b/package.json index aebdb6a..27d8b06 100644 --- a/package.json +++ b/package.json @@ -14,7 +14,8 @@ "dependencies": { "next": "12.0.10", "react": "17.0.2", - "react-dom": "17.0.2" + "react-dom": "17.0.2", + "three": "^0.137.5" }, "devDependencies": { "eslint": "8.8.0", diff --git a/pages/api/hello.js b/pages/api/hello.js deleted file mode 100644 index df63de8..0000000 --- a/pages/api/hello.js +++ /dev/null @@ -1,5 +0,0 @@ -// Next.js API route support: https://nextjs.org/docs/api-routes/introduction - -export default function handler(req, res) { - res.status(200).json({ name: 'John Doe' }) -} diff --git a/pages/index.js b/pages/index.js index b0c6cff..05c80d0 100644 --- a/pages/index.js +++ b/pages/index.js @@ -1,19 +1,19 @@ import Head from 'next/head' import styles from '../styles/Home.module.css' +import Computer from '../components/computer' export default function Home() { return ( <div> <Head> - <title>Andrew Lee</title> + <title>Home - Andrew Lee</title> <meta name="description" content="Andrew's personal website" /> + <meta name="viewport" content="width=device-width, initial-scale=1"/> <link rel="icon" href="/favicon.ico" /> </Head> <div className={styles.landing}> <main className={styles.main}> - <h1 className={styles.title}> - Welcome to <a href="https://nextjs.org">Next.js!</a> - </h1> + <h1 className={styles.title}>Andrew Lee</h1> </main> </div> </div> diff --git a/pages/tos.js b/pages/tos.js new file mode 100644 index 0000000..89b7e94 --- /dev/null +++ b/pages/tos.js @@ -0,0 +1,90 @@ +import Head from 'next/head' +import styles from '../styles/Home.module.css' + +export default function ToS() { + return ( + <div> + <Head> + <title>ToS - Andrew Lee</title> + <meta name="description" content="Andrew's personal website" /> + <meta name="viewport" content="width=device-width, initial-scale=1"/> + <link rel="icon" href="/favicon.ico" /> + </Head> + <div className={styles.container}> + <div id="top"/> + <h1 className="text-center display-5 mt-3">Andrew Lee Projects Terms of Service</h1> + <p>These terms of service are set in place to ensure you have a great time being part of our community/services.</p> + <div id="community-guidelines"> + <h1>Community Guidelines</h1> + <p>These are the community guidelines that must be followed in every community/services we own.</p> + <ul> + <li>Use common sense.</li> + <li>No spamming. Any spam will result in an official warning.</li> + <li>No advertisements/giveaways of any kind, unless for a specific purpose.</li> + <li>Respect others.</li> + <li>No backseat moderating (enforcing the rules to other users).</li> + <li>Refrain from asking for staff.</li> + <li>Cursing is allowed within reason. However, racial slurs and/or using them to hurt others will result in severe punishment.</li> + <li>Accusations are not tolerated. Spreading any accusations will result in an investigation from all staff, which may lead to temporary or permanent termination from our services.</li> + <li>Do not argue with or threaten the staff.</li> + <li>Absolutely no blackmailing, attacking, cyberbullying, or threatening of any members.</li> + <li>Organized raids are not allowed.</li> + <li>Only one account per person at a time.</li> + <li>Any illgeal content (i.e. viruses, malware, adware, NSFW, etc) is strictly forbidden.</li> + <li>Any back talk (i.e, talking negatively on a member from our community/services) is not allowed. This includes exclusive places in the community, not DMs.</li> + <li>If you encounter someone in this community exchanging or requesting illegal content to you (which includes any NSFW content), contact the staff team immediately and the team will handle it.</li> + </ul> + <p>Action will be taken against any users consistently breaking these guidelines.</p> + </div> + <div id="alp-policies"> + <h1>Andrew Lee Projects Policies</h1> + <div id="coppa"> + <h2>COPPA Policy</h2> + <p>In order to comply with the Children’s Online Privacy Protection Act (COPPA), you must be at least 13 years of age to use these services. You will be banned if found to be under 13 years of age.</p> + </div> + <div id="delta"> + <h2>Delta Policy</h2> + <p>These rules applies when using our Minecraft servers</p> + <ul> + <li>Usage of hacked clients (including - but not limited to - Wurst, Wolfram, Sigma, etc.) is strictly prohibited.*</li> + <li>Griefing is not allowed.*</li> + <li>Combating is not allowed. Unless the target player wants to combat the other player with permission.*</li> + <li>Respect everyone.</li> + </ul> + <p>If you are found to violate these rules, you may receive a temporary or permanent ban. If you have been banned, and are found playing on an alt, you may be subject to an IP ban.</p> + <p>* If certain servers allows these actions, then these policies will not apply.</p> + </div> + </div> + <div id="discord-policies"> + <h1>Discord Policies</h1> + <p>If you are part of our discord server(s), we have set policies that you must follow.</p> + <div id="logging"> + <h2>Logging</h2> + <p>The following will be logged and stored by our bots:</p> + <ul> + <li>Deleted Messages</li> + <li>Edited Messages</li> + <li>Your user ID</li> + <li>Members joining and leaving</li> + </ul> + <p>If you do not agree to the logging of these items, and wish to opt out, you must leave the server.</p> + </div> + <div id="nickname"> + <h2>Nickname</h2> + <p>We enforce this nickname policy to keep a clean, friendly community.</p> + <p>This system is set in place so that the community is a nice place to be for everyone. When changing your nickname, it must comply with the following guidelines:</p> + <ul> + <li>No offensive words</li> + <li>No symbols</li> + <li>Nicknames must not be attention-grabbing (i.e. getting to the top of the list by using a symbol)</li> + </ul> + <p>Usernames or nickname requests found to be in violation of these guidelines will face repercussions.</p> + </div> + <p>We recommend you to follow Discord's <a href="https://discord.com/terms" className="green-text">Terms of Service</a> and <a href="https://discord.com/guidelines" className="green-text">Community Guidelines</a></p> + </div> + <p>Last updated: June 26th, 2021</p> + <a href="#top" className="green-text">Back to top</a> + </div> + </div> + ) +}
\ No newline at end of file diff --git a/styles/Home.module.css b/styles/Home.module.css index ac8fb91..49b9185 100644 --- a/styles/Home.module.css +++ b/styles/Home.module.css @@ -7,4 +7,9 @@ background-repeat: no-repeat; background-size: cover; background-image: url("/temp-landing.png") +} + +.title { + font-size: 200%; + text-align: center; }
\ No newline at end of file diff --git a/styles/globals.css b/styles/globals.css index 975c681..7caaf3e 100644 --- a/styles/globals.css +++ b/styles/globals.css @@ -3,6 +3,8 @@ body { padding: 0; margin: 0; height: 100%; + background-color: #484848; + color: #FFFFFF; font-family: Hack; src: url("/ttf/Hack-Regular.ttf"); @@ -1529,6 +1529,11 @@ text-table@^0.2.0: resolved "https://registry.yarnpkg.com/text-table/-/text-table-0.2.0.tgz#7f5ee823ae805207c00af2df4a84ec3fcfa570b4" integrity sha1-f17oI66AUgfACvLfSoTsP8+lcLQ= +three@^0.137.5: + version "0.137.5" + resolved "https://registry.yarnpkg.com/three/-/three-0.137.5.tgz#a1e34bedd0412f2d8797112973dfadac78022ce6" + integrity sha512-rTyr+HDFxjnN8+N/guZjDgfVxgHptZQpf6xfL/Mo7a5JYIFwK6tAq3bzxYYB4Ae0RosDZlDuP+X5aXDXz+XnHQ== + to-regex-range@^5.0.1: version "5.0.1" resolved "https://registry.yarnpkg.com/to-regex-range/-/to-regex-range-5.0.1.tgz#1648c44aae7c8d988a326018ed72f5b4dd0392e4" |
