From a1973d1d55b15620a2ffcfab4f9bc21c33861964 Mon Sep 17 00:00:00 2001 From: Mike Smith <89040888+smiggiddy@users.noreply.github.com> Date: Sun, 21 Jan 2024 00:22:26 -0500 Subject: [PATCH] feat: added some colors --- weather/src/components/website.js | 3 +-- weather/src/index.js | 2 +- weather/src/style.css | 20 +++++++++++++++----- 3 files changed, 17 insertions(+), 8 deletions(-) diff --git a/weather/src/components/website.js b/weather/src/components/website.js index dd67ded..99b359c 100644 --- a/weather/src/components/website.js +++ b/weather/src/components/website.js @@ -15,7 +15,7 @@ class MainWebsite { const title = document.createElement('h1'); title.classList.add('title'); - title.textContent = 'Weather'; + title.textContent = 'How is it outside?'; // Add form to container this.container.append(title, this.weatherDiv); @@ -184,7 +184,6 @@ class MainWebsite { // convert the F and C temps weatherReportData.convertTemp('C'); weatherReportData.convertTemp('F'); - console.table(weatherReportData); reportUpdater.updateReportText(this.reportCity, weatherReportData.city); reportUpdater.updateReportText( diff --git a/weather/src/index.js b/weather/src/index.js index 85f4bf3..ab9246e 100644 --- a/weather/src/index.js +++ b/weather/src/index.js @@ -17,7 +17,7 @@ function fonts() { let style = document.createElement('link'); style.rel = 'stylesheet'; style.href = - 'https://fonts.googleapis.com/css2?family=Inter:wght@100..900&display=swap'; + 'https://fonts.googleapis.com/css2?family=Indie+Flower&family=Inter:wght@100..900&display=swap'; document.head.appendChild(fontLink); document.head.appendChild(fontLinkTwo); diff --git a/weather/src/style.css b/weather/src/style.css index 19f123f..ca0a2d3 100644 --- a/weather/src/style.css +++ b/weather/src/style.css @@ -1,5 +1,7 @@ :root { - --dark-color: #000; + --dark-color: hsla(146, 14%, 10%, 0.897); + --lgiht-color: hsla(160, 6%, 90%, 0.89); + --interface-color: rgba(235, 236, 236, 0.726); --font-size: 18px; } @@ -10,9 +12,11 @@ body { font-size: var(--font-size); font-family: 'Inter', sans-serif; font-optical-sizing: auto; - font-weight: ; + font-weight: 400; font-style: normal; font-variation-settings: 'slnt' 0; + background-color: var(--interface-color); + height: 100vh; } .title { @@ -20,6 +24,9 @@ body { font-weight: 800; text-align: center; margin: 0; + background-color: var(--dark-color); + color: var(--lgiht-color); + font-family: 'Indie Flower', cursive; } .form { @@ -33,12 +40,13 @@ body { display: flex; flex-direction: column; margin: auto; + align-items: center; } .form button { align-self: baseline; flex: 1; - height: 41px; + height: 46px; } .form-input input { @@ -48,7 +56,7 @@ body { } .form-input span { - color: red; + color: hsla(0, 79%, 54%, 0.829); margin-left: 5px; } @@ -65,11 +73,13 @@ body { .report-container { display: grid; grid-template-columns: repeat(3, 1fr); + gap: 20px; + justify-items: center; + align-items: center; } .city { grid-column: 1 / span 3; - place-self: center; } .temp {