From 94976ea3cf13ed35ae72e225b0cc628a9990a839 Mon Sep 17 00:00:00 2001 From: lideming <14901890+lideming@users.noreply.github.com> Date: Wed, 17 Jan 2024 08:38:56 +0800 Subject: [PATCH] feat: progress bar in preload ui --- index.html | 22 +++++++++++++++++++++- src/Infra/UI.ts | 21 +++++++++++---------- src/main.ts | 12 ++++++++++-- 3 files changed, 42 insertions(+), 13 deletions(-) diff --git a/index.html b/index.html index 4ef4b5d..af4a007 100644 --- a/index.html +++ b/index.html @@ -51,6 +51,21 @@ #preload-infos p.error { color: red; } + + #preload-progress-bar { + width: 180px; + height: 4px; + background: #ccc; + position: relative; + margin: 0 auto 10px; + } + + #preload-progress-bar-fill { + width: 5%; + height: 100%; + background: gray; + transition: width .3s; + }