commit 6b5a84dfa4690215f3b8b5966b03139e3210d6b5 Author: cpinte Date: Thu Jun 20 16:46:25 2024 +0200 Initial commit diff --git a/404.html b/404.html new file mode 100644 index 0000000..c73eb82 --- /dev/null +++ b/404.html @@ -0,0 +1,55 @@ + + + + 404 + + + + +
+
+

Error 404

+
+
+ + diff --git a/core/core.php b/core/core.php new file mode 100644 index 0000000..c00a586 --- /dev/null +++ b/core/core.php @@ -0,0 +1,86 @@ +product; +$parcel = $data->parcel; +$region = $data->region; +$winegrower = $data->winegrower; +$capacity = $data->capacity; +$alcohol = $data->alcohol; +$energy = $data->energy; +$energy_converted = floor(kcal2kj($energy)); +$fats = $data->fats; +$saturated_fats = $data->saturated_fats; +$carbohydrates = $data->carbohydrates; +$sugar = $data->sugar; +$proteins = $data->proteins; +$salt = $data->salt; +$color = $data->color; +$composition = $data->composition; + +// TRANSLATIONS +$tr_lang = $translation->$lang->lang; +$tr_ingredients = $translation->$lang->ingredients; +$tr_nutrional = $translation->$lang->nutrional; +$tr_capacity = $translation->$lang->capacity; +$tr_energy = $translation->$lang->energy; +$tr_fats = $translation->$lang->fats; +$tr_saturated_fats = $translation->$lang->saturated_fats; +$tr_carbohydrates = $translation->$lang->carbohydrates; +$tr_sugar = $translation->$lang->sugar; +$tr_proteins = $translation->$lang->proteins; +$tr_salt = $translation->$lang->salt; +$tr_color = $translation->$lang->$color; +$tr_title = $translation->$lang->title; +$tr_description = $translation->$lang->description; + +// STRING BUILDERS +$name = $product_name . " " . $year; +$details = $tr_color . " / " . $capacity . "L / " . $alcohol . "% vol"; +$head_title = $name . " | " . $winegrower . " | " . $tr_title; +$head_description = sprintf($tr_description, $name, $winegrower); + +//INGREDIENTS +$ingredients = ""; +$nb_components = 0; +foreach ($composition as $component) { + $ingredients .= translate_and_format($translation->$lang, $component); + $sub_components = isset($component->components) ? $component->components : null; + + if ($sub_components != null) { + $ingredients .= ' ('; + + $nb_sub_components = 0; + foreach ($sub_components as $sub_component) { + $ingredients .= translate_and_format($translation->$lang, $sub_component); + $nb_sub_components++; + if($nb_sub_components < sizeof($sub_components)){ + $ingredients .= ', '; + } + } + $ingredients .= ')'; + + } + $nb_components++; + if($nb_components < sizeof($composition)){ + $ingredients .= ', '; + } +} + + +?> diff --git a/core/functions.php b/core/functions.php new file mode 100644 index 0000000..02dd13a --- /dev/null +++ b/core/functions.php @@ -0,0 +1,51 @@ +id; + $tranlated = $translation->$ingredient_id; + + $is_allergen = isset($ingredient->allergen) ? $ingredient->allergen : false; + if ($is_allergen) { + $format = '%s'; + $tranlated = sprintf($format, $tranlated); + } + return $tranlated; +} + +?> diff --git a/core/layout.php b/core/layout.php new file mode 100755 index 0000000..a8f0d42 --- /dev/null +++ b/core/layout.php @@ -0,0 +1,132 @@ + + + + <?= $head_title ?> + + + + + + + + + + + + +
+
+ <?= $name ?> +
+ +
+
+

+

+
+

+

+

+
+ + +
+

+

+
+ +
+

