diff --git a/src/components/HelpPage.tsx b/src/components/HelpPage.tsx new file mode 100644 index 0000000..74d035a --- /dev/null +++ b/src/components/HelpPage.tsx @@ -0,0 +1,106 @@ +import React, { useRef, useState, useEffect } from "react"; +import "../css/helpPage.css"; +import CloseButton from "./buttons/CloseButton"; + +interface Invite { + user_id: number; + draft_id: number; + is_invite_read: false; + username: string; + team_count: number; + scoring_type: string; +} + +const HelpPage = () => { + const modalRef = useRef(null); + const [isOpen, setIsOpen] = useState(false); + + return ( + <> +

setIsOpen(true)} + > + FAQs +

+ { + if (e.target == modalRef.current) { + setIsOpen(false); + } + }} + className="modal" + > +
+

+ setIsOpen(false)} /> + FAQs +

+
+

Q: How do I invite others to my draft?

+

+ A: When creating or updating your draft, press the 'Invites' button. + Enter your friend's username to invite them. If they are already invited, you can remove them. + To join, friends can accept the invite through email or their messages by pressing the mail icon. +

+ +

Q: What is the difference between points and category drafts?

+

+ A: Points drafts rank players based on expected performance in points leagues. + Category drafts rank players based on expected performance in category leagues. + In points leagues, each statistical category is worth points, and the team with the most points wins. + In category leagues, teams win by leading in the most categories. + As such, some NBA players may be more valuable in category leagues than they are in points leagues + and vice versa. +

+ +

Q: What is the difference between snake and linear drafts?

+

+ A: Snake drafts have a snaking order, while linear drafts maintain a fixed order. + For example, in a snake draft with 10 teams labeled 1-10, + the order is 1,2,3,...10,10,9,8,...3,2,1,1,2,3,... . + Linear drafts have a simple order: 1,2,3,...10,1,2,3,... . + Linear drafts disadvantage teams that pick later. +

+ +

Q: What is autodrafting?

+

+ A: Teams on autodrafting mode make automatic picks if they don't make their + selection in time. + Teams can manually activate or deactivate autodrafting. +

+ +

Q: What is the draft queue?

+

+ A: Teams can queue players for automatic picks when available. + The queue appears in the upper left corner. + Swap player priorities by pressing one player, then another. + If a player is picked, they are removed, and the next highest player is considered. +

+ +

Q: What is a good draft strategy?

+

+ A: A balanced approach is advisable. Drafting only one position early + may limit choices later. + Consider the availability of good players in later rounds to avoid positional disadvantages. +

+ +

Q: How do I view past drafts?

+

+ A: Use the droplist on the mock drafts page to filter and view specific drafts. +

+ +

Q: How do I view other team's players?

+

+ A: Use the roster droplist in the left column of the draft to select + and view other teams. +

+
+
+
+ + ); +}; + +export default HelpPage ; \ No newline at end of file