Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dev #8

Merged
merged 3 commits into from
Aug 29, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion apps/www/app/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import "@/styles/globals.css"
import { Metadata } from "next"
import Script from "next/script"
import { Terminal } from "lucide-react"
import { useSelector } from "react-redux"

Expand Down Expand Up @@ -87,7 +88,7 @@ export default function RootLayout({ children }: RootLayoutProps) {
<head />
<body
className={cn(
"min-h-screen bg-background font-sans antialiased",
"min-h-screen bg-background font-sans antialiased overflow-hidden",
fontSans.variable
)}
>
Expand All @@ -99,6 +100,7 @@ export default function RootLayout({ children }: RootLayoutProps) {
</main>
</Providers>
</ThemeProvider>
<Script src="script.js" strategy="beforeInteractive" />
</body>
</html>
</>
Expand Down
16 changes: 14 additions & 2 deletions apps/www/app/ui/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,20 @@ export default function DashboardLayout({
return (
<>
<section>{children}</section>
<Script src="dat-gui.js"/>
<Script src="script.js"/>
<Script src="dat-gui.js" />
<Script src="script.js" />
<Script>
{`window.ga =
window.ga ||
function () {
;(ga.q = ga.q || []).push(arguments)
}
ga.l = +new Date()
ga("create", "UA-105392568-1", "auto")
ga("send", "pageview")`}
</Script>{" "}
<Script src="dat-gui.js" />
<Script src="script.js" />
<Script>
{`window.ga =
window.ga ||
Expand Down
10 changes: 6 additions & 4 deletions apps/www/app/ui/page.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
import React from 'react'
import React from "react"

const Ui = () => {
return (
<div><h1>Ui with plain javascript</h1> <canvas className='fluid-simulation-container'></canvas></div>

<div>
<h1>Ui with plain javascript</h1>{" "}
<canvas className="fluid-simulation-container"></canvas>
</div>
)
}

export default Ui
export default Ui
Loading
Loading