update template

This commit is contained in:
rulingcom 2021-12-28 11:44:50 +00:00
parent 6a936dcd4e
commit 9363789509
5 changed files with 75 additions and 14 deletions

View File

@ -8,7 +8,7 @@
<%= render_orbit_bar %>
<!-- <div class="background" data-pp="100"></div> -->
<%= render_header %>
<div class="downIcon" ><a href="#onesection" title="目標"><span><img style="display: none;" src="/assets/down.svg" alt="移動至目標位置"></span></a></div>
<div class="downIcon" ><a href="#onesection" title="目標"><span><img style="display: none;" src="/assets/down.svg" title="移動至目標位置" alt="移動至目標位置"></span></a></div>
<div class="bigcontent">
<div class="layout-content topcontent">
<a id="accesskey_content" accesskey="C" href="/<%= "#{locale.to_s}" %>/accesskey" title="Content">:::</a>

View File

@ -0,0 +1,52 @@
<div>
<style type="text/css">
.weather_widget1{
background: #06dd95;
display: inline-block;
width: 100%;
padding: 1.5em 0.8em;;
font-size: 1.3em;
font-weight: bold;
}
.weather_widget1 .white_text{
color: #ffffff;
font-size: 1.5em;
overflow-wrap: break-word;
}
.weatherICON{
padding: 0;
}
.weatherICON img{
width: 100%;
}
</style>
<div class="weather_widget1" data-list="weather" data-level="0">
<div class="col-sm-12 columns weatherBlock">
<div class="col-sm-4 columns weatherICON">
<img src="{{wx_svg}}" data-name="wx_svg" title="{{wx_text}}" alt="{{wx_text}}" />
</div>
<div class="col-sm-4 columns">
<div class="weatherTXT" data-name="wx_text">{{wx_text}}</div>
<div class="Tempature white_text" data-name="avgt">{{avgt}}<span>℃</span></div>
</div>
<div class="col-sm-4 columns">
<div class="UviItem">{{uv-head}}</div>
<div class="UviText white_text" data-name="uvi_text">{{uvi_text}}</div>
</div>
</div>
<div class="col-sm-12 columns weatherBlock">
<div class="col-sm-4 columns">
<div class="weatherItem">{{relative_humidity-head}}</div>
<div class="weatherItemNum white_text"><span data-name="rh">{{rh}}</span>%</div>
</div>
<div class="col-sm-4 columns">
<div class="weatherItem">{{current_wind_speed-head}}</div>
<div class="weatherItemNum white_text"><span data-name="ws">{{ws}}</span>m/s</div>
</div>
<div class="col-sm-4 columns">
<div class="weatherItem">{{accumulated_rainfall-head}}</div>
<div class="weatherItemNum white_text"><span data-name="rain">{{rain}}</span>mm</div>
</div>
</div>
</div>
</div>

View File

@ -1,14 +1,23 @@
{
"frontend": [
],
"widgets" : [
"widgets": [
{
"filename" : "ruling_weather_widget1",
"name" : {
"zh_tw" : "1. 天氣呈現樣式1",
"en" : "1. Weather layout 1"
"filename": "ruling_weather_widget1",
"name": {
"zh_tw": "1. 天氣呈現樣式1",
"en": "1. Weather layout 1"
},
"thumbnail" : "weather1_thumbs.png"
"thumbnail": "weather1_thumbs.png"
},
{
"filename": "ruling_weather_widget2",
"name": {
"zh_tw": "2. 天氣呈現樣式2",
"en": "2. Weather layout 2"
},
"thumbnail": "weather2_thumbs.png"
}
]
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 22 KiB

After

Width:  |  Height:  |  Size: 23 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB