Giter Club home page Giter Club logo

demons-coding's Introduction

Demonscoding

This project was generated with Angular CLI version 7.1.1.

Update 04/15/2019

  • basic integration with the Angular Material design library
  • toolbar
    • needs to have dynamic views based on auth state
  • implement the NSU Logo in toolbar and where appropriate throughout the site
  • Everything needs to be coded with the mobile view primarily
    • mat-toolbar looks like it needs an additional view constraint. I will use fx
  1.   npm i --save @angular/material @angular/cdk @angular/animations
    
    • This adds the required dependencies via NPM.
  2.  ng add @angular/material
    
    • This is a schematic command built into Angular CLI.
    • This command automates much of the design library integration process.
      • In the CLI prompts, I chose the purple/green prebuilt theme for now. I said yes to all CLI prompts.
  3. in the global styles file, styles.css, I imported the prebuilt theme:

    /* You can add global styles to this file, and also import other style files */
    @import '@angular/material/prebuilt-themes/deeppurple-amber.css';
    html, body { height: 100%; }
    body { margin: 0; font-family: Roboto, "Helvetica Neue", sans-serif; }
  4. In app.module.ts, I imported the Angular Material Toolbar API reference:

     import {MatToolbarModule} from '@angular/material/toolbar';

    And also add the the module to the imports list below the imports:

    imports: [
       BrowserModule,
       AngularFireModule.initializeApp(environment.firebase),
       AngularFirestoreModule,
       AngularFireAuthModule,
       FormsModule,
       ReactiveFormsModule,
       AppRoutingModule,
       CoreModule,
       BrowserAnimationsModule,
       MatToolbarModule
    ],
    providers: [],
    bootstrap: [AppComponent]
    })
  5. After that, I began to implement the toolbar in the global HTML viewport app.component.html:

    <mat-toolbar color="primary" class="main-toolbar">
        <mat-toolbar-row>
        <span> {{title}} </span>
        <span class="fill-space"> </span>
        <span>
            <div *ngIf="fAuth.user | async; then authenticated; else guest">
            <!-- replaced by template -->
            </div>
        </span>
        </mat-toolbar-row>
    
    </mat-toolbar>
  • I inserted the existing logic/html that displays the toolbar buttons inside the new mat-toolbar code
  • I created an empty span class named fill-space, which I will uitilize in the corresponding css next.
  1. I tweaked the CSS for the new elements of the HTML in app.component.css:

  2. So, now the toolbar functionality and design is implemented in the desktop view, but the mobile view looks like a travesty. To fix that we are going to use the flex-layout library. The first step is import from the command prompt:

        npm i -s @angular/flex-layout 
    

    Next step: import FlexLayout module in app.module.ts:

    import { FlexLayoutModule } from '@angular/flex-layout';
    • Don't forget to also add FlexLayoutModule to the list of imports!

    Update 04/27/19

    1. We're gonna try out Angular Bootstrap because I want to use the Bootstrap Hero Header.
      • At command Prompt, import Angular Bootstrap:
      npm install --save bootstrap jquery
      
      • Import the module into app.module.ts :
      import {NgbModule} from '@ng-bootstrap/ng-bootstrap';
      • Don't forget to also add ng-bootstrap to the list of imports!

    Incremental Update 05/01/2019

    1. Added a Google Forms embedded contact form to the Contact-Form component

    Update 05/03/2019

    • about page
    • add isAdmin Check
    • trigger alert on enrollment

demons-coding's People

Contributors

djday06 avatar samhebert1 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.