enhance the home page UI

This commit is contained in:
Mohammed Al-yaseen
2025-08-02 15:15:37 +03:00
parent e6a3bd1fd5
commit 7bcbea35e1
7 changed files with 1084 additions and 262 deletions

View File

@@ -6,6 +6,255 @@
background-color: #fafafa;
}
.container {
max-width: 1200px;
margin: 0 auto;
padding: 0 16px;
position: relative;
}
.sectionHeader {
text-align: center;
margin-bottom: 60px;
}
.sectionTitle {
font-size: 2.5rem !important;
font-weight: 700 !important;
margin-bottom: 16px !important;
background: linear-gradient(135deg, #7400b8 0%, #5e60ce 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
position: relative;
}
.sectionTitle::after {
content: "";
position: absolute;
bottom: -8px;
left: 50%;
transform: translateX(-50%);
width: 60px;
height: 4px;
background: linear-gradient(90deg, #7400b8, #6930c3);
border-radius: 2px;
}
.sectionSubtitle {
font-size: 1.1rem !important;
color: #666 !important;
max-width: 600px;
margin: 0 auto !important;
line-height: 1.6 !important;
}
/* Services Section */
.servicesSection {
padding: 100px 0;
background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
position: relative;
overflow: hidden;
}
.servicesSection::before {
content: "";
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="20" height="20" patternUnits="userSpaceOnUse"><path d="M 20 0 L 0 0 0 20" fill="none" stroke="%23e2e8f0" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
opacity: 0.3;
}
.servicesGrid {
position: relative;
z-index: 1;
}
.serviceCard {
height: 100%;
border-radius: 16px !important;
overflow: hidden;
transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
border: none !important;
background: white;
position: relative;
}
.serviceCard::before {
content: "";
position: absolute;
top: 0;
left: 0;
right: 0;
height: 4px;
background: linear-gradient(90deg, #7400b8, #6930c3);
transform: scaleX(0);
transition: transform 0.3s ease;
}
.serviceCard:hover::before {
transform: scaleX(1);
}
.serviceCard:hover {
transform: translateY(-8px);
box-shadow: 0 20px 40px rgba(116, 0, 184, 0.15);
}
.serviceIcon {
width: 60px;
height: 60px;
border-radius: 16px;
background: linear-gradient(135deg, #7400b8 0%, #6930c3 100%);
display: flex;
align-items: center;
justify-content: center;
margin-bottom: 20px;
font-size: 24px;
color: white;
transition: all 0.3s ease;
}
.serviceCard:hover .serviceIcon {
transform: scale(1.1) rotate(5deg);
box-shadow: 0 8px 20px rgba(116, 0, 184, 0.3);
}
.serviceTitle {
font-size: 1.4rem !important;
font-weight: 600 !important;
margin-bottom: 12px !important;
color: #333 !important;
}
.serviceDescription {
color: #666 !important;
line-height: 1.6 !important;
margin-bottom: 20px !important;
}
.serviceFeatures {
list-style: none;
padding: 0;
margin: 0;
}
.serviceFeatures li {
position: relative;
padding: 8px 0 8px 20px;
color: #555;
font-size: 0.95rem;
}
.serviceFeatures li::before {
content: "✓";
position: absolute;
left: 0;
top: 8px;
color: #7400b8;
font-weight: bold;
font-size: 12px;
}
/* Statistics Section */
.statisticsSection {
padding: 100px 0;
background: linear-gradient(135deg, #7400b8 0%, #5e60ce 100%);
position: relative;
overflow: hidden;
color: white;
}
.statisticsSection::before {
content: "";
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
opacity: 0.3;
}
.statisticsSection .sectionTitle {
color: white !important;
-webkit-text-fill-color: white !important;
background: none !important;
}
.statisticsSection .sectionSubtitle {
color: rgba(255, 255, 255, 0.8) !important;
}
.statsGrid {
position: relative;
z-index: 1;
}
.statCard {
text-align: center;
padding: 30px 20px;
border-radius: 16px;
background: rgba(255, 255, 255, 0.1);
backdrop-filter: blur(10px);
border: 1px solid rgba(255, 255, 255, 0.2);
transition: all 0.3s ease;
}
.statCard:hover {
transform: translateY(-5px);
background: rgba(255, 255, 255, 0.15);
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}
.statIcon {
width: 50px;
height: 50px;
border-radius: 12px;
background: rgba(255, 255, 255, 0.2);
display: flex;
align-items: center;
justify-content: center;
margin: 0 auto 16px;
font-size: 20px;
color: white;
transition: all 0.3s ease;
}
.statCard:hover .statIcon {
transform: scale(1.1);
background: rgba(255, 255, 255, 0.3);
}
.statistic {
color: white !important;
}
.statistic :global(.ant-statistic-title) {
color: rgba(255, 255, 255, 0.8) !important;
font-size: 0.9rem !important;
margin-bottom: 8px !important;
}
.statistic :global(.ant-statistic-content) {
color: white !important;
}
.statistic :global(.ant-statistic-content-value) {
color: white !important;
font-size: 2.5rem !important;
font-weight: 700 !important;
}
.statistic :global(.ant-statistic-content-suffix) {
color: rgba(255, 255, 255, 0.8) !important;
font-size: 1.5rem !important;
}
.loaderContainer {
height: 100vh;
width: 100vw;
@@ -229,11 +478,34 @@
overflow: hidden;
}
/* Enhanced Responsive Design */
@media (max-width: 768px) {
.section {
padding: 60px 16px;
}
.servicesSection,
.statisticsSection {
padding: 60px 0;
}
.sectionTitle {
font-size: 2rem !important;
}
.serviceCard {
margin-bottom: 20px;
}
.statCard {
padding: 20px 15px;
margin-bottom: 20px;
}
.statistic :global(.ant-statistic-content-value) {
font-size: 2rem !important;
}
.loaderContent {
gap: 30px;
}
@@ -271,6 +543,43 @@
}
@media (max-width: 480px) {
.servicesSection,
.statisticsSection {
padding: 40px 0;
}
.sectionTitle {
font-size: 1.8rem !important;
}
.sectionSubtitle {
font-size: 1rem !important;
}
.serviceIcon {
width: 50px;
height: 50px;
font-size: 20px;
}
.serviceTitle {
font-size: 1.2rem !important;
}
.statCard {
padding: 15px 10px;
}
.statIcon {
width: 40px;
height: 40px;
font-size: 16px;
}
.statistic :global(.ant-statistic-content-value) {
font-size: 1.5rem !important;
}
.loaderContent {
gap: 25px;
}