Skip to content

Commit

Permalink
UI improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
jason5ng32 committed Dec 20, 2023
1 parent 04a43ce commit 24130d6
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 23 deletions.
37 changes: 18 additions & 19 deletions public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -286,31 +286,13 @@ <h2 id="SpeedTest" :class="{'mobile-h2' : isMobile }">🚀 {{currentTexts.speedt
<div class="col-12">
<div class="card jn-card" :class="{ 'dark-mode dark-mode-border': isDarkMode }">
<div class="card-body">
<div class="progress" style="height: 20px; margin: 4pt 0 10pt 0;"
<div class="progress" style="height: 20px; margin: 4pt 0 20pt 0;"
:class="{ 'jn-opacity-0': speedTestStatus == 'idle', 'jn-progress-dark': isDarkMode }">
<div class="progress-bar progress-bar-striped progress-bar-animated bg-success jn-progress"
role="progressbar" style="width: 0%;" aria-valuenow="0" aria-valuemin="0" aria-valuemax="100"
id="speedtest-progress">
</div>
</div>
<div class="row" v-if="speedTestStatus === 'finished'">
<p id="score" class="speedtest-p">📋 {{currentTexts.speedtest.score}}
{{currentTexts.speedtest.videoStreaming}}
<span :class="speedTest.streamingScore >= 50 ? 'text-success' : 'text-warning'">
{{speedTest.streamingScore}}
</span>
{{currentTexts.speedtest.gaming}}
<span :class="speedTest.gamingScore >= 50 ? 'text-success' : 'text-warning'">
{{speedTest.gamingScore}}
</span>
{{currentTexts.speedtest.rtc}}
<span :class="speedTest.rtcScore >= 50 ? 'text-success' : 'text-warning'">
{{speedTest.rtcScore}}
</span>
{{currentTexts.speedtest.resultNote}}
</p>
</div>

<div class="row" style="margin-bottom: 10pt;">
<div :class="['text-center', isMobile ? 'col-6' : 'col-3']">
<h5 class="speedtest-h5">{{currentTexts.speedtest.Download}}</h5>
Expand Down Expand Up @@ -341,6 +323,23 @@ <h5 class="speedtest-h5">{{currentTexts.speedtest.Jitter}}</h5>
</p>
</div>
</div>
<div class="row jn-speedtest-note text-center" v-if="speedTestStatus === 'finished'">
<p id="score" class="speedtest-p">📋 {{currentTexts.speedtest.score}}
{{currentTexts.speedtest.videoStreaming}}
<span :class="speedTest.streamingScore >= 50 ? 'text-success' : 'text-warning'">
{{speedTest.streamingScore}}
</span>
{{currentTexts.speedtest.gaming}}
<span :class="speedTest.gamingScore >= 50 ? 'text-success' : 'text-warning'">
{{speedTest.gamingScore}}
</span>
{{currentTexts.speedtest.rtc}}
<span :class="speedTest.rtcScore >= 50 ? 'text-success' : 'text-warning'">
{{speedTest.rtcScore}}
</span>
{{currentTexts.speedtest.resultNote}}
</p>
</div>
<div id="result"></div>
</div>
</div>
Expand Down
14 changes: 10 additions & 4 deletions public/res/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -116,10 +116,6 @@ footer {
overflow: hidden;
text-overflow: ellipsis;
}

/* .speedtest-p {
font-size: 12px;
} */
}

.jn-radio {
Expand Down Expand Up @@ -243,4 +239,14 @@ footer {

.jn-speedtest-number {
font-size: 2em;
}
.jn-speedtest-note::before {
content: "";
border-top: 1px solid #19945a5c;
width: 50%;
margin: 0 auto;
}

.speedtest-p {
margin-top:10pt;
}

0 comments on commit 24130d6

Please sign in to comment.