File tree Expand file tree Collapse file tree 2 files changed +24
-0
lines changed
packages/overmind-website/src/components/App Expand file tree Collapse file tree 2 files changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -59,6 +59,12 @@ const App: SFC = () => {
5959 < Page />
6060 </ div >
6161 < Footer />
62+ { location . hostname === 'localhost' ||
63+ location . hostname . includes ( 'next' ) ? (
64+ < div className = { styles . preview } >
65+ This is the PREVIEW site of Overmind
66+ </ div >
67+ ) : null }
6268 </ div >
6369 )
6470}
Original file line number Diff line number Diff line change 11import { css } from 'emotion'
22
3+ export const preview = css `
4+ position : fixed;
5+ top : 50px ;
6+ margin : 0 auto;
7+ display : flex;
8+ left : calc (100vw / 2 - 200px );
9+ padding : 1rem ;
10+ align-items : center;
11+ justify-content : center;
12+ background-color : var (--color-primary );
13+ border-bottom-left-radius : 3px ;
14+ border-bottom-right-radius : 3px ;
15+ width : 400px ;
16+ z-index : 1 ;
17+ font-weight : bold;
18+ color : var (--color-black-1 );
19+ `
20+
321export const pageWrapper = css `
422 min-height : calc (100vh );
523`
You can’t perform that action at this time.
0 commit comments