1
1
mirror of https://github.com/Eugeny/tabby.git synced 2024-12-25 03:22:58 +03:00
This commit is contained in:
Eugene Pankov 2017-04-28 17:20:21 +02:00
parent cfd26ba4ea
commit 8be70110fe
5 changed files with 42 additions and 4 deletions

View File

@ -1,4 +1,4 @@
$color: rgba(0, 0, 0, 0.5);
$color: rgba(66, 142, 173, 0.75);
.preload-logo {
@ -44,6 +44,7 @@ $color: rgba(0, 0, 0, 0.5);
height: 160px;
margin: auto;
position: relative;
transform: rotateZ(-14.5deg);
.part {
position: absolute;
@ -56,7 +57,7 @@ $color: rgba(0, 0, 0, 0.5);
left: 24px;
width: 44px;
height: 44px;
background: rgba(0,0,0, .75);
background: $color;
transform: rotateX(52deg) rotateY(-42deg);
animation: terminusLogoPartOnce ease-out 1s;
}

View File

@ -16,9 +16,18 @@ div
div
h1.terminus-title Terminus
button.btn.btn-outline-primary.btn-lg.btn-block(
button.btn.btn-primary.btn-lg.btn-block(
*ngFor='let button of getButtons()',
(click)='button.click()',
)
i.fa([class]='"fa fa-" + button.icon')
span {{button.title}}
footer
.btn-group
button.btn.btn-secondary((click)='openGitHub()')
i.fa.fa-github
span GitHub
button.btn.btn-secondary((click)='reportBug()')
i.fa.fa-bug
span Report a problem

View File

@ -1,6 +1,8 @@
:host {
display: flex;
flex-direction: column;
flex: auto;
-webkit-app-region: drag;
}
:host > div {
@ -15,3 +17,13 @@
.terminus-title {
margin: 0 0 60px;
}
footer {
flex: none;
padding: 20px 30px;
background: rgba(0,0,0,.5);
}
button {
-webkit-app-region: no-drag;
}

View File

@ -1,4 +1,5 @@
import { Component, Inject } from '@angular/core'
import { ElectronService } from '../services/electron.service'
import { IToolbarButton, ToolbarButtonProvider } from '../api'
@Component({
@ -8,6 +9,7 @@ import { IToolbarButton, ToolbarButtonProvider } from '../api'
})
export class StartPageComponent {
constructor(
private electron: ElectronService,
@Inject(ToolbarButtonProvider) private toolbarButtonProviders: ToolbarButtonProvider[],
) { }
@ -17,4 +19,12 @@ export class StartPageComponent {
.reduce((a, b) => a.concat(b))
.sort((a: IToolbarButton, b: IToolbarButton) => (a.weight || 0) - (b.weight || 0))
}
openGitHub () {
this.electron.shell.openExternal('https://github.com/eugeny/terminus')
}
reportBug () {
this.electron.shell.openExternal('https://github.com/eugeny/terminus/issues/new')
}
}

View File

@ -250,6 +250,12 @@ hotkey-input-modal {
}
}
start-page {
.terminus-title {
color: $blue;
}
}
.form-group label {
margin-bottom: 2px;
}