fix: some duplications and tags
This commit is contained in:
@@ -3,22 +3,36 @@ import React from 'react'
|
||||
|
||||
function TransactionsIndex() {
|
||||
return (
|
||||
<div>
|
||||
<div className='font-medium'>کدهای تخفیف</div>
|
||||
<section>
|
||||
<h1 className='font-medium'>کدهای تخفیف</h1>
|
||||
|
||||
<div className='mt-3 bg-container rounded-normal grid grid-cols-4 items-center'>
|
||||
|
||||
<div className='col-span-3 py-9.5 pe-7 ps-5'>
|
||||
<div className='font-bold'>کدهای تخفیف شما</div>
|
||||
<p className='text-xs mt-[7px]'>کد تخفیف مورد نظر را کپی کنید و در بخش پرداخت ها استفاده کنید</p>
|
||||
<section
|
||||
aria-label="درباره کدهای تخفیف"
|
||||
className='mt-3 bg-container rounded-normal grid grid-cols-4 items-center'
|
||||
>
|
||||
<div className='col-span-3 py-9.5 pe-7 ps-5 relative'>
|
||||
<div className='w-full h-full absolute top-0 left-0 overflow-clip'>
|
||||
<svg width="301" height="146" viewBox="0 0 301 146" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<g opacity="0.15">
|
||||
<path d="M262.479 152.795C202.8 122.128 120.111 132.267 77.763 175.315C35.4154 218.362 49.3247 278.14 109.004 308.807C168.683 339.474 251.373 329.335 293.721 286.287C336.069 243.24 322.159 183.462 262.479 152.795Z" stroke="#AFAFAF" />
|
||||
<path d="M298.808 115.866C239.129 85.1988 156.44 95.3379 114.092 138.385C71.7445 181.433 85.6538 241.21 145.333 271.877C205.012 302.544 287.702 292.405 330.05 249.358C372.398 206.31 358.488 146.533 298.808 115.866Z" stroke="#AFAFAF" />
|
||||
<path d="M347.543 66.3263C287.863 35.6595 205.174 45.7986 162.826 88.8461C120.479 131.894 134.388 191.671 194.067 222.338C253.747 253.005 336.437 242.866 378.784 199.819C421.132 156.771 407.222 96.9933 347.543 66.3263Z" stroke="#AFAFAF" />
|
||||
<path d="M416.657 -3.92933C356.977 -34.5961 274.288 -24.457 231.941 18.5905C189.593 61.638 203.502 121.415 263.182 152.082C322.861 182.749 405.551 172.61 447.899 129.563C490.246 86.5153 476.336 26.7377 416.657 -3.92933Z" stroke="#AFAFAF" />
|
||||
</g>
|
||||
</svg>
|
||||
</div>
|
||||
<h2 className='font-bold text-base'>کدهای تخفیف شما</h2>
|
||||
<p className='text-xs mt-[7px]'>کد تخفیف مورد نظر را کپی کنید و در بخش پرداختها استفاده کنید</p>
|
||||
</div>
|
||||
|
||||
<div
|
||||
style={{ background: 'linear-gradient(165.51deg, #000000 -8.44%, #C3C7DD 100%)' }}
|
||||
className='col-span-1 h-full text-end py-4 px-5.5 flex flex-col justify-between rounded-e-normal'>
|
||||
<p className='text-sm2 text-white'>
|
||||
<span className='font-medium'>Your</span>
|
||||
<br />
|
||||
className='col-span-1 h-full text-end py-4 px-5.5 flex flex-col justify-between rounded-e-normal'
|
||||
style={{
|
||||
background: 'linear-gradient(165.51deg, #000000 -8.44%, #C3C7DD 100%)',
|
||||
}}
|
||||
>
|
||||
<p className='text-sm2 text-white leading-tight'>
|
||||
<span className='font-medium'>Your</span><br />
|
||||
<span className='font-bold'>Coupon</span>
|
||||
</p>
|
||||
|
||||
@@ -43,47 +57,34 @@ function TransactionsIndex() {
|
||||
<path d="M71.3666 0H68.209V20H71.3666V0Z" fill="white" />
|
||||
</svg>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
</div>
|
||||
|
||||
<div className='mt-6 bg-container rounded-normal flex justify-between items-center'>
|
||||
<div className='col-span-3 py-4 pe-7 ps-5 border-e-2 w-full border-border border-dashed'>
|
||||
<div className='font-bold text-sm2'>مبلغ تخفیف: 50,000 تومان</div>
|
||||
<p className='text-xs mt-[7px]'>قابل استفاده برای همه ی منو ها و محصولات</p>
|
||||
<Button className='font-light! w-fit! px-10 py-1.5 mt-4 text-xs rounded-lg'>کپی کد</Button>
|
||||
</div>
|
||||
<div>
|
||||
<p className='text-sm2 transform -rotate-90 text-[#B2B2B2] font-medium'>
|
||||
F12BB587
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<div className='mt-6 bg-container rounded-normal flex justify-between items-center'>
|
||||
<div className='col-span-3 py-4 pe-7 ps-5 border-e-2 w-full border-border border-dashed'>
|
||||
<div className='font-bold text-sm2'>مبلغ تخفیف: 50,000 تومان</div>
|
||||
<p className='text-xs mt-[7px]'>قابل استفاده برای همه ی منو ها و محصولات</p>
|
||||
<Button className='font-light! w-fit! px-10 py-1.5 mt-4 text-xs rounded-lg'>کپی کد</Button>
|
||||
</div>
|
||||
<div>
|
||||
<p className='text-sm2 transform -rotate-90 text-[#B2B2B2] font-medium'>
|
||||
F12BB587
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<div className='mt-6 bg-container rounded-normal flex justify-between items-center'>
|
||||
<div className='col-span-3 py-4 pe-7 ps-5 border-e-2 w-full border-border border-dashed'>
|
||||
<div className='font-bold text-sm2'>مبلغ تخفیف: 50,000 تومان</div>
|
||||
<p className='text-xs mt-[7px]'>قابل استفاده برای همه ی منو ها و محصولات</p>
|
||||
<Button className='font-light! w-fit! px-10 py-1.5 mt-4 text-xs rounded-lg'>کپی کد</Button>
|
||||
</div>
|
||||
<div>
|
||||
<p className='text-sm2 transform -rotate-90 text-[#B2B2B2] font-medium'>
|
||||
F12BB587
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<section className="mt-6 space-y-6" aria-label="لیست کدهای تخفیف">
|
||||
{[1, 2, 3].map((_, i) => (
|
||||
<article
|
||||
key={i}
|
||||
className='bg-container rounded-normal flex justify-between items-center'
|
||||
>
|
||||
<div className='py-4 pe-7 ps-5 border-e-2 w-full border-border border-dashed'>
|
||||
<h3 className='font-bold text-sm2'>مبلغ تخفیف: 50,000 تومان</h3>
|
||||
<p className='text-xs mt-[7px]'>قابل استفاده برای همهی منوها و محصولات</p>
|
||||
<Button
|
||||
className='w-fit px-10 py-1.5 mt-4 text-xs rounded-lg font-light'
|
||||
aria-label="کپی کد تخفیف"
|
||||
>
|
||||
کپی کد
|
||||
</Button>
|
||||
</div>
|
||||
<div>
|
||||
<p className='text-sm2 transform -rotate-90 text-[#B2B2B2] font-medium' aria-label="کد تخفیف">
|
||||
F12BB587
|
||||
</p>
|
||||
</div>
|
||||
</article>
|
||||
))}
|
||||
</section>
|
||||
</section>
|
||||
)
|
||||
}
|
||||
|
||||
export default TransactionsIndex
|
||||
export default TransactionsIndex
|
||||
|
||||
Reference in New Issue
Block a user