All files / src/pages/RadicalCollaboration/Contact index.js

33.33% Statements 3/9
100% Branches 0/0
0% Functions 0/3
37.5% Lines 3/8

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164                      61x                                                                                         61x                                                                                                                                                               61x                                                      
import React from "react";
import Box from "@material-ui/core/Box";
import makeStyles from "@material-ui/core/styles/makeStyles";
import Grid from "@material-ui/core/Grid";
import Container from "@material-ui/core/Container";
import Typography from "@material-ui/core/Typography";
import TextField from "@material-ui/core/TextField";
import Button from "@material-ui/core/Button";
import FileUploadIcon from "../../../icons/FileUploadIcon";
 
import { GenericHeaderSection } from '../../../components/'
const useStyles = makeStyles((theme) => ({
  headerStyle: {
    textAlign: "center",
    [theme.breakpoints.down("sm")]: {
      padding: "0px 32px",
    },
    [theme.breakpoints.up("md")]: {
      padding: "0px 100px",
    },
    "& h6": {
      [theme.breakpoints.down("sm")]: {
        fontSize: "20px",
        fontWeight: "700",
        margin: "0px 0px 71px 0px",
        color: theme.palette.text.secondary,
      },
      [theme.breakpoints.up("md")]: {
        fontSize: "24px",
        fontWeight: "700",
        margin: "0px 0px 86px 0px",
        color: theme.palette.text.secondary,
      },
    },
  },
  formStyle: {
    textAlign: "left",
    padding: "48px 0px",
    justifyContent: "center",
    "& h3": {
      fontSize: "20px",
      fontWeight: "500",
      margin: "32px 0px 8px 0px",
      color: theme.palette.text.primary,
    },
    "& h4": {
      fontSize: "20px",
      fontWeight: "500",
      margin: "8px 0px 0px 0px",
      color: theme.palette.text.primary,
    },
  },
}));
 
 
 
const ContactForm = () => {
  const classes = useStyles();
  return (
    <Box className="containerGray">
      <Container>
        <Grid container className={classes.formStyle}>
          <Grid item xs={1} md={2} lg={3} />
          <Grid item xs={10} md={8} lg={6} container direction="column">
            <Grid item xs={12}>
              <Typography variant="h3">
                Email <span style={{ color: "red" }}>*</span>
              </Typography>
              <TextField id="email-input" placeholder="Your email"></TextField>
 
              <Typography variant="h3">
                I have a question, comment or feature suggestion.
              </Typography>
              <TextField
                id="user-message"
                placeholder="Your message"
                multiline="true"
              ></TextField>
 
              <Typography variant="h3">
                I added the civictechindex tag to my project, please add my logo
                to your website.
              </Typography>
              <Button
                style={{ width: "200px", height: "48px", margin: "4px 0px" }}
                variant="contained"
                color="default"
              >
                <FileUploadIcon />
                &nbsp;&nbsp;Upload File
              </Button>
              <Typography variant="h4">
                [ADD FILE DETAILS (SIZE, TYPE)]
              </Typography>
 
              <Typography variant="h3">
                Name <span style={{ color: "red" }}>*</span>
              </Typography>
              <TextField id="name-input" placeholder="Your name"></TextField>
 
              <Typography variant="h3">
                Organization / Brigade / Affiliation{" "}
                <span style={{ color: "red" }}>*</span>
              </Typography>
              <TextField
                id="user-affiliation"
                placeholder="Name of your organization, brigade, affiliation"
              ></TextField>
 
              <Typography variant="h3">
                Your Project or Organization&apos;s GitHub URL{""}
                <span style={{ color: "red" }}>*</span>
              </Typography>
              <TextField id="github-url" placeholder="GitHub URL"></TextField>
 
              <Button
                style={{
                  width: "105px",
                  height: "48px",
                  padding: "10px",
                  margin: "32px 0px",
                }}
                variant="contained"
                color="secondary"
              >
                Submit
              </Button>
            </Grid>
          </Grid>
          <Grid item xs={1} md={2} lg={3} />
        </Grid>
      </Container>
    </Box>
  );
};
 
const Contact = () => {
  const classes = useStyles();
  const breadCrumbLinks = [
    { name: "Home", href: "/home" },
    { name: "About", href: "/about" },
    { name: "Contact Us", href: "/about/contact" },
  ];
 
  return (
    <Box>
      <GenericHeaderSection mainTitle ="Contact Us" breadCrumbLinks ={breadCrumbLinks} lg='322px'>
        <Grid container justify="center" className={classes.headerStyle}>
          <Grid item xs={12} md={10}>
            <Typography variant="h6">
                We would love to hear your thoughts or feedback on how we can
                improve your experience with the Civic Tech Index!
            </Typography>
          </Grid>
        </Grid>
      </GenericHeaderSection>
 
      <ContactForm />
    </Box>
  );
};
 
export default Contact;