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 => ({
1515 }
1616} ) ) ;
1717
18- function Projects ( { title, projects, flat } ) {
18+ function Projects ( { title, projects, flat } ) {
1919 const classes = useStyles ( ) ;
2020
2121 return (
Original file line number Diff line number Diff line change @@ -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 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+ />
110113 </ Box >
111114 </ Hidden >
112115 </ Box >
Original file line number Diff line number Diff 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"
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ function Hero({ className, ...rest }) {
1111 return (
1212 < div className = { className } { ...rest } >
1313 < HeroWithLogo
14- style = { { height : " 420px" } }
14+ style = { { height : ' 420px' } }
1515 title = "Learn for Cause"
1616 title2 = "Code for Cause"
1717 imageUrl = "/static/home/codeforcause.svg"
Original file line number Diff line number Diff line change @@ -100,7 +100,7 @@ function Form({ ...rest }) {
100100 We will be able to recommend, and will be able to notify you about our
101101 events of your interest near you.
102102 </ Typography >
103- < Typography className = { classes . subhead } variant = "body1 " color = "primary" >
103+ < Typography className = { classes . subhead } variant = "h6 " color = "primary" >
104104 Contact Information
105105 </ Typography >
106106 < ValidatorForm onSubmit = { handleSubmit } >
@@ -190,11 +190,7 @@ function Form({ ...rest }) {
190190 ] }
191191 />
192192
193- < Typography
194- className = { classes . subhead }
195- variant = "body1"
196- color = "primary"
197- >
193+ < Typography className = { classes . subhead } variant = "h6" color = "primary" >
198194 Workshop Information
199195 </ Typography >
200196
@@ -210,16 +206,19 @@ function Form({ ...rest }) {
210206 validators = { [ 'required' ] }
211207 errorMessages = { [ 'This is a required field' ] }
212208 />
209+
210+ < Typography variant = "caption" > Referred Date For Workshop</ Typography >
213211 < MuiPickersUtilsProvider utils = { DateFnsUtils } >
214212 < KeyboardDatePicker
215213 disableToolbar
216- variant = "outlined "
214+ variant = "filled "
217215 format = "MM/dd/yyyy"
218216 minDate = { new Date ( ) }
219217 margin = "normal"
220218 id = "date-picker-inline"
221219 fullWidth
222- label = "Referred Date for Workshop"
220+ autoOk
221+ autoSave
223222 value = { selectedDate }
224223 onChange = { handleDateChange }
225224 KeyboardButtonProps = { {
Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ import RegisterWorkshop from './RegisterWorkshop';
44import HeroWithOneButton from '../../../components/Hero/HeroWithOneButton' ;
55import { verticalGradient } from '../../../constants' ;
66import { makeStyles } from '@material-ui/core' ;
7+ import { HashLink as Link } from 'react-router-hash-link' ;
78
89const useStyles = makeStyles ( ( ) => ( {
910 root : {
@@ -18,7 +19,11 @@ function Hero({ className, ...rest }) {
1819 title = "A Workshop With An Experienced Tech Team"
1920 subtitle = "122+ workshops done till now!"
2021 className = { classes . root }
21- component = { < RegisterWorkshop /> }
22+ component = {
23+ < Link smooth to = "#fill-the-workshop-form" >
24+ < RegisterWorkshop />
25+ </ Link >
26+ }
2227 />
2328 ) ;
2429}
Original file line number Diff line number Diff line change 11import React from 'react' ;
22import ButtonComponent from '../../../components/Button/ButtonComponent' ;
33
4- const webinarApplicationUrl =
5- 'https://docs.google.com/forms/d/e/1FAIpQLSck4rCrdf4VCfnuHuv9CKcyVKLq0MpA132OQhktlJxwxqrdHw/viewform' ;
6-
74function RegisterWorkshopButton ( { className } ) {
85 return (
96 < ButtonComponent
10- className = { className }
117 title = "Fill Form For Workshop"
12- href = { webinarApplicationUrl }
13- target = "_blank"
8+ className = { className }
149 />
1510 ) ;
1611}
Original file line number Diff line number Diff line change @@ -37,12 +37,15 @@ export default function WorkshopContent({ details }) {
3737 < HeadWithBulletPoints
3838 details = { details . must_do }
3939 > </ HeadWithBulletPoints >
40- < Form />
40+ < Form id = "fill-the-workshop-form" />
4141 </ Box >
4242
4343 < Hidden smDown >
4444 < 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+ />
4649 </ Box >
4750 </ Hidden >
4851 </ Box >
You can’t perform that action at this time.
0 commit comments