All files / app/features/team Team.tsx

0% Statements 0/16
0% Branches 0/12
0% Functions 0/3
0% Lines 0/15

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                                                                                                                                                                                                                                                                                                           
import {
  Avatar as MuiAvatar,
  Card,
  CardContent,
  Container,
  Grid,
  makeStyles,
  Typography,
} from "@material-ui/core";
import Button from "components/Button";
import HtmlMeta from "components/HtmlMeta";
import { EmailIcon, GlobeIcon, LinkedInIcon, PinIcon } from "components/Icons";
import IconText from "components/IconText";
import PageTitle from "components/PageTitle";
import StyledLink from "components/StyledLink";
import Link from "next/link";
import { volunteerRoute } from "routes";
 
import TeamData from "./team.json";
 
const useStyles = makeStyles((theme) => ({
  spacer: {
    height: theme.spacing(4),
  },
  cardWrapper: {
    height: "100%",
  },
  card: {
    display: "flex",
  },
  cardContent: {
    marginTop: theme.spacing(1),
    marginBottom: theme.spacing(1),
    marginLeft: theme.spacing(2),
    marginRight: theme.spacing(2),
    flex: "1 0 auto",
  },
  avatar: {
    width: theme.typography.pxToRem(96),
    height: theme.typography.pxToRem(96),
  },
}));
 
export default function Team() {
  const classes = useStyles();
 
  return (
    <>
      <HtmlMeta title="The Team" />
      <Container maxWidth="md">
        <PageTitle>The Team</PageTitle>
        <Typography paragraph>
          We are all couch surfers and skilled professionals who want to build
          an improved, safer and more inclusive platform that can support and
          sustainably grow the couch surfing community and bring its values to
          the world. If you feel the same way and want to contribute, then we'd
          love to talk to you.
        </Typography>
        <Typography paragraph>
          <Link href={volunteerRoute} passHref>
            <Button variant="contained" color="secondary">
              Join the team
            </Button>
          </Link>
        </Typography>
      </Container>
      <div className={classes.spacer} />
      <section>
        <Grid
          container
          spacing={2}
          justifyContent="center"
          alignItems="stretch"
        >
          {TeamData.map(
            ({ name, director, board_position, role, location, img, link }) => (
              <Grid key={name} item xs={12} md={4}>
                <Card
                  elevation={director ? 3 : 1}
                  className={classes.cardWrapper}
                >
                  <CardContent className={classes.card}>
                    <MuiAvatar
                      alt={`Headshot of ${name}`}
                      src={img}
                      className={classes.avatar}
                    />
                    <div className={classes.cardContent}>
                      <Typography
                        variant={director ? "h1" : "h2"}
                        component="h2"
                      >
                        {name}
                      </Typography>
                      {director && (
                        <Typography variant="h2" component="h3">
                          {board_position}
                        </Typography>
                      )}
                      <Typography variant="h3">{role}</Typography>
                      <IconText icon={PinIcon} text={location} />
                      {link && (
                        <IconText
                          icon={
                            link.type === "linkedin"
                              ? LinkedInIcon
                              : link.type === "email"
                              ? EmailIcon
                              : GlobeIcon
                          }
                          text={
                            <Typography>
                              <StyledLink href={link.url}>
                                {link.text}
                              </StyledLink>
                            </Typography>
                          }
                        />
                      )}
                    </div>
                  </CardContent>
                </Card>
              </Grid>
            )
          )}
        </Grid>
      </section>
      <div className={classes.spacer} />
      <Container maxWidth="md">
        <Typography variant="h2" component="h2">
          Have skills you want to contribute?
        </Typography>
        <Typography paragraph>
          Couchers.org is a community project, built by folks like you for the
          benefit of the global couch surfing community. If you would like to be
          a part of this great new project, or leave your feedback on our ideas,
          click the button below and fill out the short form.
        </Typography>
        <Typography paragraph>
          <Link href={volunteerRoute} passHref>
            <Button variant="contained" color="secondary">
              Join our team
            </Button>
          </Link>
        </Typography>
      </Container>
    </>
  );
}