forked from skycoin/bbs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add author and created for thread on threadPage
Improve some UI details
- Loading branch information
Showing
14 changed files
with
159 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,43 @@ | ||
<nav class="navbar navbar-toggleable-md bg-faded fixed-top navbar-inverse bg-primary"> | ||
<button class="navbar-toggler navbar-toggler-right" type="button" data-toggle="collapse" data-target="#navbarTogglerDemo02" | ||
aria-controls="navbarTogglerDemo02" aria-expanded="false" aria-label="Toggle navigation"> | ||
<nav class="navbar navbar-toggleable-md bg-faded fixed-top navbar-inverse bg-primary"> | ||
<button class="navbar-toggler navbar-toggler-right" type="button" data-toggle="collapse" data-target="#navbarTogglerDemo02" | ||
aria-controls="navbarTogglerDemo02" aria-expanded="false" aria-label="Toggle navigation"> | ||
<span class="navbar-toggler-icon test-toggler-icon"></span> | ||
</button> | ||
<a class="navbar-brand" href="#" title="BBS"> | ||
<a class="navbar-brand" href="#" title="BBS"> | ||
<img src="https://skycoin.net/img/log.png" width="140" height="30" alt="bbs"> | ||
</a> | ||
|
||
<div class="collapse navbar-collapse" id="navbarTogglerDemo02"> | ||
<ul class="navbar-nav mr-auto mt-2 mt-md-0"> | ||
<li class="nav-item"> | ||
<a class="nav-link" routerLink="/" routerLinkActive="active" [routerLinkActiveOptions]="{ exact: true }">Boards<span class="sr-only">(current)</span></a> | ||
</li> | ||
<li class="nav-item"> | ||
<a class="nav-link" routerLink="/userlist" routerLinkActive="active">Users</a> | ||
</li> | ||
<li class="nav-item"> | ||
<a class="nav-link" routerLink="/conn" routerLinkActive="active">Connections</a> | ||
</li> | ||
<div class="collapse navbar-collapse" id="navbarTogglerDemo02"> | ||
<ul class="navbar-nav mr-auto mt-2 mt-md-0"> | ||
<li class="nav-item"> | ||
<a class="nav-link" routerLink="/" routerLinkActive="active" [routerLinkActiveOptions]="{ exact: true }">Boards<span class="sr-only">(current)</span></a> | ||
</li> | ||
<li class="nav-item"> | ||
<a class="nav-link" routerLink="/userlist" routerLinkActive="active">Users</a> | ||
</li> | ||
<li class="nav-item"> | ||
<a class="nav-link" routerLink="/conn" routerLinkActive="active">Connections</a> | ||
</li> | ||
|
||
<li class="nav-item"> | ||
<a class="nav-name nav-link" routerLink="/user" routerLinkActive="active"><i class="fa fa-user" aria-hidden="true"></i>{{name}}</a> | ||
</li> | ||
</ul> | ||
<span class="navbar-text"> | ||
<li class="nav-item"> | ||
<a class="nav-name nav-link" routerLink="/user" routerLinkActive="active"><i class="fa fa-user" aria-hidden="true"></i>{{name}}</a> | ||
</li> | ||
</ul> | ||
<span class="navbar-text"> | ||
<a class="nav-node nav-link" href="javascript:void(0);" *ngIf="isMasterNode">Master Node</a> | ||
<a class="nav-node nav-link" href="javascript:void(0);" *ngIf="!isMasterNode">Client Node</a> | ||
</span> | ||
</div> | ||
</nav> | ||
<router-outlet></router-outlet> | ||
<app-loading></app-loading> | ||
<button class="top-btn btn btn-primary " *ngIf="common.topBtn" (click)="common.scrollToTop()"> | ||
</div> | ||
</nav> | ||
<router-outlet></router-outlet> | ||
<app-loading></app-loading> | ||
<app-fixed-button></app-fixed-button> | ||
<button class="top-btn btn btn-primary " *ngIf="common.topBtn" (click)="common.scrollToTop()"> | ||
<div class="top"></div> | ||
<span>top</span> | ||
</button> | ||
<div class="app-pop container"> | ||
<ngb-alert type="{{common.alertType}}" *ngIf="common.alert" (click)="common.alert = false"> | ||
{{common.alertMessage}} | ||
</ngb-alert> | ||
</div> | ||
<div class="app-pop container"> | ||
<ngb-alert type="{{common.alertType}}" *ngIf="common.alert" (click)="common.alert = false"> | ||
{{common.alertMessage}} | ||
</ngb-alert> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<i class="fa fa-reply"></i> |
20 changes: 20 additions & 0 deletions
20
static/src/components/fixed-button/fixed-button.component.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
app-fixed-button { | ||
position: fixed; | ||
display: flex; | ||
cursor: pointer; | ||
bottom: 10%; | ||
right: 5%; | ||
width: 60px; | ||
height: 60px; | ||
border-radius: 50%; | ||
background-color: #d23f31; | ||
box-shadow: 0 0.3rem 0.4rem hsla(0, 0%, 0%, 0.3); | ||
&:hover { | ||
background-color: #d4756c; | ||
} | ||
.fa { | ||
margin: auto !important; | ||
font-size: 1.5em; | ||
color: #fff; | ||
} | ||
} |
24 changes: 24 additions & 0 deletions
24
static/src/components/fixed-button/fixed-button.component.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import { Component, ViewEncapsulation, HostListener, OnDestroy, HostBinding } from '@angular/core'; | ||
|
||
@Component({ | ||
selector: 'app-fixed-button', | ||
templateUrl: './fixed-button.component.html', | ||
styleUrls: ['./fixed-button.component.scss'], | ||
encapsulation: ViewEncapsulation.None | ||
}) | ||
export class FixedButtonComponent implements OnDestroy { | ||
@HostBinding('style.display') display = 'none'; | ||
handle: Function = null; | ||
constructor() { } | ||
ngOnDestroy() { | ||
this.handle = null; | ||
} | ||
@HostListener('click', ['$event']) | ||
_click(ev: Event) { | ||
ev.stopImmediatePropagation(); | ||
ev.stopPropagation(); | ||
if (this.handle !== null) { | ||
this.handle(); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters