Skip to content

Commit c85d330

Browse files
committed
chore: smaller logo size, dont show court keyword if it ends with it, gap adjustment, max-width
1 parent e8e48f4 commit c85d330

File tree

15 files changed

+34
-23
lines changed

15 files changed

+34
-23
lines changed

web/src/components/ErrorFallback.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ const Container = styled.div`
1717
height: 100vh;
1818
background-color: ${({ theme }) => theme.lightBackground};
1919
padding: ${responsiveSize(32, 80)} ${responsiveSize(24, 136)} ${responsiveSize(76, 96)};
20-
max-width: 1780px;
20+
max-width: 1400px;
2121
margin: 0 auto;
2222
`;
2323

web/src/layout/Header/DesktopHeader.tsx

+1
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ import Settings from "./navbar/Menu/Settings";
3434
const Container = styled.div`
3535
display: none;
3636
position: absolute;
37+
height: 64px;
3738
3839
${landscapeStyle(
3940
() => css`

web/src/layout/Header/Logo.tsx

+8-8
Original file line numberDiff line numberDiff line change
@@ -3,22 +3,19 @@ import styled, { Theme } from "styled-components";
33

44
import { Link } from "react-router-dom";
55

6-
import KlerosCourtLogo from "svgs/header/kleros-court.svg";
7-
86
import { ArbitratorTypes, getArbitratorType } from "consts/index";
7+
98
import { isUndefined } from "utils/index";
109

10+
import KlerosCourtLogo from "svgs/header/kleros-court.svg";
11+
1112
const Container = styled.div`
1213
display: flex;
1314
flex-direction: row;
1415
align-items: center;
1516
gap: 16px;
1617
`;
1718

