Polish customer app UI and streamline CRM overlays.
Replace standalone customer create and meeting report pages with overlays, add TimeInput, remove opaque input backgrounds app-wide, improve desktop layouts/skeletons, and refresh shopping, customer, and reminder screens.
This commit is contained in:
+91
-30
@@ -468,10 +468,6 @@ async function toggleFavorite(productId: string) {
|
||||
padding-bottom: 8px;
|
||||
}
|
||||
|
||||
.home-scroll > .section:last-child {
|
||||
margin-top: auto;
|
||||
}
|
||||
|
||||
.hero-banner {
|
||||
--hero-image: #8a7a65;
|
||||
position: relative;
|
||||
@@ -515,6 +511,11 @@ async function toggleFavorite(productId: string) {
|
||||
.hero-banner__content {
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
width: auto;
|
||||
max-width: 100%;
|
||||
min-width: 0;
|
||||
box-sizing: border-box;
|
||||
text-align: start;
|
||||
animation: hero-copy 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
|
||||
}
|
||||
|
||||
@@ -592,6 +593,7 @@ async function toggleFavorite(productId: string) {
|
||||
line-height: 1.7;
|
||||
max-width: 16rem;
|
||||
font-weight: 700;
|
||||
overflow-wrap: break-word;
|
||||
}
|
||||
|
||||
.hero-banner__title span {
|
||||
@@ -644,7 +646,7 @@ async function toggleFavorite(productId: string) {
|
||||
|
||||
.quick-card {
|
||||
border: none;
|
||||
background: transparent;
|
||||
background: var(--color-surface);
|
||||
border-radius: var(--radius-md);
|
||||
padding: 12px 6px;
|
||||
display: flex;
|
||||
@@ -652,7 +654,7 @@ async function toggleFavorite(productId: string) {
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
cursor: pointer;
|
||||
box-shadow: none;
|
||||
box-shadow: 0 2px 10px rgba(16, 24, 40, 0.06);
|
||||
}
|
||||
|
||||
.quick-card__icon {
|
||||
@@ -661,8 +663,9 @@ async function toggleFavorite(productId: string) {
|
||||
border-radius: 12px;
|
||||
display: grid;
|
||||
place-items: center;
|
||||
background: var(--color-surface);
|
||||
box-shadow: 0 2px 12px rgba(16, 24, 40, 0.06);
|
||||
background: transparent;
|
||||
box-shadow: none;
|
||||
border: none;
|
||||
}
|
||||
|
||||
.quick-card__image {
|
||||
@@ -683,8 +686,8 @@ async function toggleFavorite(productId: string) {
|
||||
background: var(--color-surface);
|
||||
border-radius: 18px;
|
||||
padding: 16px;
|
||||
box-shadow: 0 2px 12px rgba(16, 24, 40, 0.06);
|
||||
border: 1px solid rgba(230, 232, 230, 0.9);
|
||||
box-shadow: none;
|
||||
border: 1px solid var(--color-border);
|
||||
}
|
||||
|
||||
.level-card__top {
|
||||
@@ -819,7 +822,8 @@ async function toggleFavorite(productId: string) {
|
||||
text-align: start;
|
||||
cursor: pointer;
|
||||
overflow: hidden;
|
||||
box-shadow: 0 2px 10px rgba(16, 24, 40, 0.05);
|
||||
box-shadow: none;
|
||||
border: 1px solid var(--color-border);
|
||||
scroll-snap-align: start;
|
||||
}
|
||||
|
||||
@@ -912,7 +916,11 @@ async function toggleFavorite(productId: string) {
|
||||
|
||||
@media (min-width: 768px) {
|
||||
.home-page {
|
||||
padding-top: 8px;
|
||||
max-width: var(--content-max-width);
|
||||
margin-inline: auto;
|
||||
width: 100%;
|
||||
padding: 8px var(--page-padding) 0;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.home-desk-head {
|
||||
@@ -938,38 +946,87 @@ async function toggleFavorite(productId: string) {
|
||||
}
|
||||
|
||||
.home-scroll {
|
||||
gap: 22px;
|
||||
padding: 8px 0 24px;
|
||||
display: grid;
|
||||
grid-template-columns: repeat(3, minmax(0, 1fr));
|
||||
grid-template-areas:
|
||||
'hero hero level'
|
||||
'quick quick quick'
|
||||
'products products products';
|
||||
gap: 18px 20px;
|
||||
padding: 8px 0 28px;
|
||||
align-items: stretch;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.hero-banner {
|
||||
min-height: 220px;
|
||||
grid-area: hero;
|
||||
width: 100%;
|
||||
max-width: none;
|
||||
min-width: 0;
|
||||
min-height: 0;
|
||||
height: auto;
|
||||
aspect-ratio: 2.1 / 1;
|
||||
align-self: start;
|
||||
border-radius: 20px;
|
||||
}
|
||||
|
||||
.hero-slide {
|
||||
padding: 28px 32px;
|
||||
}
|
||||
|
||||
.hero-banner__title {
|
||||
font-size: 1.35rem;
|
||||
max-width: 22rem;
|
||||
.level-card {
|
||||
grid-area: level;
|
||||
padding: 20px 22px;
|
||||
align-self: stretch;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.quick-grid {
|
||||
grid-area: quick;
|
||||
display: grid;
|
||||
grid-template-columns: repeat(4, minmax(0, 1fr));
|
||||
gap: 14px;
|
||||
}
|
||||
|
||||
.home-scroll > .section {
|
||||
grid-area: products;
|
||||
}
|
||||
|
||||
.hero-slide {
|
||||
width: 100%;
|
||||
box-sizing: border-box;
|
||||
align-items: flex-end;
|
||||
justify-content: flex-start;
|
||||
padding-inline-start: 36px;
|
||||
padding-inline-end: 28px;
|
||||
padding-block: 24px;
|
||||
}
|
||||
|
||||
.hero-slide__media {
|
||||
background-size: cover;
|
||||
background-position: left center;
|
||||
background-color: #8a7a65;
|
||||
}
|
||||
|
||||
.hero-banner__content {
|
||||
max-width: min(52%, 22rem);
|
||||
}
|
||||
|
||||
.hero-banner__title {
|
||||
font-size: 1.15rem;
|
||||
max-width: none;
|
||||
}
|
||||
|
||||
.hero-next-enter-from,
|
||||
.hero-next-leave-to,
|
||||
.hero-prev-enter-from,
|
||||
.hero-prev-leave-to {
|
||||
transform: none;
|
||||
}
|
||||
|
||||
.quick-card {
|
||||
min-height: 96px;
|
||||
padding: 18px 14px;
|
||||
border-radius: 16px;
|
||||
}
|
||||
|
||||
.level-card {
|
||||
padding: 20px 22px;
|
||||
box-shadow: 0 3px 12px rgba(16, 24, 40, 0.07);
|
||||
}
|
||||
|
||||
.product-row {
|
||||
@@ -993,12 +1050,16 @@ async function toggleFavorite(productId: string) {
|
||||
}
|
||||
|
||||
@media (min-width: 1200px) {
|
||||
.hero-banner {
|
||||
aspect-ratio: 2.2 / 1;
|
||||
}
|
||||
|
||||
.hero-banner__title {
|
||||
font-size: 1.25rem;
|
||||
}
|
||||
|
||||
.product-row {
|
||||
grid-template-columns: repeat(4, minmax(0, 1fr));
|
||||
}
|
||||
|
||||
.hero-banner {
|
||||
min-height: 240px;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user