Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified .DS_Store
Binary file not shown.
2 changes: 1 addition & 1 deletion components/kit/components/commerce/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const Commerce: FC = () => {
},
{
title: "Shopping cards",
items: 7,
items: 8,
img: "images/sections/shopping.png",
link: "/components/shopping",
},
Expand Down
96 changes: 96 additions & 0 deletions components/kit/components/commerce/shopping/BookingCard.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
import React, { FC } from "react";

const BookingCard: FC = () => {
return (
<div className="lg:flex max-w-2xl mx-auto overflow-hidden rounded-lg dark:text-gray-50 dark:bg-gray-900 shadow-lg">
<img
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Images must be serve locally, please download this image on the project.
Then the image must be resized, compressed and optimised so that it is as light as possible (here around 30 ko).
You can do it with this tools : https://ezgif.com/resize for example.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can't you wrap that in the next image component if possible usually from version 10 I tend to use that in my projects

className="lg:w-1/3 w-full lg:h-auto h-48 object-cover"
src="/images/landscape/9.jpg"
/>

<div>
<div className="bg-white dark:bg-gray-900 p-4">
<h2 className="font-bold text-gray-900 dark:text-gray-50 text-2xl">
Amsterdam Walking Tour
</h2>

<div className="text-gray-500 dark:text-gray-200 py-2">
Explore popular destinations as well as hidden local favourtes
</div>
</div>
<div className="bg-gray-50 dark:bg-gray-800 w-full p-4 flex h-full justify-between">
<div>
<div className="text-lg py-1 text-gray-500 dark:text-gray-200">
<span className="font-bold text-black dark:text-white pr-1">
$17
</span>{" "}
per person
<sup>*</sup>
</div>
<div className="text-gray-400 dark:text-gray-100 flex items-center">
<div className="flex mr-2">
<svg
xmlns="http://www.w3.org/2000/svg"
width="16"
height="16"
className="fill-current text-green-400"
viewBox="0 0 24 24"
>
<path d="M12 .587l3.668 7.568 8.332 1.151-6.064 5.828 1.48 8.279-7.416-3.967-7.417 3.967 1.481-8.279-6.064-5.828 8.332-1.151z" />
</svg>
<svg
xmlns="http://www.w3.org/2000/svg"
width="16"
height="16"
className="fill-current text-green-400"
viewBox="0 0 24 24"
>
<path d="M12 .587l3.668 7.568 8.332 1.151-6.064 5.828 1.48 8.279-7.416-3.967-7.417 3.967 1.481-8.279-6.064-5.828 8.332-1.151z" />
</svg>
<svg
xmlns="http://www.w3.org/2000/svg"
width="16"
height="16"
className="fill-current text-green-400"
viewBox="0 0 24 24"
>
<path d="M12 .587l3.668 7.568 8.332 1.151-6.064 5.828 1.48 8.279-7.416-3.967-7.417 3.967 1.481-8.279-6.064-5.828 8.332-1.151z" />
</svg>
<svg
xmlns="http://www.w3.org/2000/svg"
width="16"
height="16"
className="fill-current text-green-400"
viewBox="0 0 24 24"
>
<path d="M12 .587l3.668 7.568 8.332 1.151-6.064 5.828 1.48 8.279-7.416-3.967-7.417 3.967 1.481-8.279-6.064-5.828 8.332-1.151z" />
</svg>
<svg
xmlns="http://www.w3.org/2000/svg"
width="16"
height="16"
className="fill-current text-green-400"
viewBox="0 0 24 24"
>
<path d="M12 .587l3.668 7.568 8.332 1.151-6.064 5.828 1.48 8.279-7.416-3.967-7.417 3.967 1.481-8.279-6.064-5.828 8.332-1.151z" />
</svg>
</div>{" "}
28 reviews
</div>
<div className="text-gray-400 dark:text-gray-200 py-6">
Price may very depending on selected date
</div>
</div>

<div>
<button className="bg-blue-700 dark:bg-blue-100 dark:text-gray-900 text-white px-4 py-2 focus:bg-blue-600 focus:border rounded shadow-lg ">
Book now
</button>
</div>
</div>
</div>
</div>
);
};

export default BookingCard;
7 changes: 7 additions & 0 deletions pages/components/shopping/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import ClassicShoppingCard from "../../../components/kit/components/commerce/sho
import SimpleShoppingCard from "../../../components/kit/components/commerce/shopping/SimpleShoppingCard";
import ShippedCard from "../../../components/kit/components/commerce/shopping/ShippedCard";
import ProductWithEval from "../../../components/kit/components/commerce/shopping/ProductWithEval";
import BookingCard from "../../../components/kit/components/commerce/shopping/BookingCard";

const ShoppingPage: FC = () => {
return (
Expand Down Expand Up @@ -56,6 +57,12 @@ const ShoppingPage: FC = () => {
element={<ShippedCard />}
component={ShippedCard}
/>
<ComponentLayout
title="Booking"
showSwitchMode={true}
element={<BookingCard />}
component={BookingCard}
/>
</AppLayout>
);
};
Expand Down
Binary file modified public/.DS_Store
Binary file not shown.
Binary file modified public/images/.DS_Store
Binary file not shown.
Binary file added public/images/landscape/9.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/images/sections/.DS_Store
Binary file not shown.