From 0e46a29c35dbb954b5fba8a9551e7e74b68c0ce3 Mon Sep 17 00:00:00 2001 From: maxkarnold <60246034+maxkarnold@users.noreply.github.com> Date: Wed, 27 Oct 2021 13:52:24 -0500 Subject: [PATCH 1/2] fixed formations and added chemistryNum attr --- README.md | 12 + angular.json | 6 +- src/app/app.component.html | 54 ++- src/app/app.component.scss | 193 +++++--- src/app/app.component.ts | 24 +- src/app/components/home/home.component.html | 20 +- src/app/components/home/home.component.scss | 41 +- src/app/components/home/home.component.ts | 430 +++++++++++++----- .../leaderboard/leaderboard.component.html | 10 +- .../leaderboard/leaderboard.component.scss | 55 ++- src/app/models/player.ts | 2 +- src/app/services/auth.service.ts | 29 +- src/styles.scss | 30 ++ 13 files changed, 658 insertions(+), 248 deletions(-) diff --git a/README.md b/README.md index 330c401..216d1b7 100644 --- a/README.md +++ b/README.md @@ -7,6 +7,7 @@ ## Tech Stack * [Angular](https://angular.io/) * [Angular-Material](https://material.angular.io/) + * [Angular-Material-CDK](https://material.angular.io/cdk/categories) * [Firebase](https://firebase.google.com/docs) * [Express](https://expressjs.com/) * [Nodejs](https://nodejs.org/en/) @@ -109,3 +110,14 @@ Then deploy to the website with firebase in the terminal. ``` firebase deploy ``` + +## CSS Styling Guide + +We use BEM methodology for all CSS files. Please refer to this [reference site](https://en.bem.info/methodology/key-concepts/) for help. For this project, we have some specific rules to follow over the BEM standards. + +* Blocks can be contained within other blocks. +* Blocks can be modified just like elements using a class like: `block--modifier`. +* The class name of elements within elements should be added on. `element__element__element`. +* Some styles will have to be overwritten with `mat` or `cdk` classes. +* Global styles should only be implemented in `styles.scss`. +* Don't add class names to `ng-container`, `ng-template` and other specialized html tags unless necessary. \ No newline at end of file diff --git a/angular.json b/angular.json index 48e0a43..057f81f 100644 --- a/angular.json +++ b/angular.json @@ -31,10 +31,10 @@ "src/assets/img" ], "styles": [ - "./src/styles.scss", - "./node_modules/@angular/material/prebuilt-themes/indigo-pink.css", "./node_modules/font-awesome/css/font-awesome.css", - "./node_modules/materialize-css/dist/css/materialize.css" + "./node_modules/@angular/material/prebuilt-themes/indigo-pink.css", + "./node_modules/materialize-css/dist/css/materialize.css", + "./src/styles.scss" ], "scripts": [ "./node_modules/jquery/dist/jquery.js", diff --git a/src/app/app.component.html b/src/app/app.component.html index 5f9a643..c732b17 100644 --- a/src/app/app.component.html +++ b/src/app/app.component.html @@ -1,34 +1,40 @@ -
- - National Team Generator - - - - Leaderboards - Login - Logout + + Leaderboards + Login + Logout
-
- - National Team Generator - - Leaderboards - - Logout +
+ + + + Leaderboards + Login + Logout
- -