Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
day 8 - add some style with bootstrap
- Loading branch information
1 parent
a623095
commit 4d4e281
Showing
11 changed files
with
49 additions
and
20 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<div class="container"> | ||
<h1>{{title}}</h1> | ||
<ul id="top-nav" class="list-unstyled"> | ||
<li>Days 1-6: <a routerLink="/tour-of-vegetables" routerLinkActive="active">Tour of Vegetables</a></li> | ||
<li>Days 7-?: <a routerLink="/message-of-the-moment" routerLinkActive="active">Message of the Moment</a></li> | ||
</ul> | ||
</div> | ||
<router-outlet></router-outlet> |
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
p#messageOfTheMoment { | ||
padding: 20px 10px 20px 10px; | ||
font-size: larger; | ||
color: #01A2A6; | ||
} |
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,12 @@ | ||
<div class="container"> | ||
<h2>Message of the Moment</h2> | ||
<p id="messageOfTheMoment"><em>{{currentMessage}}</em></p> | ||
<p>Think you're clever? Are you able to alliterate? Do you know anything that ryhmes with purple? Would YOU like to set the message of the moment, for all to see?! Or at least... until the next person sets it?<p> | ||
<form> | ||
<div class="form-group"> | ||
<label for="newMessage">New Message of the Moment</label> | ||
<textarea id="newMessage" class="form-control" [(ngModel)]="newMessage" [ngModelOptions]="{standalone: true}" placeholder="I think carrots are just ok."></textarea> | ||
</div> | ||
<button type="button" class="btn btn-primary btn-block btn-lg" [disabled]="!newMessage" (click)="submitMessage()">Declare this message to be the Message of the Moment</button> | ||
</form> | ||
</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
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.