Skip to content
This repository was archived by the owner on Mar 7, 2024. It is now read-only.

Commit b76bd3b

Browse files
Add workshop implementation
1 parent ff8fafb commit b76bd3b

File tree

15 files changed

+3558
-4979
lines changed

15 files changed

+3558
-4979
lines changed

package-lock.json

100755100644
Lines changed: 3058 additions & 4972 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
},
3030
"dependencies": {
3131
"@date-io/core": "^2.5.0",
32+
"@date-io/date-fns": "^1.3.13",
3233
"@date-io/moment": "^1.3.13",
3334
"@emotion/core": "^10.0.28",
3435
"@emotion/styled": "^10.0.27",
@@ -61,6 +62,7 @@
6162
"clsx": "^1.1.0",
6263
"draft-js": "^0.11.7",
6364
"firebase": "^7.21.1",
65+
"date-fns": "^2.0.0-beta.5",
6466
"formik": "^2.1.4",
6567
"history": "^4.10.1",
6668
"immer": "^6.0.3",

src/Routes.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,15 @@ const renderRoutes = () => (
107107
</MainLayout>
108108
)}
109109
/>
110+
<Route
111+
path="/workshops"
112+
exact
113+
render={props => (
114+
<MainLayout>
115+
<WorkshopView {...props} />
116+
</MainLayout>
117+
)}
118+
/>
110119

111120
<Route
112121
path={`/machine-learning-using-python`}

src/views/pages/Courses/partials/Projects.js renamed to src/components/SidePanel/Projects.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const useStyles = makeStyles(theme => ({
1515
}
1616
}));
1717

18-
function Projects({ projects, flat }) {
18+
function Projects({ title, projects, flat }) {
1919
const classes = useStyles();
2020

2121
return (
@@ -39,7 +39,7 @@ function Projects({ projects, flat }) {
3939
margin: '12px 0px 12px 8px'
4040
}}
4141
>
42-
Learn To Make From this Course
42+
{title}
4343
</Typography>
4444
{projects.map((project, index) => {
4545
return <Project project={project} />;

src/constants/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ export const horizontalGradient =
99
'linear-gradient(270.72deg, #180255 0.25%, #000000 97.54%)';
1010

1111
export const verticalGradient =
12-
'linear-gradient(180.72deg, #180255 0.25%, #000000 97.54%)';
12+
'linear-gradient(180.72deg, #180255 0.25%, #000000 85.54%)';
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
const worksop = {
2+
policies: {
3+
title: 'Workshop Policies',
4+
body: [
5+
'What is Lorem Ipsum Lorem Ipsum is simply dummy text of text of text of ',
6+
'What is Lorem Ipsum Lorem Ipsum is simply text of',
7+
'What is Lorem Ipsum Lorem Ipsum is simply dummy text text of',
8+
'What is Lorem Ipsum Lorem Ipsum text of'
9+
]
10+
},
11+
must_do: {
12+
title: 'Workshop Requestors Must Do',
13+
body: [
14+
'What is Lorem Ipsum Lorem Ipsum is simply dummy text of text of text of of text of text of of text of text of sfsfterwdvyh',
15+
'What is Lorem Ipsum Lorem Ipsum is simply text of',
16+
'What is Lorem Ipsum Lorem Ipsum is simply dummy text text of',
17+
'What is Lorem Ipsum Lorem Ipsum text of of text of text of of text of text of'
18+
]
19+
},
20+
projects: [
21+
{
22+
title: 'Mobile App Development',
23+
img: '/static/images/courses/projects/split.png'
24+
},
25+
{
26+
title: 'File Encryption and Compression',
27+
img: '/static/images/courses/projects/security.jpg'
28+
},
29+
{
30+
title: 'Api calls',
31+
img: '/static/images/courses/projects/apicall.jpg'
32+
},
33+
{
34+
title: 'Git Version Control Replica',
35+
img: '/static/images/courses/projects/git.png'
36+
},
37+
{
38+
title: 'Mobile App Development',
39+
img: '/static/images/courses/projects/split.png'
40+
},
41+
{
42+
title: 'Mobile App Development',
43+
img: '/static/images/courses/projects/split.png'
44+
}
45+
]
46+
};
47+
48+
export default worksop;

src/views/pages/Courses/Major.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { Grid, Box, Hidden } from '@material-ui/core';
44
import Details from './partials/Details';
55
import Overview from './partials/Overview';
66
import Topics from './partials/Topics';
7-
import Projects from './partials/Projects';
7+
import Projects from '../../../components/SidePanel/Projects';
88

99
const useStyles = makeStyles(theme => ({
1010
icon: {
@@ -106,7 +106,10 @@ export default function Major({ course }) {
106106

107107
<Hidden smDown>
108108
<Box display="flex" flexDirection="column" mb={3} ml={2}>
109-
<Projects projects={course.projects} />
109+
<Projects
110+
title="Learn To Make From This Course"
111+
projects={course.projects}
112+
/>
110113
</Box>
111114
</Hidden>
112115
</Box>

src/views/pages/EventsView/CTA.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ function CTA({ className, ...rest }) {
9797
<Button
9898
className={classes.Button + ' ' + classes.primeBtn}
9999
component="a"
100-
href="https://codecau.se/ws"
100+
href="/workshops"
101101
target="_blank"
102102
size="large"
103103
variant="contained"

src/views/pages/HomeView/CTA.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ function CTA({ className, ...rest }) {
9797
<Button
9898
className={classes.Button + ' ' + classes.primeBtn}
9999
component="a"
100-
href="https://codecau.se/ws"
100+
href="/workshops"
101101
target="_blank"
102102
size="large"
103103
variant="contained"

0 commit comments

Comments
 (0)