-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
30 additions
and
79 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,6 +1,6 @@ | ||
<footer> | ||
<hr/> | ||
<hr /> | ||
<div class="content"> | ||
<app-mailing-list></app-mailing-list> | ||
</div> | ||
</footer> | ||
</footer> |
36 changes: 7 additions & 29 deletions
36
src/app/_components/mailing-list/mailing-list.component.html
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,41 +1,19 @@ | ||
<div id="mc_embed_signup"> | ||
<form | ||
action="//mtlynch.us16.list-manage.com/subscribe/post?u=827c54a25e4f8abbb83d878c4&id=c6ee22ca72" | ||
method="post" | ||
id="mc-embedded-subscribe-form" | ||
name="mc-embedded-subscribe-form" | ||
class="validate" | ||
target="_blank" | ||
ngNoForm | ||
<form action="//mtlynch.us16.list-manage.com/subscribe/post?u=827c54a25e4f8abbb83d878c4&id=c6ee22ca72" method="post" | ||
id="mc-embedded-subscribe-form" name="mc-embedded-subscribe-form" class="validate" target="_blank" ngNoForm | ||
novalidate> | ||
<div id="mc_embed_signup_scroll"> | ||
<p> | ||
KetoHub is brand new!<br/> | ||
KetoHub is brand new!<br /> | ||
Subscribe to our newsletter to find out when we add new features. | ||
</p> | ||
<input | ||
type="email" | ||
value="" | ||
name="EMAIL" | ||
class="email" | ||
id="mce-EMAIL" | ||
placeholder="email address" | ||
required> | ||
<input type="email" value="" name="EMAIL" class="email" id="mce-EMAIL" placeholder="email address" required> | ||
<div> | ||
<input | ||
type="submit" | ||
value="Subscribe" | ||
name="subscribe" | ||
id="mc-embedded-subscribe" | ||
class="button" /> | ||
<input type="submit" value="Subscribe" name="subscribe" id="mc-embedded-subscribe" class="button" /> | ||
</div> | ||
<div style="position: absolute; left: -5000px;" aria-hidden="true"> | ||
<input | ||
type="text" | ||
name="b_827c54a25e4f8abbb83d878c4_c6ee22ca72" | ||
tabindex="-1" | ||
value="" /> | ||
<input type="text" name="b_827c54a25e4f8abbb83d878c4_c6ee22ca72" tabindex="-1" value="" /> | ||
</div> | ||
</div> | ||
</form> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
<nav class="navbar navbar-light"> | ||
<a routerLink="/" routerLinkActive="active"><img src="assets/img/logo.png" alt="KetoHub logo" /></a> | ||
</nav> | ||
</nav> |
23 changes: 8 additions & 15 deletions
23
src/app/_components/recipe-card/recipe-card.component.html
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,37 +1,30 @@ | ||
<div | ||
[ngClass]="['card', getCardClass()]"> | ||
<div [ngClass]="['card', getCardClass()]"> | ||
<a [href]="recipe.url" target="_blank" rel="noopener"> | ||
<img | ||
[src]="getDefaultThumbnailUrl()" | ||
[srcset]="getThumbnailUrls()" | ||
sizes="(max-width: 377px) 340px, | ||
<img [src]="getDefaultThumbnailUrl()" [srcset]="getThumbnailUrls()" sizes="(max-width: 377px) 340px, | ||
(max-width: 622px) 560px, | ||
(max-width: 768px) 680px, | ||
340px" | ||
[attr.alt]="recipe.title" | ||
class="img-responsive card-img-top img-fluid"> | ||
[attr.alt]="recipe.title" class="img-responsive card-img-top img-fluid"> | ||
</a> | ||
<div class="card-block"> | ||
<h3 class="card-title"> | ||
<a [href]="recipe.url" target="_blank" rel="noopener"> | ||
<div innerHTML="{{ recipe.title | highlightedResult : searchKeywords }}"></div> | ||
</a> | ||
</h3> | ||
<div | ||
*ngIf="matchingIngredients(recipe.ingredients).length > 0" | ||
class="card-text ingredients"> | ||
<div *ngIf="matchingIngredients(recipe.ingredients).length > 0" class="card-text ingredients"> | ||
<b>Ingredients</b> | ||
<ul> | ||
<li | ||
*ngFor="let ingredient of matchingIngredients(recipe.ingredients)"> | ||
<li *ngFor="let ingredient of matchingIngredients(recipe.ingredients)"> | ||
<div innerHTML="{{ ingredient | capitalize | highlightedResult : searchKeywords}}"></div> | ||
</li> | ||
</ul> | ||
</div> | ||
<footer> | ||
<small class="text-muted"> | ||
Published {{ recipe.publishedTime | timeSince }} ago on <a [href]="recipe.url" target="_blank" rel="noopener">{{ recipe.url | rootDomain }}</a> | ||
Published {{ recipe.publishedTime | timeSince }} ago on <a [href]="recipe.url" target="_blank" rel="noopener">{{ | ||
recipe.url | rootDomain }}</a> | ||
</small> | ||
</footer> | ||
</div> | ||
</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 |
---|---|---|
|
@@ -2,4 +2,4 @@ | |
|
||
<router-outlet></router-outlet> | ||
|
||
<app-footer></app-footer> | ||
<app-footer></app-footer> |