Skip to content

Commit e58b861

Browse files
authored
Dashboard: add icon + alignment for new sandbox button (codesandbox#4011)
1 parent 42bcbf5 commit e58b861

File tree

2 files changed

+21
-1
lines changed
  • packages
    • app/src/app/pages/NewDashboard/Content/routes/StartSandboxes
    • components/src/components/Icon

2 files changed

+21
-1
lines changed

packages/app/src/app/pages/NewDashboard/Content/routes/StartSandboxes/index.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import {
88
Text,
99
Link,
1010
Button,
11+
Icon,
1112
} from '@codesandbox/components';
1213
import css from '@styled-system/css';
1314
import { SandboxCard } from 'app/pages/NewDashboard/Components/SandboxCard';
@@ -87,7 +88,10 @@ export const StartSandboxes = () => {
8788
},
8889
})}
8990
>
90-
New Sandbox
91+
<Stack direction="vertical" align="center" gap={4}>
92+
<Icon name="plusInCircle" size={24} />
93+
<Text>New Sandbox</Text>
94+
</Stack>
9195
</Button>
9296
</Column>
9397
{sandboxes.RECENT_START_PAGE.map(sandbox => (

packages/components/src/components/Icon/icons.tsx

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,22 @@ export const plus = props => (
215215
</Element>
216216
);
217217

218+
export const plusInCircle = props => (
219+
<Element
220+
as="svg"
221+
viewBox="0 0 16 16"
222+
xmlns="http://www.w3.org/2000/svg"
223+
{...props}
224+
>
225+
<path
226+
fillRule="evenodd"
227+
clipRule="evenodd"
228+
d="M8 16C12.4183 16 16 12.4183 16 8C16 3.58172 12.4183 0 8 0C3.58172 0 0 3.58172 0 8C0 12.4183 3.58172 16 8 16ZM7.467 2.66667H8.53366V7.46666H13.3337V8.53333H8.53366V13.3333H7.467V8.53333H2.66699V7.46666H7.467V2.66667Z"
229+
fill="currentColor"
230+
/>
231+
</Element>
232+
);
233+
218234
export const menu = props => (
219235
<Element
220236
as="svg"

0 commit comments

Comments
 (0)