From 327c5c1c7c3b1ea743ee736c42485535c329efba Mon Sep 17 00:00:00 2001 From: Nicolas Constant Date: Sun, 10 Feb 2019 20:48:34 -0500 Subject: [PATCH] added module to handle tutorial --- src/app/app.component.html | 10 ++--- src/app/app.component.scss | 43 ++++++++++-------- src/app/app.module.ts | 4 +- .../floating-column.component.scss | 1 - .../tutorial/tutorial.component.html | 10 +++++ .../tutorial/tutorial.component.scss | 45 +++++++++++++++++++ .../tutorial/tutorial.component.spec.ts | 25 +++++++++++ .../components/tutorial/tutorial.component.ts | 15 +++++++ src/sass/_variables.scss | 1 + 9 files changed, 128 insertions(+), 26 deletions(-) create mode 100644 src/app/components/tutorial/tutorial.component.html create mode 100644 src/app/components/tutorial/tutorial.component.scss create mode 100644 src/app/components/tutorial/tutorial.component.spec.ts create mode 100644 src/app/components/tutorial/tutorial.component.ts diff --git a/src/app/app.component.html b/src/app/app.component.html index 2810e38f..b367d53f 100644 --- a/src/app/app.component.html +++ b/src/app/app.component.html @@ -5,11 +5,9 @@ -->
- - - - - + + +
@@ -20,4 +18,4 @@ Welcome to {{ title }}! ---> +--> \ No newline at end of file diff --git a/src/app/app.component.scss b/src/app/app.component.scss index 2690e025..ebb2e9dc 100644 --- a/src/app/app.component.scss +++ b/src/app/app.component.scss @@ -1,26 +1,33 @@ #display-zone { - position: absolute; - top: 0; - right: 0; - bottom: 30px; - left: 50px; - overflow-y: hidden; - overflow-x: auto; - white-space: nowrap; + position: absolute; + top: 0; + right: 0; + bottom: 30px; + left: 50px; + overflow-y: hidden; + overflow-x: auto; + white-space: nowrap; } #floating-column { - top: 0; - left: 0; - bottom: 0; - z-index: 9999; + top: 0; + left: 0; + bottom: 0; + z-index: 9999; } +#tutorial { + position: relative; + top: 0; + left: 0; + bottom: 0; + z-index: 1; +} app-streams-selection-footer { - position: absolute; - height: 30px; - right: 0; - bottom: 0; - left: 50px; -} + position: absolute; + height: 30px; + right: 0; + bottom: 0; + left: 50px; +} \ No newline at end of file diff --git a/src/app/app.module.ts b/src/app/app.module.ts index 601084fc..2667f0b8 100644 --- a/src/app/app.module.ts +++ b/src/app/app.module.ts @@ -45,6 +45,7 @@ import { DatabindedTextComponent } from './components/stream/status/databinded-t import { TimeAgoPipe } from './pipes/time-ago.pipe'; import { StreamStatusesComponent } from './components/stream/stream-statuses/stream-statuses.component'; import { StreamEditionComponent } from './components/stream/stream-edition/stream-edition.component'; +import { TutorialComponent } from './components/tutorial/tutorial.component'; const routes: Routes = [ { path: "", redirectTo: "home", pathMatch: "full" }, @@ -80,7 +81,8 @@ const routes: Routes = [ DatabindedTextComponent, TimeAgoPipe, StreamStatusesComponent, - StreamEditionComponent + StreamEditionComponent, + TutorialComponent ], imports: [ FontAwesomeModule, diff --git a/src/app/components/floating-column/floating-column.component.scss b/src/app/components/floating-column/floating-column.component.scss index dc5117a1..3d394747 100644 --- a/src/app/components/floating-column/floating-column.component.scss +++ b/src/app/components/floating-column/floating-column.component.scss @@ -1,7 +1,6 @@ @import "variables"; @import "mixins"; -$floating-column-size: 330px; .floating-column { width: calc(100%); diff --git a/src/app/components/tutorial/tutorial.component.html b/src/app/components/tutorial/tutorial.component.html new file mode 100644 index 00000000..864e5f1e --- /dev/null +++ b/src/app/components/tutorial/tutorial.component.html @@ -0,0 +1,10 @@ + + + + \ No newline at end of file diff --git a/src/app/components/tutorial/tutorial.component.scss b/src/app/components/tutorial/tutorial.component.scss new file mode 100644 index 00000000..b61779df --- /dev/null +++ b/src/app/components/tutorial/tutorial.component.scss @@ -0,0 +1,45 @@ +@import "variables"; +@import "mixins"; + +// .tutorial { +// width: $floating-column-size; + +// overflow: hidden; +// z-index: 99; +// position: fixed; +// top: 0; +// bottom: $stream-selector-height; +// padding: 0; + + +// font-size: $default-font-size; +// } + + +.add-account{ + position: absolute; + + &__arrow { + + } + + &__title{ + position: relative; + top: 30px; + left: 70px; + } + + &__description { + position: relative; + top: 40px; + left: 70px; + + text-align: center; + + width: 200px; + display: inline-block; + + word-break: break-all; + white-space: normal; + } +} \ No newline at end of file diff --git a/src/app/components/tutorial/tutorial.component.spec.ts b/src/app/components/tutorial/tutorial.component.spec.ts new file mode 100644 index 00000000..705c6ee7 --- /dev/null +++ b/src/app/components/tutorial/tutorial.component.spec.ts @@ -0,0 +1,25 @@ +import { async, ComponentFixture, TestBed } from '@angular/core/testing'; + +import { TutorialComponent } from './tutorial.component'; + +xdescribe('TutorialComponent', () => { + let component: TutorialComponent; + let fixture: ComponentFixture; + + beforeEach(async(() => { + TestBed.configureTestingModule({ + declarations: [ TutorialComponent ] + }) + .compileComponents(); + })); + + beforeEach(() => { + fixture = TestBed.createComponent(TutorialComponent); + component = fixture.componentInstance; + fixture.detectChanges(); + }); + + it('should create', () => { + expect(component).toBeTruthy(); + }); +}); diff --git a/src/app/components/tutorial/tutorial.component.ts b/src/app/components/tutorial/tutorial.component.ts new file mode 100644 index 00000000..6d5e5ff5 --- /dev/null +++ b/src/app/components/tutorial/tutorial.component.ts @@ -0,0 +1,15 @@ +import { Component, OnInit } from '@angular/core'; + +@Component({ + selector: 'app-tutorial', + templateUrl: './tutorial.component.html', + styleUrls: ['./tutorial.component.scss'] +}) +export class TutorialComponent implements OnInit { + + constructor() { } + + ngOnInit() { + } + +} diff --git a/src/sass/_variables.scss b/src/sass/_variables.scss index 554dd601..51db0290 100644 --- a/src/sass/_variables.scss +++ b/src/sass/_variables.scss @@ -31,6 +31,7 @@ $favorite-color: #ffc16f; $stream-selector-height: 30px; $stream-column-separator: 7px; $stream-column-width: 320px; +$floating-column-size: 330px; $avatar-column-space: 70px; //Bootstrap cuistomization