-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a42d89a
commit 3f3fcac
Showing
7 changed files
with
104 additions
and
125 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
/** Icon assets: Check https://www.amcharts.com/free-animated-svg-weather-icons/ */ | ||
import thunder from '@/assets/amcharts-weather-icons/animated/thunder.svg'; | ||
import rainy2 from '@/assets/amcharts-weather-icons/animated/rainy-2.svg'; | ||
import rainy3 from '@/assets/amcharts-weather-icons/animated/rainy-3.svg'; | ||
import rainy4 from '@/assets/amcharts-weather-icons/animated/rainy-4.svg'; | ||
import rainy5 from '@/assets/amcharts-weather-icons/animated/rainy-5.svg'; | ||
import rainy6 from '@/assets/amcharts-weather-icons/animated/rainy-6.svg'; | ||
import rainy7 from '@/assets/amcharts-weather-icons/animated/rainy-7.svg'; | ||
import snowy2 from '@/assets/amcharts-weather-icons/animated/snowy-2.svg'; | ||
import snowy3 from '@/assets/amcharts-weather-icons/animated/snowy-3.svg'; | ||
import snowy4 from '@/assets/amcharts-weather-icons/animated/snowy-4.svg'; | ||
import snowy5 from '@/assets/amcharts-weather-icons/animated/snowy-5.svg'; | ||
import snowy6 from '@/assets/amcharts-weather-icons/animated/snowy-6.svg'; | ||
import day from '@/assets/amcharts-weather-icons/animated/day.svg'; | ||
import night from '@/assets/amcharts-weather-icons/animated/night.svg'; | ||
import cloudyDay1 from '@/assets/amcharts-weather-icons/animated/cloudy-day-1.svg'; | ||
import cloudyDay3 from '@/assets/amcharts-weather-icons/animated/cloudy-day-3.svg'; | ||
import cloudyNight1 from '@/assets/amcharts-weather-icons/animated/cloudy-night-1.svg'; | ||
import cloudyNight3 from '@/assets/amcharts-weather-icons/animated/cloudy-night-3.svg'; | ||
import cloudy from '@/assets/amcharts-weather-icons/animated/cloudy.svg'; | ||
|
||
const WeatherIcons = { | ||
thunder, | ||
rainy2, | ||
rainy3, | ||
rainy4, | ||
rainy5, | ||
rainy6, | ||
rainy7, | ||
snowy2, | ||
snowy3, | ||
snowy4, | ||
snowy5, | ||
snowy6, | ||
day, | ||
night, | ||
cloudyDay1, | ||
cloudyDay3, | ||
cloudyNight1, | ||
cloudyNight3, | ||
cloudy | ||
}; | ||
|
||
export default WeatherIcons; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,106 +1,11 @@ | ||
@import (less, reference) "../../assets/styles/icons.less"; | ||
@import (less, reference) '../../assets/styles/breakpoints.less'; | ||
|
||
.weather-icon { | ||
width: 80px; | ||
height: 80px; | ||
display: inline-block; | ||
background-repeat: no-repeat; | ||
background-attachment: scroll; | ||
background-origin: padding-box; | ||
background-clip: border-box; | ||
background-size: contain; | ||
background-image: @cloudyDay1; | ||
margin: -20px; | ||
margin-top: -26px; | ||
|
||
@media @tablet-above { | ||
width: 100px; | ||
height: 100px; | ||
margin: -24px; | ||
margin-top: -30px; | ||
} | ||
|
||
&.thunderstorm { | ||
background-image: @thunder; | ||
} | ||
|
||
&.lightrain { | ||
&.day { | ||
background-image: @rainy2; | ||
} | ||
&.night { | ||
background-image: @rainy4; | ||
} | ||
} | ||
|
||
&.rain { | ||
&.day { | ||
background-image: @rainy3; | ||
} | ||
&.night { | ||
background-image: @rainy5; | ||
} | ||
} | ||
|
||
&.heavyrain { | ||
background-image: @rainy6; | ||
} | ||
|
||
&.hail { | ||
background-image: @rainy7; | ||
} | ||
|
||
&.lightsnow { | ||
&.day { | ||
background-image: @snowy2; | ||
} | ||
&.night { | ||
background-image: @snowy4; | ||
} | ||
} | ||
|
||
&.snow { | ||
&.day { | ||
background-image: @snowy3; | ||
} | ||
&.night { | ||
background-image: @snowy5; | ||
} | ||
} | ||
|
||
&.heavysnow { | ||
background-image: @snowy6; | ||
} | ||
|
||
&.clear { | ||
&.day { | ||
background-image: @day; | ||
} | ||
&.night { | ||
background-image: @night; | ||
} | ||
} | ||
|
||
&.fewclouds { | ||
&.day { | ||
background-image: @cloudyDay1; | ||
} | ||
&.night { | ||
background-image: @cloudyNight1; | ||
} | ||
} | ||
|
||
&.clouds { | ||
&.day { | ||
background-image: @cloudyDay3; | ||
} | ||
&.night { | ||
background-image: @cloudyNight3; | ||
} | ||
} | ||
|
||
&.darkclouds { | ||
background-image: @cloudy; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters