-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CE-1262 Set up authentication page #6
Changes from all commits
cbf8e1b
c50fd0b
84192db
fad4afe
7d4c06e
db0b2f4
1438ace
1fd0bbb
eaf22eb
28baa84
47e6d39
8297b69
bf80732
0bcabef
60691cc
8ec57ad
5bac113
30cf9e4
ab9c8c3
49d70ff
7bb158f
16e00c8
b1294e4
2c19f81
5a6d69c
e719fb5
a0103c9
213f646
d5eb74a
5c3349a
7bcd28e
653423a
50a4b65
fc86f6a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,8 +9,34 @@ | |
</head> | ||
|
||
<body class="min-h-screen bg-mirage-grey"> | ||
<div id="preload" class="bg-mirage-grey h-10 w-10 top-1/2 left-1/2"> | ||
<svg class="animate-spin bg-mirage-grey text-white" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24"> | ||
<circle class="opacity-25" cx="12" cy="12" r="10" stroke="currentColor" stroke-width="4"></circle> | ||
<path class="opacity-75" fill="currentColor" d="M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"></path> | ||
</svg> | ||
</div> | ||
<div id="app"></div> | ||
<script type="module" src="/src/main.ts"></script> | ||
</body> | ||
|
||
</html> | ||
</html> | ||
|
||
<script lang="ts"> | ||
document.onreadystatechange = function () { | ||
const state = document.readyState | ||
if (state == 'interactive') { | ||
document.getElementById('preload').style.visibility = 'visible' | ||
document.getElementById('app').style.visibility = 'hidden' | ||
} else if (state == 'complete') { | ||
setTimeout(function () { | ||
document.getElementById('preload').remove() | ||
document.getElementById('app').style.visibility = 'visible' | ||
}, 3000) | ||
} | ||
} | ||
</script> | ||
<style> | ||
#preload { | ||
position: fixed; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. No, it doesn't work there There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. You can try to change this one. You will see overlapping white screen. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I suspect you shouldn't be using Windicss classes in There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I used it and it seem to be ok except class There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @Nutto55 - Did you test is locally where the scripts load instantly or over a slow connection? I don't think you're testing the problem I'm expecting. |
||
} | ||
</style> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm unsure about the sequence here...
#preload
alreadyvisible
?#app
already behidden
? (why not sethidden
onapp
directly in the HTML?)#preload
embedded in main.ts? At this point external styles & scripts are still loading