added module to handle tutorial
This commit is contained in:
parent
eee6dd8329
commit
327c5c1c7c
@ -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>-->
|
@ -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;
|
||||
}
|
@ -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,
|
||||
|
@ -1,7 +1,6 @@
|
||||
@import "variables";
|
||||
@import "mixins";
|
||||
|
||||
$floating-column-size: 330px;
|
||||
|
||||
.floating-column {
|
||||
width: calc(100%);
|
||||
|
10
src/app/components/tutorial/tutorial.component.html
Normal file
10
src/app/components/tutorial/tutorial.component.html
Normal 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> -->
|
45
src/app/components/tutorial/tutorial.component.scss
Normal file
45
src/app/components/tutorial/tutorial.component.scss
Normal 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;
|
||||
}
|
||||
}
|
25
src/app/components/tutorial/tutorial.component.spec.ts
Normal file
25
src/app/components/tutorial/tutorial.component.spec.ts
Normal 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();
|
||||
});
|
||||
});
|
15
src/app/components/tutorial/tutorial.component.ts
Normal file
15
src/app/components/tutorial/tutorial.component.ts
Normal 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() {
|
||||
}
|
||||
|
||||
}
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user