From 29ae2297fb2c67db64da14e4607874a7204debeb Mon Sep 17 00:00:00 2001 From: David Mas-Ponte Date: Sun, 20 Jun 2021 11:54:43 +0200 Subject: [PATCH] upudate --- index.html | 33 +++++++++++++++------------------ sketch.js | 3 ++- styles.css | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 67 insertions(+), 19 deletions(-) diff --git a/index.html b/index.html index 3d94ae0..83c51ad 100644 --- a/index.html +++ b/index.html @@ -5,41 +5,38 @@ - + -

Municipi +

Quantes vacunes s'han posat al teu municipi?

+

Municipi

-

- nfsdkjfkjdhf -

-
-
-
-
-
-
- - -
- -
-
+
-

diff --git a/sketch.js b/sketch.js index c8ff833..3e1f520 100644 --- a/sketch.js +++ b/sketch.js @@ -3,6 +3,7 @@ var input; // RANDOM VARS +// this is a comment""" // FUNCTIONS @@ -14,7 +15,7 @@ async function obtainCode(query, element = 0) { //return data; const citySelected = data[1][0] console.log(citySelected) - document.getElementById("code").textContent = citySelected + document.getElementById("municipi").textContent = citySelected urlSearch = `https://api.idescat.cat/pob/v1/cerca.json?p=q/${citySelected};tipus/mun` const responseSearch = await fetch(urlSearch); const dataSearch = await responseSearch.json(); diff --git a/styles.css b/styles.css index 2a8ea92..684d68c 100644 --- a/styles.css +++ b/styles.css @@ -3,4 +3,54 @@ width: 100%; border: 5px solid #FFFF00; padding: 10px; +} + +.row { + border: 5px solid #FFFF00; +} + +body { + background: #F0EEEE !important; +} + +#tt1 { + position: absolute; + width: 852px; + height: 44px; + left: 294px; + top: 86px; + font-family: Montserrat; + font-style: normal; + font-weight: 600; + font-size: 36px; + line-height: 44px; + /* identical to box height */ + color: #000000; +} + +#municipi { + position: absolute; + width: 152px; + height: 59px; + left: 644px; + top: 130px; + font-family: Montserrat; + font-style: normal; + font-weight: 600; + font-size: 48px; + line-height: 59px; + /* identical to box height */ + display: flex; + align-items: center; + text-align: center; + color: #000000; +} + +#introdueix { + font-family: Roboto; + font-style: normal; + font-weight: 500; + font-size: 24px; + line-height: 28px; + color: #000000; } \ No newline at end of file