This repository was archived by the owner on Mar 7, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 8 files changed +26
-21
lines changed Expand file tree Collapse file tree 8 files changed +26
-21
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ const useStyles = makeStyles(theme => ({
15
15
}
16
16
} ) ) ;
17
17
18
- function Projects ( { title, projects, flat } ) {
18
+ function Projects ( { title, projects, flat } ) {
19
19
const classes = useStyles ( ) ;
20
20
21
21
return (
Original file line number Diff line number Diff line change @@ -106,7 +106,10 @@ export default function Major({ course }) {
106
106
107
107
< Hidden smDown >
108
108
< Box display = "flex" flexDirection = "column" mb = { 3 } ml = { 2 } >
109
- < Projects title = "Learn To Make From This Course" projects = { course . projects } />
109
+ < Projects
110
+ title = "Learn To Make From This Course"
111
+ projects = { course . projects }
112
+ />
110
113
</ Box >
111
114
</ Hidden >
112
115
</ Box >
Original file line number Diff line number Diff line change @@ -97,7 +97,7 @@ function CTA({ className, ...rest }) {
97
97
< Button
98
98
className = { classes . Button + ' ' + classes . primeBtn }
99
99
component = "a"
100
- href = "https://codecau.se/ws "
100
+ href = "/workshops "
101
101
target = "_blank"
102
102
size = "large"
103
103
variant = "contained"
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ function Hero({ className, ...rest }) {
11
11
return (
12
12
< div className = { className } { ...rest } >
13
13
< HeroWithLogo
14
- style = { { height : " 420px" } }
14
+ style = { { height : ' 420px' } }
15
15
title = "Learn for Cause"
16
16
title2 = "Code for Cause"
17
17
imageUrl = "/static/home/codeforcause.svg"
Original file line number Diff line number Diff line change @@ -100,7 +100,7 @@ function Form({ ...rest }) {
100
100
We will be able to recommend, and will be able to notify you about our
101
101
events of your interest near you.
102
102
</ Typography >
103
- < Typography className = { classes . subhead } variant = "body1 " color = "primary" >
103
+ < Typography className = { classes . subhead } variant = "h6 " color = "primary" >
104
104
Contact Information
105
105
</ Typography >
106
106
< ValidatorForm onSubmit = { handleSubmit } >
@@ -190,11 +190,7 @@ function Form({ ...rest }) {
190
190
] }
191
191
/>
192
192
193
- < Typography
194
- className = { classes . subhead }
195
- variant = "body1"
196
- color = "primary"
197
- >
193
+ < Typography className = { classes . subhead } variant = "h6" color = "primary" >
198
194
Workshop Information
199
195
</ Typography >
200
196
@@ -210,16 +206,19 @@ function Form({ ...rest }) {
210
206
validators = { [ 'required' ] }
211
207
errorMessages = { [ 'This is a required field' ] }
212
208
/>
209
+
210
+ < Typography variant = "caption" > Referred Date For Workshop</ Typography >
213
211
< MuiPickersUtilsProvider utils = { DateFnsUtils } >
214
212
< KeyboardDatePicker
215
213
disableToolbar
216
- variant = "outlined "
214
+ variant = "filled "
217
215
format = "MM/dd/yyyy"
218
216
minDate = { new Date ( ) }
219
217
margin = "normal"
220
218
id = "date-picker-inline"
221
219
fullWidth
222
- label = "Referred Date for Workshop"
220
+ autoOk
221
+ autoSave
223
222
value = { selectedDate }
224
223
onChange = { handleDateChange }
225
224
KeyboardButtonProps = { {
Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ import RegisterWorkshop from './RegisterWorkshop';
4
4
import HeroWithOneButton from '../../../components/Hero/HeroWithOneButton' ;
5
5
import { verticalGradient } from '../../../constants' ;
6
6
import { makeStyles } from '@material-ui/core' ;
7
+ import { HashLink as Link } from 'react-router-hash-link' ;
7
8
8
9
const useStyles = makeStyles ( ( ) => ( {
9
10
root : {
@@ -18,7 +19,11 @@ function Hero({ className, ...rest }) {
18
19
title = "A Workshop With An Experienced Tech Team"
19
20
subtitle = "122+ workshops done till now!"
20
21
className = { classes . root }
21
- component = { < RegisterWorkshop /> }
22
+ component = {
23
+ < Link smooth to = "#fill-the-workshop-form" >
24
+ < RegisterWorkshop />
25
+ </ Link >
26
+ }
22
27
/>
23
28
) ;
24
29
}
Original file line number Diff line number Diff line change 1
1
import React from 'react' ;
2
2
import ButtonComponent from '../../../components/Button/ButtonComponent' ;
3
3
4
- const webinarApplicationUrl =
5
- 'https://docs.google.com/forms/d/e/1FAIpQLSck4rCrdf4VCfnuHuv9CKcyVKLq0MpA132OQhktlJxwxqrdHw/viewform' ;
6
-
7
4
function RegisterWorkshopButton ( { className } ) {
8
5
return (
9
6
< ButtonComponent
10
- className = { className }
11
7
title = "Fill Form For Workshop"
12
- href = { webinarApplicationUrl }
13
- target = "_blank"
8
+ className = { className }
14
9
/>
15
10
) ;
16
11
}
Original file line number Diff line number Diff line change @@ -37,12 +37,15 @@ export default function WorkshopContent({ details }) {
37
37
< HeadWithBulletPoints
38
38
details = { details . must_do }
39
39
> </ HeadWithBulletPoints >
40
- < Form />
40
+ < Form id = "fill-the-workshop-form" />
41
41
</ Box >
42
42
43
43
< Hidden smDown >
44
44
< Box display = "flex" flexDirection = "column" mb = { 3 } ml = { 2 } >
45
- < Projects title = "Our Previous Workshops" projects = { details . projects } />
45
+ < Projects
46
+ title = "Our Previous Workshops"
47
+ projects = { details . projects }
48
+ />
46
49
</ Box >
47
50
</ Hidden >
48
51
</ Box >
You can’t perform that action at this time.
0 commit comments