Skip to content

Commit 5e8c0e1

Browse files
committed
fix node logo on chrome and fix some console errors
1 parent 9d3eef2 commit 5e8c0e1

File tree

6 files changed

+37
-138
lines changed

6 files changed

+37
-138
lines changed

packages/app/src/app/pages/Dashboard/Content/CreateNewSandbox/Modal/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React from 'react';
1+
import React, { Fragment } from 'react';
22

33
import track from '@codesandbox/common/lib/utils/analytics';
44

@@ -67,7 +67,7 @@ export default class Modal extends React.PureComponent {
6767
))}
6868
{tab.types &&
6969
tab.types.map(type => (
70-
<>
70+
<Fragment key={type.name}>
7171
<Title>{type.name}</Title>
7272
{type.templates.map(template => (
7373
<Template
@@ -76,7 +76,7 @@ export default class Modal extends React.PureComponent {
7676
selectTemplate={this.selectTemplate}
7777
/>
7878
))}
79-
</>
79+
</Fragment>
8080
))}
8181
</Templates>
8282
</Tab>

packages/common/src/components/logos/Gridsome.tsx

Lines changed: 31 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -9,71 +9,60 @@ export default ({ width = 32, height = 32, className }) => (
99
xmlns="http://www.w3.org/2000/svg"
1010
>
1111
<defs>
12-
<linearGradient
13-
id="gridsome_paint0_linear"
14-
x1="124"
15-
y1="-37"
16-
x2="-15.3949"
17-
y2="446.346"
18-
gradientUnits="userSpaceOnUse">
19-
<stop
20-
stop-color="#00A672"
21-
/>
22-
<stop
23-
offset="1"
24-
stop-color="#008B60"
25-
/>
12+
<linearGradient
13+
id="gridsome_paint0_linear"
14+
x1="124"
15+
y1="-37"
16+
x2="-15.3949"
17+
y2="446.346"
18+
gradientUnits="userSpaceOnUse"
19+
>
20+
<stop stopColor="#00A672" />
21+
<stop offset="1" stopColor="#008B60" />
2622
</linearGradient>
27-
28-
<linearGradient
23+
24+
<linearGradient
2925
id="gridsome_paint1_linear"
30-
x1="263.861"
26+
x1="263.861"
3127
y1="445.388"
3228
x2="263.861"
3329
y2="251.498"
34-
gradientUnits="userSpaceOnUse">
35-
<stop
36-
stop-color="white"
37-
stop-opacity="0.95"
38-
/>
39-
<stop
40-
offset="1"
41-
stop-color="white"
42-
stop-opacity="0.5"
43-
/>
30+
gradientUnits="userSpaceOnUse"
31+
>
32+
<stop stopColor="white" stopOpacity="0.95" />
33+
<stop offset="1" stopColor="white" stopOpacity="0.5" />
4434
</linearGradient>
4535
</defs>
4636

47-
<rect
37+
<rect
4838
width="512"
4939
height="512"
50-
rx="256"
40+
rx="256"
5141
fill="url(#gridsome_paint0_linear)"
5242
/>
53-
54-
<path
43+
44+
<path
5545
d="M320.368 257.735C320.368 240.765 334.25 227.008 351.375 227.008H396.563C413.688 227.008 428 240.765 428 257.735C428 274.705 413.688 288.462 396.563 288.462H351.375C334.25 288.462 320.368 274.705 320.368 257.735Z"
5646
fill="white"
5747
/>
58-
59-
<path
48+
49+
<path
6050
d="M225.554 257.78C225.554 240.785 239.348 227.008 256.345 227.008C273.342 227.008 287.137 240.785 287.137 257.78C287.137 274.775 273.342 288.552 256.345 288.552C239.348 288.552 225.554 274.775 225.554 257.78Z"
6151
fill="white"
6252
/>
63-
64-
<path
65-
fill-rule="evenodd"
66-
clip-rule="evenodd"
53+
54+
<path
55+
fillRule="evenodd"
56+
clipRule="evenodd"
6757
d="M286.284 114.008C286.971 130.569 274.102 144.552 257.538 145.24C186.036 148.209 142.385 204.243 144.51 257.449C145.171 274.011 132.548 287.974 115.983 288.635C99.4189 289.296 84.8521 275.93 84.1907 259.367C80.7283 172.664 153.133 86.95 255.047 85.2667C271.611 84.5789 285.596 97.4468 286.284 114.008Z"
6858
fill="white"
6959
/>
70-
71-
<path
72-
fill-rule="evenodd"
73-
clip-rule="evenodd"
60+
61+
<path
62+
fillRule="evenodd"
63+
clipRule="evenodd"
7464
d="M84.0967 256.154C84.5034 360.913 170.483 430.138 257.415 427.999C360.033 424.337 434.165 335.203 428 255.637C426.57 239.112 411.913 226.303 395.354 227.097C378.795 227.892 366.016 241.957 366.81 258.513C369.13 306.869 324.536 366.092 255.938 367.993C201.449 369.333 146.897 326.551 144.508 259.968C143.87 275.404 131.701 288.008 115.983 288.635C99.4185 289.296 84.8518 275.93 84.1904 259.367C84.1476 258.296 84.1164 257.225 84.0967 256.154Z"
7565
fill="url(#gridsome_paint1_linear)"
7666
/>
77-
7867
</svg>
7968
);
Lines changed: 3 additions & 93 deletions
Original file line numberDiff line numberDiff line change
@@ -1,95 +1,5 @@
11
import * as React from 'react';
22

3-
export default ({ width = 32, height = 32, className }) => (
4-
<svg
5-
width={width}
6-
height={height}
7-
className={className}
8-
xmlns="http://www.w3.org/2000/svg"
9-
viewBox="0 0 259.58 260.47"
10-
style={{ transform: 'scale(2, 2)' }}
11-
>
12-
<defs>
13-
<clipPath id="a" transform="translate(55 55.1)">
14-
<path
15-
fill="none"
16-
d="M71.61 4.24L15.44 36.67A6.78 6.78 0 0 0 12 42.54v64.89a6.78 6.78 0 0 0 3.39 5.87l56.18 32.45a6.8 6.8 0 0 0 6.79 0l56.17-32.45a6.79 6.79 0 0 0 3.39-5.87V42.54a6.78 6.78 0 0 0-3.4-5.87L78.4 4.24a6.83 6.83 0 0 0-6.8 0"
17-
/>
18-
</clipPath>
19-
<linearGradient
20-
id="b"
21-
x1="-245.73"
22-
x2="-244.14"
23-
y1="504.44"
24-
y2="504.44"
25-
gradientTransform="matrix(-50.8 103.5 103.5 50.8 -64583.4 -167)"
26-
gradientUnits="userSpaceOnUse"
27-
>
28-
<stop offset="0.3" stopColor="#3e863d" />
29-
<stop offset="0.5" stopColor="#55934f" />
30-
<stop offset="0.8" stopColor="#5aad45" />
31-
</linearGradient>
32-
<clipPath id="c" transform="translate(55 55.1)">
33-
<path
34-
fill="none"
35-
d="M13.44 111.55a6.8 6.8 0 0 0 2 1.75l48.19 27.83 8 4.61a6.81 6.81 0 0 0 3.91.89 6.94 6.94 0 0 0 1.33-.24l59.27-108.47a6.72 6.72 0 0 0-1.58-1.25L97.78 15.42 78.34 4.24a7.09 7.09 0 0 0-1.76-.71z"
36-
/>
37-
</clipPath>
38-
<linearGradient
39-
id="d"
40-
x1="-247.4"
41-
x2="-246.37"
42-
y1="501.46"
43-
y2="501.46"
44-
gradientTransform="rotate(-36.5 113113.8 -110864.6) scale(177.1)"
45-
gradientUnits="userSpaceOnUse"
46-
>
47-
<stop offset="0.57" stopColor="#3e863d" />
48-
<stop offset="0.72" stopColor="#619857" />
49-
<stop offset="1" stopColor="#76ac64" />
50-
</linearGradient>
51-
<clipPath id="e" transform="translate(55 55.1)">
52-
<path
53-
fill="none"
54-
d="M74.33 3.38a6.85 6.85 0 0 0-2.71.87l-56 32.33 60.4 110a6.74 6.74 0 0 0 2.41-.83l56.17-32.45a6.81 6.81 0 0 0 3.28-4.63L76.29 3.49a7.05 7.05 0 0 0-1.37-.14h-.56"
55-
/>
56-
</clipPath>
57-
<linearGradient
58-
id="f"
59-
x1="-245.84"
60-
x2="-244.9"
61-
y1="501.11"
62-
y2="501.11"
63-
gradientTransform="matrix(129.9 0 0 -129.9 31948.1 65164.3)"
64-
gradientUnits="userSpaceOnUse"
65-
>
66-
<stop offset="0.16" stopColor="#6bbf47" />
67-
<stop offset="0.38" stopColor="#79b461" />
68-
<stop offset="0.47" stopColor="#75ac64" />
69-
<stop offset="0.7" stopColor="#659e5a" />
70-
<stop offset="0.9" stopColor="#3e863d" />
71-
</linearGradient>
72-
</defs>
73-
<g clipPath="url(#a)">
74-
<path
75-
fill="url(#b)"
76-
d="M194.72 31.16L36.44-46.42l-81.16 165.56 158.28 77.59z"
77-
transform="translate(55 55.1)"
78-
/>
79-
</g>
80-
<g clipPath="url(#c)">
81-
<path
82-
fill="url(#d)"
83-
d="M-55 54.11L56.76 205.38 204.58 96.17 92.8-55.09z"
84-
transform="translate(55 55.1)"
85-
/>
86-
</g>
87-
<g clipPath="url(#e)">
88-
<path
89-
fill="url(#f)"
90-
d="M15.6 3.35v143.24h122.24V3.35H15.6z"
91-
transform="translate(55 55.1)"
92-
/>
93-
</g>
94-
</svg>
95-
);
3+
import node from './node.png';
4+
5+
export default props => <img alt="node" src={node} {...props} />;
11.7 KB
Loading
-2.74 KB
Loading
-12 KB
Loading

0 commit comments

Comments
 (0)