|
|
@@ -221,7 +221,7 @@ var products = {
|
|
|
"shortDesc": "Los ácidos Linoleico y Linolénico, aportan mayor protección a las células de Langerhans, mejorando notablemente la protección de la piel",
|
|
|
"fullDesc": "Máscara activa. Ayuda a aumentar los mecanismos de defensa de la piel, aportando beneficios en tratamientos de rosácea, acné, cutis graso, manchas cutáneas y pieles desvitalizadas. Aporta ácidos grasos insaturados esenciales, disminuye la inflamación, ayuda a normalizar la piel",
|
|
|
"application": "Aplicar con la piel limpia, luego de retirar Exfoliating Scrub, percibirá un suave picor durante un minuto al llegar a las zonas más profundas de la piel. Dejar actuar durante 20 minutos, observará al retirar una piel suave, limpia y fresca, aún en las instancias más sensibles. Puede combinarse en métodos sinérgicos con Micropeeling o Peeling Biorregulador",
|
|
|
- "actives": ["Acido Linoleico", "Acido Linolénico", "Avena Sativa", "Malva", "Matricaria Chamomilla"],
|
|
|
+ "actives": ["Acido Linolénico", "Avena Sativa", "Malva", "Matricaria Chamomilla"],
|
|
|
"ph": "5,5",
|
|
|
"variants": [{
|
|
|
"code": 2009,
|
|
|
@@ -752,22 +752,23 @@ var Product = function Product(product, key) {
|
|
|
className: "product-body"
|
|
|
}, dom("p", {
|
|
|
className: "product-short-desc"
|
|
|
- }, product.shortDesc), Section('Descripción', product.fullDesc), product.application && Section('Aplicación', product.application), product.actives && Section('Activos', product.actives.map(function (a, i) {
|
|
|
- return Tag(a, i, 'is-active');
|
|
|
- }), product.ph && Tag("PH ".concat(product.ph), null, 'is-ph'))));
|
|
|
+ }, product.shortDesc), Section('Descripción', product.fullDesc), product.application && Section('Aplicación', product.application), product.actives && Section('Activos', product.actives.join(', '), product.ph && Tag("PH ".concat(product.ph), null, 'is-ph'))));
|
|
|
};
|
|
|
|
|
|
var Category = function Category(categoryName, products) {
|
|
|
- return dom("div", {
|
|
|
- className: "category-container"
|
|
|
- }, dom("div", {
|
|
|
+ return dom("table", {
|
|
|
+ className: "category-container table is-fullwidth"
|
|
|
+ }, dom("thead", {
|
|
|
className: "category",
|
|
|
id: mkCategoryTag(categoryName)
|
|
|
- }, dom("h2", {
|
|
|
+ }, dom("tr", null, dom("th", null, dom("h2", {
|
|
|
className: "category-name"
|
|
|
- }, categoryName)), products.map(function (p, i) {
|
|
|
- return Product(p, i);
|
|
|
- }));
|
|
|
+ }, categoryName)))), dom("tbody", null, products.map(function (p, i) {
|
|
|
+ return dom("tr", null, dom("td", null, Product(p, i)));
|
|
|
+ })), dom("tfoot", null, dom("tr", null, dom("td", null, dom("div", {
|
|
|
+ class: "footer-space",
|
|
|
+ height: "20px"
|
|
|
+ }, "\xA0")))));
|
|
|
};
|
|
|
|
|
|
var ToC = function ToC() {
|
|
|
@@ -787,33 +788,6 @@ var ToC = function ToC() {
|
|
|
})));
|
|
|
};
|
|
|
|
|
|
-{
|
|
|
- /* <div className="table-of-content container">
|
|
|
- <h2>Indice</h2>
|
|
|
- <div className="toc-container">
|
|
|
- {
|
|
|
- categories.map((categoryName, i) => (
|
|
|
- <div className="columns is-mobile">
|
|
|
- <div className="column is-11">
|
|
|
- <a href={`#${mkCategoryTag(categoryName)}`} className='toc-title'>{categoryName}</a>
|
|
|
- {
|
|
|
- products[categoryName].map(product => (
|
|
|
- <div className='toc-content'>
|
|
|
- { product.name }
|
|
|
- </div>
|
|
|
- ))
|
|
|
- }
|
|
|
- </div>
|
|
|
- <div className="column is-1">
|
|
|
- { i }
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- ))
|
|
|
- }
|
|
|
- </div>
|
|
|
- </div> */
|
|
|
-}
|
|
|
-
|
|
|
var Vademecum = function Vademecum() {
|
|
|
return categories.map(function (categoryName, i) {
|
|
|
return dom("div", {
|
|
|
@@ -823,4 +797,4 @@ var Vademecum = function Vademecum() {
|
|
|
};
|
|
|
|
|
|
var domContainer = document.querySelector('#vademecum');
|
|
|
-ReactDOM.render(dom("div", null, ToC(), Vademecum()), domContainer);
|
|
|
+ReactDOM.render(dom("div", null, ToC(), Vademecum()), domContainer);
|