From 7c435d234ae32dc81c976ee119b4523c22200f34 Mon Sep 17 00:00:00 2001 From: Joseph Shepin Date: Wed, 27 Dec 2023 11:41:14 -0600 Subject: [PATCH 1/3] improve weather icons --- package-lock.json | 11 ---- package.json | 1 - src/assets/weather/cloud-outline.svg | 1 + src/assets/weather/partly-rainy-outline.svg | 17 ++++++ src/assets/weather/partly-sunny-outline.svg | 1 + src/assets/weather/rainy-outline.svg | 1 + src/assets/weather/sunny-outline.svg | 1 + src/components/cards/PwcCard.vue | 2 +- src/components/cards/WeatherCard.vue | 62 +++++++-------------- src/main.ts | 1 - 10 files changed, 42 insertions(+), 56 deletions(-) create mode 100644 src/assets/weather/cloud-outline.svg create mode 100644 src/assets/weather/partly-rainy-outline.svg create mode 100644 src/assets/weather/partly-sunny-outline.svg create mode 100644 src/assets/weather/rainy-outline.svg create mode 100644 src/assets/weather/sunny-outline.svg diff --git a/package-lock.json b/package-lock.json index f17b15b4..ac0cf02d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -25,7 +25,6 @@ "vite": "^4.3.9", "vue": "^3.2.41", "vue-gtag": "^2.0.1", - "vue-ionicons": "^3.0.5", "vue-router": "^4.1.1" }, "devDependencies": { @@ -10587,11 +10586,6 @@ "optional": true, "peer": true }, - "node_modules/vue-ionicons": { - "version": "3.0.5", - "resolved": "https://registry.npmjs.org/vue-ionicons/-/vue-ionicons-3.0.5.tgz", - "integrity": "sha512-1zZN/mcLRk6XKmQYMue699ut99qVMm+YfB3TY6jcTuzLSYh76BS9CcToLX/9v/0aOf8aTKHAPx2USdNBaY9IRw==" - }, "node_modules/vue-loader": { "version": "17.0.0", "resolved": "https://registry.npmjs.org/vue-loader/-/vue-loader-17.0.0.tgz", @@ -19342,11 +19336,6 @@ "optional": true, "peer": true }, - "vue-ionicons": { - "version": "3.0.5", - "resolved": "https://registry.npmjs.org/vue-ionicons/-/vue-ionicons-3.0.5.tgz", - "integrity": "sha512-1zZN/mcLRk6XKmQYMue699ut99qVMm+YfB3TY6jcTuzLSYh76BS9CcToLX/9v/0aOf8aTKHAPx2USdNBaY9IRw==" - }, "vue-loader": { "version": "17.0.0", "resolved": "https://registry.npmjs.org/vue-loader/-/vue-loader-17.0.0.tgz", diff --git a/package.json b/package.json index e9cff027..5ca506bd 100644 --- a/package.json +++ b/package.json @@ -28,7 +28,6 @@ "vite": "^4.3.9", "vue": "^3.2.41", "vue-gtag": "^2.0.1", - "vue-ionicons": "^3.0.5", "vue-router": "^4.1.1" }, "devDependencies": { diff --git a/src/assets/weather/cloud-outline.svg b/src/assets/weather/cloud-outline.svg new file mode 100644 index 00000000..abc01e11 --- /dev/null +++ b/src/assets/weather/cloud-outline.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/assets/weather/partly-rainy-outline.svg b/src/assets/weather/partly-rainy-outline.svg new file mode 100644 index 00000000..eccdb5aa --- /dev/null +++ b/src/assets/weather/partly-rainy-outline.svg @@ -0,0 +1,17 @@ + + + + + + + + + + + + + + + + + diff --git a/src/assets/weather/partly-sunny-outline.svg b/src/assets/weather/partly-sunny-outline.svg new file mode 100644 index 00000000..1fe920d5 --- /dev/null +++ b/src/assets/weather/partly-sunny-outline.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/assets/weather/rainy-outline.svg b/src/assets/weather/rainy-outline.svg new file mode 100644 index 00000000..ca34d787 --- /dev/null +++ b/src/assets/weather/rainy-outline.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/assets/weather/sunny-outline.svg b/src/assets/weather/sunny-outline.svg new file mode 100644 index 00000000..1ed53451 --- /dev/null +++ b/src/assets/weather/sunny-outline.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/components/cards/PwcCard.vue b/src/components/cards/PwcCard.vue index 6572a8f0..cf1dbaef 100644 --- a/src/components/cards/PwcCard.vue +++ b/src/components/cards/PwcCard.vue @@ -106,7 +106,7 @@ export default { }, openingStatus() { if (this.closedDays.includes(this.currentTime.toISOString().substr(0, 10))) { - return 'Closed Today!'; + return 'Closed Today'; } return this.isOpen ? 'Open' : `Opens at ${this.formatTime(this.nextOpeningTime)}`; diff --git a/src/components/cards/WeatherCard.vue b/src/components/cards/WeatherCard.vue index 85c0465e..d06aa2ff 100644 --- a/src/components/cards/WeatherCard.vue +++ b/src/components/cards/WeatherCard.vue @@ -6,17 +6,11 @@

{{ weather.day }}

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

{{ weather.temp_high }}°

@@ -28,26 +22,25 @@
Weather data by Open-Meteo.com
-