Skip to content

Added Contact component for the website. #31

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 8 commits 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
15 changes: 9 additions & 6 deletions src/views/App.js
Original file line number Diff line number Diff line change
@@ -1,26 +1,29 @@
import React from 'react';
import { Router, Route, Redirect, Switch } from 'react-router-dom';
import React from "react";
import { Router, Route, Redirect, Switch } from "react-router-dom";

import { ThemeProvider } from "@material-ui/core/styles";
import { CssBaseline } from "@material-ui/core";

import { ThemeProvider } from '@material-ui/core/styles';
import { CssBaseline } from '@material-ui/core';

import createBrowserHistory from '../config/history';
import Home from './Home';
import Navbar from '../components/Navbar';

import ImageAvatars from "./Contact/Contact";
import theme from '../config/theme';


const App = () => {
return (
<ThemeProvider theme={theme}>
<CssBaseline />
<ImageAvatars />
<Router history={createBrowserHistory}>
<Navbar />
<Switch>
<Route path='/' exact>
<Home />
</Route>
<Redirect to='/' />
<Redirect to="/" />
</Switch>
</Router>
</ThemeProvider>
Expand Down
98 changes: 98 additions & 0 deletions src/views/Contact/Contact.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
import React from "react";
import { makeStyles } from "@material-ui/core/styles";
import Avatar from "@material-ui/core/Avatar";
import TextField from "@material-ui/core/TextField";
import Button from "@material-ui/core/Button";
import Facebook from "./images/Facebook.svg";
import Github from "./images/Github.svg";
import Instagram from "./images/Instagram.svg";
import Slack from "./images/Slack.png";

const useStyles = makeStyles((theme) => ({
background: {
backgroundColor: "#0f3057",
},
heading1: {
paddingLeft: "37%",
paddingTop: "10%",
},
heading2: {
paddingLeft: "30%",
},
root: {
display: "flex",
paddingLeft: "41%",
paddingRight: "41%",
"& > *": {
margin: theme.spacing(2),
},
},
input: {
paddingLeft: "30%",
paddingRight: "30%",
},
}));

export default function ImageAvatars() {
const classes = useStyles();

return (
<div className={classes.background}>
<h1 className={classes.heading1}>Stay Connected With OpenCode</h1>
<div className={classes.root}>
<Avatar alt="F">
<a href="https://www.facebook.com/OpenCodeCommunity/">
<img width="100%" height="100%" src={Facebook} alt="F" />
</a>
</Avatar>
<Avatar alt="G">
<a href=" https://github.com/opencodenitr">
<img width="100%" height="100%" src={Github} alt="G" />
</a>
</Avatar>
<Avatar alt="I">
<a href="https://www.instagram.com/opencode.nitr/">
<img width="100%" height="100%" src={Instagram} alt="I" />
</a>
</Avatar>
<Avatar alt="S">
<a href="http://bit.ly/NITRDevs">
<img width="100%" height="100%" src={Slack} alt="M" />
</a>
</Avatar>
</div>
<h1 className={classes.heading2}>
Please provide any comments or suggestions below!
</h1>
<div className={classes.input}>
<TextField
id="outlined-textarea"
label="Email:"
placeholder="Enter you email here!"
multiline
fullWidth
margin="normal"
variant="outlined"
/>
<TextField
id="outlined-textarea"
label="Comments:"
placeholder="Please enter your comments here!"
multiline
fullWidth
margin="normal"
variant="outlined"
/>
<Button
onClick={() => alert("Thanks for the feedback")}
variant="contained"
color="secondary"
>
Submit
</Button>
</div>
</div>
);
}
4 changes: 4 additions & 0 deletions src/views/Contact/images/Facebook.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletions src/views/Contact/images/Github.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 12 additions & 0 deletions src/views/Contact/images/Instagram.svg
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/views/Contact/images/Slack.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.