Skip to content

Commit 0718ac7

Browse files
authored
feat: populate and style create modal (#6940)
* feat(create): adding all categories in sidebar * feat(create): create sandbox on click for quick start * wip: scroll issues * feat: proper categories * feat(create): add recent templates on quickstart * fix: prevent crash on /s page * fix: always create sandbox from second screen * fix: build * fix: potential runtime error * feat: redirect v2 created sandboxes to the v2 editor * feat: style second screen * feat: send alias when creating sandbox
1 parent 9369738 commit 0718ac7

File tree

19 files changed

+596
-302
lines changed

19 files changed

+596
-302
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
import React from 'react';
2+
import { Icon, Stack, Text } from '@codesandbox/components';
3+
4+
export const CloudBetaBadge: React.FC<{ hideIcon?: boolean }> = ({
5+
hideIcon,
6+
}) => (
7+
<Stack
8+
css={{
9+
alignItems: 'center',
10+
padding: hideIcon ? '3px 10px' : '6px 10px',
11+
background: '#2e2e2e',
12+
borderRadius: '999px',
13+
}}
14+
gap={2}
15+
>
16+
{!hideIcon && <Icon size={12} name="cloud" />}
17+
<Text size={1}>Beta</Text>
18+
</Stack>
19+
);

packages/app/src/app/components/CreateNewSandbox/CreateSandbox/CodeSandboxTemplates.tsx

Lines changed: 0 additions & 9 deletions
This file was deleted.

0 commit comments

Comments
 (0)