@@ -23,10 +23,39 @@ import { usePnkFaucetWithdrewAlready, prepareWritePnkFaucet, usePnkBalanceOf } f
2323
2424const Container = styled . div `` ;
2525
26+ const CourtHeader = styled . h1 `
27+ display: flex;
28+ flex-direction: row;
29+ justify-content: space-between;
30+ gap: 24px;
31+ flex-wrap: wrap;
32+ ` ;
33+
34+ const CourtInfo = styled . div `
35+ display: flex:
36+ flex-direction: column;
37+ gap: 16px;
38+
39+ ${ landscapeStyle (
40+ ( ) => css `
41+ gap: 32px;
42+ `
43+ ) } ;
44+ ` ;
45+
2646const ButtonContainer = styled . div `
2747 display: flex;
2848 flex-wrap: wrap;
29- justify-content: space-between;
49+ flex-direction: column;
50+ align-items: flex-start;
51+ gap: 16px;
52+
53+ ${ landscapeStyle (
54+ ( ) => css `
55+ align-items: flex-end;
56+ gap: 32px;
57+ `
58+ ) } ;
3059` ;
3160
3261const StyledCard = styled ( Card ) `
@@ -38,26 +67,13 @@ const StyledCard = styled(Card)`
3867` ;
3968
4069const StyledBreadcrumb = styled ( Breadcrumb ) `
41- margin-bottom: 12px;
4270 display: flex;
43- align-items: flex-start;
71+ margin-top: 12px;
72+ align-items: center;
4473` ;
4574
4675const StyledBreadcrumbSkeleton = styled . div `
47- margin-bottom: 12px;
48- ` ;
49-
50- const CourtHeader = styled . h1 `
51- display: flex;
52- flex-direction: column;
53- gap: 16px;
54-
55- ${ landscapeStyle (
56- ( ) => css `
57- flex-direction: row;
58- justify-content: space-between;
59- `
60- ) }
76+ margin-top: 12px;
6177` ;
6278
6379const CourtDetails : React . FC = ( ) => {
@@ -108,31 +124,33 @@ const CourtDetails: React.FC = () => {
108124 < Container >
109125 < StyledCard >
110126 < CourtHeader >
111- { policy ? policy . name : < StyledSkeleton width = { 200 } /> }
112- < HowItWorks
113- isMiniGuideOpen = { isStakingMiniGuideOpen }
114- toggleMiniGuide = { toggleStakingMiniGuide }
115- MiniGuideComponent = { Staking }
116- />
117- </ CourtHeader >
118- < ButtonContainer >
119- { items . length > 1 ? (
120- < StyledBreadcrumb items = { items } />
121- ) : (
122- < StyledBreadcrumbSkeleton >
123- < StyledSkeleton width = { 100 } />
124- </ StyledBreadcrumbSkeleton >
125- ) }
126- { chain ?. id === DEFAULT_CHAIN && ! claimed && (
127- < Button
128- variant = "primary"
129- text = { faucetCheck ? "Claim PNK" : "Empty Faucet" }
130- onClick = { handleRequest }
131- isLoading = { isSending }
132- disabled = { isSending || claimed || ! faucetCheck }
127+ < CourtInfo >
128+ { policy ? policy . name : < StyledSkeleton width = { 200 } /> }
129+ { items . length > 1 ? (
130+ < StyledBreadcrumb items = { items } />
131+ ) : (
132+ < StyledBreadcrumbSkeleton >
133+ < StyledSkeleton width = { 100 } />
134+ </ StyledBreadcrumbSkeleton >
135+ ) }
136+ </ CourtInfo >
137+ < ButtonContainer >
138+ < HowItWorks
139+ isMiniGuideOpen = { isStakingMiniGuideOpen }
140+ toggleMiniGuide = { toggleStakingMiniGuide }
141+ MiniGuideComponent = { Staking }
133142 />
134- ) }
135- </ ButtonContainer >
143+ { chain ?. id === DEFAULT_CHAIN && ! claimed && (
144+ < Button
145+ variant = "primary"
146+ text = { faucetCheck ? "Claim PNK" : "Empty Faucet" }
147+ onClick = { handleRequest }
148+ isLoading = { isSending }
149+ disabled = { isSending || claimed || ! faucetCheck }
150+ />
151+ ) }
152+ </ ButtonContainer >
153+ </ CourtHeader >
136154 < hr />
137155 < Stats />
138156 < hr />
0 commit comments