@@ -6,6 +6,10 @@ import { useLocation } from "react-router-dom"
6
6
import { AuthContext } from "xServices/auth/authXService"
7
7
import { LoginErrors , SignInForm } from "components/SignInForm/SignInForm"
8
8
import { retrieveRedirect } from "util/redirect"
9
+ import { Pill } from "components/Pill/Pill"
10
+ import { useTranslation } from "react-i18next"
11
+ import IdeaIcon from "@material-ui/icons/EmojiObjects"
12
+ import { colors } from "theme/colors"
9
13
10
14
interface LocationState {
11
15
isRedirect : boolean
@@ -31,6 +35,7 @@ export const LoginPageView: FC<LoginPageViewProps> = ({
31
35
const { authError, getUserError, checkPermissionsError, getMethodsError } =
32
36
context
33
37
const styles = useStyles ( )
38
+ const { t } = useTranslation ( "loginPage" )
34
39
35
40
return isLoading ? (
36
41
< FullScreenLoader />
@@ -61,6 +66,12 @@ export const LoginPageView: FC<LoginPageViewProps> = ({
61
66
62
67
< div className = { styles . right } >
63
68
< div className = { styles . tipWrapper } >
69
+ < Pill
70
+ icon = { < IdeaIcon className = { styles . pillIcon } /> }
71
+ text = { t ( "tipCaption" ) }
72
+ className = { styles . pill }
73
+ type = "secondary"
74
+ />
64
75
< div className = { styles . tipContent } >
65
76
< h2 className = { styles . tipTitle } > Scheduling</ h2 >
66
77
< p >
@@ -132,6 +143,25 @@ const useStyles = makeStyles((theme) => ({
132
143
display : "flex" ,
133
144
justifyContent : "center" ,
134
145
alignItems : "center" ,
146
+ position : "relative" ,
147
+ } ,
148
+
149
+ pill : {
150
+ position : "absolute" ,
151
+ top : theme . spacing ( 3 ) ,
152
+ right : theme . spacing ( 3 ) ,
153
+ fontWeight : 600 ,
154
+ fontSize : 10 ,
155
+ letterSpacing : "0.1em" ,
156
+ textTransform : "uppercase" ,
157
+ background : theme . palette . divider ,
158
+ border : 0 ,
159
+ padding : theme . spacing ( 0 , 1.5 ) ,
160
+ height : theme . spacing ( 3.5 ) ,
161
+ } ,
162
+
163
+ pillIcon : {
164
+ color : colors . yellow [ 5 ] ,
135
165
} ,
136
166
137
167
tipContent : {
0 commit comments