MCPcopy Create free account
hub / github.com/dailydotdev/apps / PanelShell

Function PanelShell

packages/shared/src/components/picks/WeeklyPicksHero.tsx:249–299  ·  view source on GitHub ↗
({
  className,
  title,
  headline,
  actions,
  stack,
  onDismiss,
}: Omit<ShellProps, 'variant'>)

Source from the content-addressed store, hash-verified

247 * it, side by side from tablet.
248 */
249const PanelShell = ({
250 className,
251 title,
252 headline,
253 actions,
254 stack,
255 onDismiss,
256}: Omit<ShellProps, 'variant'>): ReactElement => (
257 <section
258 className={classNames('mb-4 w-full pb-0', feedStyles.cards, className)}
259 >
260 <div className="relative overflow-hidden rounded-b-none rounded-t-16 px-px pb-0 pt-px">
261 <div className="top-hero-panel-border absolute inset-0 rounded-b-none rounded-t-16" />
262 <div className="top-hero-glow pointer-events-none absolute -right-12 top-1/2 h-40 w-40 -translate-y-1/2 rounded-full blur-3xl" />
263 <div className="pointer-events-none absolute bottom-0 left-0 h-10 w-5 bg-gradient-to-t from-raw-pepper-90 to-transparent" />
264 <div className="pointer-events-none absolute bottom-0 right-0 h-10 w-5 bg-gradient-to-t from-raw-pepper-90 to-transparent" />
265 <div className="relative overflow-hidden rounded-b-none rounded-t-[0.9375rem] bg-raw-pepper-90 shadow-2">
266 {onDismiss && (
267 <CloseButton
268 type="button"
269 className="text-white/80 absolute right-3 top-3 z-2 hover:text-white"
270 aria-label="Close banner"
271 onClick={onDismiss}
272 />
273 )}
274 <div className="flex flex-col tablet:flex-row tablet:items-stretch">
275 <div className="flex flex-1 flex-col items-center p-5 text-center tablet:items-start tablet:p-6 tablet:text-left">
276 <div className="flex flex-col items-center gap-1 tablet:items-start">
277 <p className="text-white/80 mt-2 text-[0.875rem] tablet:text-[0.9375rem]">
278 {title}
279 </p>
280 <HeadlineText
281 headline={headline}
282 tag={TypographyTag.H3}
283 type={TypographyType.Title3}
284 bold
285 className="text-white tablet:typo-title2"
286 />
287 <div className="mt-4 flex gap-2">{actions(undefined)}</div>
288 </div>
289 </div>
290 <PicksStack
291 {...stack}
292 size="large"
293 className="bg-black/20 h-40 w-full p-2 tablet:h-auto tablet:w-[14.5rem] tablet:p-3 laptopL:w-[16rem]"
294 />
295 </div>
296 </div>
297 </div>
298 </section>
299);
300
301export interface WeeklyPicksHeroCardProps {
302 state: WeeklyPicksHeroState;

Callers

nothing calls this directly

Calls 1

actionsFunction · 0.85

Tested by

no test coverage detected