@@ -5,6 +5,8 @@ import { Navigate, Route, Routes, useLocation } from "react-router-dom";
5
5
import { useToggle } from "react-use" ;
6
6
import { useAccount } from "wagmi" ;
7
7
8
+ import { useAtlasProvider } from "@kleros/kleros-app" ;
9
+
8
10
import { MAX_WIDTH_LANDSCAPE , landscapeStyle } from "styles/landscapeStyle" ;
9
11
import { responsiveSize } from "styles/responsiveSize" ;
10
12
@@ -75,9 +77,26 @@ const MiddleContentContainer = styled.div`
75
77
position: relative;
76
78
` ;
77
79
80
+ const Heading = styled . h1 `
81
+ margin: 0 0 0 32px;
82
+ font-size: 24px;
83
+ font-weight: 600;
84
+ color: ${ ( { theme } ) => theme . primaryText } ;
85
+ text-align: center;
86
+ ` ;
87
+
88
+ const Paragraph = styled . p `
89
+ padding: 0;
90
+ margin-bottom: 32px;
91
+ font-size: 16px;
92
+ text-align: center;
93
+ color: ${ ( { theme } ) => theme . secondaryText } ;
94
+ ` ;
95
+
78
96
const DisputeResolver : React . FC = ( ) => {
79
97
const location = useLocation ( ) ;
80
98
const [ isDisputeResolverMiniGuideOpen , toggleDisputeResolverMiniGuide ] = useToggle ( false ) ;
99
+ const { isVerified } = useAtlasProvider ( ) ;
81
100
const { isConnected } = useAccount ( ) ;
82
101
const isPreviewPage = location . pathname . includes ( "/preview" ) ;
83
102
const isLandingPage = location . pathname . includes ( "/create" ) ;
@@ -86,8 +105,14 @@ const DisputeResolver: React.FC = () => {
86
105
< Wrapper >
87
106
< HeroImage />
88
107
< Container >
108
+ { ! isConnected || ! isVerified ? (
109
+ < >
110
+ < Heading > Justise as a Service</ Heading >
111
+ < Paragraph > You send your disputes. Kleros sends back decisions.</ Paragraph >
112
+ </ >
113
+ ) : null }
89
114
{ isConnected ? (
90
- < StyledEnsureAuth >
115
+ < StyledEnsureAuth buttonText = "Sign in to start" >
91
116
< MiddleContentContainer >
92
117
{ isConnected && ! isPreviewPage && ! isLandingPage ? (
93
118
< HowItWorksAndTimeline >
0 commit comments