menu: UI enhancements in desktop sizes

- add product dialog
- enhance product page layout for desktop size
This commit is contained in:
2025-10-11 20:34:22 +03:00
parent c4d8c3f883
commit cbc64b6e38
13 changed files with 456 additions and 189 deletions

View File

@@ -1,7 +1,7 @@
.productDetailContainer {
overflow: auto;
scrollbar-width: none;
padding: 0 16px !important;
height: 100%;
}
.productContainer :global(.ant-radio-wrapper:last-child) {
@@ -152,8 +152,135 @@
color: var(--primary2);
}
/* Desktop Layout Styles */
.desktopLayout {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 32px;
max-width: 1200px;
margin: 0 auto;
padding: 24px 0;
}
.desktopLayoutFullWidth {
display: grid;
grid-template-columns: 1fr;
gap: 32px;
padding: 24px 0 0 0;
}
.mobileLayout {
display: block;
width: 100%;
}
.leftColumn {
display: flex;
flex-direction: column;
gap: 24px;
}
.rightColumn {
display: flex;
flex-direction: column;
gap: 24px;
padding: 16px;
background: rgba(0, 0, 0, 0.01);
border-radius: 12px;
border: 1px solid rgba(0, 0, 0, 0.06);
overflow: auto;
scrollbar-width: none;
}
.fullWidth {
width: 100%;
}
.productImageSection {
position: relative;
border-radius: 0px;
overflow: hidden;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
transition:
transform 0.3s ease,
box-shadow 0.3s ease;
}
.productImageSection:hover {
transform: translateY(-2px);
box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}
.productInfoSection {
padding: 0 1rem;
}
.productHeader {
display: flex;
justify-content: space-between;
align-items: flex-start;
gap: 16px;
margin-bottom: 24px;
}
.productDetails {
flex: 1;
}
.quantitySection {
display: flex;
align-items: center;
justify-content: flex-end;
position: relative;
top: 5px
}
/* Dark mode desktop styles */
:global(.darkApp) .productImageSection {
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}
:global(.darkApp) .productImageSection:hover {
box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}
:global(.darkApp) .rightColumn {
background: rgba(255, 255, 255, 0.02);
border: 1px solid rgba(255, 255, 255, 0.08);
}
/* Mobile responsiveness */
@media (max-width: 768px) {
.desktopLayout {
grid-template-columns: 1fr;
gap: 16px;
padding: 16px 0;
}
.desktopLayoutFullWidth {
grid-template-columns: 1fr;
gap: 16px;
padding: 16px 0;
max-width: 100%;
}
.rightColumn {
padding: 0;
background: transparent;
border: none;
gap: 16px;
}
.productHeader {
flex-direction: column;
align-items: stretch;
gap: 16px;
}
.quantitySection {
justify-content: center;
}
.descriptionSection {
padding: 16px 16px 0 16px;
}
@@ -167,3 +294,17 @@
line-height: 1.6;
}
}
.backButtonContainer {
position: absolute;
z-index: 999;
left: 20px;
top: 70px;
background-color: #fff;
border-radius: 50%;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
:global(.darkApp) .itemDescriptionIcons path {
fill: #ffffff !important;
}