From 9fc8b341418472bd2e94207859f7e53cc3e8c86e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tibor=20Kul=C4=8D=C3=A1r?= Date: Wed, 3 Aug 2022 17:20:30 +0200 Subject: [PATCH] remove most of the warnigns in terminal and browser console --- src/assets/img/cloud-outline.svg | 2 +- src/assets/img/cz-flag.svg | 2 +- src/assets/img/delivery-flow.svg | 2 +- src/assets/img/karmen-logo-rect.svg | 2 +- src/assets/img/karmen-logo-stroked.svg | 2 +- src/assets/img/karmen-logo.svg | 2 +- src/assets/img/karmen-plus-strawberry.svg | 2 +- src/assets/img/pill-outline.svg | 8 ++++---- src/components/product-detail/karmen-cloud.js | 12 ++++++------ src/components/product-detail/karmen-pill.js | 9 +-------- src/components/sitenav.js | 6 +++--- src/components/video.js | 4 ++++ .../components/product-detail/karmen-cloud.json | 2 +- .../src/components/product-detail/karmen-pill.json | 2 +- src/i18n/translations/cs.json | 1 + src/i18n/translations/en.json | 1 + src/styles/_settings.scss | 14 +++++++------- src/styles/hamburgers/_base.scss | 5 ++++- src/styles/karmen/mixins/baseline.scss | 14 ++++++++------ src/styles/karmen/mixins/utils.scss | 4 +++- 20 files changed, 51 insertions(+), 45 deletions(-) diff --git a/src/assets/img/cloud-outline.svg b/src/assets/img/cloud-outline.svg index b518595..43813d4 100644 --- a/src/assets/img/cloud-outline.svg +++ b/src/assets/img/cloud-outline.svg @@ -1,6 +1,6 @@ - + diff --git a/src/assets/img/cz-flag.svg b/src/assets/img/cz-flag.svg index 80153fc..0e6083e 100644 --- a/src/assets/img/cz-flag.svg +++ b/src/assets/img/cz-flag.svg @@ -6,7 +6,7 @@ - + diff --git a/src/assets/img/delivery-flow.svg b/src/assets/img/delivery-flow.svg index 499ff34..6c1c762 100644 --- a/src/assets/img/delivery-flow.svg +++ b/src/assets/img/delivery-flow.svg @@ -1,6 +1,6 @@ - + diff --git a/src/assets/img/karmen-logo-rect.svg b/src/assets/img/karmen-logo-rect.svg index 528604a..5e539ef 100644 --- a/src/assets/img/karmen-logo-rect.svg +++ b/src/assets/img/karmen-logo-rect.svg @@ -1,6 +1,6 @@ - +
@@ -62,22 +62,22 @@ const ProductBlockKarmenCloud = ({ props }) => { > Přihlásit se - - +
Návod jak připojit Octoprint + manualLink: Návod jak připojit Octoprint }} />
diff --git a/src/components/product-detail/karmen-pill.js b/src/components/product-detail/karmen-pill.js index b29895e..8a03688 100644 --- a/src/components/product-detail/karmen-pill.js +++ b/src/components/product-detail/karmen-pill.js @@ -1,6 +1,6 @@ import React from "react" import { useStaticQuery, graphql, Link } from "gatsby" -import { FormattedMessage, useIntl } from "react-intl" +import { FormattedMessage } from "react-intl" import "react-multi-carousel/lib/styles.css" @@ -9,8 +9,6 @@ import { BackgroundImage } from "components/image" import KarmenPillGalleryCarousel from "components/product-detail/karmen-pill-gallery" import czFlag from "assets/img/cz-flag.svg" -import iconPackage from "assets/img/icon-package.png" -import iconTruck from "assets/img/icon-truck.png" import logoCura from "assets/img/logo-cura.png" import logoPrusaSlicer from "assets/img/logo-prusa-slicer.png" @@ -21,11 +19,6 @@ import logoIkem from "assets/img/logo-ikem.png" import logoTrebesin from "assets/img/logo-prumyslovka-trebesin.png" const ProductBlockKarmenPill = ({ props }) => { - const intl = useIntl() - const buyPillLink = - intl.locale === "cs" - ? "/cs/koupit/" - : "/en/koupit/" const data = useStaticQuery(graphql` query { site { diff --git a/src/components/sitenav.js b/src/components/sitenav.js index 87050b1..cd4a606 100644 --- a/src/components/sitenav.js +++ b/src/components/sitenav.js @@ -1,7 +1,7 @@ import React, { useState } from "react" import classNames from "classnames" import { useStaticQuery, graphql, Link } from "gatsby" -import { useIntl, FormattedMessage } from "react-intl" +import { useIntl } from "react-intl" import { slide as MobileMenu } from "react-burger-menu" import karmenLogoImg from "assets/img/karmen-logo-stroked.svg" @@ -124,7 +124,7 @@ const Sitenav = () => { stroke="currentColor" className="sitenav__icon" > - + @@ -151,7 +151,7 @@ const Sitenav = () => { stroke="currentColor" className="sitenav__icon" > - + diff --git a/src/components/video.js b/src/components/video.js index c1516e7..85aa059 100644 --- a/src/components/video.js +++ b/src/components/video.js @@ -91,6 +91,10 @@ const VideoPlayer = props => { poster={props.poster} onEnded={videoEnded} > + Your browser does not support the video tag.
diff --git a/src/i18n/messages/src/components/product-detail/karmen-cloud.json b/src/i18n/messages/src/components/product-detail/karmen-cloud.json index 509c11c..91632af 100644 --- a/src/i18n/messages/src/components/product-detail/karmen-cloud.json +++ b/src/i18n/messages/src/components/product-detail/karmen-cloud.json @@ -1 +1 @@ -[{"id":"product-detail-cloud.title","defaultMessage":"Karmen Cloud","file":"src/components/product-detail/karmen-cloud.js","start":{"line":36,"column":12,"index":1175},"end":{"line":39,"column":14,"index":1297}},{"id":"product-detail-cloud.desc","defaultMessage":"Ovládá jednu či více 3D tiskáren z webového prohlížeče počítače, tabletu či telefonu. Umožňuje např. zadávat tiskové úlohy, sledovat průběh tisku či distribuovat tisk mezi více tiskárnami, a díky použitému softwarovému řešení je kompatibilní se širokou škálou tiskáren i slicerů.","file":"src/components/product-detail/karmen-cloud.js","start":{"line":42,"column":12,"index":1375},"end":{"line":45,"column":14,"index":1763}},{"id":"product-detail-cloud.price","defaultMessage":"Zdarma","file":"src/components/product-detail/karmen-cloud.js","start":{"line":48,"column":12,"index":1843},"end":{"line":51,"column":14,"index":1959}},{"id":"product-detail-cloud.price-vat","defaultMessage":"Zdarma pro všechny","file":"src/components/product-detail/karmen-cloud.js","start":{"line":54,"column":12,"index":2043},"end":{"line":57,"column":14,"index":2175}},{"id":"product-detail-cloud.register_button","defaultMessage":"Registrovat se","file":"src/components/product-detail/karmen-cloud.js","start":{"line":69,"column":12,"index":2539},"end":{"line":72,"column":14,"index":2673}},{"id":"pricing-block.manual","defaultMessage":"{manualLink}","file":"src/components/product-detail/karmen-cloud.js","start":{"line":76,"column":12,"index":2809},"end":{"line":82,"column":14,"index":3048}},{"id":"product-detail-cloud.title_functions","defaultMessage":"Funkce Karmen Cloud","file":"src/components/product-detail/karmen-cloud.js","start":{"line":91,"column":16,"index":3357},"end":{"line":94,"column":18,"index":3508}},{"id":"product-detail-cloud.function_stats_headline","defaultMessage":"Statistiky tisku","file":"src/components/product-detail/karmen-cloud.js","start":{"line":101,"column":22,"index":3840},"end":{"line":104,"column":24,"index":4014}},{"id":"product-detail-cloud.function_stats_desc","defaultMessage":"Vaší pozornosti už neunikne žádný údaj, jako například teplota senzorů nebo podrobnosti o probíhajícím tisku.","file":"src/components/product-detail/karmen-cloud.js","start":{"line":107,"column":22,"index":4087},"end":{"line":110,"column":24,"index":4350}},{"id":"product-detail-cloud.function_control_headline","defaultMessage":"Základní ovládání tiskárny","file":"src/components/product-detail/karmen-cloud.js","start":{"line":116,"column":22,"index":4606},"end":{"line":119,"column":24,"index":4792}},{"id":"product-detail-cloud.function_control_desc","defaultMessage":"Ovládaní z jediného přehledného okna webového prohlížeče, nechybí ani pokročilá zpráva uživatelů, tiskových souborů či tvorba tiskových front.","file":"src/components/product-detail/karmen-cloud.js","start":{"line":122,"column":22,"index":4865},"end":{"line":125,"column":24,"index":5163}},{"id":"product-detail-cloud.function_interface_headline","defaultMessage":"Jedno rozhraní","file":"src/components/product-detail/karmen-cloud.js","start":{"line":131,"column":22,"index":5421},"end":{"line":134,"column":24,"index":5597}},{"id":"product-detail-cloud.function_interface_desc","defaultMessage":"Spojte tiskárny stejných nebo různych typů z různych míst v jednom rozhraní","file":"src/components/product-detail/karmen-cloud.js","start":{"line":137,"column":22,"index":5670},"end":{"line":140,"column":24,"index":5903}},{"id":"product-detail-pill.compatibility_title","defaultMessage":"Kompatibilita s nejrozširenejšími slicery","file":"src/components/product-detail/karmen-cloud.js","start":{"line":148,"column":16,"index":6152},"end":{"line":151,"column":18,"index":6328}},{"id":"product-detail-pill.compatibility_text","defaultMessage":"Karmen je kompatibilní s nejrozšířenějšími slicery včetně Slic3r, PrusaSlicer či Ultimaker Cura.","file":"src/components/product-detail/karmen-cloud.js","start":{"line":155,"column":18,"index":6440},"end":{"line":158,"column":20,"index":6676}}] +[{"id":"product-detail-cloud.title","defaultMessage":"Karmen Cloud","file":"src/components/product-detail/karmen-cloud.js","start":{"line":36,"column":12,"index":1168},"end":{"line":39,"column":14,"index":1290}},{"id":"product-detail-cloud.desc","defaultMessage":"Ovládá jednu či více 3D tiskáren z webového prohlížeče počítače, tabletu či telefonu. Umožňuje např. zadávat tiskové úlohy, sledovat průběh tisku či distribuovat tisk mezi více tiskárnami, a díky použitému softwarovému řešení je kompatibilní se širokou škálou tiskáren i slicerů.","file":"src/components/product-detail/karmen-cloud.js","start":{"line":42,"column":12,"index":1368},"end":{"line":45,"column":14,"index":1756}},{"id":"product-detail-cloud.price","defaultMessage":"Zdarma","file":"src/components/product-detail/karmen-cloud.js","start":{"line":48,"column":12,"index":1836},"end":{"line":51,"column":14,"index":1952}},{"id":"product-detail-cloud.price-vat","defaultMessage":"Zdarma pro všechny","file":"src/components/product-detail/karmen-cloud.js","start":{"line":54,"column":12,"index":2036},"end":{"line":57,"column":14,"index":2168}},{"id":"product-detail-cloud.register_button","defaultMessage":"Registrovat se","file":"src/components/product-detail/karmen-cloud.js","start":{"line":69,"column":12,"index":2531},"end":{"line":72,"column":14,"index":2665}},{"id":"pricing-block.manual","defaultMessage":"{manualLink}","file":"src/components/product-detail/karmen-cloud.js","start":{"line":76,"column":12,"index":2798},"end":{"line":82,"column":14,"index":3036}},{"id":"product-detail-cloud.title_functions","defaultMessage":"Funkce Karmen Cloud","file":"src/components/product-detail/karmen-cloud.js","start":{"line":91,"column":16,"index":3345},"end":{"line":94,"column":18,"index":3496}},{"id":"product-detail-cloud.function_stats_headline","defaultMessage":"Statistiky tisku","file":"src/components/product-detail/karmen-cloud.js","start":{"line":101,"column":22,"index":3828},"end":{"line":104,"column":24,"index":4002}},{"id":"product-detail-cloud.function_stats_desc","defaultMessage":"Vaší pozornosti už neunikne žádný údaj, jako například teplota senzorů nebo podrobnosti o probíhajícím tisku.","file":"src/components/product-detail/karmen-cloud.js","start":{"line":107,"column":22,"index":4075},"end":{"line":110,"column":24,"index":4338}},{"id":"product-detail-cloud.function_control_headline","defaultMessage":"Základní ovládání tiskárny","file":"src/components/product-detail/karmen-cloud.js","start":{"line":116,"column":22,"index":4594},"end":{"line":119,"column":24,"index":4780}},{"id":"product-detail-cloud.function_control_desc","defaultMessage":"Ovládaní z jediného přehledného okna webového prohlížeče, nechybí ani pokročilá zpráva uživatelů, tiskových souborů či tvorba tiskových front.","file":"src/components/product-detail/karmen-cloud.js","start":{"line":122,"column":22,"index":4853},"end":{"line":125,"column":24,"index":5151}},{"id":"product-detail-cloud.function_interface_headline","defaultMessage":"Jedno rozhraní","file":"src/components/product-detail/karmen-cloud.js","start":{"line":131,"column":22,"index":5409},"end":{"line":134,"column":24,"index":5585}},{"id":"product-detail-cloud.function_interface_desc","defaultMessage":"Spojte tiskárny stejných nebo různych typů z různych míst v jednom rozhraní","file":"src/components/product-detail/karmen-cloud.js","start":{"line":137,"column":22,"index":5658},"end":{"line":140,"column":24,"index":5891}},{"id":"product-detail-pill.compatibility_title","defaultMessage":"Kompatibilita s nejrozširenejšími slicery","file":"src/components/product-detail/karmen-cloud.js","start":{"line":148,"column":16,"index":6140},"end":{"line":151,"column":18,"index":6316}},{"id":"product-detail-pill.compatibility_text","defaultMessage":"Karmen je kompatibilní s nejrozšířenějšími slicery včetně Slic3r, PrusaSlicer či Ultimaker Cura.","file":"src/components/product-detail/karmen-cloud.js","start":{"line":155,"column":18,"index":6428},"end":{"line":158,"column":20,"index":6664}}] diff --git a/src/i18n/messages/src/components/product-detail/karmen-pill.json b/src/i18n/messages/src/components/product-detail/karmen-pill.json index af4d8f7..bb666e1 100644 --- a/src/i18n/messages/src/components/product-detail/karmen-pill.json +++ b/src/i18n/messages/src/components/product-detail/karmen-pill.json @@ -1 +1 @@ -[{"id":"product-detail-pill.title","defaultMessage":"Karmen Pill","file":"src/components/product-detail/karmen-pill.js","start":{"line":60,"column":12,"index":1820},"end":{"line":63,"column":14,"index":1940}},{"id":"product-detail-pill.desc","defaultMessage":"Karmen Pill je zařízení, které zajistí zabezpečené ovládání a monitoring 3D tiskárny přes cloudovou službu Karmen.","file":"src/components/product-detail/karmen-pill.js","start":{"line":66,"column":12,"index":2026},"end":{"line":69,"column":14,"index":2248}},{"id":"product-detail-pill.specs_title","defaultMessage":"Karmen Pill se skládá z:","file":"src/components/product-detail/karmen-pill.js","start":{"line":74,"column":14,"index":2303},"end":{"line":77,"column":16,"index":2448}},{"id":"product-detail-pill.specs01","defaultMessage":"základní desky","file":"src/components/product-detail/karmen-pill.js","start":{"line":82,"column":16,"index":2524},"end":{"line":85,"column":18,"index":2661}},{"id":"product-detail-pill.specs02","defaultMessage":"webkamery a ostřícího kolečka","file":"src/components/product-detail/karmen-pill.js","start":{"line":88,"column":16,"index":2717},"end":{"line":91,"column":18,"index":2869}},{"id":"product-detail-pill.specs03","defaultMessage":"led diody","file":"src/components/product-detail/karmen-pill.js","start":{"line":94,"column":16,"index":2925},"end":{"line":97,"column":18,"index":3057}},{"id":"product-detail-pill.specs04","defaultMessage":"adaptérů a propojovacích kabelů","file":"src/components/product-detail/karmen-pill.js","start":{"line":100,"column":16,"index":3113},"end":{"line":103,"column":18,"index":3267}},{"id":"product-detail-pill.specs05","defaultMessage":"3D tištěných krytů (modely pro tisk - odkaz níže)","file":"src/components/product-detail/karmen-pill.js","start":{"line":106,"column":16,"index":3323},"end":{"line":109,"column":18,"index":3495}},{"id":"product-detail-pill.specs_appendix","defaultMessage":"Instalace je velmi jednoduchá, držáky k tiskárně a další díly jsou k dispozici zde","file":"src/components/product-detail/karmen-pill.js","start":{"line":112,"column":12,"index":3546},"end":{"line":118,"column":14,"index":3848}},{"id":"product-detail-pill.made_in","defaultMessage":"Karmen vyrábíme v Čechách.","file":"src/components/product-detail/karmen-pill.js","start":{"line":124,"column":12,"index":4041},"end":{"line":127,"column":14,"index":4178}},{"id":"pricing-block.cta_eshop","defaultMessage":"Do e-shopu","file":"src/components/product-detail/karmen-pill.js","start":{"line":130,"column":12,"index":4333},"end":{"line":133,"column":14,"index":4450}},{"id":"product-detail-pill.subheading_in-work","defaultMessage":"Karmen v praxi","file":"src/components/product-detail/karmen-pill.js","start":{"line":143,"column":16,"index":4820},"end":{"line":146,"column":18,"index":4968}},{"id":"product-detail-pill.title_functions","defaultMessage":"Funkce Karmen Pill","file":"src/components/product-detail/karmen-pill.js","start":{"line":155,"column":16,"index":5277},"end":{"line":158,"column":18,"index":5426}},{"id":"product-detail-pill.functions_text","defaultMessage":"Umožňuje přenos obrazu z kamery do webového rozhraní, přes nějž poskytuje uživateli rovněž informace o teplotě senzorů a probíhajícím tisku. Umožňuje také základní ovládání tiskárny.","file":"src/components/product-detail/karmen-pill.js","start":{"line":162,"column":18,"index":5538},"end":{"line":165,"column":20,"index":5856}},{"id":"product-detail-pill.function_plug_headline","defaultMessage":"Plug & Play","file":"src/components/product-detail/karmen-pill.js","start":{"line":173,"column":22,"index":6209},"end":{"line":176,"column":24,"index":6376}},{"id":"product-detail-pill.function_plug_desc","defaultMessage":"Připojíte na wifi a následně k tiskárně a je to.","file":"src/components/product-detail/karmen-pill.js","start":{"line":179,"column":22,"index":6449},"end":{"line":182,"column":24,"index":6649}},{"id":"product-detail-pill.function_wifi_headline","defaultMessage":"Wi-Fi konektivita","file":"src/components/product-detail/karmen-pill.js","start":{"line":188,"column":22,"index":6902},"end":{"line":191,"column":24,"index":7075}},{"id":"product-detail-pill.function_wifi_desc","defaultMessage":"Z každé lokální 3D tiskárny snadno udělá tiskárnu síťovou.","file":"src/components/product-detail/karmen-pill.js","start":{"line":194,"column":22,"index":7148},"end":{"line":197,"column":24,"index":7358}},{"id":"product-detail-pill.function_usb_headline","defaultMessage":"USB propojení s tiskárnou","file":"src/components/product-detail/karmen-pill.js","start":{"line":203,"column":22,"index":7610},"end":{"line":206,"column":24,"index":7790}},{"id":"product-detail-pill.function_usb_desc","defaultMessage":"Pro připojení vám stačí jeden USB port.","file":"src/components/product-detail/karmen-pill.js","start":{"line":209,"column":22,"index":7863},"end":{"line":212,"column":24,"index":8053}},{"id":"product-detail-pill.function_light_headline","defaultMessage":"Přisvětlovací dioda","file":"src/components/product-detail/karmen-pill.js","start":{"line":218,"column":22,"index":8307},"end":{"line":221,"column":24,"index":8483}},{"id":"product-detail-pill.function_light_desc","defaultMessage":"Karmen Vám přisvítí díky LED didodě.","file":"src/components/product-detail/karmen-pill.js","start":{"line":224,"column":22,"index":8556},"end":{"line":227,"column":24,"index":8745}},{"id":"product-detail-pill.function_camera_headline","defaultMessage":"Obraz z kamery","file":"src/components/product-detail/karmen-pill.js","start":{"line":233,"column":22,"index":9000},"end":{"line":236,"column":24,"index":9172}},{"id":"product-detail-pill.function_camera_desc","defaultMessage":"U tiskárny už nemusíte stát osobně, celý průběh 3D tisku můžete sledovat na dálku kdykoli a odkudkoli.","file":"src/components/product-detail/karmen-pill.js","start":{"line":239,"column":22,"index":9245},"end":{"line":242,"column":24,"index":9501}},{"id":"product-detail-pill.function_compatibility_headline","defaultMessage":"Kompatibilita se slicery","file":"src/components/product-detail/karmen-pill.js","start":{"line":248,"column":22,"index":9756},"end":{"line":251,"column":24,"index":9945}},{"id":"product-detail-pill.function_compatibility_desc","defaultMessage":"Jejich počet neustále rozšiřujeme.","file":"src/components/product-detail/karmen-pill.js","start":{"line":254,"column":22,"index":10018},"end":{"line":257,"column":24,"index":10213}},{"id":"product-detail-pill.compatibility_title","defaultMessage":"Kompatibilita s nejrozširenejšími slicery","file":"src/components/product-detail/karmen-pill.js","start":{"line":265,"column":16,"index":10462},"end":{"line":268,"column":18,"index":10638}},{"id":"product-detail-pill.compatibility_text","defaultMessage":"Karmen je kompatibilní s nejrozšířenějšími slicery včetně Slic3r, PrusaSlicer či Ultimaker Cura.","file":"src/components/product-detail/karmen-pill.js","start":{"line":272,"column":18,"index":10750},"end":{"line":275,"column":20,"index":10986}},{"id":"product-detail-pill.user_proved_title","defaultMessage":"Ověřeno uživateli","file":"src/components/product-detail/karmen-pill.js","start":{"line":292,"column":16,"index":11939},"end":{"line":295,"column":18,"index":12089}},{"id":"product-detail-pill.user_proved_text","defaultMessage":"Za dva roky fungování používá nyní Karmen přes 120 uživatelů. Zákazníci z řad jednotlivců, firem i velkých organizací.","file":"src/components/product-detail/karmen-pill.js","start":{"line":299,"column":18,"index":12201},"end":{"line":302,"column":20,"index":12457}}] +[{"id":"product-detail-pill.title","defaultMessage":"Karmen Pill","file":"src/components/product-detail/karmen-pill.js","start":{"line":53,"column":12,"index":1591},"end":{"line":56,"column":14,"index":1711}},{"id":"product-detail-pill.desc","defaultMessage":"Karmen Pill je zařízení, které zajistí zabezpečené ovládání a monitoring 3D tiskárny přes cloudovou službu Karmen.","file":"src/components/product-detail/karmen-pill.js","start":{"line":59,"column":12,"index":1797},"end":{"line":62,"column":14,"index":2019}},{"id":"product-detail-pill.specs_title","defaultMessage":"Karmen Pill se skládá z:","file":"src/components/product-detail/karmen-pill.js","start":{"line":67,"column":14,"index":2074},"end":{"line":70,"column":16,"index":2219}},{"id":"product-detail-pill.specs01","defaultMessage":"základní desky","file":"src/components/product-detail/karmen-pill.js","start":{"line":75,"column":16,"index":2295},"end":{"line":78,"column":18,"index":2432}},{"id":"product-detail-pill.specs02","defaultMessage":"webkamery a ostřícího kolečka","file":"src/components/product-detail/karmen-pill.js","start":{"line":81,"column":16,"index":2488},"end":{"line":84,"column":18,"index":2640}},{"id":"product-detail-pill.specs03","defaultMessage":"led diody","file":"src/components/product-detail/karmen-pill.js","start":{"line":87,"column":16,"index":2696},"end":{"line":90,"column":18,"index":2828}},{"id":"product-detail-pill.specs04","defaultMessage":"adaptérů a propojovacích kabelů","file":"src/components/product-detail/karmen-pill.js","start":{"line":93,"column":16,"index":2884},"end":{"line":96,"column":18,"index":3038}},{"id":"product-detail-pill.specs05","defaultMessage":"3D tištěných krytů (modely pro tisk - odkaz níže)","file":"src/components/product-detail/karmen-pill.js","start":{"line":99,"column":16,"index":3094},"end":{"line":102,"column":18,"index":3266}},{"id":"product-detail-pill.specs_appendix","defaultMessage":"Instalace je velmi jednoduchá, držáky k tiskárně a další díly jsou k dispozici zde","file":"src/components/product-detail/karmen-pill.js","start":{"line":105,"column":12,"index":3317},"end":{"line":111,"column":14,"index":3619}},{"id":"product-detail-pill.made_in","defaultMessage":"Karmen vyrábíme v Čechách.","file":"src/components/product-detail/karmen-pill.js","start":{"line":117,"column":12,"index":3812},"end":{"line":120,"column":14,"index":3949}},{"id":"pricing-block.cta_eshop","defaultMessage":"Do e-shopu","file":"src/components/product-detail/karmen-pill.js","start":{"line":123,"column":12,"index":4104},"end":{"line":126,"column":14,"index":4221}},{"id":"product-detail-pill.subheading_in-work","defaultMessage":"Karmen v praxi","file":"src/components/product-detail/karmen-pill.js","start":{"line":136,"column":16,"index":4591},"end":{"line":139,"column":18,"index":4739}},{"id":"product-detail-pill.title_functions","defaultMessage":"Funkce Karmen Pill","file":"src/components/product-detail/karmen-pill.js","start":{"line":148,"column":16,"index":5048},"end":{"line":151,"column":18,"index":5197}},{"id":"product-detail-pill.functions_text","defaultMessage":"Umožňuje přenos obrazu z kamery do webového rozhraní, přes nějž poskytuje uživateli rovněž informace o teplotě senzorů a probíhajícím tisku. Umožňuje také základní ovládání tiskárny.","file":"src/components/product-detail/karmen-pill.js","start":{"line":155,"column":18,"index":5309},"end":{"line":158,"column":20,"index":5627}},{"id":"product-detail-pill.function_plug_headline","defaultMessage":"Plug & Play","file":"src/components/product-detail/karmen-pill.js","start":{"line":166,"column":22,"index":5980},"end":{"line":169,"column":24,"index":6147}},{"id":"product-detail-pill.function_plug_desc","defaultMessage":"Připojíte na wifi a následně k tiskárně a je to.","file":"src/components/product-detail/karmen-pill.js","start":{"line":172,"column":22,"index":6220},"end":{"line":175,"column":24,"index":6420}},{"id":"product-detail-pill.function_wifi_headline","defaultMessage":"Wi-Fi konektivita","file":"src/components/product-detail/karmen-pill.js","start":{"line":181,"column":22,"index":6673},"end":{"line":184,"column":24,"index":6846}},{"id":"product-detail-pill.function_wifi_desc","defaultMessage":"Z každé lokální 3D tiskárny snadno udělá tiskárnu síťovou.","file":"src/components/product-detail/karmen-pill.js","start":{"line":187,"column":22,"index":6919},"end":{"line":190,"column":24,"index":7129}},{"id":"product-detail-pill.function_usb_headline","defaultMessage":"USB propojení s tiskárnou","file":"src/components/product-detail/karmen-pill.js","start":{"line":196,"column":22,"index":7381},"end":{"line":199,"column":24,"index":7561}},{"id":"product-detail-pill.function_usb_desc","defaultMessage":"Pro připojení vám stačí jeden USB port.","file":"src/components/product-detail/karmen-pill.js","start":{"line":202,"column":22,"index":7634},"end":{"line":205,"column":24,"index":7824}},{"id":"product-detail-pill.function_light_headline","defaultMessage":"Přisvětlovací dioda","file":"src/components/product-detail/karmen-pill.js","start":{"line":211,"column":22,"index":8078},"end":{"line":214,"column":24,"index":8254}},{"id":"product-detail-pill.function_light_desc","defaultMessage":"Karmen Vám přisvítí díky LED didodě.","file":"src/components/product-detail/karmen-pill.js","start":{"line":217,"column":22,"index":8327},"end":{"line":220,"column":24,"index":8516}},{"id":"product-detail-pill.function_camera_headline","defaultMessage":"Obraz z kamery","file":"src/components/product-detail/karmen-pill.js","start":{"line":226,"column":22,"index":8771},"end":{"line":229,"column":24,"index":8943}},{"id":"product-detail-pill.function_camera_desc","defaultMessage":"U tiskárny už nemusíte stát osobně, celý průběh 3D tisku můžete sledovat na dálku kdykoli a odkudkoli.","file":"src/components/product-detail/karmen-pill.js","start":{"line":232,"column":22,"index":9016},"end":{"line":235,"column":24,"index":9272}},{"id":"product-detail-pill.function_compatibility_headline","defaultMessage":"Kompatibilita se slicery","file":"src/components/product-detail/karmen-pill.js","start":{"line":241,"column":22,"index":9527},"end":{"line":244,"column":24,"index":9716}},{"id":"product-detail-pill.function_compatibility_desc","defaultMessage":"Jejich počet neustále rozšiřujeme.","file":"src/components/product-detail/karmen-pill.js","start":{"line":247,"column":22,"index":9789},"end":{"line":250,"column":24,"index":9984}},{"id":"product-detail-pill.compatibility_title","defaultMessage":"Kompatibilita s nejrozširenejšími slicery","file":"src/components/product-detail/karmen-pill.js","start":{"line":258,"column":16,"index":10233},"end":{"line":261,"column":18,"index":10409}},{"id":"product-detail-pill.compatibility_text","defaultMessage":"Karmen je kompatibilní s nejrozšířenějšími slicery včetně Slic3r, PrusaSlicer či Ultimaker Cura.","file":"src/components/product-detail/karmen-pill.js","start":{"line":265,"column":18,"index":10521},"end":{"line":268,"column":20,"index":10757}},{"id":"product-detail-pill.user_proved_title","defaultMessage":"Ověřeno uživateli","file":"src/components/product-detail/karmen-pill.js","start":{"line":285,"column":16,"index":11710},"end":{"line":288,"column":18,"index":11860}},{"id":"product-detail-pill.user_proved_text","defaultMessage":"Za dva roky fungování používá nyní Karmen přes 120 uživatelů. Zákazníci z řad jednotlivců, firem i velkých organizací.","file":"src/components/product-detail/karmen-pill.js","start":{"line":292,"column":18,"index":11972},"end":{"line":295,"column":20,"index":12228}}] diff --git a/src/i18n/translations/cs.json b/src/i18n/translations/cs.json index 8a09b58..781c6d7 100644 --- a/src/i18n/translations/cs.json +++ b/src/i18n/translations/cs.json @@ -131,6 +131,7 @@ "pricing-block.full_price_vat": "4 235 KČ s DPH", "pricing-block.full_title": "Chci kompletní řešení", "pricing-block.headline": "Jaké řešení vybrat?", + "pricing-block.manual": "{manualLink}", "pricing-block.myself_desc": "Stáhněte si náš plugin do Vašeho Octoprintu, připojte si své tiskárny do Karmen Cloudu a webovou službu na ovládání 3D tiskáren nechte na nás.", "pricing-block.myself_price": "Karmen Cloud je zdarma pro všechny", "pricing-block.myself_price_vat": "ZDARMA", diff --git a/src/i18n/translations/en.json b/src/i18n/translations/en.json index 87d7578..00c1734 100644 --- a/src/i18n/translations/en.json +++ b/src/i18n/translations/en.json @@ -127,6 +127,7 @@ "pricing-block.full_price_vat": "4 235 KČ s DPH", "pricing-block.full_title": "Chci hotové řešení", "pricing-block.headline": "Jaké řešení si vybrat?", + "pricing-block.manual": "{manualLink}", "pricing-block.myself_desc": "Bez Karmen Pill se obejdete, pokud máte vlastní zařízení pro monitoring tisku kompatibilní s Octoprintem.", "pricing-block.myself_price": "Karmen Cloud je zdarma pro všechny", "pricing-block.myself_price_vat": "ZDARMA", diff --git a/src/styles/_settings.scss b/src/styles/_settings.scss index 3d4cec2..e5ce4bc 100755 --- a/src/styles/_settings.scss +++ b/src/styles/_settings.scss @@ -63,7 +63,7 @@ $selection-color: map-get($palette, red); $blog-listing-splitter-border-color: map-get($palette, black); -$sitenav-background: hsla(0, 0, 100%, .89); +$sitenav-background: hsla(0, 0%, 100%, .89); $page-container-max-width: 120rem; // ~1920px $page-content-max-width: 65rem; // ~1344px @@ -74,7 +74,7 @@ $sitenav-breakpoint: 1280px; // Buttons $button-variants: ( - primary: ( + 'primary': ( foreground: map-get($palette, white), background: map-get($palette, black), foregroundHover: map-get($palette, white), @@ -82,7 +82,7 @@ $button-variants: ( borderColor: map-get($palette, black), borderColorHover: map-get($palette, red) ), - primaryToWhite: ( + 'primaryToWhite': ( foreground: map-get($palette, white), background: map-get($palette, black), foregroundHover: map-get($palette, black), @@ -90,7 +90,7 @@ $button-variants: ( borderColor: map-get($palette, black), borderColorHover: map-get($palette, white) ), - red: ( + 'red': ( foreground: map-get($palette, white), background: map-get($palette, red), foregroundHover: map-get($palette, white), @@ -98,7 +98,7 @@ $button-variants: ( borderColor: map-get($palette, red), borderColorHover: map-get($palette, black) ), - outlineBlack: ( + 'outlineBlack': ( foreground: map-get($palette, black), background: map-get($palette, white), foregroundHover: map-get($palette, white), @@ -111,12 +111,12 @@ $button-variants: ( // Sharebox $sharebox-variants: ( - facebook: ( + 'facebook': ( foreground: getBrandInfo(facebook, alt), background:getBrandInfo(facebook, main), icon: getBrandInfo(facebook, icon), ), - twitter: ( + 'twitter': ( foreground: getBrandInfo(twitter, alt), background:getBrandInfo(twitter, main), icon: getBrandInfo(twitter, icon), diff --git a/src/styles/hamburgers/_base.scss b/src/styles/hamburgers/_base.scss index 830f21a..c880e02 100755 --- a/src/styles/hamburgers/_base.scss +++ b/src/styles/hamburgers/_base.scss @@ -1,5 +1,8 @@ // Hamburger // ================================================== + +@use "sass:math"; + .hamburger { padding: $hamburger-padding-y $hamburger-padding-x; display: inline-block; @@ -41,7 +44,7 @@ .hamburger-inner { display: block; top: 50%; - margin-top: $hamburger-layer-height / -2; + margin-top: math.div($hamburger-layer-height, -2); &, &::before, diff --git a/src/styles/karmen/mixins/baseline.scss b/src/styles/karmen/mixins/baseline.scss index c870cbe..9bbe833 100644 --- a/src/styles/karmen/mixins/baseline.scss +++ b/src/styles/karmen/mixins/baseline.scss @@ -1,3 +1,5 @@ +@use "sass:math"; + // Number of breakpoints. $breakpoints-limit: length($breakpoints); $breakpoint-keys: map-keys($breakpoints); @@ -13,7 +15,7 @@ $points: map-values($breakpoints); @function calc-rootsize($breakpoint-idx) { // 16 is default font size for most browsers. - @return strip-unit(nth($sizes, $breakpoint-idx)) / 16; + @return math.div(strip-unit(nth($sizes, $breakpoint-idx)), 16); } @@ -23,7 +25,7 @@ $points: map-values($breakpoints); // Loop through breakpoints. @for $i from 2 through $breakpoints-limit { - @media screen and (min-width: strip-unit(nth($points, $i)) / 16 * 1em ) { + @media screen and (min-width: (math.div(strip-unit(nth($points, $i)), 16) * 1em) ) { font-size: calc-rootsize($i) * 100%; } } @@ -41,7 +43,7 @@ $points: map-values($breakpoints); // Loop through breakpoints. @for $i from 2 through $breakpoints-limit { - @media screen and (min-width: strip-unit(nth($points, $i)) / 16 * 1em ) { + @media screen and (min-width: (math.div(strip-unit(nth($points, $i)), 16) * 1em) ) { background-size: 100% $grid-unit; } } @@ -135,10 +137,10 @@ $points: map-values($breakpoints); $size: map-get($scale, $fontsize); $rootsize: map-get($rootsizes, $breakpoint); - $fontsize-rems: strip-unit($size / $rootsize); + $fontsize-rems: strip-unit(math.div($size, $rootsize)); $capheight-rems: $fontsize-rems * $cap-height; $lh-rems: strip-unit(gu($lineheight)); - $push: ($lh-rems - $capheight-rems) / 2; + $push: math.div(($lh-rems - $capheight-rems), 2); $baseline-shift: strip-unit(gu($above)) + $push; $baseline-push: strip-unit(gu($below)) - $push; @@ -200,7 +202,7 @@ $points: map-values($breakpoints); $size: map-get($scale, $fontsize); $rootsize: map-get($rootsizes, $breakpoint); - font-size: #{$size / $rootsize}rem; + font-size: #{math.div($size, $rootsize)}rem; } /** diff --git a/src/styles/karmen/mixins/utils.scss b/src/styles/karmen/mixins/utils.scss index 048c8fd..9d7f414 100644 --- a/src/styles/karmen/mixins/utils.scss +++ b/src/styles/karmen/mixins/utils.scss @@ -1,6 +1,8 @@ /** * Cast sass string to number */ +@use "sass:math"; + @function to-number($value) { @if type-of($value) == "number" { @return $value; @@ -53,7 +55,7 @@ /// /// @returns {Number} The same number, sans unit. @function strip-unit($num) { - @return $num / ($num * 0 + 1); + @return math.div($num, ($num * 0 + 1)); } /// Find the next value in a map.