Skip to content

Commit

Permalink
Added Time Tile
Browse files Browse the repository at this point in the history
  • Loading branch information
epicX67 committed Jul 20, 2021
1 parent 5b552a5 commit 1ece5b8
Show file tree
Hide file tree
Showing 5 changed files with 126 additions and 1 deletion.
33 changes: 33 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,23 @@

<header id="header" class="hide">One <span>Ui</span></header>
<div id="main" class="container">
<div style="display: none;" id="time" class="card">
<div class="type">
<i id="time_id1" class="ri-time-line lime"></i>
<p>TIME</p>
</div>

<div class="pill" style="opacity: .3;">
<i class="ri-temp-cold-fill"></i>
<div id="time_id2" class="pill-txt lime"><span>°c</span></div>
</div>
<div id="time_curr" class="load loadClock lime">6:01<span>N/A</span></div>
<div class="pillDown" style="opacity: .3;">
<div id="time_id3" class="pillDown-txt lime">-<span>N/A</span></div>
<i class="ri-dashboard-2-line"></i>
</div>
</div>

<div style="display: none;" id="cpu" class="card">
<div class="type">
<i id="cpu_ico" class="ri-cpu-fill blue"></i>
Expand Down Expand Up @@ -332,6 +349,22 @@ <h1>Settings</h1>
<input onchange="showhideHeader();" type="checkbox" name="show_header" id="show_header">
<label for="show_header">Show Header</label>

<h2>Time</h2>
<input onchange="set_visibility('show_time');update();" type="checkbox" name="show_time" id="show_time">
<label for="show_time">Show Time</label>

<h3>Color</h3>
<div class="colorPicker">
<button onclick="updateColor('time', 'red');update();" id="time_color_red" class="redBG"></button>
<button onclick="updateColor('time', 'blue');update();" id="time_color_blue" class="blueBG"></button>
<button onclick="updateColor('time', 'cyan');update();" id="time_color_cyan" class="cyanBG"></button>
<button onclick="updateColor('time', 'yellow');update();" id="time_color_yellow"
class="yellowBG"></button>
<button onclick="updateColor('time', 'orange');update();" id="time_color_orange"
class="orangeBG"></button>
<button onclick="updateColor('time', 'lime');update();" id="time_color_lime" class="limeBG"></button>
</div>

<h2>CPU</h2>
<input onchange="set_visibility('show_cpu');update();" type="checkbox" name="show_cpu" id="show_cpu">
<label for="show_cpu">Show CPU</label>
Expand Down
24 changes: 24 additions & 0 deletions src/css/style.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/css/style.css.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 13 additions & 0 deletions src/css/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,19 @@ header {
font-size: 3vmin;
}
}
@keyframes breathe {
50% {
opacity: 1;
}

100% {
opacity: 0.3;
}
}
.clockanima {
opacity: 0.3;
animation: breathe 1000ms infinite;
}

.pillDown {
z-index: 2;
Expand Down
Loading

0 comments on commit 1ece5b8

Please sign in to comment.