diff --git a/client/src/components/admin_v2/Marginals/Form.js b/client/src/components/admin_v2/Marginals/Form.js new file mode 100644 index 00000000..466c5792 --- /dev/null +++ b/client/src/components/admin_v2/Marginals/Form.js @@ -0,0 +1,292 @@ +import React, { useState } from 'react'; +import makeStyles from '@mui/styles/makeStyles'; +import { + Autocomplete, + Avatar, + Button, + Checkbox, + FormControl, + FormControlLabel, + FormGroup, + FormLabel, + Grid, + MenuItem, + Radio, + RadioGroup, + TextField, + Typography, +} from '@mui/material'; +import { Edit } from '@mui/icons-material'; +import { Box } from '@mui/system'; + +export default function Form() { + const classes = useStyles(); + + const [accountType, setAccountType] = useState(0); + const [team, setTeam] = useState([]); + + const [hover, setHover] = useState(false); + const handleMouseEnter = () => setHover(true); + const handleMouseLeave = () => setHover(false); + + const handleAccount = (event) => { + setAccountType(event.target.value); + }; + + const handleTeam = (event) => { + setTeam(event.target.value); + }; + + return ( + <> + + + +
+ Rutaj Dash + Mentor +
+
+ + + {formElements.details.map((detail) => ( + + + + ))} + + + + + None + Normal + NITR + MM + NITR Faculty + + + + Position + + {formElements.positions.map((position) => ( + } + value={position} + label={position} + /> + ))} + + + + Team + + {formElements.teams.map((team) => ( + } + label={team} + /> + ))} + + + + + + option.title} + defaultValue={[top100Interests[13]]} + renderInput={(params) => ( + + )} + /> + + + + Session + + + + + } + label='Newsletter Subscribed' + /> + + + Bio + + + + + + Profile Urls + + {formElements.profiles.map((profile) => ( + + + + ))} + + } + label='Banned' + /> + + + + + + + ); +} + +const useStyles = makeStyles((theme) => ({ + avatarWrapper: { + display: 'flex', + flexDirection: 'row', + alignItems: 'center', + padding: 8, + paddingLeft: '1em', + borderRadius: 10, + marginBottom: 12, + color: theme.palette.secondary.neutral70, + }, + avatar: { + width: 56, + height: 56, + marginRight: '1em', + }, + profile: { + display: 'flex', + flexDirection: 'column', + justifyContent: 'center', + }, + formWrapper: { + backgroundColor: 'white', + borderRadius: 10, + padding: '2rem', + paddingLeft: '1rem', + }, + // input: { + // margin: 8, + // }, + // newsLetter: { + // ml: 1, + // }, +})); + +const top100Interests = [ + { title: 'The Shawshank Redemption', year: 1994 }, + { title: 'The Godfather', year: 1972 }, + { title: 'The Godfather: Part II', year: 1974 }, + { title: 'The Dark Knight', year: 2008 }, + { title: '12 Angry Men', year: 1957 }, + { title: "Schindler's List", year: 1993 }, + { title: 'Pulp Fiction', year: 1994 }, + { title: 'City of God', year: 2002 }, + { title: 'Se7en', year: 1995 }, + { title: 'The Silence of the Lambs', year: 1991 }, + { title: "It's a Wonderful Life", year: 1946 }, + { title: 'Life Is Beautiful', year: 1997 }, + { title: 'The Usual Suspects', year: 1995 }, + { title: 'Léon: The Professional', year: 1994 }, + { title: 'Spirited Away', year: 2001 }, + { title: 'Saving Private Ryan', year: 1998 }, + { title: 'Once Upon a Time in the West', year: 1968 }, + { title: 'American History X', year: 1998 }, + { title: 'Interstellar', year: 2014 }, + { title: 'Casablanca', year: 1942 }, + { title: 'City Lights', year: 1931 }, + { title: 'Psycho', year: 1960 }, + { title: 'The Green Mile', year: 1999 }, + { title: 'The Intouchables', year: 2011 }, + { title: 'Modern Times', year: 1936 }, + { title: 'Raiders of the Lost Ark', year: 1981 }, + { title: 'Rear Window', year: 1954 }, + { title: 'The Pianist', year: 2002 }, + { title: 'The Departed', year: 2006 }, + { title: 'Terminator 2: Judgment Day', year: 1991 }, + { title: 'Back to the Future', year: 1985 }, + { title: 'Whiplash', year: 2014 }, + { title: 'Gladiator', year: 2000 }, +]; + +const formElements = { + details: ['First Name', 'Last Name', 'Email', 'NITR-mail'], + positions: ['Member', 'Coordinator', 'Mentor'], + teams: ['PnF', 'Tech', 'Content', 'Design'], + profiles: [ + 'LinkedIn', + 'GitHub', + 'Twitter', + 'Facebook', + 'Instagram', + 'Website', + ], +};