feat/SW-843-UI-hotel-card-select-hotel (pull request #887)
Approved-by: Pontus Dreij Approved-by: Niclas Edenvin
This commit is contained in:
15
components/HotelReservation/TripAdvisorChip/index.tsx
Normal file
15
components/HotelReservation/TripAdvisorChip/index.tsx
Normal file
@@ -0,0 +1,15 @@
|
||||
import TripAdvisorIcon from "@/components/Icons/TripAdvisor"
|
||||
import Caption from "@/components/TempDesignSystem/Text/Caption"
|
||||
|
||||
import styles from "./tripAdvisorChip.module.css"
|
||||
|
||||
import type { TripAdvisorProps } from "@/types/components/hotelReservation/tripAdvisorProps"
|
||||
|
||||
export default function TripAdvisorChip({ rating }: TripAdvisorProps) {
|
||||
return (
|
||||
<div className={styles.tripAdvisor}>
|
||||
<TripAdvisorIcon color="burgundy" />
|
||||
<Caption color="burgundy">{rating}</Caption>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
.tripAdvisor {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: var(--Spacing-x-half);
|
||||
background-color: var(--Base-Surface-Primary-light-Normal);
|
||||
position: absolute;
|
||||
left: 16px;
|
||||
top: 16px;
|
||||
padding: var(--Spacing-x-quarter) var(--Spacing-x1);
|
||||
border-radius: var(--Corner-radius-Small);
|
||||
}
|
||||
Reference in New Issue
Block a user