Skip to content

Commit fe0d637

Browse files
committed
working on basics
1 parent 84df1e9 commit fe0d637

10 files changed

Lines changed: 59 additions & 5 deletions

File tree

‎front/src/assets/sprite.svg‎

Lines changed: 6 additions & 0 deletions
Loading
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import React from 'react';
2+
import * as classes from './appbar.styles';
3+
4+
export const AppbarComponent: React.FC = () => {
5+
const { appbarContainer } = classes;
6+
return (
7+
<>
8+
<div className={appbarContainer}></div>
9+
</>
10+
);
11+
};
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import { css } from 'emotion';
2+
import { theme } from 'core/theme';
3+
const { palette, typography, spacing } = theme;
4+
5+
export const appbarContainer = css`
6+
width: 100%;
7+
height: ${spacing(80)};
8+
background-image: linear-gradient(60deg, red 19%, yellow 19%, white 80%);
9+
`;
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export * from './appbar.component';

‎front/src/common-app/index.ts‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
export * from './session-content';
1+
export * from './session-content';
2+
export * from './components/appbar';

‎front/src/layout/app-layout.tsx‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import React from 'react';
2+
import { AppbarComponent } from 'common-app';
3+
4+
export const AppLayout: React.FC = props => {
5+
return (
6+
<>
7+
<AppbarComponent />
8+
{props.children}
9+
</>
10+
);
11+
};

‎front/src/layout/index.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export * from './app-layout';
Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,15 @@
11
import React from 'react';
2+
import { AppLayout } from 'layout';
23
import { CreateSessionContainer } from 'pods/create-session';
34

45
export const CreateSessionScene: React.FC = () => {
56
React.useEffect(() => {
67
document.title = `Create New Session - Code Paster`;
78
}, []);
89

9-
return <CreateSessionContainer />;
10+
return (
11+
<AppLayout>
12+
<CreateSessionContainer />
13+
</AppLayout>
14+
);
1015
};

‎front/src/scenes/student.scene.tsx‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,15 @@
11
import * as React from 'react';
2+
import { AppLayout } from 'layout';
23
import { PlayerContainer } from 'pods/student';
34

45
export const StudentScene = () => {
56
React.useEffect(() => {
67
document.title = `Student - Code Paster`;
78
}, []);
89

9-
return <PlayerContainer />;
10+
return (
11+
<AppLayout>
12+
<PlayerContainer />
13+
</AppLayout>
14+
);
1015
};

‎front/src/scenes/trainer.scene.tsx‎

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
11
import React from 'react';
2-
import { CreateSessionContainer } from 'pods/create-session';
32
import { TrainerContainer } from 'pods/trainer';
3+
import { AppLayout } from 'layout';
44

55
export const TrainerScene: React.FC = () => {
66
React.useEffect(() => {
77
document.title = `Trainer - Code Paster`;
88
}, []);
99

10-
return <TrainerContainer />;
10+
return (
11+
<AppLayout>
12+
<TrainerContainer />
13+
</AppLayout>
14+
);
1115
};

0 commit comments

Comments
 (0)