+ + + + + + + + + + + + + + + + + + + + + + + + + +
kJ - kcal
+
+
+
+
g
+
g
+
+
+
+
+
g
+
g
+
g
<g
+
+ +
+ + diff --git a/css/main.css b/css/main.css new file mode 100644 index 0000000..9fb4920 --- /dev/null +++ b/css/main.css @@ -0,0 +1,213 @@ +@font-face { + font-family: Prociono; + src: url('../font/Prociono.ttf'); + font-display: swap; +} + +* { + box-sizing: border-box; + margin: 0; + padding: 0; + font-family: Prociono; +} + +.content { + max-width: 900px; + margin: 50px auto; + display: grid; + grid-template-columns: repeat(2, 1fr); + grid-gap: 10px; + grid-auto-rows: minmax(50px, auto); +} + +section { + margin-bottom: 30px; +} + +h4 { + font-size: 22px; + margin-bottom: 10px; +} + +.main { + grid-column: 1; + grid-row: 1; +} + +.main > img { + width: 100%; +} + +.details { + grid-column: 2; + grid-row: 1; + margin-top: auto; + margin-bottom: 35px; + margin-left: 20px; + letter-spacing: 0.35em; + line-height: 1.6; +} + +.name { + margin-bottom: 10px; +} + +.ingredients { + grid-column: 1 / 3; + grid-row: 2; +} + +.facts { + grid-column: 1 / 3; + grid-row: 3; +} + +table { + border-collapse: collapse; + width: 100%; +} + +tr:nth-child(odd) { + background-color: ButtonFace; +} + +td { + padding-left: 10px; +} + +td > .marged { + margin-left: 20px; +} + +/*Nav*/ + +li { + list-style: none; +} + +.lang { + display: flex; + align-items: center; + padding-right: 100px; +} + +.lang img { + width: 60px; + margin-left: 10px; +} + +.mega-menu a { + display: block; + color: grey; + text-decoration: none; +} + +.mega-menu a:hover { + background: lightgrey; +} + +.mega-menu-main { + display: flex; + position: relative; + background: white; + flex-direction: row-reverse; +} + +.lvl-0 > a { + padding: 12px 25px; +} + +.lvl-0:hover > ul { + display: flex; +} + +.mega-menu-tab { + display: none; + /*display: flex;*/ + position: absolute; + top: 100%; + left: 0; + width: 100%; + background: white; +} + +.lvl-1 { + flex: 1; + width: 100%; + margin: 0 15px; +} + +.lvl-1 h2 { + margin: 0; + padding: 0; + color: white; +} + +.lvl-2 { + padding-top: 15px; +} + +.lvl-2 a { + padding: 8px 0; +} + +@media(max-width:950px) { + .content { + max-width: 700px; + } + + .details { + letter-spacing: 0.2em; + } +} + +@media(max-width:750px) { + .content { + max-width: 600px; + } + + .details { + letter-spacing: 0.1em; + } +} + +@media(max-width:650px) { + .content { + max-width: max-content; + margin-left: 20px; + margin-right: 20px; + } + + .main { + grid-column: 1 / 3; + grid-row: 2; + text-align: center; + } + + .main > img { + width: 75%; + } + + .details { + grid-column: 1 / 3; + grid-row: 1; + text-align: center; + letter-spacing: 0.35em; + } + + .ingredients { + grid-row: 3; + } + + .facts { + grid-column: 1 / 3; + grid-row: 4; + } +} + +@media(max-width:500px) { + + .details { + letter-spacing: 0.2em; + } +} diff --git a/data/translations.json b/data/translations.json new file mode 100644 index 0000000..ffd74f2 --- /dev/null +++ b/data/translations.json @@ -0,0 +1,548 @@ +{ + "bg":{ + "lang": "български език", + "ingredients":"Съставки", + "nutrional":"Хранителни факти", + "capacity":"За 100 g или 100 mL", + "energy":"Енергия", + "fats":"Мазнини", + "saturated_fats":"От тях наситени мазнини", + "carbohydrates":"Въглехидрати", + "sugar":"Със захар", + "proteins":"Протеини", + "salt":"Сол", + "red":"Червено вино", + "white":"Бяло вино", + "title":"Факти за бургундското вино", + "description": "Хранителна информация за Pommard 2023, произведен от Domaine Pinte", + "GR":"Грозде", + "CGR":"концентрирана гроздова мъст", + "AR":"регулатор на киселинността", + "LT":"L-винена киселина", + "GA":"арабска гума", + "PS":"консервант", + "STR":"сулфити", + "SLR":"серен диоксид", + "LZ":"лизозим" + }, + "cs":{ + "lang": "Česky", + "ingredients":"Složení", + "nutrional":"Výživové údaje", + "capacity":"Na 100 g nebo 100 ml", + "energy":"Energie", + "fats":"Tuk", + "saturated_fats":"Z toho nasycené mastné kyseliny", + "carbohydrates":"Sacharidy", + "sugar":"S cukrem", + "proteins":"Bílkoviny", + "salt":"Sůl", + "red":"Červené víno", + "white":"Bílé víno", + "title":"Burgundské víno Fakta", + "description": "Výživové údaje o Pommardu 2023 z produkce Domaine Pinte", + "GR":"Hrozny", + "CGR":"zahuštěný hroznový mošt", + "AR":"regulátor kyselosti", + "LT":"kyselina L-vinná", + "GA":"arabská guma", + "PS":"konzervační látka", + "STR":"siřičitany", + "SLR":"oxid siřičitý", + "LZ":"lysozym" + }, + "da":{ + "lang": "Dansk", + "ingredients":"Ingredienser", + "nutrional":"Ernæringsmæssige fakta", + "capacity":"For 100 g eller 100 ml", + "energy":"Energi", + "fats":"Fedt", + "saturated_fats":"Heraf mættede fedtsyrer", + "carbohydrates":"Kulhydrater", + "sugar":"Med sukker", + "proteins":"Proteiner", + "salt":"Salt", + "red":"Rødvin", + "white":"Hvidvin", + "title":"Fakta om Bourgogne-vin", + "description": "Ernæringsmæssige fakta om Pommard 2023 produceret af Domaine Pinte ", + "GR":"Druer", + "CGR":"Koncentreret druemost", + "AR":"surhedsregulerende middel", + "LT":"L-vinsyre", + "GA":"Arabisk gummi", + "PS":"Konserveringsmiddel", + "STR":"Sulfitter", + "SLR":"Sulfitter", + "LZ":"Lysozym" + }, + "de":{ + "lang": "Deutsch", + "ingredients":"Zutaten", + "nutrional":"Nährwertangaben", + "capacity":"Für 100g oder 100ml", + "energy":"Energie", + "fats":"Fett", + "saturated_fats":"davon gesättigte Fettsäuren", + "carbohydrates":"Kohlenhydrate", + "sugar":"Mit Zucker", + "proteins":"Proteine", + "salt":"Salz", + "red":"Rotwein", + "white":"Weißwein", + "title":"Burgunderwein Fakten", + "description": "Nährwertangaben zum Pommard 2023 der Domaine Pinte", + "GR":"Trauben", + "CGR":"konzentrierter Traubenmost", + "AR":"Säureregulator", + "LT":"L-Weinsäure", + "GA":"Gummiarabikum", + "PS":"Konservierungsmittel", + "STR":"Sulfite", + "SLR":"Schwefeldioxid", + "LZ":"Lysozym" + }, + "el":{ + "lang": "Ελληνικά", + "ingredients":"Συστατικά", + "nutrional":"Διατροφικά στοιχεία", + "capacity":"Για 100g ή 100ml", + "energy":"Ενέργεια", + "fats":"Λίπος", + "saturated_fats":"εκ των οποίων κορεσμένα", + "carbohydrates":"Υδατάνθρακες", + "sugar":"Με ζάχαρη", + "proteins":"Πρωτεΐνες", + "salt":"Αλάτι", + "red":"Κόκκινο κρασί", + "white":"Λευκό κρασί", + "title":"Στοιχεία για το κρασί της Βουργουνδίας", + "description": "Διατροφικά στοιχεία για το Pommard 2023 που παράγεται από το Domaine Pinte", + "GR":"Σταφύλια", + "CGR":"συμπυκνωμένο γλεύκος σταφυλιών", + "AR":"ρυθμιστής οξύτητας", + "LT":"L- τρυγικό οξύ", + "GA":"αραβικό κόμμι", + "PS":"συντηρητικό", + "STR":"θειώδη", + "SLR":"διοξείδιο του θείου", + "LZ":"λυσοζύμη" + }, + "en":{ + "lang": "English", + "ingredients":"Ingredients", + "nutrional":"Nutritional facts", + "capacity":"For 100g or 100ml", + "energy":"Energy", + "fats":"Fat", + "saturated_fats":"Of which saturates", + "carbohydrates":"Carbohydrates", + "sugar":"With sugar", + "proteins":"Proteins", + "salt":"Salt", + "red":"Red wine", + "white":"White wine", + "title":"Burgundy Wine Facts", + "description": "Nutritional facts about Pommard 2023 produced by Domaine Pinte", + "GR":"Grapes", + "CGR":"concentrated grape must", + "AR":"acidity regulator", + "LT":"L-tartaric acid", + "GA":"gum arabic", + "PS":"preservative", + "STR":"sulphites", + "SLR":"sulphur dioxide", + "LZ":"lysozyme" + }, + "es":{ + "lang": "Español", + "ingredients":"Ingredients", + "nutrional":"Nutritional facts", + "capacity":"For 100g or 100ml", + "energy":"Energy", + "fats":"Fat", + "saturated_fats":"Of which saturates", + "carbohydrates":"Carbohydrates", + "sugar":"With sugar", + "proteins":"Proteins", + "salt":"Salt", + "red":"Red wine", + "white":"White wine", + "title":"Burgundy Wine Facts", + "description": "Información nutricional sobre el Pommard 2023 producido por Domaine Pinte ", + "GR":"Uvas", + "CGR":"mosto de uva concentrado", + "AR":"regulador de la acidez", + "LT":"ácido L-tartárico", + "GA":"goma arábiga", + "PS":"conservante", + "STR":"sulfitos", + "SLR":"dióxido de azufre", + "LZ":"lisozima" + }, + "et":{ + "lang": "Eesti keel", + "ingredients":"Koostisosad", + "nutrional":"Toitumisfaktid", + "capacity":"100g või 100ml kohta", + "energy":"Energia", + "fats":"Rasv", + "saturated_fats":"millest küllastunud rasvhappeid", + "carbohydrates":"Süsivesikud", + "sugar":"Suhkruga", + "proteins":"Valgud", + "salt":"Sool", + "red":"Punane vein", + "white":"Valge vein", + "title":"Burgundia veini faktid", + "description": "Domaine Pinte'i toodetud Pommard 2023 toitumisfaktid ", + "GR":"Viinamarjad", + "CGR":"kontsentreeritud viinamarjavirre", + "AR":"happesuse regulaator", + "LT":"L-viinhape", + "GA":"kummiaraabikumi", + "PS":"säilitusaine", + "STR":"sulfitid", + "SLR":"vääveldioksiid", + "LZ":"lüsosüüm" + }, + "fi":{ + "lang": "Suomen kieli", + "ingredients":"Ingredientes", + "nutrional":"Información nutricional", + "capacity":"Para 100 g o 100 ml", + "energy":"Energía", + "fats":"Grasas", + "saturated_fats":"De las cuales saturadas", + "carbohydrates":"Hidratos de carbono", + "sugar":"Con azúcar", + "proteins":"Proteínas", + "salt":"Sal", + "red":"Vino tinto", + "white":"Vino blanco", + "title":"Datos sobre el vino de Borgoña", + "description": "Domaine Pinte -viinin tuottaman Pommard 2023 -viinin ravitsemukselliset seikat", + "GR":"Viinirypäleet", + "CGR":"tiivistetty rypäleen puristemehu", + "AR":"happamuuden säätelijä", + "LT":"L-viinihappo", + "GA":"arabikumi", + "PS":"säilöntäaine", + "STR":"sulfiitit", + "SLR":"rikkidioksidi", + "LZ":"lysotsyymi" + }, + "fr":{ + "lang": "Français", + "ingredients":"Ingrédients", + "nutrional":"Valeurs nutritionnelles", + "capacity":"Pour 100g ou 100 ml", + "energy":"Énergie", + "fats":"Matières grasses", + "saturated_fats":"Dont acides gras saturés", + "carbohydrates":"Glucides", + "sugar":"Dont sucres", + "proteins":"Protéines", + "salt":"Sel", + "red":"Vin rouge", + "white":"Vin Blanc", + "title":"Infos Vins Bourgogne", + "description": "Informations nutritionnelles relatives au %s produit par le %s", + "GR":"Raisins", + "CGR":"moût de raisin concentré", + "AR":"régulateur d'acidité", + "LT":"acide L-tartrique", + "GA":"gomme arabique", + "PS":"conservateur", + "STR":"sulfites", + "SLR":"dioxyde de soufre", + "LZ":"lysozyme" + }, + "ga":{ + "lang": "Gaeilge", + "ingredients":"Comhábhair", + "nutrional":"Fíricí cothaitheacha", + "capacity":"Le haghaidh 100g nó 100ml", + "energy":"Fuinneamh", + "fats":"Saill", + "saturated_fats":"Mar atá sáitheán", + "carbohydrates":"Carbaihiodráití", + "sugar":"Le siúcra", + "proteins":"Próitéiní", + "salt":"Salann", + "red":"Fíon dearg", + "white":"Fíon bán", + "title":"Fíricí Fíon Burgúine", + "description": "Fíricí cothaitheacha faoi Pommard 2023 arna dtáirgeadh ag Domaine Pinte", + "GR":"Fíonchaora", + "CGR":"úrfhíon fíonchaor tiubhaithe", + "AR":"rialtóir aigéadachta", + "LT":"Aigéad L-tartarach", + "GA":"guma Arabach", + "PS":"leasaitheach", + "STR":"suilfítí", + "SLR":"dé-ocsaíd sulfair", + "LZ":"lísisím" + }, + "hr":{ + "lang": "Hrvatski", + "ingredients":"Sastojci", + "nutrional":"Nutritivne činjenice", + "capacity":"Za 100g ili 100ml", + "energy":"Energija", + "fats":"Mast", + "saturated_fats":"Od čega zasićene", + "carbohydrates":"Ugljikohidrati", + "sugar":"Sa šećerom", + "proteins":"Proteini", + "salt":"Sol", + "red":"Crno vino", + "white":"Bijelo vino", + "title":"Činjenice o Burgundskom vinu", + "description": "Nutritivne činjenice o Pommardu 2023. proizvođača Domaine Pinte", + "GR":"Grožđe", + "CGR":"koncentrirani mošt od grožđa", + "AR":"regulator kiselosti", + "LT":"L-vinska kiselina", + "GA":"arapska guma", + "PS":"konzervans", + "STR":"sulfiti", + "SLR":"sumporov dioksid", + "LZ":"lizozim" + }, + "hu":{ + "lang": "Magyar", + "ingredients":"Összetevők", + "nutrional":"Táplálkozási adatok", + "capacity":"100g vagy 100ml", + "energy":"Energia", + "fats":"Zsír", + "saturated_fats":"Ebből telített zsírsavak", + "carbohydrates":"Szénhidrátok", + "sugar":"Cukorral", + "proteins":"Fehérjék", + "salt":"Só", + "red":"Vörösbor", + "white":"Fehérbor", + "title":"Burgundi bor tények", + "description": "A Domaine Pinte által termelt Pommard 2023 tápértékadatai ", + "GR":"Szőlő", + "CGR":"sűrített szőlőmust", + "AR":"savtartalom-szabályozó", + "LT":"L-borkősav", + "GA":"gumiarábikum", + "PS":"tartósítószer", + "STR":"szulfitok", + "SLR":"kén-dioxid", + "LZ":"lizozim" + }, + "it":{ + "lang": "Italiano", + "ingredients":"Ingredienti", + "nutrional":"Dati nutrizionali", + "capacity":"Per 100g o 100ml", + "energy":"Energia", + "fats":"Grassi", + "saturated_fats":"Di cui saturi", + "carbohydrates":"Carboidrati", + "sugar":"Con zucchero", + "proteins":"Proteine", + "salt":"Il sale", + "red":"Vino rosso", + "white":"Vino bianco", + "title":"Fatti sul vino di Borgogna", + "description": "Informazioni nutrizionali sul Pommard 2023 prodotto da Domaine Pinte", + "GR":"Uva", + "CGR":"mosto d'uva concentrato", + "AR":"regolatore di acidità", + "LT":"acido L-tartarico", + "GA":"gomma arabica", + "PS":"conservante", + "STR":"solfiti", + "SLR":"anidride solforosa", + "LZ":"lisozima" + }, + "lt":{ + "lang": "Lietuvių kalba", + "ingredients":"Sudedamosios dalys", + "nutrional":"Maistingumo faktai", + "capacity":"100 g arba 100 ml", + "energy":"Energijos", + "fats":"Riebalai", + "saturated_fats":"Iš jų sočiųjų riebalų rūgščių", + "carbohydrates":"Angliavandeniai", + "sugar":"Su cukrumi", + "proteins":"Baltymai", + "salt":"Druska", + "red":"Raudonasis vynas", + "white":"Baltasis vynas", + "title":"Burgundijos vyno faktai", + "description": "Maistingumo faktai apie Domaine Pinte gaminamą Pommard 2023 ", + "GR":"Vynuogės", + "CGR":"koncentruota vynuogių misa", + "AR":"rūgštingumą reguliuojanti medžiaga", + "LT":"L-vyno rūgštis", + "GA":"gumiarabikas", + "PS":"konservantas", + "STR":"sulfitai", + "SLR":"sieros dioksidas", + "LZ":"lizocimas" + }, + "mt":{ + "lang": "Malti", + "ingredients":"Ingredjenti", + "nutrional":"Fatti nutrittivi", + "capacity":"Għal 100g jew 100ml", + "energy":"Enerġija", + "fats":"Xaħam", + "saturated_fats":"Li minnhom saturati", + "carbohydrates":"Karboidrati", + "sugar":"Biz-zokkor", + "proteins":"Proteini", + "salt":"Melħ", + "red":"Inbid aħmar", + "white":"Inbid abjad", + "title":"Fatti dwar l-Inbid ta' Bourgogne", + "description": "Fatti nutrittivi dwar Pommard 2023 prodott minn Domaine Pinte", + "GR":"Għeneb", + "CGR":"most tal-għeneb ikkonċentrat", + "AR":"regolatur tal-aċidità", + "LT":"L-aċidu tartariku", + "GA":"gomma Għarbija", + "PS":"preservattiv", + "STR":"sulfiti", + "SLR":"dijossidu tal-kubrit", + "LZ":"liżożima" + }, + "pl":{ + "lang": "Polski", + "ingredients":"Składniki", + "nutrional":"Wartości odżywcze", + "capacity":"Dla 100g lub 100ml", + "energy":"Energia", + "fats":"Tłuszcz", + "saturated_fats":"W tym kwasy tłuszczowe nasycone", + "carbohydrates":"Węglowodany", + "sugar":"Z cukrem", + "proteins":"Białka", + "salt":"Sól", + "red":"Czerwone wino", + "white":"Białe wino", + "title":"Fakty na temat wina burgundzkiego", + "description": "Wartości odżywcze Pommard 2023 produkowanego przez Domaine Pinte", + "GR":"Winogrona", + "CGR":"skoncentrowany moszcz winogronowy", + "AR":"regulator kwasowości", + "LT":"kwas L-winowy", + "GA":"guma arabska", + "PS":"konserwant", + "STR":"siarczyny", + "SLR":"dwutlenek siarki", + "LZ":"lizozym" + }, + "ro":{ + "lang": "Română", + "ingredients":"Ingrediente", + "nutrional":"Informații nutriționale", + "capacity":"Pentru 100g sau 100ml", + "energy":"Energie", + "fats":"Grăsime", + "saturated_fats":"Din care saturate", + "carbohydrates":"Carbohidrați", + "sugar":"Cu zahăr", + "proteins":"Proteine", + "salt":"Sare", + "red":"Vin roșu", + "white":"Vin alb", + "title":"Vinul de Burgundia fapte", + "description": "Informații nutriționale despre Pommard 2023 produs de Domaine Pinte", + "GR":"Struguri", + "CGR":"must de struguri concentrat", + "AR":"regulator de aciditate", + "LT":"acid L-tartric", + "GA":"gumă arabică", + "PS":"conservant", + "STR":"sulfiți", + "SLR":"dioxid de sulf", + "LZ":"lizozimă" + }, + "sk":{ + "lang": "Slovenčina", + "ingredients":"Zložky", + "nutrional":"Výživové údaje", + "capacity":"Na 100 g alebo 100 ml", + "energy":"Energia", + "fats":"Tuk", + "saturated_fats":"Z toho nasýtené mastné kyseliny", + "carbohydrates":"Sacharidy", + "sugar":"S cukrom", + "proteins":"Bielkoviny", + "salt":"Soľ", + "red":"Červené víno", + "white":"Biele víno", + "title":"Burgundské víno Fakty", + "description": "Nutričné fakty o Pommard 2023 od Domaine Pinte", + "GR":"Hrozno", + "CGR":"mzahustený hroznový mušt", + "AR":"regulátor kyslosti", + "LT":"kyselina L-vínna", + "GA":"arabská guma", + "PS":"konzervačný prostriedok", + "STR":"siričitany", + "SLR":"oxid siričitý", + "LZ":"lyzozým" + }, + "sl":{ + "lang": "Slovenščina", + "ingredients":"Sestavine", + "nutrional":"Prehranske vrednosti", + "capacity":"Za 100 g ali 100 ml", + "energy":"Energija", + "fats":"Maščobe", + "saturated_fats":"Od tega nasičene maščobe", + "carbohydrates":"Ogljikovi hidrati", + "sugar":"S sladkorjem", + "proteins":"Beljakovine", + "salt":"Sol", + "red":"Rdeče vino", + "white":"Belo vino", + "title":"Dejstva o burgundskem vinu", + "description": "Prehranska dejstva o Pommardu 2023, ki ga proizvaja Domaine Pinte", + "GR":"Grozdje", + "CGR":"zgoščen grozdni mošt", + "AR":"regulator kislosti", + "LT":"L-vinska kislina", + "GA":"arabski gumi", + "PS":"konzervans", + "STR":"sulfiti", + "SLR":"žveplov dioksid", + "LZ":"lizocim" + }, + "sv":{ + "lang": "Svenska", + "ingredients":"Ingredienser", + "nutrional":"Näringsvärde", + "capacity":"För 100 g eller 100 ml", + "energy":"Energi", + "fats":"Fett", + "saturated_fats":"Varav mättat fett", + "carbohydrates":"Kolhydrater", + "sugar":"Med socker", + "proteins":"Proteiner", + "salt":"Salt", + "red":"Rött vin", + "white":"Vitt vin", + "title":"Fakta om vin från Bourgogne", + "description": "Näringsfakta om Pommard 2023 producerad av Domaine Pinte ", + "GR":"Druvor", + "CGR":"koncentrerad druvmust", + "AR":"Reglering av surhetsgrad", + "LT":"L-vinsyra", + "GA":"Arabiskt gummi", + "PS":"konserveringsmedel", + "STR":"sulfiter", + "SLR":"svaveldioxid", + "LZ":"lysozym" + } + } diff --git a/data/wine/2023/aloxe-corton.json b/data/wine/2023/aloxe-corton.json new file mode 100644 index 0000000..7277304 --- /dev/null +++ b/data/wine/2023/aloxe-corton.json @@ -0,0 +1,33 @@ +{ + "winegrower": "Domaine Pinte", + "product": "Aloxe Corton", + "year": "2023", + "color": "red", + "capacity":0.75, + "region": "Bourgogne / Côte de Beaune", + "alcohol":13, + "energy":67, + "fats":0.0, + "saturated_fats":0.0, + "carbohydrates":3.8, + "sugar":0.9, + "proteins":0.1, + "salt":0.1, + "composition":[ + {"id":"GR", "allergen": false}, + {"id":"CGR", "allergen": false}, + {"id":"AR", + "components":[ + {"id":"LT", "allergen": false}, + {"id":"GA", "allergen": false} + ] + }, + {"id":"PS", + "components":[ + {"id":"STR", "allergen": true}, + {"id":"SLR", "allergen": true}, + {"id":"LZ", "allergen": true} + ] + } + ] + } diff --git a/data/wine/2023/bourgogne-aligote.json b/data/wine/2023/bourgogne-aligote.json new file mode 100644 index 0000000..5cad96a --- /dev/null +++ b/data/wine/2023/bourgogne-aligote.json @@ -0,0 +1,33 @@ +{ + "winegrower": "Domaine Pinte", + "product": "Bourgogne Aligoté", + "year": "2023", + "color": "white", + "capacity":0.75, + "region": "Bourgogne / Côte de Beaune", + "alcohol":13, + "energy":67, + "fats":0.0, + "saturated_fats":0.0, + "carbohydrates":3.8, + "sugar":0.9, + "proteins":0.1, + "salt":0.1, + "composition":[ + {"id":"GR", "allergen": false}, + {"id":"CGR", "allergen": false}, + {"id":"AR", + "components":[ + {"id":"LT", "allergen": false}, + {"id":"GA", "allergen": false} + ] + }, + {"id":"PS", + "components":[ + {"id":"STR", "allergen": true}, + {"id":"SLR", "allergen": true}, + {"id":"LZ", "allergen": true} + ] + } + ] + } diff --git a/data/wine/2023/bourgogne-hautes-cote-de-beaune.json b/data/wine/2023/bourgogne-hautes-cote-de-beaune.json new file mode 100644 index 0000000..dbf5757 --- /dev/null +++ b/data/wine/2023/bourgogne-hautes-cote-de-beaune.json @@ -0,0 +1,34 @@ +{ + "winegrower": "Domaine Pinte", + "product": "Bourgogne", + "parcel": "Hautes-Côtes de Beaune", + "year": "2023", + "color": "red", + "capacity":0.75, + "region": "Bourgogne / Côte de Beaune", + "alcohol":13, + "energy":67, + "fats":0.0, + "saturated_fats":0.0, + "carbohydrates":3.8, + "sugar":0.9, + "proteins":0.1, + "salt":0.1, + "composition":[ + {"id":"GR", "allergen": false}, + {"id":"CGR", "allergen": false}, + {"id":"AR", + "components":[ + {"id":"LT", "allergen": false}, + {"id":"GA", "allergen": false} + ] + }, + {"id":"PS", + "components":[ + {"id":"STR", "allergen": true}, + {"id":"SLR", "allergen": true}, + {"id":"LZ", "allergen": true} + ] + } + ] + } diff --git a/data/wine/2023/bourgogne-mont-battois.json b/data/wine/2023/bourgogne-mont-battois.json new file mode 100644 index 0000000..0c6db16 --- /dev/null +++ b/data/wine/2023/bourgogne-mont-battois.json @@ -0,0 +1,34 @@ +{ + "winegrower": "Domaine Pinte", + "product": "Bourgogne", + "parcel": "Mont Battois", + "year": "2023", + "color": "white", + "capacity":0.75, + "region": "Bourgogne / Côte de Beaune", + "alcohol":13, + "energy":67, + "fats":0.0, + "saturated_fats":0.0, + "carbohydrates":3.8, + "sugar":0.9, + "proteins":0.1, + "salt":0.1, + "composition":[ + {"id":"GR", "allergen": false}, + {"id":"CGR", "allergen": false}, + {"id":"AR", + "components":[ + {"id":"LT", "allergen": false}, + {"id":"GA", "allergen": false} + ] + }, + {"id":"PS", + "components":[ + {"id":"STR", "allergen": true}, + {"id":"SLR", "allergen": true}, + {"id":"LZ", "allergen": true} + ] + } + ] + } diff --git a/data/wine/2023/bourgogne.json b/data/wine/2023/bourgogne.json new file mode 100644 index 0000000..9b89fde --- /dev/null +++ b/data/wine/2023/bourgogne.json @@ -0,0 +1,33 @@ +{ + "winegrower": "Domaine Pinte", + "product": "Bourgogne", + "year": "2023", + "color": "red", + "capacity":0.75, + "region": "Bourgogne / Côte de Beaune", + "alcohol":13, + "energy":67, + "fats":0.0, + "saturated_fats":0.0, + "carbohydrates":3.8, + "sugar":0.9, + "proteins":0.1, + "salt":0.1, + "composition":[ + {"id":"GR", "allergen": false}, + {"id":"CGR", "allergen": false}, + {"id":"AR", + "components":[ + {"id":"LT", "allergen": false}, + {"id":"GA", "allergen": false} + ] + }, + {"id":"PS", + "components":[ + {"id":"STR", "allergen": true}, + {"id":"SLR", "allergen": true}, + {"id":"LZ", "allergen": true} + ] + } + ] + } diff --git a/data/wine/2023/chorey-les-beaune.json b/data/wine/2023/chorey-les-beaune.json new file mode 100644 index 0000000..6e3f20e --- /dev/null +++ b/data/wine/2023/chorey-les-beaune.json @@ -0,0 +1,33 @@ +{ + "winegrower": "Domaine Pinte", + "product": "Chorey les Beaune", + "year": "2023", + "color": "red", + "capacity":0.75, + "region": "Bourgogne / Côte de Beaune", + "alcohol":13, + "energy":67, + "fats":0.0, + "saturated_fats":0.0, + "carbohydrates":3.8, + "sugar":0.9, + "proteins":0.1, + "salt":0.1, + "composition":[ + {"id":"GR", "allergen": false}, + {"id":"CGR", "allergen": false}, + {"id":"AR", + "components":[ + {"id":"LT", "allergen": false}, + {"id":"GA", "allergen": false} + ] + }, + {"id":"PS", + "components":[ + {"id":"STR", "allergen": true}, + {"id":"SLR", "allergen": true}, + {"id":"LZ", "allergen": true} + ] + } + ] + } diff --git a/data/wine/2023/cote-de-beaune-village.json b/data/wine/2023/cote-de-beaune-village.json new file mode 100644 index 0000000..9b974c8 --- /dev/null +++ b/data/wine/2023/cote-de-beaune-village.json @@ -0,0 +1,33 @@ +{ + "winegrower": "Domaine Pinte", + "product": "Côte de Beaune Village", + "year": "2023", + "color": "red", + "capacity":0.75, + "region": "Bourgogne / Côte de Beaune", + "alcohol":13, + "energy":67, + "fats":0.0, + "saturated_fats":0.0, + "carbohydrates":3.8, + "sugar":0.9, + "proteins":0.1, + "salt":0.1, + "composition":[ + {"id":"GR", "allergen": false}, + {"id":"CGR", "allergen": false}, + {"id":"AR", + "components":[ + {"id":"LT", "allergen": false}, + {"id":"GA", "allergen": false} + ] + }, + {"id":"PS", + "components":[ + {"id":"STR", "allergen": true}, + {"id":"SLR", "allergen": true}, + {"id":"LZ", "allergen": true} + ] + } + ] + } diff --git a/data/wine/2023/pernand-vergelesses.json b/data/wine/2023/pernand-vergelesses.json new file mode 100644 index 0000000..7c330c1 --- /dev/null +++ b/data/wine/2023/pernand-vergelesses.json @@ -0,0 +1,33 @@ +{ + "winegrower": "Domaine Pinte", + "product": "Pernand Vergelesses", + "year": "2023", + "color": "red", + "capacity":0.75, + "region": "Bourgogne / Côte de Beaune", + "alcohol":13, + "energy":67, + "fats":0.0, + "saturated_fats":0.0, + "carbohydrates":3.8, + "sugar":0.9, + "proteins":0.1, + "salt":0.1, + "composition":[ + {"id":"GR", "allergen": false}, + {"id":"CGR", "allergen": false}, + {"id":"AR", + "components":[ + {"id":"LT", "allergen": false}, + {"id":"GA", "allergen": false} + ] + }, + {"id":"PS", + "components":[ + {"id":"STR", "allergen": true}, + {"id":"SLR", "allergen": true}, + {"id":"LZ", "allergen": true} + ] + } + ] + } diff --git a/data/wine/2023/pommard.json b/data/wine/2023/pommard.json new file mode 100644 index 0000000..8029d4a --- /dev/null +++ b/data/wine/2023/pommard.json @@ -0,0 +1,33 @@ +{ + "winegrower": "Domaine Pinte", + "product": "Pommard", + "year": "2023", + "color": "red", + "capacity":0.75, + "region": "Bourgogne / Côte de Beaune", + "alcohol":13, + "energy":67, + "fats":0.0, + "saturated_fats":0.0, + "carbohydrates":3.8, + "sugar":0.9, + "proteins":0.1, + "salt":0.1, + "composition":[ + {"id":"GR", "allergen": false}, + {"id":"CGR", "allergen": false}, + {"id":"AR", + "components":[ + {"id":"LT", "allergen": false}, + {"id":"GA", "allergen": false} + ] + }, + {"id":"PS", + "components":[ + {"id":"STR", "allergen": true}, + {"id":"SLR", "allergen": true}, + {"id":"LZ", "allergen": true} + ] + } + ] + } diff --git a/data/wine/2023/savigny-les-beaune-narbantons.json b/data/wine/2023/savigny-les-beaune-narbantons.json new file mode 100644 index 0000000..f1237c1 --- /dev/null +++ b/data/wine/2023/savigny-les-beaune-narbantons.json @@ -0,0 +1,34 @@ +{ + "winegrower": "Domaine Pinte", + "product": "Savigny les Beaune", + "parcel": "1er Cru Les Narbantons", + "year": "2023", + "color": "red", + "capacity":0.75, + "region": "Bourgogne / Côte de Beaune", + "alcohol":13, + "energy":67, + "fats":0.0, + "saturated_fats":0.0, + "carbohydrates":3.8, + "sugar":0.9, + "proteins":0.1, + "salt":0.1, + "composition":[ + {"id":"GR", "allergen": false}, + {"id":"CGR", "allergen": false}, + {"id":"AR", + "components":[ + {"id":"LT", "allergen": false}, + {"id":"GA", "allergen": false} + ] + }, + {"id":"PS", + "components":[ + {"id":"STR", "allergen": true}, + {"id":"SLR", "allergen": true}, + {"id":"LZ", "allergen": true} + ] + } + ] + } diff --git a/data/wine/2023/savigny-les-beaune-vermots.json b/data/wine/2023/savigny-les-beaune-vermots.json new file mode 100644 index 0000000..0d31f48 --- /dev/null +++ b/data/wine/2023/savigny-les-beaune-vermots.json @@ -0,0 +1,34 @@ +{ + "winegrower": "Domaine Pinte", + "product": "Savigny les Beaune", + "parcel": "Les Vermots", + "year": "2023", + "color": "white", + "capacity":0.75, + "region": "Bourgogne / Côte de Beaune", + "alcohol":13, + "energy":67, + "fats":0.0, + "saturated_fats":0.0, + "carbohydrates":3.8, + "sugar":0.9, + "proteins":0.1, + "salt":0.1, + "composition":[ + {"id":"GR", "allergen": false}, + {"id":"CGR", "allergen": false}, + {"id":"AR", + "components":[ + {"id":"LT", "allergen": false}, + {"id":"GA", "allergen": false} + ] + }, + {"id":"PS", + "components":[ + {"id":"STR", "allergen": true}, + {"id":"SLR", "allergen": true}, + {"id":"LZ", "allergen": true} + ] + } + ] + } diff --git a/data/wine/2023/savigny-les-beaune.json b/data/wine/2023/savigny-les-beaune.json new file mode 100644 index 0000000..55aa49f --- /dev/null +++ b/data/wine/2023/savigny-les-beaune.json @@ -0,0 +1,33 @@ +{ + "winegrower": "Domaine Pinte", + "product": "Savigny les Beaune", + "year": "2023", + "color": "red", + "capacity":0.75, + "region": "Bourgogne / Côte de Beaune", + "alcohol":13, + "energy":67, + "fats":0.0, + "saturated_fats":0.0, + "carbohydrates":3.8, + "sugar":0.9, + "proteins":0.1, + "salt":0.1, + "composition":[ + {"id":"GR", "allergen": false}, + {"id":"CGR", "allergen": false}, + {"id":"AR", + "components":[ + {"id":"LT", "allergen": false}, + {"id":"GA", "allergen": false} + ] + }, + {"id":"PS", + "components":[ + {"id":"STR", "allergen": true}, + {"id":"SLR", "allergen": true}, + {"id":"LZ", "allergen": true} + ] + } + ] + } diff --git a/font/Prociono.ttf b/font/Prociono.ttf new file mode 100644 index 0000000..d9a364c Binary files /dev/null and b/font/Prociono.ttf differ diff --git a/icon/lang.svg b/icon/lang.svg new file mode 100644 index 0000000..2070b38 --- /dev/null +++ b/icon/lang.svg @@ -0,0 +1,5 @@ + + \ No newline at end of file diff --git a/img/2023/aloxe-corton.webp b/img/2023/aloxe-corton.webp new file mode 100644 index 0000000..00d80b0 Binary files /dev/null and b/img/2023/aloxe-corton.webp differ diff --git a/img/2023/bourgogne-aligote.webp b/img/2023/bourgogne-aligote.webp new file mode 100644 index 0000000..28ebe35 Binary files /dev/null and b/img/2023/bourgogne-aligote.webp differ diff --git a/img/2023/bourgogne-hautes-cote-de-beaune.webp b/img/2023/bourgogne-hautes-cote-de-beaune.webp new file mode 100644 index 0000000..e0e6b03 Binary files /dev/null and b/img/2023/bourgogne-hautes-cote-de-beaune.webp differ diff --git a/img/2023/bourgogne-mont-battois.webp b/img/2023/bourgogne-mont-battois.webp new file mode 100644 index 0000000..cbab81e Binary files /dev/null and b/img/2023/bourgogne-mont-battois.webp differ diff --git a/img/2023/bourgogne.webp b/img/2023/bourgogne.webp new file mode 100644 index 0000000..85ae5ed Binary files /dev/null and b/img/2023/bourgogne.webp differ diff --git a/img/2023/chorey-les-beaune.webp b/img/2023/chorey-les-beaune.webp new file mode 100644 index 0000000..530ef90 Binary files /dev/null and b/img/2023/chorey-les-beaune.webp differ diff --git a/img/2023/cote-de-beaune-village.webp b/img/2023/cote-de-beaune-village.webp new file mode 100644 index 0000000..7511c70 Binary files /dev/null and b/img/2023/cote-de-beaune-village.webp differ diff --git a/img/2023/pernand-vergelesses.webp b/img/2023/pernand-vergelesses.webp new file mode 100644 index 0000000..18523a8 Binary files /dev/null and b/img/2023/pernand-vergelesses.webp differ diff --git a/img/2023/pommard.webp b/img/2023/pommard.webp new file mode 100644 index 0000000..35aa73d Binary files /dev/null and b/img/2023/pommard.webp differ diff --git a/img/2023/savigny-les-beaune-narbantons.webp b/img/2023/savigny-les-beaune-narbantons.webp new file mode 100644 index 0000000..4c9b5d5 Binary files /dev/null and b/img/2023/savigny-les-beaune-narbantons.webp differ diff --git a/img/2023/savigny-les-beaune-vermots.webp b/img/2023/savigny-les-beaune-vermots.webp new file mode 100644 index 0000000..5cc2ab2 Binary files /dev/null and b/img/2023/savigny-les-beaune-vermots.webp differ diff --git a/img/2023/savigny-les-beaune.webp b/img/2023/savigny-les-beaune.webp new file mode 100644 index 0000000..6a0e652 Binary files /dev/null and b/img/2023/savigny-les-beaune.webp differ diff --git a/index.php b/index.php new file mode 100755 index 0000000..f43ea09 --- /dev/null +++ b/index.php @@ -0,0 +1,45 @@ + +