|
|
@ -1,15 +1,22 @@ |
|
|
|
import React from "react"; |
|
|
|
import React from "react"; |
|
|
|
|
|
|
|
import QRCode from "react-qr-code"; |
|
|
|
|
|
|
|
|
|
|
|
import qrCode from "./images/qr-code.svg"; |
|
|
|
import qrCode from "./images/qr-code.svg"; |
|
|
|
import flower2 from "./images/flower2.svg"; |
|
|
|
import flower2 from "./images/flower2.svg"; |
|
|
|
|
|
|
|
|
|
|
|
const RoomCardInfo = ({ items }) => { |
|
|
|
const RoomCardInfo = ({ items }) => { |
|
|
|
return ( |
|
|
|
return ( |
|
|
|
<div className="max-w-[555px] flex flex-row items-center justify-between rounded-md border bg-white border-gray-200 p-4 mx-auto mt-10"> |
|
|
|
<div className="relative max-w-[500px] flex flex-row items-center justify-between rounded-md border bg-white border-gray-200 py-4 px-6 mx-auto mt-10"> |
|
|
|
|
|
|
|
<img |
|
|
|
|
|
|
|
src={flower2} |
|
|
|
|
|
|
|
alt="flower" |
|
|
|
|
|
|
|
className="w-1/2 absolute left-1/2 top-1/2 transform -translate-x-1/2 -translate-y-1/2" |
|
|
|
|
|
|
|
/> |
|
|
|
|
|
|
|
|
|
|
|
{items.map((item, index) => ( |
|
|
|
{items.map((item, index) => ( |
|
|
|
<div key={index} className="space-y-1"> |
|
|
|
<div key={index} className="space-y-1"> |
|
|
|
<p |
|
|
|
<p |
|
|
|
className="text-base text-[#0F0543]" |
|
|
|
className="text-lg text-[#0F0543]" |
|
|
|
style={{ fontFamily: "iransansBold" }} |
|
|
|
style={{ fontFamily: "iransansBold" }} |
|
|
|
> |
|
|
|
> |
|
|
|
{item.name} |
|
|
|
{item.name} |
|
|
@ -28,7 +35,7 @@ const RoomCardInfo = ({ items }) => { |
|
|
|
</p> |
|
|
|
</p> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
))} |
|
|
|
))} |
|
|
|
<img src={qrCode} alt="qr-code" /> |
|
|
|
<QRCode size="150" fgColor="#143F6B" bgColor="transparent" value="hey" /> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
); |
|
|
|
); |
|
|
|
}; |
|
|
|
}; |
|
|
|