-
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4951cff
commit bc7095d
Showing
12 changed files
with
1,690 additions
and
1,646 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,56 +1,63 @@ | ||
import { clientOnly } from "@solidjs/start"; | ||
import "./playground.css"; | ||
|
||
const Editor = clientOnly(() => import("./Editor")); | ||
|
||
export default function () { | ||
return ( | ||
<div class="w-screen h-screen bg-neutral-900 text-white flex flex-col"> | ||
<Header /> | ||
<main class="flex-1 w-full bg-neutral-800 overflow-hidden"> | ||
<Editor /> | ||
</main> | ||
</div> | ||
); | ||
return ( | ||
<div class="w-screen h-screen bg-neutral-900 text-white flex flex-col"> | ||
<Meta name="apple-mobile-web-app-capable" content="yes" /> | ||
<Meta | ||
name="viewport" | ||
content="width=device-width, initial-scale=1, maximum-scale=1" | ||
/> | ||
<Header /> | ||
<main class="flex-1 w-full bg-neutral-800 overflow-hidden"> | ||
<Editor /> | ||
</main> | ||
</div> | ||
); | ||
} | ||
|
||
const MenuItems = clientOnly(() => | ||
import("./Editor").then((i) => ({ default: i.ConnectionsDialogButton })), | ||
import("./Editor").then((i) => ({ default: i.ConnectionsDialogButton })), | ||
); | ||
const ProjectName = clientOnly(() => | ||
import("./Editor").then((i) => ({ default: i.ProjectName })), | ||
import("./Editor").then((i) => ({ default: i.ProjectName })), | ||
); | ||
const ExportButton = clientOnly(() => | ||
import("./Editor").then((i) => ({ default: i.ExportButton })), | ||
import("./Editor").then((i) => ({ default: i.ExportButton })), | ||
); | ||
const ShareButton = clientOnly(() => | ||
import("./Editor").then((i) => ({ default: i.ShareButton })), | ||
import("./Editor").then((i) => ({ default: i.ShareButton })), | ||
); | ||
import { HeaderAuthFallback } from "../HeaderAuthSection"; | ||
import { Logo } from "../Logo"; | ||
import { Meta } from "@solidjs/meta"; | ||
|
||
const AuthSection = clientOnly(() => | ||
import("../HeaderAuthSection").then((i) => ({ | ||
default: i.HeaderAuthSection, | ||
})), | ||
import("../HeaderAuthSection").then((i) => ({ | ||
default: i.HeaderAuthSection, | ||
})), | ||
); | ||
|
||
function Header() { | ||
return ( | ||
<header class="w-full flex flex-row p-2 justify-between items-center h-12"> | ||
<div class="flex-1 flex flex-row gap-2 items-center"> | ||
<Logo /> | ||
<MenuItems /> | ||
</div> | ||
<div class="text-sm font-medium"> | ||
<ProjectName /> | ||
</div> | ||
<div class="flex-1 flex flex-row justify-end items-center gap-1"> | ||
<div class="flex-1 pl-2"> | ||
<ExportButton /> | ||
<ShareButton /> | ||
</div> | ||
<AuthSection fallback={<HeaderAuthFallback />} /> | ||
</div> | ||
</header> | ||
); | ||
return ( | ||
<header class="w-full flex flex-row p-2 justify-between items-center h-12"> | ||
<div class="flex-1 flex flex-row gap-2 items-center"> | ||
<Logo /> | ||
<MenuItems /> | ||
</div> | ||
<div class="text-sm font-medium"> | ||
<ProjectName /> | ||
</div> | ||
<div class="flex-1 flex flex-row justify-end items-center gap-1"> | ||
<div class="flex-1 pl-2"> | ||
<ExportButton /> | ||
<ShareButton /> | ||
</div> | ||
<AuthSection fallback={<HeaderAuthFallback />} /> | ||
</div> | ||
</header> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
body { | ||
overscroll-behavior-y: none; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,22 @@ | ||
import { StartServer, createHandler } from "@solidjs/start/server"; | ||
|
||
export default createHandler( | ||
() => ( | ||
<StartServer | ||
document={({ assets, children, scripts }) => ( | ||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8" /> | ||
<meta | ||
name="viewport" | ||
content="width=device-width, initial-scale=1" | ||
/> | ||
<link rel="icon" href="/favicon.png" /> | ||
{assets} | ||
</head> | ||
<body class="bg-neutral-900" id="app"> | ||
{children} | ||
{scripts} | ||
</body> | ||
</html> | ||
)} | ||
/> | ||
), | ||
{ mode: "async" }, | ||
() => ( | ||
<StartServer | ||
document={({ assets, children, scripts }) => ( | ||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8" /> | ||
<link rel="icon" href="/favicon.png" /> | ||
{assets} | ||
</head> | ||
<body class="bg-neutral-900" id="app"> | ||
{children} | ||
{scripts} | ||
</body> | ||
</html> | ||
)} | ||
/> | ||
), | ||
{ mode: "async" }, | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.