Feat/BOOK-61 refactor hotel page css variables * feat(BOOK-61): Breadcrumbs * feat(BOOK-61): intro section * feat(BOOK-61): show more button * feat(BOOK-61): rooms section * feat(BOOK-61): sidepeeks * feat(BOOK-61): deprecated old Link component * feat(BOOK-61): added new TextLink component to the design-system * feat(BOOK-61): replaced deprecated links with new TextLink component * feat(BOOK-61): miscellaneous changes Approved-by: Bianca Widstam Approved-by: Christel Westerberg
36 lines
974 B
TypeScript
36 lines
974 B
TypeScript
import { Button } from "@scandic-hotels/design-system/Button"
|
|
import Link from "@scandic-hotels/design-system/OldDSLink"
|
|
import { Typography } from "@scandic-hotels/design-system/Typography"
|
|
|
|
import styles from "./promo.module.css"
|
|
|
|
type PromoProps = {
|
|
buttonText: string
|
|
href: string
|
|
text: string
|
|
title: string
|
|
image?: {
|
|
src: string
|
|
altText: string
|
|
altText_En: string
|
|
}
|
|
}
|
|
|
|
export function Promo({ buttonText, href, text, title }: PromoProps) {
|
|
return (
|
|
<Link className={styles.link} color="none" href={href}>
|
|
<article className={styles.promo}>
|
|
<Typography variant={"Title/smLowCase"}>
|
|
<h4>{title}</h4>
|
|
</Typography>
|
|
<Typography variant={"Body/Paragraph/mdRegular"}>
|
|
<p className={styles.text}>{text}</p>
|
|
</Typography>
|
|
<Button size="Small" variant={"Secondary"} color={"Inverted"} wrapping>
|
|
<div>{buttonText}</div>
|
|
</Button>
|
|
</article>
|
|
</Link>
|
|
)
|
|
}
|