diff --git a/modules/ruling_weather/_ruling_weather_widget1.html.erb b/modules/ruling_weather/_ruling_weather_widget1.html.erb new file mode 100644 index 0000000..1a1b2e8 --- /dev/null +++ b/modules/ruling_weather/_ruling_weather_widget1.html.erb @@ -0,0 +1,98 @@ +
+ +
+
+
+ {{wx_text}} +
+
+
{{wx_text}}
+
{{avgt}}
+
+
+
{{uv-head}}
+
{{uvi_text}}
+
+
+
+
+
{{relative_humidity-head}}
+
{{rh}}%
+
+
+
{{current_wind_speed-head}}
+
{{ws}}m/s
+
+
+
{{accumulated_rainfall-head}}
+
{{rain}}mm
+
+
+
+
diff --git a/modules/ruling_weather/_ruling_weather_widget2.html.erb b/modules/ruling_weather/_ruling_weather_widget2.html.erb new file mode 100644 index 0000000..90a50e4 --- /dev/null +++ b/modules/ruling_weather/_ruling_weather_widget2.html.erb @@ -0,0 +1,52 @@ +
+ +
+
+
+ {{wx_text}} +
+
+
{{wx_text}}
+
{{avgt}}
+
+
+
{{uv-head}}
+
{{uvi_text}}
+
+
+
+
+
{{relative_humidity-head}}
+
{{rh}}%
+
+
+
{{current_wind_speed-head}}
+
{{ws}}m/s
+
+
+
{{accumulated_rainfall-head}}
+
{{rain}}mm
+
+
+
+
\ No newline at end of file diff --git a/modules/ruling_weather/info.json b/modules/ruling_weather/info.json new file mode 100644 index 0000000..126e501 --- /dev/null +++ b/modules/ruling_weather/info.json @@ -0,0 +1,22 @@ +{ + "frontend": [ + ], + "widgets" : [ + { + "filename" : "ruling_weather_widget1", + "name" : { + "zh_tw" : "1. 天氣呈現樣式1", + "en" : "1. Weather layout 1" + }, + "thumbnail" : "weather1_thumbs.png" + }, + { + "filename" : "ruling_weather_widget2", + "name" : { + "zh_tw" : "2. 天氣呈現樣式2", + "en" : "2. Weather layout 2" + }, + "thumbnail" : "weather2_thumbs.png" + } + ] +} \ No newline at end of file diff --git a/modules/ruling_weather/thumbs/weather1_thumbs.png b/modules/ruling_weather/thumbs/weather1_thumbs.png new file mode 100644 index 0000000..676d874 Binary files /dev/null and b/modules/ruling_weather/thumbs/weather1_thumbs.png differ diff --git a/modules/ruling_weather/thumbs/weather2_thumbs.png b/modules/ruling_weather/thumbs/weather2_thumbs.png new file mode 100644 index 0000000..e4bcf01 Binary files /dev/null and b/modules/ruling_weather/thumbs/weather2_thumbs.png differ