-
Notifications
You must be signed in to change notification settings - Fork 0
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 #3 from brutdethe/afficher-une-fiche-produit
Afficher une fiche produit
- Loading branch information
Showing
17 changed files
with
695 additions
and
405 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file was deleted.
Oops, something went wrong.
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,81 @@ | ||
aboutTitle: | ||
fr: à-propos | ||
en: about | ||
|
||
aboutUrl: | ||
fr: https://www.gongfucha.fr/pages/faq-boutique | ||
en: https://www.gongfucha.fr/pages/faq-boutique | ||
|
||
shopTitle: | ||
fr: boutique | ||
en: shop | ||
|
||
cartTitle: | ||
fr: panier | ||
en: cart | ||
|
||
privacyTitle: | ||
fr: confidentialité | ||
en: privacy notice | ||
|
||
legalTitle: | ||
fr: mentions légales | ||
en: legal notice | ||
|
||
buttonCartTitle: | ||
fr: ajouter au panier | ||
en: add to cart | ||
|
||
logoAlt: | ||
fr: Logo de la boutique Gong Fu Cha | ||
en: Logo of Gong Fu Cha shop | ||
|
||
mainContent: | ||
fr: Contenu principal | ||
en: Main content | ||
|
||
meta: | ||
description: | ||
fr: Découvrez notre boutique Gong Fu Cha et trouvez des produits uniques pour vos dégustations de thé. | ||
en: Discover our Gong Fu Cha shop and find unique products for your tea tasting experience. | ||
|
||
photoAlt: | ||
fr: Image du produit | ||
en: Product image | ||
|
||
aria: | ||
navigationMain: | ||
fr: Navigation principale | ||
en: Main navigation | ||
|
||
selectionCurrencyLanguage: | ||
fr: Sélection de la devise et de la langue | ||
en: Currency and language selection | ||
|
||
changeLanguageFr: | ||
fr: Changer la langue en français | ||
en: Change language to French | ||
|
||
changeLanguageEn: | ||
fr: Changer la langue en anglais | ||
en: Change language to English | ||
|
||
currencyEur: | ||
fr: Changer la monnaie en euros | ||
en: Change currency to euros | ||
|
||
currencyUsd: | ||
fr: Changer la monnaie en dollars | ||
en: Change currency to dollars | ||
|
||
productPrice: | ||
fr: Prix du produit | ||
en: Product price | ||
|
||
addToCartButton: | ||
fr: Ajouter au panier | ||
en: Add to cart | ||
|
||
productImageCaption: | ||
fr: '- Image du produit' | ||
en: '- Product image' |
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,2 @@ | ||
dirs: | ||
img_products: /_assets/products/ |
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,24 +1,24 @@ | ||
<header class="header columns"> | ||
<header class="header columns" role="banner"> | ||
<h1 class="title column col-3 col-md-12"> | ||
<a href="{{ '/' | customLocaleUrl(page.lang) | url }}"> | ||
<img src="https://www.gongfucha.fr/assets/sceau-the.svg" alt="logo boutique" class="logo"> | ||
<a href="{{ '/' | customLocaleUrl(page.lang) | url }}" class="logo-link"> | ||
<img src="https://www.gongfucha.fr/assets/sceau-the.svg" alt="{{ i18n.logoAlt[page.lang] }}" class="logo"> | ||
</a> | ||
</h1> | ||
<nav class="column col-7 col-md-9 col-sm-12"> | ||
<ul> | ||
<li><a href=" {{ '/' | customLocaleUrl(page.lang) | url }}" class="nav-link">{{ i18n.shop.title[page.lang] }}</a></li> | ||
<li><a href=" {{ i18n.about.url[page.lang] }}" class="nav-link">{{ i18n.about.title[page.lang] }}</a></li> | ||
<li><a href="/" class="nav-link"><span class="badge" data-badge="0" data-initial="YZ">{{ i18n.cart.title[page.lang] }}</span></a></li> | ||
<nav class="column col-7 col-md-9 col-sm-12" aria-label="{{ i18n.aria.navigationMain[page.lang] }}"> | ||
<ul class="nav-list"> | ||
<li><a href="{{ '/' | customLocaleUrl(page.lang) | url }}" class="nav-link">{{ i18n.shopTitle[page.lang] }}</a></li> | ||
<li><a href="{{ i18n.aboutUrl[page.lang] }}" class="nav-link">{{ i18n.aboutTitle[page.lang] }}</a></li> | ||
<li><a href="/" class="nav-link"><span class="badge" data-badge="0" data-initial="YZ">{{ i18n.cartTitle[page.lang] }}</span></a></li> | ||
</ul> | ||
</nav> | ||
<div class="i18n columns col-gapless column"> | ||
<div class="i18n columns col-gapless column col-2 col-md-3 col-sm-12" role="complementary" aria-label="{{ i18n.aria.selectionCurrencyLanguage[page.lang] }}"> | ||
<div class="currency column col-6"> | ||
<button class="btn btn-sm bg-secondary" value="EUR">€</button> | ||
<button class="btn btn-sm " value="USD">$</button> | ||
<button class="btn btn-sm bg-secondary" value="EUR" aria-label="{{ i18n.aria.currencyEur[page.lang] }}">€</button> | ||
<button class="btn btn-sm" value="USD" aria-label="{{ i18n.aria.currencyUsd[page.lang] }}">$</button> | ||
</div> | ||
<div class="language column col-6"> | ||
<a href="{{ page.filePathStem | customLocaleUrl("fr") | url }}" class="btn btn-sm {% if page.lang == 'fr' %}bg-secondary{% endif %}" {% if page.lang == 'fr' %} aria-current="page" {% endif %}>FR</a> | ||
<a href="{{ page.url | locale_url('en') | url }}" class="btn btn-sm {% if page.lang == 'en' %}bg-secondary{% endif %}" {% if page.lang == 'en' %} aria-current="page" {% endif %}>EN</a> | ||
<a href="{{ page.filePathStem | customLocaleUrl("fr") | url }}" class="btn btn-sm {% if page.lang == 'fr' %}bg-secondary{% endif %}" {% if page.lang == 'fr' %} aria-current="page" {% endif %} aria-label="{{ i18n.aria.changeLanguageFr[page.lang] }}">FR</a> | ||
<a href="{{ page.url | locale_url('en') | url }}" class="btn btn-sm {% if page.lang == 'en' %}bg-secondary{% endif %}" {% if page.lang == 'en' %} aria-current="page" {% endif %} aria-label="{{ i18n.aria.changeLanguageEn[page.lang] }}">EN</a> | ||
</div> | ||
</div> | ||
</header> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
--- | ||
layout: default.njk | ||
card: | ||
en: add to basket | ||
fr: ajouter au panier | ||
eleventyComputed: | ||
title: "Fiche produit : {{ titre }}" | ||
card_title: "{{ titre }}" | ||
--- | ||
|
||
<div class="columns"> | ||
<article class="card column col-8 col-xs-12"> | ||
<figure class="card-image column col-8 col-xs-12"> | ||
<img class="img-responsive" src="{{ settings.dirs.img_products | url }}{{ photos[0] }}" alt="{{ i18n.photoAlt[page.lang] | default(photos[0]) }}" /> | ||
<figcaption class="img-caption" aria-label="{{ card_title }} - {{ i18n.aria.productImageCaption[page.lang] }}">{{ card_title }}</figcaption> | ||
</figure> | ||
</article> | ||
<article class="card column col-4 col-xs-12"> | ||
<header class="card-header"> | ||
<h2 class="card-title">{{ card_title }}</h2> | ||
</header> | ||
<section class="card-body"> | ||
<p>{{ description }}</p> | ||
<dl> | ||
{% for key, value in options %} | ||
<dt role="term">{{ key }}{% if page.lang == 'fr'%} {% endif %}: </dt> | ||
<dd role="definition">{{ value }}</dd> | ||
{% endfor %} | ||
</dl> | ||
</section> | ||
<footer class="card-footer"> | ||
<h3 class="card-title h1 price" aria-label="{{ i18n.aria.productPrice[page.lang] }}">{{ price }}</h3> | ||
<button class="btn btn-primary float-right" aria-label="{{ i18n.aria.addToCartButton[page.lang] }} - {{ card_title }}"> | ||
{{ i18n.buttonCartTitle[page.lang] }} | ||
</button> | ||
</footer> | ||
</article> | ||
</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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
--- | ||
layout: product.njk | ||
titre: 茶杯 - CháBēi (petit bol à thé) | ||
description: > | ||
茶杯 - CháBēi en céramique, 1250°C. Pièce unique. | ||
photos: | ||
- manon_tasse_A29-a.jpg | ||
- manon_tasse_A29-b.jpg | ||
price: 15.00 € | ||
options: | ||
dimension: 7 cm x 3 cm | ||
capacité: 40 ml | ||
poids: 135 g | ||
stock: il reste 1 article | ||
--- | ||
|
||
|
Oops, something went wrong.