File tree Expand file tree Collapse file tree 3 files changed +10
-6
lines changed
packages/overmind-website/src/components Expand file tree Collapse file tree 3 files changed +10
-6
lines changed Original file line number Diff line number Diff 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
2223export 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
3941export 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
9799export const Button = styled . div ``
Original file line number Diff line number Diff 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 } >
Original file line number Diff line number Diff 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
1820export const MenuWrapper = styled . div `
You can’t perform that action at this time.
0 commit comments