Skip to content
Closed
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: 4 additions & 0 deletions src/components/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ const TraceAlert = lazy(() => import("./shell/TraceAlert"))
const WebDiagnostics = lazy(() => import("./shell/WebDiagnostics"))
const WebCam = lazy(() => import("./ui/WebCam"))
const PassiveAlert = lazy(() => import("./shell/PassiveAlert"))
const MigrationAlert = lazy(() => import("./shell/MigrationAlert"))
const YouTubePlayer = lazy(() => import("./youtube/YouTubePlayer"))

const PREFIX = "Layout"
Expand Down Expand Up @@ -251,6 +252,9 @@ function LayoutWithContext(props: LayoutProps) {

const InnerMainSection = () => (
<>
<Suspense>
<MigrationAlert />
</Suspense>
<Suspense>
<SimulatorCommands />
</Suspense>
Expand Down
27 changes: 27 additions & 0 deletions src/components/shell/MigrationAlert.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
import { Box } from "@mui/material"
import { AlertTitle } from "@mui/material"
import React from "react"
import Alert from "../ui/Alert"

export default function MigrationAlert() {
return (
<Alert severity="warning" sx={{ mb: 2 }}>
<AlertTitle>📢 Important: Jacdac has moved!</AlertTitle>
The Jacdac project has moved to{" "}
<Box
component="a"
href="https://github.com/jacdac"
target="_blank"
rel="noopener noreferrer"
sx={{
color: "inherit",
textDecoration: "underline",
fontWeight: "bold",
}}
>
https://github.com/jacdac
</Box>
. Please update your bookmarks and references to point to the new location.
</Alert>
)
}