53 | {/* Header */}
54 |
55 |
56 |
57 |
58 |
59 |
60 |
Code Editor
61 |
Write and execute your code
62 |
63 |
64 |
65 | {/* Font Size Slider */}
66 |
67 |
68 |
69 | handleFontSizeChange(parseInt(e.target.value))}
75 | className="w-20 h-1 bg-gray-600 rounded-lg cursor-pointer"
76 | />
77 |
78 | {fontSize}
79 |
80 |
81 |
82 |
83 |
90 |
91 |
92 |
93 | {/* Share Button */}
94 |
setIsShareDialogOpen(true)}
98 | className="inline-flex items-center gap-2 px-4 py-2 rounded-lg overflow-hidden bg-gradient-to-r
99 | from-blue-500 to-blue-600 opacity-90 hover:opacity-100 transition-opacity"
100 | >
101 |
102 | Share
103 |
104 |
105 |
106 |
107 | {/* Editor */}
108 |
109 | {clerk.loaded && (
110 | setEditor(editor)}
117 | options={{
118 | minimap: { enabled: false },
119 | fontSize,
120 | automaticLayout: true,
121 | scrollBeyondLastLine: false,
122 | padding: { top: 16, bottom: 16 },
123 | renderWhitespace: "selection",
124 | fontFamily: '"Fira Code", "Cascadia Code", Consolas, monospace',
125 | fontLigatures: true,
126 | cursorBlinking: "smooth",
127 | smoothScrolling: true,
128 | contextmenu: true,
129 | renderLineHighlight: "all",
130 | lineHeight: 1.6,
131 | letterSpacing: 0.5,
132 | roundedSelection: true,
133 | scrollbar: {
134 | verticalScrollbarSize: 8,
135 | horizontalScrollbarSize: 8,
136 | },
137 | }}
138 | />
139 | )}
140 |
141 | {!clerk.loaded && }
142 |
143 |