Add loader to splash screen

pull/2011/head
David Disu 3 years ago
parent 54e6ff08fe
commit 91f972713e
  1. 22
      apps/remix-ide/src/index.css
  2. 6
      apps/remix-ide/src/index.tsx

@ -0,0 +1,22 @@
.centered {
position : fixed;
top : 20%;
left : 45%;
width : 200px;
height : 200px;
}
.centered svg path {
fill: var(--secondary);
}
.centered svg polygon {
fill : var(--secondary);
}
.splash {
text-align: center;
}
.version {
cursor: pointer;
font-size: 0.8rem;
font-weight: normal;
max-width: 300px;
}

@ -3,6 +3,8 @@ import React from 'react'
import { render } from 'react-dom'
// eslint-disable-next-line no-unused-vars
import { RemixApp } from '@remix-ui/app'
import * as packageJson from '../../../package.json'
import './index.css'
(function () {
render(
@ -15,6 +17,9 @@ import { RemixApp } from '@remix-ui/app'
</svg>
<div className="info-secondary splash">
REMIX IDE
<div>
<span className='version'>v{ packageJson.version }</span> <i className="far fa-spinner-third fa-spin fa-sm"></i>
</div>
</div>
</div>
</React.StrictMode>,
@ -35,3 +40,4 @@ import ('./app').then((AppComponent) => {
}).catch(err => {
console.log('Error on loading Remix:', err)
})

Loading…
Cancel
Save