From 250d80ea1141a1513d37d9740286bf8e8708c992 Mon Sep 17 00:00:00 2001 From: Kenneth Jannette Date: Fri, 23 Feb 2024 05:48:44 -0600 Subject: [PATCH] more --- src/Components/SignupPage/SignupPage.js | 63 ++++++++++++++++--------- src/styles/signup.scss | 23 ++++++++- 2 files changed, 63 insertions(+), 23 deletions(-) diff --git a/src/Components/SignupPage/SignupPage.js b/src/Components/SignupPage/SignupPage.js index a3cdbb5..caca153 100644 --- a/src/Components/SignupPage/SignupPage.js +++ b/src/Components/SignupPage/SignupPage.js @@ -62,8 +62,8 @@ const SignupPage = () => { const [showPromoModal, setShowPromoModal] = useState(false); const [issueText, setIssueText] = useState(""); const [isAnnual, setIsAnnual] = useState(1); - const [valX, setValX] = useState(0); - const [valY, setValY] = useState(3); + const [valX, setValX] = useState(1); + const [valY, setValY] = useState(4); const handleChangeInput = (e, name) => { const newData = handleFormDataChange(e, name, data, signupFields); @@ -107,6 +107,22 @@ const SignupPage = () => { setActiveRadioOption(tempPlan[0].value); }; + const handleLeftArrowClick = () => { + console.log("left"); + if (valX == 0) { + return; + } else { + const tempx = valX - 1; + const tempy = valY - 1; + setValX(tempx); + setValY(tempy); + } + }; + + const handleRightArrowClick = () => { + console.log("left"); + }; + const vals = [ [1, 2, 3, 4, 5, 6, 7, 8], [1, 2], @@ -611,25 +627,30 @@ const SignupPage = () => { -
- {signupRadioFields?.slice(valX, valY).map((option, index) => ( -
- -
- ))} + +
+
+
+ {signupRadioFields?.slice(valX, valY).map((option, index) => ( +
+ +
+ ))} +
+
{showAddAccount && !isBusy ? (
diff --git a/src/styles/signup.scss b/src/styles/signup.scss index 2c846e1..6303259 100644 --- a/src/styles/signup.scss +++ b/src/styles/signup.scss @@ -115,6 +115,10 @@ .select-plan-container { display: flex; flex-direction: column; + justify-content: center; + align-items: center; + margin-right: auto; + margin-left: auto; margin-top: 24px; width: 920px; min-height: 540px; @@ -164,11 +168,26 @@ flex-direction: column; } +.radio-group-super { + width: 912px; + display: flex; + flex-direction: row; + justify-content: center; + background-color: red; +} + .radio-group-box { display: flex; flex-direction: row; justify-content: center; - padding: 6px; + padding: 2px; + background-color: yellow; + width: 815px; +} + +.toggle-arrow-box { + width: 10px; + background-color: red; } .select-plan-summary-box { @@ -195,7 +214,7 @@ } .signup-radio-container { - width: 280px; + width: 270px; } .signup-feat-item {