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

Commit f4773db

Browse files
Add HashLinks to workshop form and modified project section
1 parent b386c70 commit f4773db

File tree

8 files changed

+26
-21
lines changed

8 files changed

+26
-21
lines changed

src/components/SidePanel/Projects.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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 (

src/views/pages/Courses/Major.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff 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>

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"

src/views/pages/HomeView/Hero.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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"

src/views/pages/WorkshopView/Form.js

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff 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={{

src/views/pages/WorkshopView/Hero.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import RegisterWorkshop from './RegisterWorkshop';
44
import HeroWithOneButton from '../../../components/Hero/HeroWithOneButton';
55
import { verticalGradient } from '../../../constants';
66
import { makeStyles } from '@material-ui/core';
7+
import { HashLink as Link } from 'react-router-hash-link';
78

89
const 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
}

src/views/pages/WorkshopView/RegisterWorkshop.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,11 @@
11
import React from 'react';
22
import ButtonComponent from '../../../components/Button/ButtonComponent';
33

4-
const webinarApplicationUrl =
5-
'https://docs.google.com/forms/d/e/1FAIpQLSck4rCrdf4VCfnuHuv9CKcyVKLq0MpA132OQhktlJxwxqrdHw/viewform';
6-
74
function 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
}

src/views/pages/WorkshopView/WorkshopContent.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff 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>

0 commit comments

Comments
 (0)