Skip to content

Commit

Permalink
add navbar design
Browse files Browse the repository at this point in the history
  • Loading branch information
NikosDev committed Apr 2, 2018
1 parent 8fe633f commit 08d4615
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 7 deletions.
3 changes: 3 additions & 0 deletions src/app/app.component.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.list-group{
padding-top: 30px;
}
15 changes: 9 additions & 6 deletions src/app/app.component.html
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
<div>
<h2>wikipedia search</h2>
<input (input)="term$.next($event.target.value)">
<ul>
<li *ngFor="let item of items; index as i">
<nav class="navbar sticky-top navbar-dark bg-primary">
<a class="navbar-brand" href="#!">Wikipedia Search Api</a>
<input class="center-block" (input)="term$.next($event.target.value)" placeholder="Type Here...">
</nav>

<div class="container">
<ul class="list-group">
<li class="list-group-item" *ngFor="let item of items; index as i">
<a href="{{links[i]}}">{{item}}</a>
</li>
</ul>
</div>
</div>
2 changes: 1 addition & 1 deletion src/styles.css
Original file line number Diff line number Diff line change
@@ -1 +1 @@
/* You can add global styles to this file, and also import other style files */
/* You can add global styles to this file, and also import other style files */

0 comments on commit 08d4615

Please sign in to comment.