Skip to content

feat: big codesandbox text #124

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

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
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
174 changes: 173 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@
"@sentry/node": "^9.29.0",
"@tanstack/react-query": "^5.76.1",
"ink": "^5.2.1",
"ink-big-text": "^2.0.0",
"isbinaryfile": "^5.0.4",
"isomorphic-ws": "^5.0.0",
"ora": "^8.2.0",
Expand Down
13 changes: 8 additions & 5 deletions src/bin/ui/Dashboard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { Box, Text, useInput, useStdout } from "ink";
import { useSDK } from "./sdkContext";
import { useQuery } from "@tanstack/react-query";
import { getSandbox, getRunningVms } from "./api";
import BigText from "ink-big-text";

// Custom hook to get terminal size
function useTerminalSize() {
Expand Down Expand Up @@ -77,15 +78,17 @@ export function Dashboard() {
}

return (
<Box flexDirection="column" width={stdoutWidth} height={stdoutHeight}>
<Box marginBottom={1}>
<Text bold>CodeSandbox</Text>
<Box flexDirection="column" width={stdoutWidth} height={stdoutHeight} gap={1}>
<Box flexDirection="column" marginTop={1}>
<Text>█▀▀█ █▀▀ █▀█ █▀▄ █▀▀ █▀▀ ▄▀█ █▄ █ █▀▄ █▄▄ █▀█ ▀▄▀</Text>
<Text>█▄▄█ █▄▄ █▄█ █▄▀ ██▄ ▄▄█ █▀█ █ ▀█ █▄▀ █▄█ █▄█ █ █</Text>
{/* <BigText font="tiny" text="CodeSandbox" /> */}
</Box>
<Box marginY={1}>
<Box>
<Text>Enter Sandbox ID: </Text>
<Text color={isFocused ? "green" : undefined}>{sandboxId || "_"}</Text>
</Box>
<Box marginTop={1}>
<Box>
<Text dimColor>Type to input ID, press ENTER to open</Text>
</Box>
</Box>
Expand Down