18-
const StyledLink = styled(Link)`
19-
min-height: 48px;
20-
`;
21-
2219
const BadgeContainer = styled.div<{ backgroundColor: keyof Theme }>`
2320
transform: skewX(-15deg);
2421
background-color: ${({ theme, backgroundColor }) => theme[backgroundColor]};
@@ -32,6 +29,9 @@ const BadgeText = styled.label`
3229
`;
3330

3431
const StyledKlerosCourtLogo = styled(KlerosCourtLogo)`
32+
max-height: 40px;
33+
width: auto;
34+
3535
&:hover {
3636
path {
3737
fill: ${({ theme }) => theme.white}BF;
@@ -61,9 +61,9 @@ const CourtBadge: React.FC = () => {
6161
const Logo: React.FC = () => (
6262
<Container>
6363
{" "}
64-
<StyledLink to={"/"}>
64+
<Link to={"/"}>
6565
<StyledKlerosCourtLogo />
66-
</StyledLink>
66+
</Link>
6767
<CourtBadge />
6868
</Container>
6969
);

web/src/layout/Header/MobileHeader.tsx

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ const Container = styled.div`
1717
align-items: center;
1818
justify-content: space-between;
1919
width: 100%;
20+
height: 64px;
2021
2122
${landscapeStyle(
2223
() => css`

web/src/layout/Header/index.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ const Container = styled.div`
1717

1818
const HeaderContainer = styled.div`
1919
width: 100%;
20-
padding: 8px 24px;
20+
padding: 0 24px;
2121
`;
2222

2323
const Header: React.FC = () => {

web/src/pages/Cases/index.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ const Container = styled.div`
1313
width: 100%;
1414
background-color: ${({ theme }) => theme.lightBackground};
1515
padding: ${responsiveSize(32, 80)} ${responsiveSize(24, 136)} ${responsiveSize(76, 96)};
16-
max-width: 1780px;
16+
max-width: 1400px;
1717
margin: 0 auto;
1818
`;
1919

web/src/pages/Courts/CourtDetails/StakePanel/index.tsx

+2-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,8 @@ const StakePanel: React.FC<{ courtName: string }> = ({ courtName = "General Cour
6464
</TagArea>
6565
<TextArea>
6666
<strong>{`${isStaking ? "Stake" : "Withdraw"} PNK`}</strong> {`${isStaking ? "to join the" : "from"}`}{" "}
67-
{courtName} court
67+
{courtName}
68+
{courtName.toLowerCase().endsWith("court") || courtName.toLowerCase().startsWith("corte") ? null : " Court"}
6869
</TextArea>
6970
<StakeArea>
7071
<InputDisplay {...{ action, amount, setAmount }} />

web/src/pages/Courts/CourtDetails/Stats.tsx

+11-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import React from "react";
2-
import styled from "styled-components";
2+
import styled, { css } from "styled-components";
33
import { responsiveSize } from "styles/responsiveSize";
4+
import { landscapeStyle } from "styles/landscapeStyle";
45

56
import { useParams } from "react-router-dom";
67
import { Accordion } from "@kleros/ui-components-library";
@@ -39,11 +40,19 @@ const StyledAccordion = styled(Accordion)`
3940
}
4041
//adds padding to body container
4142
> * > div > div {
42-
padding: 0 24px;
43+
padding: 0;
4344
}
4445
[class*="accordion-item"] {
4546
margin: 0;
4647
}
48+
49+
${landscapeStyle(
50+
() => css`
51+
> * > div > div {
52+
padding: 0 24px;
53+
}
54+
`
55+
)}
4756
`;
4857

4958
const TimeDisplayContainer = styled.div`

web/src/pages/Courts/CourtDetails/index.tsx

+2-3
Original file line numberDiff line numberDiff line change
@@ -77,14 +77,13 @@ const StakePanelAndStats = styled.div`
7777
flex-direction: row;
7878
justify-content: space-between;
7979
margin-top: 24px;
80-
gap: 20px;
80+
gap: 16px;
8181
flex-wrap: wrap;
8282
8383
${landscapeStyle(
8484
() => css`
8585
& > * {
86-
flex: 1 1 calc(50% - 10px);
87-
max-width: calc(50% - 10px);
86+
flex: 1 1 calc(50% - 8px);
8887
}
8988
`
9089
)}

web/src/pages/Courts/index.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const Container = styled.div`
1212
width: 100%;
1313
background-color: ${({ theme }) => theme.lightBackground};
1414
padding: ${responsiveSize(32, 80)} ${responsiveSize(24, 136)} ${responsiveSize(76, 96)};
15-
max-width: 1780px;
15+
max-width: 1400px;
1616
margin: 0 auto;
1717
`;
1818

web/src/pages/Dashboard/index.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ const Container = styled.div`
2525
width: 100%;
2626
background-color: ${({ theme }) => theme.lightBackground};
2727
padding: ${responsiveSize(32, 80)} ${responsiveSize(24, 136)} ${responsiveSize(76, 96)};
28-
max-width: 1780px;
28+
max-width: 1400px;
2929
margin: 0 auto;
3030
`;
3131

web/src/pages/GetPnk/index.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ const Container = styled.div`
1919
width: 100%;
2020
background-color: ${({ theme }) => theme.lightBackground};
2121
padding: ${responsiveSize(32, 72)} ${responsiveSize(24, 132)} ${responsiveSize(76, 96)};
22-
max-width: 1780px;
22+
max-width: 1400px;
2323
margin: 0 auto;
2424
display: flex;
2525
flex-direction: column;

web/src/pages/Home/index.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ const Container = styled.div`
2222
width: 100%;
2323
background-color: ${({ theme }) => theme.lightBackground};
2424
padding: ${responsiveSize(32, 72)} ${responsiveSize(24, 132)} ${responsiveSize(76, 96)};
25-
max-width: 1780px;
25+
max-width: 1400px;
2626
margin: 0 auto;
2727
`;
2828

web/src/pages/Resolver/index.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ const Container = styled.div`
3838
padding: ${responsiveSize(24, 32)};
3939
padding-top: ${responsiveSize(24, 28)};
4040
padding-bottom: ${responsiveSize(76, 96)};
41-
max-width: 1780px;
41+
max-width: 1400px;
4242
margin: 0 auto;
4343
`;
4444

web/src/pages/Settings/index.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const Container = styled.div`
1111
width: 100%;
1212
background-color: ${({ theme }) => theme.lightBackground};
1313
padding: ${responsiveSize(32, 80)} ${responsiveSize(24, 136)} ${responsiveSize(76, 96)};
14-
max-width: 1780px;
14+
max-width: 1400px;
1515
margin: 0 auto;
1616
`;
1717

0 commit comments

Comments
 (0)