jTruBela

inningScore.jsx

Jun 30th, 2024
569
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //--------------------------------------------------------------------------------------------------------------------------------------
  2. //  inningBox.jsx
  3. // 
  4. //  Purpose: Component created for the inningBox element which displays the current inning along with its corresponding indicatior
  5. //      loc: MainContainer              dep: useEffect, useState,
  6. //                                      inning, inningNum, isTop, arrow-box, top-arrow, bottom-arrow(hidden)
  7. //
  8. //  JT,JG
  9. //  6/30/2024
  10. //---------------------------------------------------------------------------------------------------------------------------------------
  11. import { useEffect, useState } from 'react'
  12.  
  13. export default function InningBox( { inningNum, isTop }) {
  14.   return (
  15.     <>
  16.       <div className="p-4 text-xl" id="inning">
  17.         <div className="text-sm pt-10">Inning {inningNum}</div>
  18.         <div className=" bg-green-900 flex flex-col items-center justify-center rounded-md text-white text-center text-3xl border-black">
  19.           <div id="inning" className="p-2 text-xl flex items-center justify-center space">
  20.             <div className="flex flex-row items-center space-x-5">
  21.               {/* <!-- Arrow Box --> */}
  22.               <div className="" id="arrow-box">
  23.                 <div className="text-2xl" id="top-arrow"></div>
  24.                 <div className="text-2xl hidden" id="bottom-arrow"></div>
  25.               </div>
  26.               {/* <!-- Inning Number --> */}
  27.               <div className="text-2xl" id="inning-number">1</div>
  28.             </div>
  29.           </div>
  30.         </div>
  31.       </div>
  32.     </>
  33.   )
  34. }
Advertisement
Add Comment
Please, Sign In to add comment