Skip to content

Commit

Permalink
Merge branch 'develop' into 120-reviews
Browse files Browse the repository at this point in the history
  • Loading branch information
duvan29 authored Sep 12, 2023
2 parents a6c615b + d4ea48e commit 5fbe098
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 35 deletions.
6 changes: 4 additions & 2 deletions src/assets/icons/CardCredit.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,15 @@ export default function CardCredit() {
<svg
xmlns="http://www.w3.org/2000/svg"
fill="none"
width="100%"
height="100%"
viewBox="0 0 24 24"
stroke="currentColor"
stroke="#8C0303"
>
<path
stroke-linecap="round"
stroke-linejoin="round"
d="M2.25 8.25h19.5M2.25 9h19.5m-16.5 5.25h6m-6 2.25h3m-3.75 3h15a2.25 2.25 0 002.25-2.25V6.75A2.25 2.25 0 0019.5 4.5h-15a2.25 2.25 0 00-2.25 2.25v10.5A2.25 2.25 0 004.5 19.5z"
d="M2.25 8.25h19.5M2.25 9h19.5m-16.5 5.25h6m-6 2.25h3m-3.75 3h15a2.25 2.25 0 002.25-2.25V6.75A2.25 2.25 0 0019.5 4.5h-15a2.25 2.25 0 00-2.25 2.25v10.5A2.25 2.25 0 004.5 19.5z"
/>
</svg>
);
Expand Down
2 changes: 1 addition & 1 deletion src/assets/icons/Shield.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export default function Shield() {
xmlns="http://www.w3.org/2000/svg"
fill="none"
viewBox="0 0 24 24"
stroke="currentColor"
stroke="#8C0303"
>
<path
stroke-linecap="round"
Expand Down
2 changes: 1 addition & 1 deletion src/assets/icons/Truck.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export default function Truck() {
xmlns="http://www.w3.org/2000/svg"
fill="none"
viewBox="0 0 24 24"
stroke="currentColor"
stroke="#8C0303"
>
<path
stroke-linecap="round"
Expand Down
16 changes: 9 additions & 7 deletions src/components/paymentMethod/payMethod.tsx
Original file line number Diff line number Diff line change
@@ -1,22 +1,24 @@
import { IconTypes } from '~/types/icons';
import IconText from '../IconText';
import Icon from '~/assets/icons/icon';
interface PaymentMethodProps {
imageSrc: IconTypes;
title: string;
link: string;
description: string;
}

const PaymentMethod: React.FC<PaymentMethodProps> = ({
imageSrc,
title,
link,
description
}) => {
return (
<div className="flex justify-between items-center mr-5 ml-5">
<a className="flex items-center" href={link} data-title="Medios de pago">
<IconText icon={imageSrc} text=""/>
<div>{title}</div>
</a>
<div className="flex flex-col items-center mr-5 ml-5">
<div className="h-[100px] w-[100px]">
<Icon icon={imageSrc}/>
</div>
<h2 className='text-2xl font-bold text-primary-lm'>{title}</h2>
<div className='w-[300px] text-center'>{description}</div>
</div>
);
};
Expand Down
29 changes: 5 additions & 24 deletions src/components/paymentMethod/paymentMethodsList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,42 +4,23 @@ import PaymentMethod from './payMethod';
const PaymentMethodsComponent: React.FC = () => {
return (
<>
<div className="flex justify-center bg-gray-200">
<div className="max-w-6xl p-4 ">
<div className="rounded-lg shadow-md p-4 flex flex-row h-20 justify-center bg-secondary-background ">
<div className="p-4 flex flex-wrap justify-around items-center">
<PaymentMethod
imageSrc='CardCredit'
title="Tarjeta de Credito"
link="/gz/home/payments/methods"
/>
<PaymentMethod
imageSrc='Cash'
title="Efectivo"
link="/gz/home/payments/methods"
title="Todos los medios de pago"
description="trud nisi nostrud nostrud incididunt fugiat. Enim nostrud tempor cillum ea velit."
/>
<PaymentMethod
imageSrc='Truck'
title="Envio a todo el pais"
link="/gz/home/payments/methods"
description="trud nisi nostrud nostrud incididunt fugiat. Enim nostrud tempor cillum ea velit."
/>
<PaymentMethod
imageSrc='Shield'
title="Compra Segura"
link="/gz/home/payments/methods"
/>
<PaymentMethod
imageSrc='warranty'
title="Grarantia"
link="/gz/home/payments/methods"
/>
<PaymentMethod
imageSrc='MapLocation'
title="Bogota D.C"
link="/gz/home/payments/methods"
description="trud nisi nostrud nostrud incididunt fugiat. Enim nostrud tempor cillum ea velit."
/>
</div>
</div>
</div>
</>
);
};
Expand Down

0 comments on commit 5fbe098

Please sign in to comment.