diff --git a/README.md b/README.md index 996cf12d..6943472f 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,29 @@ -Assignment 2 - Short Stack: Basic Two-tier Web Application using HTML/CSS/JS and Node.js +### Assignment 2 - Short Stack: Basic Two-tier Web Application using HTML/CSS/JS and Node.js === +## A Random Survey About Destiny (The Game) +Michael Lai http://a2-azinxtheonix.glitch.me + +With this assignment, I've created a scoreboard for people to record their highscores to. This scoreboard also keeps track who has the highscore in each game. + +For the technical side of the project, it shows that I can design an application that involves sending data to a server and sending data back to the client to update. I used CSS grids to position items. + +As for instructions on how to use the application, I've already put them in the site itself. + +NOTE: There's an error that's stating the receiving end does not exist, which in turn causes the whole application not to work. From debugging, it seems to be a server side error when it tries to unsuccessfully load the site in node.js (try node ./server.improved.js in console, go to the localhost on port 3000, and loading the local.html file; it won't work). I've looked through my code and but I can't see what's causing this. I'm fairly certain that the rest of the code works (if the client can connect properly). + +The server should also be calculating the highscore as the derived data, but with the server connection bug, nothing can be seen. + +## Technical Achievements +**1 - Updating Data:** +The code here should work if it weren't for the weird server connection bug that's going on right now. Essentially what the code should be doing is every time a delete, submit, or modify action is taken, it will beforehand update the client side data to make sure the data the action working with is up to date. After the action is complete, then the table is updated (with another call to the server for the JSON data). + +## Design/Evaluation Achievements +N/A + +## Old Readme Below +--- + Due: September 9th, by 11:59 AM. This assignment aims to introduce you to creating a prototype two-tiered web application. @@ -82,16 +105,4 @@ You'll need to use sometype of collaborative software that will enable you both 3. What comments did they make that surprised you? 4. What would you change about the interface based on their feedback? -*You do not need to actually make changes based on their feedback*. This acheivement is designed to help gain experience testing user interfaces. If you run two user studies, you should answer two sets of questions. - -Sample Readme (delete the above when you're ready to submit, and modify the below so with your links and descriptions) ---- - -## Your Web Application Title -Include a very brief summary of your project here. Be sure to include the CSS positioning technique you used, and any required instructions to use your application. - -## Technical Achievements -- **Tech Achievement 1**: Using a combination of... - -### Design/Evaluation Achievements -- **Design Achievement 1**: +*You do not need to actually make changes based on their feedback*. This acheivement is designed to help gain experience testing user interfaces. If you run two user studies, you should answer two sets of questions. \ No newline at end of file diff --git a/package.json b/package.json index 988f135f..cef7a3c7 100644 --- a/package.json +++ b/package.json @@ -1,8 +1,8 @@ { - "name": "", - "version": "", + "name": "a2-shortstack", + "version": "1.0.0", "description": "", - "author": "", + "author": "Michael Lai", "scripts": { "start": "node server.improved.js" }, diff --git a/public/Floofle2.png b/public/Floofle2.png new file mode 100644 index 00000000..e7b7b320 Binary files /dev/null and b/public/Floofle2.png differ diff --git a/public/css/style.css b/public/css/style.css index d5f842ab..24964659 100644 --- a/public/css/style.css +++ b/public/css/style.css @@ -1 +1,87 @@ -/*Style your own assignment! This is fun! */ \ No newline at end of file +/* +Color Theme Notes: +#010400 (Black) +#B7B7B7 (Gray) +#FFFBFC (White) +#62BBC1 (Cyan) +#EC058E (Magenta) +*/ + +/*General Formatting*/ +body { + font-family: 'Urbanist', sans-serif; + color: black; + background-color: #62BBC1; +} + +.gridTitle { + grid-area: header; +} + +.gridForm { + grid-area: form; + background-color: #EC058E; + margin-left: auto; + margin-right: auto; + text-align: center; + border-radius: 10px; +} + +.gridTable { + grid-area: table; +} + +.gridContainer { + display: grid; + grid-template-areas: + 'header header header header' + 'form table table table'; + grid-gap: 10px; + padding: 10px; +} + +/*Form*/ + +.instructions { + padding: 10px; +} + +.defaultSelection { + display: none; +} + +.button { + cursor: pointer; +} + +/*Table*/ +table { + border-collapse: collapse; + margin-left: auto; + margin-right: auto; + text-align: center; + background-color: #B7B7B7; + border-radius: 10px; +} + +th, td { + padding-top: 5px; + padding-bottom: 5px; + padding-left: 10px; + padding-right: 10px; +} + +/*Icons*/ + +.material-icons-outlined { + user-select: none; +} + +.iconButton { + color:black; +} + +.iconButton:hover { + cursor: pointer; + color: #FFFBFC; +} diff --git a/public/index.html b/public/index.html index c56d620e..e1b275e8 100644 --- a/public/index.html +++ b/public/index.html @@ -3,39 +3,81 @@
| Name | +Score | +Game | +High Score? | +||
|---|---|---|---|---|---|
| Test | +0 | +Test | +No | ++ + | ++ + | +