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

Function StripShell

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

Source from the content-addressed store, hash-verified

188 * first, then the copy and the button, so they sit nearer the page's center.
189 */
190const StripShell = ({
191 className,
192 title,
193 headline,
194 actions,
195 stack,
196 onDismiss,
197}: Omit<ShellProps, 'variant'>): ReactElement => (
198 <section
199 className={classNames(
200 'relative flex w-full items-center gap-4 overflow-hidden rounded-16 border border-border-subtlest-quaternary bg-background-default py-2 pl-3 pr-8 tablet:gap-5',
201 className,
202 )}
203 >
204 <div
205 aria-hidden
206 className="pointer-events-none absolute inset-0"
207 style={picksGlow}
208 />
209 <PicksStack
210 {...stack}
211 size="small"
212 className="relative h-24 w-28 shrink-0 self-center tablet:h-28 tablet:w-32"
213 />
214 <div className="relative flex min-w-0 flex-1 flex-col items-start gap-3">
215 <div className="flex flex-col">
216 <Typography
217 type={TypographyType.Footnote}
218 color={TypographyColor.Tertiary}
219 >
220 {title}
221 </Typography>
222 <HeadlineText
223 headline={headline}
224 tag={TypographyTag.P}
225 type={TypographyType.Callout}
226 bold
227 className="mt-0.5"
228 />
229 </div>
230 <div className="flex gap-2">{actions(ButtonSize.Small)}</div>
231 </div>
232 {onDismiss && (
233 <CloseButton
234 type="button"
235 size={ButtonSize.XSmall}
236 className="absolute right-2 top-2 shrink-0"
237 aria-label="Close banner"
238 onClick={onDismiss}
239 />
240 )}
241 </section>
242);
243
244/**
245 * Below laptop the card is the reading reminder's inline panel: a dark card

Callers

nothing calls this directly

Calls 1

actionsFunction · 0.85

Tested by

no test coverage detected