Skip to content

Commit 0e7d525

Browse files
docs(website): improve mobile exp
1 parent 3f559ff commit 0e7d525

File tree

3 files changed

+10
-6
lines changed

3 files changed

+10
-6
lines changed

packages/overmind-website/src/components/FrontPage/elements.tsx

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,23 +17,25 @@ export const Container = styled.div`
1717
margin-left: auto;
1818
margin-right: auto;
1919
max-width: 1100px;
20+
width: 100%;
2021
`
2122

2223
export const ValueProposition = styled.div<{ isMobile: boolean }>`
2324
display: flex;
2425
flex-direction: ${({ isMobile }) => (isMobile ? 'column' : 'row')};
2526
width: 100%;
2627
padding: ${({ isMobile, theme }) =>
27-
isMobile ? `0 ${theme.padding.large}` : '0'};
28+
isMobile ? `0 ${theme.padding.normal}` : '0'};
2829
box-sizing: border-box;
2930
align-items: center;
3031
> div {
3132
flex: 1;
33+
width: ${({ isMobile }) => (isMobile ? '100%' : 'auto')};
3234
}
3335
> div:nth-child(1) {
34-
margin-right: 40px;
36+
margin-right: ${({ isMobile }) => (isMobile ? '0' : '40px')};
3537
}
36-
margin-bottom: 100px;
38+
margin-bottom: ${({ isMobile }) => (isMobile ? '25px' : '100px')};
3739
`
3840

3941
export const QuickstartWrapper = styled.div`
@@ -88,10 +90,10 @@ export const Iframe = styled.iframe`
8890
overflow: hidden;
8991
`
9092

91-
export const Banner = styled.div`
93+
export const Banner = styled.div<{ isMobile: boolean }>`
9294
display: flex;
9395
align-items: center;
94-
margin-bottom: 150px;
96+
margin-bottom: ${({ isMobile }) => (isMobile ? '50px' : '150px')};
9597
`
9698

9799
export const Button = styled.div``

packages/overmind-website/src/components/FrontPage/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ class FrontPage extends React.Component<Props> {
4545
return (
4646
<Wrapper>
4747
<Container>
48-
<Banner>
48+
<Banner isMobile={viewport.isMobile}>
4949
<Logo />
5050
</Banner>
5151
<ValueProposition isMobile={viewport.isMobile}>

packages/overmind-website/src/components/MobileTopBar/elements.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ export const Wrapper = styled.div`
55
z-index: 2;
66
height: 50px;
77
top: -50px;
8+
background-color: ${({ theme }) => theme.color.white};
89
color: ${({ theme }) => theme.color.black};
910
transition: top 0.5s ease-out;
1011
width: 100%;
@@ -13,6 +14,7 @@ export const Wrapper = styled.div`
1314
justify-content: space-between;
1415
box-sizing: border-box;
1516
padding: ${({ theme }) => `0 ${theme.padding.small}`};
17+
box-shadow: 0px 5px 5px 0px rgba(0, 0, 0, 0.01);
1618
`
1719

1820
export const MenuWrapper = styled.div`

0 commit comments

Comments
 (0)