added thankyou tutorial

This commit is contained in:
Nicolas Constant 2020-09-12 13:47:07 -04:00
parent 39af84785f
commit b02979430c
No known key found for this signature in database
GPG Key ID: 1E9F677FB01A5688
8 changed files with 128 additions and 8 deletions

View File

@ -89,6 +89,7 @@ import { AccountComponent } from './components/common/account/account.component'
import { TutorialEnhancedComponent } from './components/tutorial-enhanced/tutorial-enhanced.component';
import { NotificationsTutorialComponent } from './components/tutorial-enhanced/notifications-tutorial/notifications-tutorial.component';
import { LabelsTutorialComponent } from './components/tutorial-enhanced/labels-tutorial/labels-tutorial.component';
import { ThankyouTutorialComponent } from './components/tutorial-enhanced/thankyou-tutorial/thankyou-tutorial.component';
const routes: Routes = [
{ path: "", component: StreamsMainDisplayComponent },
@ -157,7 +158,8 @@ const routes: Routes = [
AccountComponent,
TutorialEnhancedComponent,
NotificationsTutorialComponent,
LabelsTutorialComponent
LabelsTutorialComponent,
ThankyouTutorialComponent
],
entryComponents: [
EmojiPickerComponent

View File

@ -0,0 +1,36 @@
<div class="tutorial-content">
<h2 class="tutorial-content__title-important">Thank you!</h2>
<p>
Thank you for downloading Sengi, I hope you will enjoy using this app as much as I did when making it.<br />
<br />
Please find below some useful informations and... that's it! <br />
<br />
</p>
<h3 class="tutorial-content__subtitle">The app's account</h3>
<p>
<a href="https://mastodon.social/@sengi_app" target="_blank">
<img class="content__expand content__expand--smaller" src="assets/img/account.png" /><br />
</a>
<a class="follow" href (click)="follow()" title="follow @Sengi_app with all your account(s)">
Follow @Sengi_app
</a>
</p>
<h3 class="tutorial-content__subtitle">Alternative builds</h3>
<p>
<a class="link link__tab" href="https://hub.docker.com/r/nicolasconstant/sengi" target="_blank">Official Docker
build</a><br />
<a class="link link__tab" href="https://snapcraft.io/sengi" target="_blank">Official Snap build</a><br />
<br />
</p>
<h3 class="tutorial-content__subtitle">Other ressources</h3>
<p>
<a class="link link__tab" href="https://nicolasconstant.github.io/sengi/" target="_blank">Official
page</a><br />
<a class="link link__tab" href="https://github.com/NicolasConstant/sengi" target="_blank">Github
Repository</a><br />
<a class="link link__tab" href="https://write.as/nicolas-constant/" target="_blank">Maintainer's dev
blog</a><br />
<br />
</p>
</div>

View File

@ -0,0 +1,17 @@
.follow {
color: white;
display: block;
border: 1px solid rgb(0, 84, 122);
border-radius: 5px;
width: 200px;
text-align: center;
padding: 10px 0;
margin: 0 auto 30px auto;
transition: all .2s;
box-shadow: inset 0 0 5px rgb(0, 84, 122);
&:hover, &:focus {
text-decoration: none;
background-color: rgb(0, 84, 122);
}
}

View File

@ -0,0 +1,25 @@
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { ThankyouTutorialComponent } from './thankyou-tutorial.component';
describe('ThankyouTutorialComponent', () => {
let component: ThankyouTutorialComponent;
let fixture: ComponentFixture<ThankyouTutorialComponent>;
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [ ThankyouTutorialComponent ]
})
.compileComponents();
}));
beforeEach(() => {
fixture = TestBed.createComponent(ThankyouTutorialComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});

View File

@ -0,0 +1,18 @@
import { Component, OnInit } from '@angular/core';
@Component({
selector: 'app-thankyou-tutorial',
templateUrl: './thankyou-tutorial.component.html',
styleUrls: ['../tutorial-enhanced.component.scss', './thankyou-tutorial.component.scss']
})
export class ThankyouTutorialComponent implements OnInit {
constructor() { }
ngOnInit() {
}
follow(): boolean {
return false;
}
}

View File

@ -2,6 +2,7 @@
<div class="tutorial__content flexcroll">
<app-notifications-tutorial *ngIf="index === 0"></app-notifications-tutorial>
<app-labels-tutorial *ngIf="index === 1"></app-labels-tutorial>
<app-thankyou-tutorial *ngIf="index === 2"></app-thankyou-tutorial>
</div>
<div class="tutorial__footer">
<a href (click)="close()"

View File

@ -56,6 +56,7 @@ $footer-height: 30px;
background-color: rgb(0, 74, 109);
background-color: rgb(0, 84, 122);
color: white;
// font-weight: bold;
&:hover {
text-decoration: none;
@ -66,6 +67,7 @@ $footer-height: 30px;
&--disabled {
color: #4e5672;
&:hover {
cursor: default;
text-decoration: none;
@ -107,5 +109,24 @@ $footer-height: 30px;
width: calc(100%);
max-width: 380px;
display: block;
&--smaller {
max-width: 270px;
}
}
}
.link {
color: white;
text-decoration: underline;
&:hover,
&:active,
&:focus {
color: rgb(218, 218, 218);
}
&__tab {
padding-left: 10px;
}
}

BIN
src/assets/img/account.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 65 KiB