added module to handle tutorial

This commit is contained in:
Nicolas Constant 2019-02-10 20:48:34 -05:00
parent eee6dd8329
commit 327c5c1c7c
No known key found for this signature in database
GPG Key ID: 1E9F677FB01A5688
9 changed files with 128 additions and 26 deletions

View File

@ -5,11 +5,9 @@
</app-streams-main-display>-->
<div id="display-zone">
<app-floating-column id="floating-column" *ngIf="floatingColumnActive">
</app-floating-column>
<router-outlet>
</router-outlet>
<app-tutorial id="tutorial"></app-tutorial>
<app-floating-column id="floating-column" *ngIf="floatingColumnActive"></app-floating-column>
<router-outlet></router-outlet>
</div>
<app-streams-selection-footer>
@ -20,4 +18,4 @@
Welcome to {{ title }}!
</h1>
<button (click)="launchWindow()">Launch Window</button>
</div>-->
</div>-->

View File

@ -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;
}

View File

@ -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,

View File

@ -1,7 +1,6 @@
@import "variables";
@import "mixins";
$floating-column-size: 330px;
.floating-column {
width: calc(100%);

View File

@ -0,0 +1,10 @@
<!-- <div class="tutorial"> -->
<div class="add-account">
<div class="add-account__arrow"></div>
<h3 class="add-account__title">Welcome to Sengi!</h3>
<p class="add-account__description">
Let's start, click the "+" button to add a new account.
</p>
</div>
<div class="open-account"></div>
<!-- </div> -->

View File

@ -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;
}
}

View File

@ -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<TutorialComponent>;
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [ TutorialComponent ]
})
.compileComponents();
}));
beforeEach(() => {
fixture = TestBed.createComponent(TutorialComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});

View File

@ -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() {
}
}

View File

@ -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