This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div | |
class="app-splash-screen" | |
[ngStyle]="{ left: windowWidth }" | |
*ngIf="showSplash" | |
> | |
<div class="app-splash-inner"> | |
<div class="app-logo"></div> | |
<div class="app-label">Splashy</div> | |
<div class="app-loader"></div> | |
</div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.app-splash-screen { | |
background: #d1367d; | |
position: fixed; | |
top: 0; | |
left: 0; | |
right: 0; | |
bottom: 0; | |
display: flex; | |
justify-content: center; | |
align-items: center; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Component, OnInit } from "@angular/core"; | |
@Component({ | |
selector: "splash-screen", | |
templateUrl: "./splash-screen.component.html", | |
styleUrls: ["./splash-screen.component.css"] | |
}) | |
export class SplashScreenComponent implements OnInit { | |
windowWidth: string; | |
showSplash = true; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { BrowserModule } from "@angular/platform-browser"; | |
import { AppRoutingModule } from "./../app/app.routing.module"; | |
import { NgModule } from "@angular/core"; | |
import { AppComponent } from "./app.component"; | |
import { SplashScreenComponent } from "./../app/components/splash-screen.component"; | |
import { HomeComponent } from "./../app/home/home.component"; | |
@NgModule({ | |
declarations: [AppComponent, SplashScreenComponent, HomeComponent], | |
imports: [BrowserModule, AppRoutingModule], |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { NgModule } from "@angular/core"; | |
import { Routes, RouterModule } from "@angular/router"; | |
import { HomeComponent } from "./../app/home/home.component"; | |
const routes: Routes = [ | |
{ | |
component: HomeComponent, | |
path: "home" | |
}, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8" /> | |
<title>Angular</title> | |
<base href="/" /> | |
<link | |
href="https://fonts.googleapis.com/css2?family=Pacifico&display=swap" | |
rel="stylesheet" | |
/> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export enum SplashAnimationType { | |
SlideLeft = "slide-left", | |
SlideRight = "slide-right", | |
FadeOut = "fade-out" | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Component, OnInit, Input } from "@angular/core"; | |
import { SplashAnimationType } from "./splash-animation-type"; | |
@Component({ | |
selector: "splash-screen", | |
templateUrl: "./splash-screen.component.html", | |
styleUrls: ["./splash-screen.component.css"] | |
}) | |
export class SplashScreenComponent implements OnInit { | |
windowWidth: string; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div | |
class="app-splash-screen" | |
[ngStyle]="{ | |
left: windowWidth, | |
opacity: opacityChange, | |
transition: splashTransition | |
}" | |
*ngIf="showSplash" | |
> | |
<div class="app-splash-inner"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export interface StepModel { | |
stepIndex: number; | |
isComplete: boolean; | |
} |
OlderNewer