Skip to content

Commit 6be8e7e

Browse files
update signin prompt design
1 parent e015a44 commit 6be8e7e

1 file changed

Lines changed: 49 additions & 44 deletions

File tree

  • editor/components/prompt-banner-signin-to-continue
Lines changed: 49 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
import styled from "@emotion/styled";
2-
import React, { useEffect } from "react";
2+
import React from "react";
33
import { useAuthState } from "hooks";
44
import { useRouter } from "next/router";
5-
6-
const __is_dev = process.env.NODE_ENV == "development";
5+
import { ArrowRightIcon } from "@radix-ui/react-icons";
6+
const __is_prod = process.env.NODE_ENV == "production";
7+
const __overide_show_if_dev = true;
78

89
export function SigninToContinuePrmoptProvider({
910
children,
@@ -17,7 +18,9 @@ export function SigninToContinuePrmoptProvider({
1718
return (
1819
<>
1920
{children}
20-
{!__is_dev && shouldshow && <SigninToContinueBannerPrmopt />}
21+
{((__is_prod && shouldshow) || (!__is_prod && __overide_show_if_dev)) && (
22+
<SigninToContinueBannerPrmopt />
23+
)}
2124
</>
2225
);
2326
}
@@ -31,91 +34,93 @@ export function SigninToContinueBannerPrmopt() {
3134

3235
return (
3336
<Positioner>
34-
<Contents>
35-
<Desc>Ready to build your apps with Grida?</Desc>
36-
<NextButton onClick={onnextclick}>Next</NextButton>
37-
</Contents>
37+
<Container>
38+
<h5>Ready to build your Apps with Grida?</h5>
39+
<CTAButton onClick={onnextclick}>
40+
Sign Up
41+
<ArrowRightIcon width={20} height={20} />
42+
</CTAButton>
43+
</Container>
3844
</Positioner>
3945
);
4046
}
4147

4248
const Positioner = styled.div`
43-
display: flex;
44-
align-items: center;
45-
flex-direction: column;
46-
justify-content: center;
47-
align-items: flex-end;
48-
4949
position: fixed;
5050
bottom: 0;
51-
left: 0px;
52-
right: 0px;
51+
left: 0;
52+
right: 0;
53+
padding: 40px 40px;
5354
54-
background-color: #fff;
5555
z-index: 998;
56-
56+
display: flex;
5757
justify-content: center;
5858
flex-direction: column;
59-
align-items: end;
59+
align-items: center;
6060
box-sizing: border-box;
61-
padding: 16px 20px;
6261
6362
a {
6463
margin: 0px 2px;
6564
text-decoration: underline;
6665
}
6766
`;
6867

69-
const Contents = styled.div`
68+
const Container = styled.div`
69+
width: 100%;
70+
max-width: 600px;
71+
min-width: 400px;
72+
background-color: rgba(0, 0, 0, 0.4);
73+
backdrop-filter: blur(21px);
74+
color: white;
7075
display: flex;
71-
justify-content: flex-end;
76+
justify-content: space-between;
7277
flex-direction: row;
7378
align-items: center;
7479
flex: none;
80+
padding: 16px 24px;
81+
border-radius: 48px;
82+
border: 1px solid rgba(255, 255, 255, 0.2);
7583
gap: 48px;
76-
width: 439px;
77-
height: 59px;
7884
box-sizing: border-box;
79-
`;
85+
box-shadow: 0px 4px 32px rgba(0, 0, 0, 0.24);
8086
81-
const Desc = styled.span`
82-
color: rgba(0, 0, 0, 1);
83-
text-overflow: ellipsis;
84-
font-size: 16px;
85-
font-family: "Helvetica Neue", sans-serif;
86-
font-weight: 500;
87-
text-align: center;
87+
h5 {
88+
color: white;
89+
margin: 0;
90+
text-overflow: ellipsis;
91+
font-weight: 500;
92+
}
8893
`;
8994

90-
const NextButton = styled.button`
95+
const CTAButton = styled.button`
96+
cursor: pointer;
9197
display: flex;
9298
justify-content: center;
9399
flex-direction: row;
94100
align-items: center;
95101
flex: none;
96-
gap: 10px;
97-
border-radius: 4px;
98-
width: 116px;
99-
height: 59px;
100-
background-color: rgba(45, 66, 255, 1);
102+
gap: 4px;
103+
border-radius: 24px;
104+
background-color: transparent;
105+
border: 1px solid rgba(255, 255, 255, 0.4);
101106
box-sizing: border-box;
102-
padding: 10px 10px;
107+
padding: 8px 16px;
103108
104109
outline: none;
105-
border: none;
106110
107-
color: rgba(255, 255, 255, 1);
111+
color: white;
108112
text-overflow: ellipsis;
109-
font-size: 21px;
110-
font-family: "Helvetica Neue", sans-serif;
111-
font-weight: 400;
113+
font-weight: 500;
112114
text-align: left;
113115
114116
:hover {
115117
opacity: 0.9;
118+
scale: 1.02;
116119
}
117120
118121
:focus {
119122
opacity: 0.9;
120123
}
124+
125+
transition: all 0.1s ease-in-out;
121126
`;

0 commit comments

Comments
 (0)