Settings:
diff --git a/docs/src/css/custom.css b/docs/src/css/custom.css
index 3755c612b..acbff1c8b 100644
--- a/docs/src/css/custom.css
+++ b/docs/src/css/custom.css
@@ -14,6 +14,9 @@
--ifm-color-primary-lighter: #8080f9;
--ifm-color-primary-lightest: #a5abfc;
--ifm-code-font-size: 95%;
+ --ifm-h1-font-size: 2.25rem;
+ --ifm-h2-font-size: 2rem;
+ --ifm-h3-font-size: 1.5rem;
--docusaurus-highlighted-code-line-bg: rgba(0, 0, 0, 0.1);
}
diff --git a/docs/src/pages/index.tsx b/docs/src/pages/index.tsx
index 9e184563a..9ba32468c 100644
--- a/docs/src/pages/index.tsx
+++ b/docs/src/pages/index.tsx
@@ -5,7 +5,6 @@ import { GiFeather, GiBattery100, GiSpeedometer } from 'react-icons/gi';
import { IoCloudOffline } from 'react-icons/io5';
import { MdAudiotrack, MdLiveTv } from 'react-icons/md';
import Link from '@docusaurus/Link';
-import useDocusaurusContext from '@docusaurus/useDocusaurusContext';
import Layout from '@theme/Layout';
import Heading from '@theme/Heading';
@@ -14,12 +13,12 @@ import { PropsWithChildren } from 'react';
import { IconContext, IconType } from 'react-icons';
import MembraneLogo from '@site/static/img/membrane-logo.svg';
import SwmLogo from '@site/static/img/swm-logo.svg';
-import ComposingImg from '@site/static/img/how_it_works.png';
+import ComposingImg from '@site/static/img/how_it_works.webp';
import WebGpuLogoDark from '@site/static/img/webgpu-dark.svg';
import WebGpuLogoLight from '@site/static/img/webgpu-light.svg';
-import VideoConferencingImg from '@site/static/img/videoconferencing.jpg';
-import StreamingImg from '@site/static/img/streaming.jpg';
-import BroadcastingImg from '@site/static/img/broadcasting.jpg';
+import VideoConferencingImg from '@site/static/img/videoconferencing.webp';
+import StreamingImg from '@site/static/img/streaming.webp';
+import BroadcastingImg from '@site/static/img/broadcasting.webp';
import { useColorMode } from '@docusaurus/theme-common';
import TypewriterComponent from 'typewriter-effect';
import ExampleScene from '../components/example_scene';
@@ -85,7 +84,7 @@ function HomepageHeader() {
autoPlay
muted
src="/video/showcase.mp4"
- poster="/img/showcase_poster.jpg"
+ poster="/img/showcase_poster.webp"
style={{ width: '100%', display: 'block' }}
/>
@@ -98,7 +97,7 @@ function HomepageHeader() {
function HowItWorks() {
return (
-
+
How it works?
@@ -123,7 +122,7 @@ function HowItWorks() {
function UseCases() {
return (
-
+
Use cases
@@ -156,7 +155,7 @@ function UseCaseCard(props: UseCaseCardProps) {
return (
-
+
{props.title}
@@ -173,7 +172,7 @@ function UseCaseCard(props: UseCaseCardProps) {
function VisionCards() {
return (
-
+
Vision
@@ -216,7 +215,7 @@ function VisionCard(props: PropsWithChildren) {
-
+
{props.title}
@@ -234,7 +233,7 @@ type FeatureProps = {
function Feature(props: PropsWithChildren
) {
const text = (
-
+
{props.text}
{props.secondaryText}
@@ -263,7 +262,7 @@ function Features() {
return (
-
+
Capabilities
Simple, powerful, fast. Pick three.
@@ -426,7 +425,7 @@ function MembranePlugin() {
function Usage() {
return (
-
+
Usage
@@ -439,7 +438,7 @@ function Usage() {
function Licensing() {
return (
-
+
Licensing
@@ -495,7 +494,7 @@ function ContactUs() {
-
+
Contact us
@@ -517,11 +516,8 @@ function ContactUs() {
}
export default function Home(): JSX.Element {
- const { siteConfig } = useDocusaurusContext();
return (
-
+
diff --git a/docs/src/pages/playground.module.css b/docs/src/pages/playground.module.css
index ef63e2c7a..a3c9f9136 100644
--- a/docs/src/pages/playground.module.css
+++ b/docs/src/pages/playground.module.css
@@ -3,32 +3,31 @@
* and scoped locally.
*/
.page {
- display: flex;
- flex-direction: row;
- flex-wrap: wrap;
- height: 75vh;
- margin: 20px;
- }
+ display: flex;
+ flex-direction: row;
+ flex-wrap: wrap;
+ height: 75vh;
+ margin: 20px;
+}
- .leftSide {
- flex: 1;
- margin: 5px;
- }
+.leftSide {
+ flex: 1;
+ margin: 5px;
+}
- .rightSide {
- display: flex;
- flex-direction: column;
- flex: 1;
- margin: 5px;
- }
+.rightSide {
+ display: flex;
+ flex-direction: column;
+ flex: 1;
+ margin: 5px;
+}
- .codeEditor{
- height: 100%;
- width: 100%;
- resize: none;
- min-width: 300px;
- min-height: 120px;
- justify-content: center;
+.codeEditorBox{
+ height: 100%;
+ width: 100%;
+ min-width: 300px;
+ min-height: 120px;
+ justify-content: center;
}
.preview,
@@ -41,17 +40,13 @@
}
.settingsBox {
- width: 100%;
- height: 50%;
+ width: 100%;
+ height: 50%;
}
.preview {
- border-radius: 2px;
- border-style: groove;
- width: 100%;
- height: 50%;
-}
-
-.settings {
- margin: 10px;
+ border-radius: 2px;
+ border-style: groove;
+ width: 100%;
+ height: 50%;
}
diff --git a/docs/src/pages/playground.tsx b/docs/src/pages/playground.tsx
index 669657eac..8eaf03e2b 100644
--- a/docs/src/pages/playground.tsx
+++ b/docs/src/pages/playground.tsx
@@ -7,14 +7,15 @@ import PlaygroundRenderSettings from '../components/PlaygroundRenderSettings';
import PlaygroundPreview from '../components/PlaygroundPreview';
import PlaygroundCodeEditor from '../components/PlaygroundCodeEditor';
import toast, { Toaster } from 'react-hot-toast';
-import { buildRequestSceneObject, handleRenderImageRequest } from '../api';
+import { renderImage } from '../api';
-const BACKEND_URL: URL = new URL('http://localhost:8081');
+const INITIAL_SCENE = {
+ type: 'view',
+};
+const INITIAL_SCENE_STRING = JSON.stringify(INITIAL_SCENE, null, 2);
-function Homepage(): JSX.Element {
- const [scene, setScene] = useState