Skip to content

Commit f50c4ba

Browse files
authored
Merge pull request #2033 from oasisprotocol/kaja/new-background
Change explorer background, logo and card borders
2 parents 7b4ac97 + 9503425 commit f50c4ba

File tree

13 files changed

+43
-35
lines changed

13 files changed

+43
-35
lines changed

.changelog/2033.feature.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Change explorer background, logo and card borders

src/app/components/EmptyState/index.tsx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import Typography from '@mui/material/Typography'
44
import { styled } from '@mui/material/styles'
55
import backgroundEmptyState from './images/background-empty-state.svg'
66
import CancelIcon from '@mui/icons-material/Cancel'
7+
import { useTheme } from '@mui/material/styles'
78

89
const StyledBox = styled(Box)(({ theme }) => ({
910
display: 'flex',
@@ -38,15 +39,16 @@ type EmptyStateProps = {
3839
}
3940

4041
export const EmptyState: FC<EmptyStateProps> = ({ description, title, light, minHeight = '250px' }) => {
42+
const theme = useTheme()
4143
const content = (
42-
<>
43-
<Typography component="span" sx={{ fontSize: '24px', fontWeight: 600 }}>
44+
<Box sx={{ color: theme.palette.layout.contrastMain, textAlign: 'center' }}>
45+
<Typography component="span" sx={{ fontSize: '24px', fontWeight: 600, display: 'block' }}>
4446
{title}
4547
</Typography>
4648
<Typography component="span" sx={{ fontSize: '16px' }}>
4749
{description}
4850
</Typography>
49-
</>
51+
</Box>
5052
)
5153
return light ? (
5254
<StyledBoxLight sx={{ minHeight }}>

src/app/components/LayerPicker/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,8 @@ const LayerPickerContent: FC<LayerPickerContentProps> = ({ isOutOfDate, onClose,
101101

102102
return (
103103
<StyledLayerPickerContent>
104-
<Box sx={{ mb: isTablet ? 0 : 5, color: 'red', position: 'relative' }}>
105-
<HomePageLink color={COLORS.brandExtraDark} showText={!isMobile} />
104+
<Box sx={{ mb: isTablet ? 0 : 5, position: 'relative' }}>
105+
<HomePageLink color="#0500e2" showText={!isMobile} />
106106
</Box>
107107
{isTablet && (
108108
<TabletActionBar>

src/app/components/PageLayout/Header.tsx

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,7 @@ export const Header: FC = () => {
3131
? theme.palette.layout.contrastSecondary
3232
: theme.palette.layout.secondary,
3333
borderRadius: 0,
34-
boxShadow: scrollTrigger
35-
? '0px 4px 4px rgba(0, 0, 0, 0.25), 0px 34px 24px -9px rgba(50, 77, 171, 0.12)'
36-
: 'none',
34+
boxShadow: '0px 4px 6px -1px rgba(0, 0, 0, 0.10), 0px 2px 4px -1px rgba(0, 0, 0, 0.06)',
3735
}}
3836
>
3937
<Box sx={{ px: '15px' }}>
@@ -46,10 +44,7 @@ export const Header: FC = () => {
4644
}}
4745
>
4846
<Grid md={3} xs={4} sx={{ display: 'flex', alignItems: 'center' }}>
49-
<HomePageLink
50-
color={scrollTrigger ? theme.palette.layout.contrastMain : undefined}
51-
showText={!scrollTrigger && !isMobile}
52-
/>
47+
<HomePageLink showText={!scrollTrigger && !isMobile} color="#0500e2" />
5348
</Grid>
5449
{withScopeSelector && (
5550
<>

src/app/components/Search/index.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,7 @@ const SearchCmp: FC<SearchProps> = ({ scope, variant, disabled, onFocusChange: o
193193
},
194194
}
195195
: {}),
196+
border: `1px solid ${COLORS.grayLight}`,
196197
}}
197198
value={value}
198199
onChange={e => onChange(e.target.value)}

src/app/pages/HomePage/Graph/NetworkSelector/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ const StyledButton = styled(StyledSelectButton)(({ theme }) => ({
4242
minWidth: '200px',
4343
backgroundColor: theme.palette.layout.primaryBackground,
4444
border: `2px solid ${theme.palette.layout.lightBorder}`,
45-
color: theme.palette.layout.main,
45+
color: theme.palette.layout.contrastMain,
4646
'&:hover': {
4747
backgroundColor: theme.palette.layout.primaryBackground,
4848
},
@@ -139,7 +139,7 @@ export const NetworkSelector: FC<NetworkSelectProps> = ({ network, setNetwork })
139139
Option={SelectOption}
140140
listbox={StyledListbox}
141141
label={
142-
<Typography variant="caption" sx={theme => ({ color: theme.palette.layout.main })}>
142+
<Typography variant="caption" sx={theme => ({ color: theme.palette.layout.contrastMain })}>
143143
{t('home.selectedNetwork')}
144144
</Typography>
145145
}

src/app/pages/HomePage/Graph/images/paratime-selector-glow-testnet.svg

Lines changed: 1 addition & 1 deletion
Loading

src/app/pages/HomePage/Graph/images/paratime-selector-glow.svg

Lines changed: 1 addition & 1 deletion
Loading

src/app/pages/HomePage/images/background.svg

Lines changed: 1 addition & 1 deletion
Loading

src/app/pages/HomePage/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ const HomepageLayout = styled(Box)(({ theme }) => ({
3333
maxWidth: '100%',
3434
height: 'fill-available',
3535
minHeight: '100vh',
36-
backgroundColor: COLORS.brandDark,
36+
backgroundColor: COLORS.white,
3737
overflowX: 'hidden',
3838
[theme.breakpoints.up('sm')]: {
3939
height: '100vh',
@@ -156,7 +156,7 @@ export const HomePage: FC = () => {
156156
<HomepageLayout>
157157
<Content>
158158
<LogotypeBox>
159-
<Logotype showText />
159+
<Logotype showText color="#0500e2" />
160160
</LogotypeBox>
161161
<SearchInputContainer transparent={isGraphZoomedIn && !searchHasFocus}>
162162
<SearchInputBox>

0 commit comments

Comments
 (0)