Advertisement
fabiobiondi

Untitled

Jan 10th, 2022
1,095
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 2.05 KB | None | 0 0
  1. <div className="max-w-5xl mx-auto px-4 sm:px-6 lg:max-w-7xl lg:px-8">
  2.  
  3.       {/*Main 3 column grid */}
  4.       <div className="flex flex-col lg:flex-row gap-4">
  5.         {/*Left column */}
  6.         <div className="flex-1">
  7.           <section aria-labelledby="section-1-title">
  8.             {/*<h2 className="sr-only" id="section-1-title">Section title</h2>*/}
  9.             <div className="rounded-lg bg-white h-full overflow-hidden shadow">
  10.               <div className="p-2 bg-black h-full flex align-middle">
  11.                 {
  12.                   renderPlayer(currentItem)
  13.                 }
  14.               </div>
  15.             </div>
  16.           </section>
  17.         </div>
  18.  
  19.         {/*Right column */}
  20.         <div
  21.          className={classNames(
  22.            'lg:w-72  bg-slate-300',
  23.            { ' ': props.showFullPlaylist },
  24.            { 'h-96 lg:h-auto flex flex-shrink-0': !props.showFullPlaylist }
  25.          )}>
  26.           <section
  27.            aria-labelledby="section-2-title"
  28.            className="flex-grow-1 h-full w-full flex flex-col overflow-scroll remove-scrollbar"
  29.          >
  30.             {/*
  31.             <h2 className="flex-shrink-0 sr-only" id="section-2-title">
  32.               Section title
  33.             </h2>
  34.             */}
  35.             <div
  36.              className={classNames(
  37.                'flex-grow-1  rounded-lg shadow ',
  38.                { 'lg:h-0': props.showFullPlaylist },
  39.                { 'h-0': !props.showFullPlaylist },
  40.              )}>
  41.               <div className="p-2 bg-slate-300">
  42.                 {
  43.                   props.items.map((item,index) =>  (
  44.                     <div
  45.                      key={`${item.youtubeId}${index}`} onClick={() => doItemAction(item)}>
  46.                       <PlayListItemRenderer
  47.                        item={item}
  48.                        selected={!!item?.youtubeId && (item?.youtubeId === currentItem?.youtubeId)} />
  49.                     </div>)
  50.                   )
  51.                 }
  52.               </div>
  53.             </div>
  54.           </section>
  55.         </div>
  56.       </div>
  57.     </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement