diff --git a/components/TagBox/TagBox.module.css b/components/TagBox/TagBox.module.css new file mode 100644 index 0000000..7cc9300 --- /dev/null +++ b/components/TagBox/TagBox.module.css @@ -0,0 +1,36 @@ +.main { + width: 40%; + height: 1000px; + font-family: "Roboto", sans-serif; +} + +.banner { + display: flex; + flex-direction: row; + background-color: #17475f; + align-items: center; + padding: 10px; + color: white; + border-radius: 15px; + justify-content: space-between; + height: 140px; +} + +.tagtray { + display: flex; + width: 100%; + justify-content: center; + flex-direction: row; + margin: 10px 5px; +} + +.positive { + display: flex; + flex-direction: column; + align-items: center; +} +.negative { + display: flex; + flex-direction: column; + align-items: center; +} diff --git a/components/TagBox/TagBox.tsx b/components/TagBox/TagBox.tsx new file mode 100644 index 0000000..c45cffe --- /dev/null +++ b/components/TagBox/TagBox.tsx @@ -0,0 +1,172 @@ +import { Fab, TextField } from "@mui/material"; +import TagField from "components/TagField/TagField"; +import styles from "./TagBox.module.css"; +import ArrowForwardIosIcon from "@mui/icons-material/ArrowForwardIos"; +import { use, useEffect, useState } from "react"; + +const BannerText = [ + "1/4 VISUAL TEST", + "2/4 USABILITY TEST", + "3/4 CONTENT/MEDIA TEST", + "4/4 FUNCTIONALITY/RESPONSIVE TEST", +]; + +const BannerDesc = [ + "Information and user interface components must be presentable to users in ways they can perceive.", + "User interface components and navigation must be operable.", + "Information and the operation of user interface must be understandable.", + "Maximize compatibility with current and future user agents, including assistive technologies.", +]; + +const PTags = [ + [ + "Clear", + "Bright", + "Bold", + "Crisp", + "Eye-catching", + "Attractive", + "Colorful", + ], + [ + "Intuitive", + "Efficient", + "User-friendly", + "Responsive", + "Streamlined", + "Consistent", + "Accessible", + ], + [ + "Clear", + "Simple", + "Easy", + "Understandable", + "Plain", + "Illustrated", + "Straightforward", + ], + [ + "Compatible", + "Durable", + "Flexible", + "Adaptable", + "Reliable", + "Resilient", + "Accessible", + ], +]; +const NTags = [ + [ + "Dull", + "Faded", + "Blurred", + "Dim", + "Confusing", + "Unattractive", + "Poorly designed", + ], + [ + "Confusing", + "Unresponsive", + "Slow", + "Clumsy", + "Inconsistent", + "Unintuitive", + "Inaccessible", + ], + [ + "Complicated", + "Confusing", + "Vague", + "Unclear", + "Misleading", + "Inconsistent", + "Complex", + ], + [ + "Fragile", + "Incompatible", + "Limited", + "Unreliable", + "Ineffective", + "Unadaptable", + "Inaccessible", + ], +]; + +const TagBox = (props: { stage: number }) => { + const [selectedTags, setSelectedTags] = useState([] as string[]); + const [NTagsArr, setNTags] = useState([] as string[]); + const [PTagsArr, setPTags] = useState([] as string[]); + useEffect(() => { + setSelectedTags(() => [...PTagsArr, ...NTagsArr]); + }, [PTagsArr, NTagsArr]); + + const handlePTagChange = (tags: string[]) => { + setPTags(tags); + }; + const handleNTagChange = (tags: string[]) => { + setNTags(tags); + }; + return ( +
{BannerDesc[props.stage]}
+