Skip to content

Commit

Permalink
website: Fix website
Browse files Browse the repository at this point in the history
  • Loading branch information
evanpurkhiser committed Dec 30, 2020
1 parent 292b7fa commit 9aca168
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 18 deletions.
6 changes: 3 additions & 3 deletions src/website/Landing.tsx
Expand Up @@ -137,7 +137,7 @@ const shadeStyles = css`
left: 0;
right: 0;
bottom: 0;
z-index: -1;
z-index: 0;
transform-origin: 0 100%;
`;

Expand Down Expand Up @@ -177,7 +177,7 @@ const DemoContainer = styled('div')`
position: relative;
border-radius: 5px;
box-shadow: 0 0 40px rgba(0, 0, 0, 0.15);
background: #fff;
background: ${p => p.theme.background};
overflow: hidden;
display: flex;
Expand Down Expand Up @@ -278,7 +278,7 @@ const NowPlayingContainer = styled('div')``;
const ConfigContainer = styled(motion.div)`
position: relative;
margin-top: -2rem;
background: #fff;
background: ${p => p.theme.background};
box-shadow: 0 0 40px rgba(0, 0, 0, 0.15);
border-radius: 5px;
z-index: 2;
Expand Down
34 changes: 19 additions & 15 deletions src/website/app.tsx
Expand Up @@ -2,8 +2,10 @@ import 'regenerator-runtime/runtime';

import * as ReactDOM from 'react-dom';
import {Route, Router, Switch} from 'react-router-dom';
import {ThemeProvider} from '@emotion/react';
import {createBrowserHistory} from 'history';

import theme from 'src/theme';
import Landing from 'web/Landing';

// Create main element
Expand All @@ -13,21 +15,23 @@ document.body.appendChild(mainElement);
const history = createBrowserHistory();

const Routes = () => (
<Router history={history}>
<Switch>
<Route
exact
path={['/manual', '/manaul']}
component={() => {
window.location.assign(
'https://www.notion.so/Prolink-Tools-User-Manual-1c0e5b28732b435a9804b992939ed791'
);
return null;
}}
/>
<Route component={Landing} />
</Switch>
</Router>
<ThemeProvider theme={theme.light}>
<Router history={history}>
<Switch>
<Route
exact
path={['/manual', '/manaul']}
component={() => {
window.location.assign(
'https://www.notion.so/Prolink-Tools-User-Manual-1c0e5b28732b435a9804b992939ed791'
);
return null;
}}
/>
<Route component={Landing} />
</Switch>
</Router>
</ThemeProvider>
);

// Render components
Expand Down

1 comment on commit 9aca168

@vercel
Copy link

@vercel vercel bot commented on 9aca168 Dec 30, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.