Add logo to background

This commit is contained in:
Asher
2020-02-05 13:25:44 -06:00
parent 8cc11d1688
commit 7c6fe56043
3 changed files with 90 additions and 1 deletions

View File

@@ -3,6 +3,7 @@ import * as React from "react"
import { Application, isExecutableApplication } from "../common/api"
import { HttpError } from "../common/http"
import { normalize, Options } from "../common/util"
import { Logo } from "./components/logo"
import { Modal } from "./components/modal"
export interface AppProps {
@@ -31,10 +32,19 @@ const App: React.FunctionComponent<AppProps> = (props) => {
return (
<>
{!app || !app.loaded ? (
<div className="coder-splash">
<Logo />
</div>
) : (
undefined
)}
<Modal app={app} setApp={setApp} authed={authed} error={error} setError={setError} />
{authed && app && app.embedPath ? (
<iframe id="iframe" src={normalize(`${getBasepath()}/${app.embedPath}/`, true)}></iframe>
) : null}
) : (
undefined
)}
</>
)
}