remove unnecessary code & enhance gray color over the app

This commit is contained in:
2025-10-13 00:12:51 +03:00
parent 3755128589
commit b7adf8b33f
19 changed files with 345 additions and 619 deletions

View File

@@ -13,12 +13,6 @@
overflow: hidden;
}
@media (max-width: 768px) {
.section {
padding: 60px 16px;
}
}
.homeContainer {
text-align: center;
padding: 0;
@@ -56,6 +50,7 @@
border-radius: 50%;
border: 2px solid rgba(255, 255, 255, 0.6);
transition: all 0.3s ease;
margin-bottom: 10px;
}
.logo:hover {
@@ -78,8 +73,6 @@
width: 100%;
}
/* Removed duplicate rule */
/* Smooth transitions for all interactive elements */
.homeContainer *,
.homeServiceCard * {
@@ -119,17 +112,60 @@
transform: scale(1.1);
}
/* Mobiles Styles (769px - 1024px) */
/* ===========================================
MOBILE MEDIA QUERIES (≤ 768px)
=========================================== */
/* Mobile - Small screens */
@media (max-width: 480px) {
.homeContainer {
height: 100vh;
min-height: 100vh;
width: 100vw;
margin: 0;
padding: 0;
}
}
/* Mobile - General */
@media (max-width: 768px) {
.section {
padding: 60px 16px;
}
}
/* Mobile - Portrait orientation */
@media (max-width: 768px) and (orientation: portrait) {
.homeContainer {
height: 100vh;
min-height: 100vh;
background-attachment: scroll;
}
}
/* Mobile - Landscape orientation */
@media (max-height: 500px) and (orientation: landscape) {
.homeContainer {
height: 100vh;
min-height: 100vh;
background-attachment: scroll;
}
}
/* Mobile - Services grid */
@media (max-width: 769px) {
/* Enhanced grid layout for services on tablet */
.servicesGrid {
display: grid;
gap: 10px;
padding: 0 1rem;
margin: 10px 0;
}
}
/* Tablet Styles (769px - 1024px) */
/* ===========================================
TABLET MEDIA QUERIES (769px - 1024px)
=========================================== */
@media (min-width: 769px) and (max-width: 1024px) {
.languageSwitch,
.themeSwitch,
@@ -164,6 +200,7 @@
display: block;
margin-left: auto;
margin-right: auto;
margin-bottom: 24px;
}
.logo:hover {
@@ -274,23 +311,9 @@
}
}
/* Mobile landscape orientation */
@media (max-height: 500px) and (orientation: landscape) {
.homeContainer {
height: 100vh;
min-height: 100vh;
background-attachment: scroll;
}
}
/* Mobile portrait orientation */
@media (max-width: 768px) and (orientation: portrait) {
.homeContainer {
height: 100vh;
min-height: 100vh;
background-attachment: scroll;
}
}
/* ===========================================
DESKTOP MEDIA QUERIES (≥ 1025px)
=========================================== */
/* Large screens */
@media (min-width: 1200px) {
@@ -299,18 +322,7 @@
}
}
/* Ensure full coverage on all devices */
@media (max-width: 480px) {
.homeContainer {
height: 100vh;
min-height: 100vh;
width: 100vw;
margin: 0;
padding: 0;
}
}
/* Desktop Styles (1025px+) */
/* Desktop */
@media (min-width: 1025px) {
.languageSwitch,
.themeSwitch,
@@ -505,7 +517,7 @@
}
}
/* Large Desktop Styles (1440px+) */
/* Large Desktop */
@media (min-width: 1440px) {
.homeContainer {
padding: 6vh 10vw;
@@ -607,209 +619,7 @@
}
}
/* Enhanced Dark Theme Styles */
:global(.darkApp) .homeContainer {
background-image: url("/background-dark.svg");
background-color: #0a0a0a;
color: #ffffff;
}
/* Dark theme for tablet and desktop */
@media (min-width: 769px) {
:global(.darkApp) .homeServiceCard {
background: linear-gradient(
135deg,
rgba(255, 183, 0, 0.08) 0%,
rgba(255, 183, 0, 0.04) 100%
) !important;
border: 1px solid rgba(255, 255, 255, 0.1);
box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}
:global(.darkApp) .homeServiceCard:hover {
background: linear-gradient(
135deg,
rgba(255, 183, 0, 0.15) 0%,
rgba(255, 183, 0, 0.08) 100%
) !important;
border-color: rgba(255, 183, 0, 0.4);
transform: translateY(-6px);
box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}
:global(.darkApp) .homeServiceCard::before {
background: linear-gradient(
135deg,
rgba(255, 183, 0, 0.08) 0%,
transparent 100%
);
}
:global(.darkApp) .logo {
box-shadow: 0 16px 48px rgba(255, 183, 0, 0.25);
border-color: rgba(255, 255, 255, 0.1);
}
:global(.darkApp) .logo:hover {
box-shadow: 0 20px 60px rgba(255, 183, 0, 0.35);
border-color: rgba(255, 183, 0, 0.4);
}
:global(.darkApp) .logo::before {
background: linear-gradient(
135deg,
rgba(255, 183, 0, 0.2),
rgba(255, 183, 0, 0.05)
);
}
/* Enhanced dark theme typography */
:global(.darkApp) .homeContainer h5 {
color: #ffffff !important;
text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}
:global(.darkApp) .homeContainer p {
color: #e0e0e0 !important;
text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}
}
:global(.darkApp) .homeContainer h1,
:global(.darkApp) .homeContainer h2,
:global(.darkApp) .homeContainer h3,
:global(.darkApp) .homeContainer h4,
:global(.darkApp) .homeContainer h5,
:global(.darkApp) .homeContainer h6 {
color: #ffffff;
}
:global(.darkApp) .homeContainer p,
:global(.darkApp) .homeContainer span {
color: #b0b0b0;
}
:global(.darkApp) .homeServiceCard {
background-color: rgba(255, 183, 0, 0.12) !important;
border-color: #363636 !important;
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
}
:global(.darkApp) .homeServiceCard:hover {
background-color: #363636 !important;
border-color: #424242 !important;
transform: translateY(-2px);
box-shadow: 0 8px 15px -3px rgba(0, 0, 0, 0.5);
}
:global(.darkApp) .socialIcon path {
fill: none !important;
stroke: #fff !important;
transition: all 0.3s ease;
}
:global(.darkApp) .socialIcon:hover path {
stroke: #fff !important;
filter: drop-shadow(0 0 8px #fff);
}
:global(.darkApp) .serviceIcon > path {
fill: none !important;
stroke: #fff !important;
transition: all 0.3s ease;
}
:global(.darkApp) .serviceIcon g path {
fill: none !important;
stroke: #fff !important;
transition: all 0.3s ease;
}
:global(.darkApp) .serviceIcon:hover > path,
:global(.darkApp) .serviceIcon:hover g path {
stroke: #fff !important;
filter: drop-shadow(0 0 6px #fff);
}
/* Additional dark theme enhancements */
:global(.darkApp) .homeContainer::before {
content: "";
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: linear-gradient(
135deg,
rgba(0, 0, 0, 0.3) 0%,
rgba(0, 0, 0, 0.1) 100%
);
pointer-events: none;
z-index: 1;
}
/* :global(.darkApp) .homeContainer > * {
position: relative;
z-index: 2;
} */
/* Glass morphism effect for cards in dark mode */
:global(.darkApp) .homeServiceCard {
backdrop-filter: blur(12px);
border-radius: 50px;
}
/* Enhanced text readability in dark mode */
:global(.darkApp) .item-description {
color: #b0b0b0 !important;
text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}
:global(.darkApp) .ant-typography {
color: #ffffff !important;
}
:global(.darkApp) .ant-typography.ant-typography-secondary {
color: #b0b0b0 !important;
}
:global(.darkApp) .deliveryIcon path,
:global(.darkApp) .deliveryIcon circle {
fill: #fff !important;
stroke: #fff !important;
transition: all 0.3s ease;
}
.serviceIcon {
width: 24px;
height: 24px;
}
.dineInIcon {
margin-top: -1px;
}
.pickupIcon {
margin-top: -2px;
}
.roomIcon {
margin-top: -2px;
}
.officeIcon {
margin-top: -1px;
}
.bookingIcon {
margin-top: -1px;
}
.deliveryIcon {
margin-top: -1px;
}
/* Ultra-wide Desktop Styles (1920px+) */
/* Ultra-wide Desktop */
@media (min-width: 1920px) {
.homeContainer {
padding: 8vh 12vw;
@@ -909,7 +719,11 @@
}
}
/* Enhanced responsive behavior for very tall screens */
/* ===========================================
HEIGHT-BASED MEDIA QUERIES
=========================================== */
/* Very tall screens */
@media (min-height: 1000px) {
.homeContainer {
justify-content: center;
@@ -917,7 +731,7 @@
}
}
/* Enhanced responsive behavior for very short screens */
/* Very short screens */
@media (max-height: 600px) {
.homeContainer {
gap: 20px;
@@ -941,6 +755,10 @@
}
}
/* ===========================================
ORIENTATION-BASED MEDIA QUERIES
=========================================== */
/* Landscape orientation optimizations */
@media (orientation: landscape) and (max-height: 768px) {
.homeContainer {
@@ -980,3 +798,208 @@
padding: 12px 24px;
}
}
/* ===========================================
DARK THEME STYLES
=========================================== */
/* Enhanced Dark Theme Styles */
:global(.darkApp) .homeContainer {
background-image: url("/background-dark.svg");
background-color: #0a0a0a;
color: #ffffff;
}
:global(.darkApp) .homeContainer h1,
:global(.darkApp) .homeContainer h2,
:global(.darkApp) .homeContainer h3,
:global(.darkApp) .homeContainer h4,
:global(.darkApp) .homeContainer h5,
:global(.darkApp) .homeContainer h6 {
color: #ffffff;
}
:global(.darkApp) .homeContainer p,
:global(.darkApp) .homeContainer span {
color: #b0b0b0;
}
:global(.darkApp) .homeServiceCard {
background-color: rgba(255, 183, 0, 0.12) !important;
border-color: #363636 !important;
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
}
:global(.darkApp) .homeServiceCard:hover {
background-color: #363636 !important;
border-color: #424242 !important;
transform: translateY(-2px);
box-shadow: 0 8px 15px -3px rgba(0, 0, 0, 0.5);
}
:global(.darkApp) .socialIcon path {
fill: none !important;
stroke: #fff !important;
transition: all 0.3s ease;
}
:global(.darkApp) .socialIcon:hover path {
stroke: #fff !important;
filter: drop-shadow(0 0 8px #fff);
}
:global(.darkApp) .serviceIcon > path {
fill: none !important;
stroke: #fff !important;
transition: all 0.3s ease;
}
:global(.darkApp) .serviceIcon g path {
fill: none !important;
stroke: #fff !important;
transition: all 0.3s ease;
}
:global(.darkApp) .serviceIcon:hover > path,
:global(.darkApp) .serviceIcon:hover g path {
stroke: #fff !important;
filter: drop-shadow(0 0 6px #fff);
}
/* Additional dark theme enhancements */
:global(.darkApp) .homeContainer::before {
content: "";
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: linear-gradient(
135deg,
rgba(0, 0, 0, 0.3) 0%,
rgba(0, 0, 0, 0.1) 100%
);
pointer-events: none;
z-index: 1;
}
/* Glass morphism effect for cards in dark mode */
:global(.darkApp) .homeServiceCard {
backdrop-filter: blur(12px);
border-radius: 50px;
}
/* Enhanced text readability in dark mode */
:global(.darkApp) .item-description {
color: #b0b0b0 !important;
text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}
:global(.darkApp) .ant-typography {
color: #ffffff !important;
}
:global(.darkApp) .ant-typography.ant-typography-secondary {
color: #b0b0b0 !important;
}
:global(.darkApp) .deliveryIcon path,
:global(.darkApp) .deliveryIcon circle {
fill: #fff !important;
stroke: #fff !important;
transition: all 0.3s ease;
}
/* Dark theme for tablet and desktop */
@media (min-width: 769px) {
:global(.darkApp) .homeServiceCard {
background: linear-gradient(
135deg,
rgba(255, 183, 0, 0.08) 0%,
rgba(255, 183, 0, 0.04) 100%
) !important;
border: 1px solid rgba(255, 255, 255, 0.1);
box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}
:global(.darkApp) .homeServiceCard:hover {
background: linear-gradient(
135deg,
rgba(255, 183, 0, 0.15) 0%,
rgba(255, 183, 0, 0.08) 100%
) !important;
border-color: rgba(255, 183, 0, 0.4);
transform: translateY(-6px);
box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}
:global(.darkApp) .homeServiceCard::before {
background: linear-gradient(
135deg,
rgba(255, 183, 0, 0.08) 0%,
transparent 100%
);
}
:global(.darkApp) .logo {
box-shadow: 0 16px 48px rgba(255, 183, 0, 0.25);
border-color: rgba(255, 255, 255, 0.1);
}
:global(.darkApp) .logo:hover {
box-shadow: 0 20px 60px rgba(255, 183, 0, 0.35);
border-color: rgba(255, 183, 0, 0.4);
}
:global(.darkApp) .logo::before {
background: linear-gradient(
135deg,
rgba(255, 183, 0, 0.2),
rgba(255, 183, 0, 0.05)
);
}
/* Enhanced dark theme typography */
:global(.darkApp) .homeContainer h5 {
color: #ffffff !important;
text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}
:global(.darkApp) .homeContainer p {
color: #e0e0e0 !important;
text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}
}
/* ===========================================
COMPONENT-SPECIFIC STYLES
=========================================== */
.serviceIcon {
width: 24px;
height: 24px;
}
.dineInIcon {
margin-top: -1px;
}
.pickupIcon {
margin-top: -2px;
}
.roomIcon {
margin-top: -2px;
}
.officeIcon {
margin-top: -1px;
}
.bookingIcon {
margin-top: -1px;
}
.deliveryIcon {
margin-top: -1px;
}