feat: enhance product detail layout with responsive design adjustments and new utility classes
This commit is contained in:
parent
228095ed83
commit
6a763bbfda
2 changed files with 466 additions and 8 deletions
|
|
@ -256,11 +256,13 @@
|
|||
<!-- Main Product Section -->
|
||||
<section class="relative w-full bg-white py-8">
|
||||
<div class="max-w-7xl mx-auto px-5">
|
||||
<div class="flex gap-8">
|
||||
<div class="flex flex-col md:flex-row gap-8">
|
||||
<!-- Left Section - Product Images -->
|
||||
<div class="flex gap-4">
|
||||
<div class="flex flex-col-reverse md:flex-row gap-4">
|
||||
<!-- Thumbnails -->
|
||||
<div class="flex flex-col gap-4 w-32">
|
||||
<div
|
||||
class="flex flex-row md:flex-col gap-3 md:gap-4 w-full md:w-32 overflow-x-auto md:overflow-visible"
|
||||
>
|
||||
<div
|
||||
class="w-32 h-32 bg-floral-white rounded-lg overflow-hidden cursor-pointer"
|
||||
>
|
||||
|
|
@ -301,7 +303,7 @@
|
|||
|
||||
<!-- Main Product Image -->
|
||||
<div
|
||||
class="w-[500px] h-[500px] bg-floral-white rounded-lg overflow-hidden"
|
||||
class="w-full h-80 md:w-[500px] md:h-[500px] bg-floral-white rounded-lg overflow-hidden"
|
||||
>
|
||||
<img
|
||||
src="assets/images/asgaard_sofa.png"
|
||||
|
|
@ -312,7 +314,7 @@
|
|||
</div>
|
||||
|
||||
<!-- Right Section - Product Details -->
|
||||
<div class="w-[500px]">
|
||||
<div class="w-full md:w-[500px]">
|
||||
<!-- Product Title -->
|
||||
<h1 class="font-playfair font-normal text-4xl text-black mb-8">
|
||||
Asgaard sofa
|
||||
|
|
@ -386,7 +388,7 @@
|
|||
</div>
|
||||
|
||||
<!-- Quantity and Action Buttons -->
|
||||
<div class="flex gap-6 mb-8">
|
||||
<div class="flex flex-col md:flex-row gap-4 md:gap-6 mb-8">
|
||||
<!-- Quantity Selector -->
|
||||
<div
|
||||
class="inline-flex items-center justify-between w-[180px] h-[64px] min-h-[64px] bg-white border border-quick-silver rounded-[15px] px-4 box-border shadow-sm hover:shadow-md transition-all duration-200"
|
||||
|
|
@ -415,13 +417,13 @@
|
|||
<!-- Action Buttons -->
|
||||
<button
|
||||
id="add-to-quote-btn"
|
||||
class="inline-flex items-center justify-center w-[380px] h-[64px] min-h-[64px] bg-white text-black font-playfair font-light text-[20px] leading-none rounded-[15px] border border-quick-silver hover:bg-uc-gold hover:text-white hover:border-uc-gold hover:shadow-lg transform hover:-translate-y-0.5 transition-all duration-200 box-border whitespace-nowrap"
|
||||
class="inline-flex items-center justify-center w-full md:w-[380px] h-[64px] min-h-[64px] bg-white text-black font-playfair font-light text-[20px] leading-none rounded-[15px] border border-quick-silver hover:bg-uc-gold hover:text-white hover:border-uc-gold hover:shadow-lg transform hover:-translate-y-0.5 transition-all duration-200 box-border whitespace-nowrap"
|
||||
>
|
||||
Add To Quote
|
||||
</button>
|
||||
<button
|
||||
id="compare-products-btn"
|
||||
class="inline-flex items-center justify-center w-[440px] h-[64px] min-h-[64px] bg-white text-black font-playfair font-light text-[20px] leading-none rounded-[15px] border border-quick-silver hover:bg-black hover:text-white hover:shadow-lg transform hover:-translate-y-0.5 transition-all duration-200 box-border whitespace-nowrap"
|
||||
class="inline-flex items-center justify-center w-full md:w-[440px] h-[64px] min-h-[64px] bg-white text-black font-playfair font-light text-[20px] leading-none rounded-[15px] border border-quick-silver hover:bg-black hover:text-white hover:shadow-lg transform hover:-translate-y-0.5 transition-all duration-200 box-border whitespace-nowrap"
|
||||
>
|
||||
Compare Products
|
||||
</button>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue