Skip to content

Basic changes on 'Contact.js'. Less responsive but other things fine #34

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1,238 changes: 602 additions & 636 deletions package-lock.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"react-dom": "^16.13.1",
"react-redux": "^7.2.1",
"react-router-dom": "^5.2.0",
"react-scripts": "3.4.3",
"react-scripts": "^3.4.3",
"redux": "^4.0.5",
"redux-thunk": "^2.3.0"
},
Expand Down
104 changes: 100 additions & 4 deletions src/components/HomePage/Contact.js
Original file line number Diff line number Diff line change
@@ -1,23 +1,119 @@
import React from 'react';
import ReactDOM from 'react-dom';
import { makeStyles } from '@material-ui/core/styles';

import Grid from '@material-ui/core/Grid';
import Container from '@material-ui/core/Container';
import TextField from '@material-ui/core/TextField';
import Button from '@material-ui/core/Button';
//import GitHubIcon from '@material-ui/icons/GitHub';
//import FacebookIcon from '@material-ui/icons/Facebook';
//import InstagramIcon from '@material-ui/icons/Instagram';
import Instagram from './Social_media/insta.png';
import GitHub from './Social_media/git.png';
import Facebook from './Social_media/fb.png';
import Slack from './Social_media/slack.png';


import SectionLayout from './SectionLayout';

function Contact() {
const classes = useStyle();

return (
<SectionLayout alternate lastSection>
<h1 className={classes.heading}>Contact Section</h1>
<Grid container className={classes.background}>

{/* <Grid item xs={12}>


</Grid> */}

<Grid item xs={12} md={6} className={classes.item}>

<h1>Stay in touch.</h1>

<Grid
container
direction="row"
justify="center"
spacing={10}
>

<Grid item>
<a href="https://m.facebook.com/OpenCodeCommunity/">
<img src={Facebook} alt='icon' />
</a>
</Grid>

<Grid item>
<a href="https://github.com/opencodenitr" >
<img src={GitHub} alt='icon'/>
</a>
</Grid>

<Grid item>
<a href="https://www.instagram.com/opencode.nitr/" >
<img src={Instagram} alt='icon'/>
</a>
</Grid>

<Grid item>
<a href="http://bit.ly/NITRDevs">
<img src={Slack} alt='icon'/>
</a>
</Grid>

</Grid>

</Grid>

<Grid item xs={12} md={6} className={classes.item}>

<h2>A feedback would be appreciated.</h2>

<div>
<TextField
id="outlined-textarea"
placeholder="Email: "
multiline
fullWidth
margin="normal"
variant="outlined"
/>

<TextField
id="outlined-textarea"
placeholder="Comments: "
multiline
fullWidth
margin="normal"
variant="outlined"
/>

<Button onClick={()=>alert('Thanks for the feedback')} variant="contained" color="secondary">
Submit
</Button>
</div>

</Grid>

</Grid>
</SectionLayout>
);
}

export default Contact;

const useStyle = makeStyles((theme) => ({
heading: {
fontFamily: theme.typography.fontFamily,
fontSize: '3em',
background: {
backgroundColor: "#0E1647",
height: "100%",
width: "100%",
paddingTop: "10%",
},
item: {
paddingLeft: "5%",
paddingRight: "5%",
},
}));
Binary file added src/components/HomePage/Social_media/fb.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/components/HomePage/Social_media/git.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/components/HomePage/Social_media/insta.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/components/HomePage/Social_media/slack.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.