-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(redesign): new design for documentation page
- Loading branch information
EvilAlexei
committed
Sep 18, 2017
1 parent
b7a4c4d
commit c094b75
Showing
20 changed files
with
954 additions
and
1,117 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
<top-menu></top-menu> | ||
<main-menu></main-menu> | ||
<main class="main"> | ||
<sidebar class="sidebar"></sidebar> | ||
|
||
<div id="main"> | ||
<div class="container"> | ||
<div class="row"> | ||
<div class="col-md-10 col-xs-12 col-md-offset-1 push-md-1"> | ||
<router-outlet></router-outlet> | ||
</div> | ||
<section class="main-container"> | ||
<div class="content"> | ||
<router-outlet></router-outlet> | ||
</div> | ||
</div> | ||
<app-footer></app-footer> | ||
</div> | ||
<app-footer></app-footer> | ||
</section> | ||
|
||
<add-nav class="add-nav"></add-nav> | ||
|
||
</main> |
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
Empty file.
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,13 @@ | ||
import { Component } from '@angular/core'; | ||
import { Router } from '@angular/router'; | ||
import { routes } from '../../app.routing'; | ||
import { StyleManager } from '../../theme/style-manager'; | ||
import { ThemeStorage } from '../../theme/theme-storage'; | ||
|
||
@Component({ | ||
selector: 'add-nav', | ||
templateUrl: './add-nav.component.html' | ||
}) | ||
export class AddNavComponent { | ||
public constructor() {} | ||
} |
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,8 +1,6 @@ | ||
<footer class="app-footer col-md-12"> | ||
<div class="container"> | ||
<p>Designed and built by the <a href="https://github.com/orgs/valor-software/teams/ng-team" target="_blank" rel="noopener">ng-team</a> | ||
with the help of our <a href="https://github.com/valor-software/ngx-bootstrap/graphs/contributors" target="_blank" rel="noopener">contributors.</a></p> | ||
<p>Code licensed under <a href="https://github.com/valor-software/ngx-bootstrap/blob/development/LICENSE" target="_blank" rel="noopener">MIT license conditions</a>, docs <a href="https://creativecommons.org/licenses/by/3.0/" target="_blank" rel="noopener">CC BY 3.0</a></p> | ||
<p>Design and content of the documentation site heavily inspired by the <a target="_blank" rel="noopener" href="http://v4-alpha.getbootstrap.com/">original bootstrap.</a> documentation</p> | ||
</div> | ||
<footer class="app-footer"> | ||
<p>Designed and built by the <a href="https://github.com/orgs/valor-software/teams/ng-team" target="_blank" rel="noopener">ng-team</a> | ||
with the help of our <a href="https://github.com/valor-software/ngx-bootstrap/graphs/contributors" target="_blank" rel="noopener">contributors.</a></p> | ||
<p>Code licensed under <a href="https://github.com/valor-software/ngx-bootstrap/blob/development/LICENSE" target="_blank" rel="noopener">MIT license conditions</a>, docs <a href="https://creativecommons.org/licenses/by/3.0/" target="_blank" rel="noopener">CC BY 3.0</a></p> | ||
<p>Design and content of the documentation site heavily inspired by the <a target="_blank" rel="noopener" href="http://v4-alpha.getbootstrap.com/">original bootstrap</a> documentation</p> | ||
</footer> |
This file was deleted.
Oops, something went wrong.
File renamed without changes.
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,32 @@ | ||
<form class="sidebar-search"> | ||
<input type="text" | ||
aria-label="Search in docs" name="search" | ||
placeholder="Search..." [(ngModel)]="search.text"/> | ||
|
||
<button id="mobile-main-menu" (click)="toggle()"> | ||
<img src="assets/images/icons/menu-left.svg" alt="left menu"> | ||
</button> | ||
</form> | ||
<div class="mobile-menu"> | ||
<div class="bootstrap-version"> | ||
<button class="btn" [class.selected]="isBs3" (click)="installTheme('bs3')">Bootstrap 3</button> | ||
<button class="btn" [class.selected]="!isBs3" (click)="installTheme('bs4')">Bootstrap 4</button> | ||
</div> | ||
<div class="sidebar-content" *ngIf="routes && routes.length"> | ||
<ul class="sidebar-list"> | ||
<li [routerLinkActive]="['active']" | ||
[routerLinkActiveOptions]="{exact: true}"> | ||
<a [routerLink]="[routes[0].path]">{{routes[0].data}}</a> | ||
</li> | ||
</ul> | ||
|
||
<h4 class="sidebar-title">Components</h4> | ||
<ul class="sidebar-list"> | ||
<li *ngFor="let route of routes | slice:1 | SearchFilter:search.text" | ||
[routerLinkActive]="['active']" | ||
[routerLinkActiveOptions]="{exact: true}"> | ||
<a [routerLink]="[route.path]">{{route.data[0]}}</a> | ||
</li> | ||
</ul> | ||
</div> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,29 @@ | ||
<div id="top-menu"> | ||
<div class="title"> | ||
<h2 [routerLink]="['']">ngx-bootstrap {{currentVersion ? 'v' + currentVersion : ''}}</h2> | ||
</div> | ||
<div class="prev-docs hidden-xs hidden-xs-down" dropdown *ngIf="previousDocs.length" container="body"> | ||
<header id="header" class="header"> | ||
<h1 class="logo" [routerLink]="['']">ngX Bootstrap</h1> | ||
|
||
<div class="header-info"> | ||
<div class="prev-docs" dropdown *ngIf="previousDocs.length" container="body"> | ||
<div dropdownToggle class="dropdown-toggle"> | ||
Previous docs <span class="caret"></span> | ||
{{currentVersion ? 'v' + currentVersion : ''}} <span class="caret"></span> | ||
</div> | ||
<ul *dropdownMenu class="dropdown-menu" role="menu"> | ||
<li role="menuitem" *ngFor="let item of previousDocs"> | ||
<a class="dropdown-item" [href]="appUrl + (isLocalhost ? item.unprefixedUrl : item.url) + (appHash ? '/' + appHash : '')">{{item.version}}</a> | ||
</li> | ||
</ul> | ||
</div> | ||
|
||
<div id="mobile-main-menu" (click)="toggle()"> | ||
<img src="assets/images/menu-left.svg" alt="left menu"> | ||
</div> | ||
</div> | ||
|
||
<div class="logo"> | ||
<a target="_blank" rel="noopener" href="https://github.com/valor-software/ngx-bootstrap"> | ||
<img src="assets/images/GitHub-Mark-Light-64px.png" alt="github stars"> | ||
</a> | ||
<ul class="header-list"> | ||
<li> | ||
<a target="_blank" rel="noopener" href="https://github.com/valor-software/ngx-bootstrap"> | ||
<img src="assets/images/icons/icon-git.svg" alt="github stars"> | ||
</a> | ||
</li> | ||
<li> | ||
<a target="_blank" rel="noopener" href="https://ngx-slack.herokuapp.com"> | ||
<img src="assets/images/icons/icon-slack.svg" alt="slack"> | ||
</a> | ||
</li> | ||
</ul> | ||
</div> | ||
</div> | ||
</header> |
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
Oops, something went wrong.