Skip to content

Commit 3e188ed

Browse files
docs(website): add preview indication
1 parent 249ecd9 commit 3e188ed

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff 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
}

packages/overmind-website/src/components/App/styles.ts

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,23 @@
11
import { 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+
321
export const pageWrapper = css`
422
min-height: calc(100vh);
523
`

0 commit comments

Comments
 (0)