Skip to content
This repository was archived by the owner on Dec 8, 2025. It is now read-only.

Commit e0c2f5b

Browse files
committed
simpler button
1 parent 01f7ff5 commit e0c2f5b

3 files changed

Lines changed: 3 additions & 62 deletions

File tree

website/src/components/TutorialComponents/CodeSandboxButton.tsx

Lines changed: 1 addition & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -53,65 +53,7 @@ export default function CodeSandboxButton(props: {
5353
onClick={handleClick}
5454
disabled={importing}
5555
>
56-
<svg
57-
xmlns="http://www.w3.org/2000/svg"
58-
width="16"
59-
height="16"
60-
viewBox="0 0 256 256"
61-
>
62-
<rect width="256" height="256" fill="none" />
63-
<path
64-
d="M224,177.3V78.7a8.1,8.1,0,0,0-4.1-7l-88-49.5a7.8,7.8,0,0,0-7.8,0l-88,49.5a8.1,8.1,0,0,0-4.1,7v98.6a8.1,8.1,0,0,0,4.1,7l88,49.5a7.8,7.8,0,0,0,7.8,0l88-49.5A8.1,8.1,0,0,0,224,177.3Z"
65-
fill="none"
66-
stroke="#000"
67-
strokeLinecap="round"
68-
strokeLinejoin="round"
69-
strokeWidth="12"
70-
/>
71-
<polyline
72-
points="222.9 74.6 128.9 128 33.1 74.6"
73-
fill="none"
74-
stroke="#000"
75-
strokeLinecap="round"
76-
strokeLinejoin="round"
77-
strokeWidth="12"
78-
/>
79-
<line
80-
x1="128.9"
81-
y1="128"
82-
x2="128"
83-
y2="234.8"
84-
fill="none"
85-
stroke="#000"
86-
strokeLinecap="round"
87-
strokeLinejoin="round"
88-
strokeWidth="12"
89-
/>
90-
<polyline
91-
points="177 47.5 128 75.1 79 47.5"
92-
fill="none"
93-
stroke="#000"
94-
strokeLinecap="round"
95-
strokeLinejoin="round"
96-
strokeWidth="12"
97-
/>
98-
<polyline
99-
points="176 209 176 153.9 224 126.9"
100-
fill="none"
101-
stroke="#000"
102-
strokeLinecap="round"
103-
strokeLinejoin="round"
104-
strokeWidth="12"
105-
/>
106-
<polyline
107-
points="80 209 80 153.9 32 126.9"
108-
fill="none"
109-
stroke="#000"
110-
strokeLinecap="round"
111-
strokeLinejoin="round"
112-
strokeWidth="12"
113-
/>
114-
</svg>
56+
Fork
11557
</button>
11658
)
11759
}

website/src/components/TutorialComponents/index.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ import styles from "./styles.module.css"
1010
import Prism from "prism-react-renderer/prism"
1111

1212
import DevToolsContext from "@site/src/contexts/DevToolsContext"
13-
import CodeSandboxButton from "./CodeSandboxButton"
1413

1514
interface CodeBlockProps {
1615
lang: string

website/src/contexts/SplitDevTools.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ export default function SplitDevTools(props) {
5757
ref={iframeRef}
5858
id="jacdac-dashboard"
5959
className="pane right"
60-
allow="usb;serial;bluetooth"
61-
sandbox="allow-scripts allow-downloads allow-same-origin"
60+
allow="accelerometer; ambient-light-sensor; camera; encrypted-media; geolocation; gyroscope; hid; microphone; midi; payment; usb; vr; xr-spatial-tracking; serial; bluetooth"
61+
sandbox="allow-forms allow-scripts allow-downloads allow-modals allow-popups allow-presentation allow-same-origin allow-scripts"
6262
src={url}
6363
frameBorder="0"
6464
/>

0 commit comments

Comments
 (0)