Skip to content

Commit 6d6b1c0

Browse files
author
Ives van Hoorne
committed
Fix logos
1 parent 4f4ea47 commit 6d6b1c0

File tree

3 files changed

+71
-6
lines changed

3 files changed

+71
-6
lines changed

src/app/components/NowLogo.js

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
import React from 'react';
2+
import IconBase from 'react-icons/IconBase';
3+
4+
export default ({
5+
className,
6+
backgroundColor,
7+
}: {
8+
className: string,
9+
backgroundColor: boolean,
10+
}) => (
11+
<IconBase className={className} viewBox="0 0 128 116">
12+
<g id="Page-1" stroke="none" strokeWidth={1} fill="none" fillRule="evenodd">
13+
<g
14+
id="Artboard"
15+
transform="translate(-207.000000, -165.000000)"
16+
stroke="#FFFFFF"
17+
>
18+
<g id="Now" transform="translate(213.000000, 172.000000)">
19+
<polygon
20+
id="Shape"
21+
strokeWidth="6.5625"
22+
fill={backgroundColor || 'none'}
23+
points="57.9945629 0.153039832 115.989126 104.991614 0 104.991614"
24+
/>
25+
<path
26+
d="M110.776596,103.653846 L56.0106384,4.03846154"
27+
id="Shape"
28+
strokeWidth="5.83333333"
29+
/>
30+
<path
31+
d="M113.265957,103.653846 L58.5,4.03846154"
32+
id="Shape"
33+
strokeWidth="5.83333333"
34+
/>
35+
<path
36+
d="M108.287234,103.653846 L56.0106384,6.73076923"
37+
id="Shape"
38+
strokeWidth="5.83333333"
39+
/>
40+
<path
41+
d="M105.797872,103.653846 L56.0106384,9.42307692"
42+
id="Shape"
43+
strokeWidth="5.83333333"
44+
/>
45+
<path
46+
d="M53.5212766,9.42307692 L108.287234,103.653846"
47+
id="Shape"
48+
strokeWidth="5.83333333"
49+
/>
50+
<path
51+
d="M103.30851,103.653846 L53.5212766,12.1153846"
52+
id="Shape"
53+
strokeWidth="5.83333333"
54+
/>
55+
<path
56+
d="M93.351064,82.1153845 L73.4361703,47.1153847"
57+
id="Shape"
58+
strokeWidth="5.83333333"
59+
/>
60+
</g>
61+
</g>
62+
</g>
63+
</IconBase>
64+
);

src/app/containers/Deployment/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import ZeitIntegration from 'app/containers/integrations/Zeit';
1212
import Button from 'app/components/buttons/Button';
1313
import Centered from 'app/components/flex/Centered';
1414
import Margin from 'app/components/spacing/Margin';
15-
import ZeitLogo from 'app/components/ZeitLogo';
15+
import NowLogo from 'app/components/NowLogo';
1616

1717
import delayInEffect from 'app/utils/animation/delay-effect';
1818
import delayOutEffect from 'app/utils/animation/delay-out-effect';
@@ -94,7 +94,7 @@ const DeployAnimationContainer = styled.div`
9494
${({ deploying }) => deploying && delayInEffect(0, false)};
9595
`;
9696

97-
const StyledZeitLogo = styled(ZeitLogo)`
97+
const StyledNowLogo = styled(NowLogo)`
9898
position: absolute;
9999
font-size: 4rem;
100100
transform: translateY(10px) translateX(80px);
@@ -225,7 +225,7 @@ class Deploy extends React.PureComponent<Props, State> {
225225
{[0, 1, 2, 3].map(i => (
226226
<StyledCube key={i} i={i} size={20} />
227227
))}
228-
<StyledZeitLogo />
228+
<StyledNowLogo backgroundColor="#24282A" />
229229
</DeployAnimationContainer>
230230
</Margin>
231231
)}

src/app/pages/Sandbox/Editor/Content/Header/index.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import Download from 'react-icons/lib/go/cloud-download';
99
import PlusIcon from 'react-icons/lib/go/plus';
1010
import GithubIcon from 'react-icons/lib/go/mark-github';
1111
import ChevronLeft from 'react-icons/lib/md/chevron-left';
12-
import ZeitIcon from 'app/components/ZeitLogo';
12+
import NowIcon from 'app/components/NowLogo';
1313
import HeartIcon from 'react-icons/lib/fa/heart-o';
1414
import FullHeartIcon from 'react-icons/lib/fa/heart';
1515
import TwitterIcon from 'react-icons/lib/fa/twitter';
@@ -229,10 +229,11 @@ export default class Header extends React.PureComponent<Props> {
229229
Icon={Save}
230230
/>
231231
<Action title="Download" Icon={Download} onClick={this.zipSandbox} />
232-
{sandbox.owned && (
232+
{user.jwt &&
233+
sandbox.owned && (
233234
<Action
234235
title="Deploy"
235-
Icon={ZeitIcon}
236+
Icon={NowIcon}
236237
onClick={this.deploySandbox}
237238
/>
238239
)}

0 commit comments

Comments
 (0)