Skip to content

Commit

Permalink
improved the loading view
Browse files Browse the repository at this point in the history
the top-left-corner "Loading..." label had to go. the loading takes a while, and i couldn't bear to stare at it anymore. as part of this change, the "fullscreen" div moved into the primary HTML structure of the app.

todo: see what can be done about that load time. i've read that Blazor can do some lazy-loading during startup. and this app may not need most of the things Blazor loads by default, anyway.
  • Loading branch information
connectuum committed Dec 24, 2021
1 parent 7b5b38c commit e030412
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 7 deletions.
4 changes: 1 addition & 3 deletions solution/Poemdown.Blaze/Shared/MainLayout.razor
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
@inherits LayoutComponentBase

<div class="fullscreen">
@Body
</div>
@Body
14 changes: 12 additions & 2 deletions solution/Poemdown.Blaze/wwwroot/css/app.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
html, body {
font-family: Lato, Helvetica, Arial, sans-serif;
font-size: 14px;
font-family: Georgia, serif;
font-size: 16px;
width: 100%;
height: 100%;
background-color: #111;
Expand Down Expand Up @@ -30,6 +30,15 @@ html, body, textarea {
height: 100%;
}

p.loading {
position: absolute;
top: 30%;
width: 100%;
font-style: italic;
text-align: center;
opacity: 0.618;
}


/* index */

Expand All @@ -44,6 +53,7 @@ html, body, textarea {

.editor {
font-family: Monaco, Lucida Console, monospace;
font-size: 14px;
}

.editor,
Expand Down
8 changes: 6 additions & 2 deletions solution/Poemdown.Blaze/wwwroot/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,12 @@
</head>
<body>

<div id="app">
Loading...
<div id="app" class="fullscreen">
<p class="loading">
the waiting<br/>
is<br/>
excruciating
</p>
</div>

<div id="blazor-error-ui" style="display: none;">
Expand Down

0 comments on commit e030412

Please sign in to comment.