Skip to content

Commit d3d125f

Browse files
committed
WIP Commit
1 parent da2ac07 commit d3d125f

File tree

16 files changed

+273
-201
lines changed

16 files changed

+273
-201
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,6 @@ standalone-packages/monaco-editor-core
2929

3030
.next
3131
.cache-loader
32+
33+
# Local Netlify folder
34+
.netlify
Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,25 @@
11
import React from 'react';
2+
import { ThemeProvider } from '@codesandbox/components/lib/components/ThemeProvider';
3+
import { default as codesandboxBlack } from '@codesandbox/common/lib/themes/codesandbox-black';
4+
import { default as Navigation } from '@codesandbox/common/lib/components/Navigation';
25
import { Footer } from '@codesandbox/common/lib/components';
3-
import { PageHeader } from '../PageHeader';
6+
// import { PageHeader } from '../PageHeader';
47
import { Main, PageContent } from './elements';
58

69
interface ILayoutProps {
710
title: string;
811
}
912

1013
// TODO:
11-
// - Refactor Navigation
14+
// - Refactor Navigation (Swap out old Navigation component from Common to new version (PageHeader))
1215
// - Add code to determine Navigation Items / Page Title from Route Info
1316

1417
export const Layout: React.FC<ILayoutProps> = ({ title, children }) => (
1518
<Main>
16-
<PageHeader title={title} />
17-
<PageContent>{children}</PageContent>
18-
<Footer />
19+
<ThemeProvider vsCodeTheme={codesandboxBlack}>
20+
<Navigation />
21+
<PageContent>{children}</PageContent>
22+
<Footer />
23+
</ThemeProvider>
1924
</Main>
2025
);

packages/app/src/app/components/Layout/elements.ts

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,18 @@ import styled, { css } from 'styled-components';
33
export const Main = styled.main`
44
${({ theme }) => css`
55
display: flex;
6-
flex-direction: column;
76
width: 100%;
8-
min-height: 100vh;
9-
height: 100%;
107
background-color: #040404;
118
color: ${theme.white};
129
${theme.fonts.primary.normal};
10+
11+
> div {
12+
display: flex;
13+
flex-direction: column;
14+
width: 100%;
15+
min-height: 100vh;
16+
height: 100%;
17+
}
1318
`}
1419
`;
1520

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import React from 'react';
2+
import { connectPagination } from 'react-instantsearch-dom';
3+
import { Pagination } from '@codesandbox/common/lib/components';
4+
5+
export const Paginate = connectPagination(({ nbPages, refine }) => (
6+
<Pagination pages={nbPages} onChange={page => refine(page)} />
7+
));

0 commit comments

Comments
 (0)