generated from Bixal/uswds-boilerplate
-
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.
Merge pull request #17 from Bixal/feature-category-page
Feature category page
- Loading branch information
Showing
23 changed files
with
118 additions
and
9 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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
layout: category | ||
title: Combined Oral Contraceptive Pill | ||
permalink: /combined-oral-contraceptive-pill.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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
layout: category | ||
title: Contraceptive Implant | ||
permalink: /contraceptive-implant.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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
layout: category | ||
title: Injectable Contraceptive | ||
permalink: /injectable-contraceptive.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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
layout: category | ||
title: Intrauterine Device (IUD) | ||
permalink: /intrauterine-device-iud.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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
layout: category | ||
title: Progestin Only Oral Contraceptive Pill | ||
permalink: /progestin-only-oral-contraceptive-pill.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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
layout: category | ||
title: Standard Days Method | ||
permalink: /standard-days-method.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
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,30 @@ | ||
- name: Intrauterine Device (IUD) | ||
url: "/products/product-1.html" | ||
url: "/intrauterine-device-iud.html" | ||
image: "assets/category-images/category-IUD.jpg" | ||
no-products: 5 | ||
last-update: 3/23/2020 | ||
- name: Injectable Contraceptive | ||
url: "/products/product-2.html" | ||
url: "/injectable-contraceptive.html" | ||
image: "assets/category-images/category-injection.jpg" | ||
no-products: 16 | ||
last-update: 12/2/2020 | ||
- name: Combined Oral Contraceptive Pill | ||
url: "/products/product-4.html" | ||
url: "/combined-oral-contraceptive-pill.html" | ||
image: "assets/category-images/category-pill.jpg" | ||
no-products: 8 | ||
last-update: 2/4/2021 | ||
- name: Progestin Only Oral Contraceptive Pill | ||
url: "/products/product-6.html" | ||
url: "/progestin-only-oral-contraceptive-pill.html" | ||
image: "assets/category-images/category-progestin.jpg" | ||
no-products: 25 | ||
last-update: 2/4/2021 | ||
- name: Standard Days Method | ||
url: "/products/product-9.html" | ||
url: "/standard-days-method.html" | ||
image: "assets/category-images/category-standard-days.jpg" | ||
no-products: 17 | ||
last-update: 1/14/2021 | ||
last-update: 1/14/2021 | ||
- name: Contraceptive Implant | ||
url: "/contraceptive-implant.html" | ||
image: "assets/category-images/category-contraceptive-implant.jpg" | ||
no-products: 10 | ||
last-update: 2/14/2021 |
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,60 @@ | ||
<!doctype html> | ||
|
||
{% include head.html %} | ||
|
||
<body> | ||
{% include navigation-extended.html %} | ||
|
||
<main> | ||
<div class="grid-container"> | ||
<nav class="usa-breadcrumb margin-top-05" aria-label="Breadcrumbs"> | ||
<ol class="usa-breadcrumb__list"> | ||
<li class="usa-breadcrumb__list-item"> | ||
<a href="{{ site.baseurl }}/" class="usa-breadcrumb__link"> | ||
<span>Home</span> | ||
</a> | ||
</li> | ||
<li class="usa-breadcrumb__list-item"> | ||
<span>{{ page.title }}</span> | ||
</li> | ||
</ol> | ||
</nav> | ||
|
||
<h1 class="margin-top-0 margin-bottom-2">{{ page.title }}</h1> | ||
|
||
<ul class="usa-collection"> | ||
{% assign related_products = site.products | where: "category", page.title %} | ||
{% for item in related_products %} | ||
<li class="usa-collection__item maxw-full border-base-lighter"> | ||
<img class="usa-collection__img" src="{{ item.feature-image }}" alt="{{ item.feature-image-description }}"> | ||
<div class="usa-collection__body"> | ||
<h3 class="usa-collection__heading margin-bottom-105 maxw-mobile-lg"> | ||
<a class="usa-link" href="{{ site.baseurl }}{{ item.permalink }}">{{ item.title }}</a> | ||
</h3> | ||
<p class="usa-collection__description text-base">Brand: {{ item.brand }} | SKU: {{ item.sku }} | Last updated: {{ item.last-updated }}</p> | ||
<div class="grid-row"> | ||
<div class="tablet:grid-col-6"> | ||
<ul class="usa-collection__meta margin-bottom-2" aria-label="Topics"> | ||
{% assign tags = item.tags %} | ||
{% for item in tags %} | ||
<li class="usa-tag bg-base-lighter text-base-darker display-inline-block margin-top-1"> | ||
{{ item }} | ||
</li> | ||
{% endfor %} | ||
</ul> | ||
</div> | ||
<div class="tablet:grid-col-6"> | ||
<button class="usa-button usa-button--outline margin-right-0 float-right">Add to list</button> | ||
</div> | ||
</div> | ||
</div> | ||
</li> | ||
{% endfor %} | ||
</ul> | ||
|
||
|
||
|
||
</div> | ||
</main> | ||
{% include footer.html %} | ||
{% include foot.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
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
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.