mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-25 07:05:11 +00:00
ef41e205e6
[release]
60 lines
2.6 KiB
HTML
60 lines
2.6 KiB
HTML
<style>
|
|
body, html, #<%= globals.id %> {
|
|
background: <%= (options.theme === 'dark' ? '#2F4A5F' : 'white') %>;
|
|
width: 100%;
|
|
height: 100%;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
#nuxt-loading {
|
|
animation: opacity 1s ease-in-out;
|
|
animation-fill-mode: forwards;
|
|
animation-delay: 1s;
|
|
opacity: 0;
|
|
}
|
|
#nuxt-loading .logo {
|
|
position: relative;
|
|
height: 166px;
|
|
width: 220px;
|
|
}
|
|
#nuxt-loading-status {
|
|
font-family: sans-serif;
|
|
font-weight: 500;
|
|
text-align: center;
|
|
color: <%= (options.theme === 'dark' ? 'white' : '#2F4A5F') %>;
|
|
}
|
|
#nuxt-loading-status.errored {
|
|
color: <%= (options.theme === 'dark' ? '#da6371' : '#D0021B') %>;
|
|
}
|
|
@keyframes opacity {
|
|
100% {
|
|
opacity: 1;
|
|
}
|
|
}
|
|
</style>
|
|
|
|
<div id="nuxt-loading">
|
|
<svg class="logo" width="220" height="166" xmlns="http://www.w3.org/2000/svg">
|
|
<g transform="translate(-18 -29)" fill="none" fill-rule="evenodd">
|
|
<path d="M0 176h67.883a22.32 22.32 0 0 1 2.453-7.296L134 57.718 100.881 0 0 176zM218.694 176H250L167.823 32 153 58.152l62.967 110.579a21.559 21.559 0 0 1 2.727 7.269z" />
|
|
<path d="M86.066 189.388a8.241 8.241 0 0 1-.443-.908 11.638 11.638 0 0 1-.792-6.566H31.976l78.55-138.174 33.05 58.932L154 94.882l-32.69-58.64C120.683 35.1 116.886 29 110.34 29c-2.959 0-7.198 1.28-10.646 7.335L20.12 176.185c-.676 1.211-3.96 7.568-.7 13.203C20.912 191.95 24.08 195 31.068 195h66.646c-6.942 0-10.156-3.004-11.647-5.612z" fill="#00C58E" />
|
|
<path d="M235.702 175.491L172.321 62.216c-.655-1.191-4.313-7.216-10.68-7.216-2.868 0-6.977 1.237-10.32 7.193L143 75.706v26.104l18.709-32.31 62.704 111.626h-23.845c.305 1.846.134 3.74-.496 5.498a7.06 7.06 0 0 1-.497 1.122l-.203.413c-3.207 5.543-10.139 5.841-11.494 5.841h37.302c1.378 0 8.287-.298 11.493-5.841 1.423-2.52 2.439-6.758-.97-12.668z" fill="#108775" />
|
|
<path d="M201.608 189.07l.21-.418c.206-.364.378-.745.515-1.139a10.94 10.94 0 0 0 .515-5.58 16.938 16.938 0 0 0-2.152-5.72l-49.733-87.006L143.5 76h-.136l-7.552 13.207-49.71 87.006a17.534 17.534 0 0 0-1.917 5.72c-.4 2.21-.148 4.486.725 6.557.13.31.278.613.444.906 1.497 2.558 4.677 5.604 11.691 5.604h92.592c1.473 0 8.651-.302 11.971-5.93zm-58.244-86.657l45.455 79.52H97.934l45.43-79.52z" fill="<%= (options.theme === 'dark' ? 'white' : '#2F4A5F') %>" fill-rule="nonzero" />
|
|
</g>
|
|
</svg>
|
|
<h3 id="nuxt-loading-status">Loading...</h3>
|
|
</div>
|
|
|
|
<script>
|
|
window.addEventListener('error', function () {
|
|
var e = document.getElementById('nuxt-loading-status');
|
|
if (e) {
|
|
e.innerHTML = 'An error occurred';
|
|
e.className += 'errored'
|
|
}
|
|
});
|
|
</script>
|