matiniktaff / style.css
Sjokode's picture
Design a modern, responsive page showcasing multiple service cards for a freelance platform. Each card should display: service title, short description, main keywords, price (exact, approximate, or a range) with its unit when available, and the artisan’s profile picture and name. Use a clean grid layout with good hierarchy, elegant typography, and subtle hover effects. The “services included” details are not needed on the card. Keep the color scheme soft, professional, and matching a beige/light neutral background.
67d1fa3 verified
Raw History Blame Contribute Delete
14.2 kB
/* Service Cards Grid Styles */
.services-grid-container {
max-width: 1200px;
margin: 0 auto;
padding: 2rem;
}
.services-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
gap: 2rem;
margin-top: 2rem;
}
.service-card {
background: white;
border-radius: 16px;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
overflow: hidden;
transition: all 0.3s ease;
border: 1px solid #f0f0f0;
}
.service-card:hover {
transform: translateY(-4px);
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}
.service-card-header {
padding: 1.5rem 1.5rem 1rem;
border-bottom: 1px solid #f8f8f8;
}
.service-title {
font-size: 1.25rem;
font-weight: 600;
color: #2d3748;
margin-bottom: 0.5rem;
line-height: 1.4;
}
.service-category {
background: rgba(246, 161, 0, 0.1);
color: #f6a100;
padding: 0.25rem 0.75rem;
border-radius: 20px;
font-size: 0.75rem;
font-weight: 500;
display: inline-block;
margin-bottom: 0.75rem;
}
.service-description {
color: #718096;
font-size: 0.9rem;
line-height: 1.5;
margin-bottom: 1rem;
}
.service-keywords {
display: flex;
flex-wrap: wrap;
gap: 0.5rem;
margin-bottom: 1rem;
}
.keyword-tag {
background: #f7fafc;
color: #4a5568;
padding: 0.25rem 0.75rem;
border-radius: 12px;
font-size: 0.75rem;
border: 1px solid #e2e8f0;
}
.service-card-footer {
padding: 1rem 1.5rem 1.5rem;
background: #fafafa;
border-top: 1px solid #f0f0f0;
}
.service-price {
font-size: 1.5rem;
font-weight: 700;
color: #2d3748;
margin-bottom: 0.5rem;
}
.price-unit {
font-size: 0.9rem;
color: #718096;
font-weight: 400;
}
.artisan-info {
display: flex;
align-items: center;
gap: 0.75rem;
padding-top: 1rem;
border-top: 1px solid #f0f0f0;
}
.artisan-avatar {
width: 40px;
height: 40px;
border-radius: 50%;
object-fit: cover;
border: 2px solid white;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.artisan-name {
font-size: 0.9rem;
font-weight: 500;
color: #2d3748;
}
.artisan-specialty {
font-size: 0.8rem;
color: #718096;
}
/* Premium Artisan Profile Styles */
.artisan-profile {
max-width: 1200px;
margin: 0 auto;
background: white;
border-radius: 16px;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
overflow: hidden;
}
.profile-header {
position: relative;
margin-bottom: 80px;
}
.profile-banner {
height: 280px;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
position: relative;
overflow: hidden;
}
.profile-banner img {
width: 100%;
height: 100%;
object-fit: cover;
}
.profile-avatar {
position: absolute;
bottom: -60px;
left: 40px;
width: 160px;
height: 160px;
border-radius: 50%;
border: 6px solid white;
background: white;
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}
.profile-avatar img {
width: 100%;
height: 100%;
border-radius: 50%;
object-fit: cover;
}
.profile-info {
padding: 0 40px 20px;
}
.profile-title {
display: flex;
align-items: center;
gap: 12px;
margin-bottom: 8px;
}
.profile-name {
font-size: 2.25rem;
font-weight: 700;
color: #1f2937;
margin: 0;
}
.verified-badge {
background: #10b981;
color: white;
padding: 4px 8px;
border-radius: 20px;
font-size: 0.75rem;
font-weight: 600;
display: flex;
align-items: center;
gap: 4px;
}
.online-dot {
width: 8px;
height: 8px;
background: #10b981;
border-radius: 50%;
margin-left: 8px;
}
.profile-specialty {
font-size: 1.25rem;
color: #6b7280;
margin-bottom: 12px;
}
.profile-location {
display: flex;
align-items: center;
gap: 8px;
color: #6b7280;
margin-bottom: 20px;
}
.rating-pill {
background: rgba(255, 255, 255, 0.95);
backdrop-filter: blur(10px);
border: 1px solid #e5e7eb;
padding: 12px 20px;
border-radius: 30px;
display: inline-flex;
align-items: center;
gap: 8px;
font-weight: 600;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
position: sticky;
top: 100px;
z-index: 100;
margin-left: 200px;
}
.stars {
display: flex;
gap: 2px;
}
.stars i {
color: #fbbf24;
width: 16px;
height: 16px;
}
.profile-actions {
display: flex;
gap: 12px;
margin-top: 20px;
}
.btn-follow, .btn-message {
padding: 12px 24px;
border-radius: 8px;
font-weight: 600;
transition: all 0.2s ease;
}
.btn-follow {
background: #f6a100;
color: white;
border: none;
}
.btn-follow:hover {
background: #e09100;
transform: translateY(-1px);
}
.btn-message {
background: white;
color: #374151;
border: 1px solid #d1d5db;
}
.btn-message:hover {
background: #f9fafb;
border-color: #9ca3af;
}
.key-info-row {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 24px;
padding: 0 40px 32px;
border-bottom: 1px solid #f3f4f6;
}
.info-item {
display: flex;
flex-direction: column;
gap: 8px;
}
.info-label {
font-size: 0.875rem;
color: #6b7280;
font-weight: 500;
}
.info-value {
font-size: 1.125rem;
color: #1f2937;
font-weight: 600;
}
.category-pills {
display: flex;
flex-wrap: wrap;
gap: 8px;
margin-top: 16px;
}
.category-pill {
background: rgba(246, 161, 0, 0.1);
color: #f6a100;
padding: 6px 12px;
border-radius: 20px;
font-size: 0.875rem;
font-weight: 500;
}
.specialty-highlight {
background: linear-gradient(135deg, #f6a100, #ffd166);
-webkit-background-clip: text;
background-clip: text;
color: transparent;
font-weight: 700;
font-size: 1.5rem;
}
.profile-tabs {
border-bottom: 1px solid #e5e7eb;
padding: 0 40px;
}
.tabs {
display: flex;
gap: 32px;
margin: 0;
padding: 0;
list-style: none;
}
.tab-item {
padding: 16px 0;
font-weight: 500;
color: #6b7280;
cursor: pointer;
position: relative;
transition: color 0.2s ease;
}
.tab-item.active {
color: #f6a100;
}
.tab-item.active::after {
content: '';
position: absolute;
bottom: -1px;
left: 0;
width: 100%;
height: 2px;
background: #f6a100;
}
.tab-content {
padding: 32px 40px;
}
.tab-pane {
display: none;
}
.tab-pane.active {
display: block;
}
.about-section {
display: grid;
gap: 32px;
}
.description {
line-height: 1.7;
color: #4b5563;
font-size: 1.125rem;
}
.skills-grid {
display: flex;
flex-wrap: wrap;
gap: 12px;
}
.skill-chip {
background: #f8fafc;
border: 1px solid #e2e8f0;
padding: 8px 16px;
border-radius: 20px;
font-size: 0.875rem;
color: #475569;
transition: all 0.2s ease;
}
.skill-chip:hover {
background: #f1f5f9;
transform: translateY(-1px);
}
.certifications-list {
display: flex;
flex-direction: column;
gap: 16px;
}
.certification-item {
display: flex;
align-items: center;
gap: 12px;
padding: 12px;
background: #fafafa;
border-radius: 8px;
}
.certification-item i {
color: #10b981;
width: 20px;
height: 20px;
}
.schedule-table {
width: 100%;
border-collapse: collapse;
background: white;
border-radius: 8px;
overflow: hidden;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
.schedule-table th,
.schedule-table td {
padding: 12px 16px;
text-align: left;
border-bottom: 1px solid #f3f4f6;
}
.schedule-table th {
background: #f9fafb;
font-weight: 600;
color: #374151;
}
.status-open {
color: #10b981;
font-weight: 600;
}
.status-closed {
color: #ef4444;
font-weight: 600;
}
.contact-info {
display: grid;
gap: 16px;
background: #fafafa;
padding: 24px;
border-radius: 12px;
}
.contact-item {
display: flex;
align-items: center;
gap: 12px;
}
.contact-item i {
color: #f6a100;
width: 20px;
height: 20px;
}
.news-feed {
display: grid;
gap: 24px;
}
.news-card {
background: white;
border: 1px solid #e5e7eb;
border-radius: 12px;
padding: 24px;
transition: all 0.3s ease;
}
.news-card:hover {
transform: translateY(-2px);
box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}
.news-date {
color: #6b7280;
font-size: 0.875rem;
margin-bottom: 8px;
}
.news-title {
font-size: 1.25rem;
font-weight: 600;
color: #1f2937;
margin-bottom: 12px;
}
.news-text {
color: #4b5563;
line-height: 1.6;
}
.services-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 24px;
}
.service-card {
background: white;
border: 1px solid #e5e7eb;
border-radius: 12px;
padding: 24px;
transition: all 0.3s ease;
}
.service-card:hover {
transform: translateY(-4px);
box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}
.service-header {
display: flex;
justify-content: between;
align-items: start;
margin-bottom: 16px;
}
.service-title {
font-size: 1.25rem;
font-weight: 600;
color: #1f2937;
margin: 0;
}
.service-price {
font-size: 1.5rem;
font-weight: 700;
color: #f6a100;
}
.service-meta {
display: flex;
gap: 16px;
margin-bottom: 16px;
color: #6b7280;
font-size: 0.875rem;
}
.service-badge {
background: rgba(246, 161, 0, 0.1);
color: #f6a100;
padding: 4px 8px;
border-radius: 20px;
font-size: 0.75rem;
font-weight: 600;
}
.service-description {
color: #4b5563;
line-height: 1.6;
margin-bottom: 20px;
}
.btn-quote {
width: 100%;
background: #f6a100;
color: white;
border: none;
padding: 12px;
border-radius: 8px;
font-weight: 600;
transition: all 0.2s ease;
}
.btn-quote:hover {
background: #e09100;
transform: translateY(-1px);
}
.portfolio-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 16px;
}
.portfolio-item {
position: relative;
border-radius: 12px;
overflow: hidden;
cursor: pointer;
aspect-ratio: 1;
}
.portfolio-item img {
width: 100%;
height: 100%;
object-fit: cover;
transition: transform 0.3s ease;
}
.portfolio-item:hover img {
transform: scale(1.05);
}
.portfolio-overlay {
position: absolute;
inset: 0;
background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
opacity: 0;
transition: opacity 0.3s ease;
}
.portfolio-item:hover .portfolio-overlay {
opacity: 1;
}
.lightbox {
position: fixed;
inset: 0;
background: rgba(0, 0, 0, 0.9);
display: none;
align-items: center;
justify-content: center;
z-index: 1000;
}
.lightbox.active {
display: flex;
}
.lightbox-content {
max-width: 90vw;
max-height: 90vh;
position: relative;
}
.lightbox-content img {
width: 100%;
height: auto;
border-radius: 12px;
}
.lightbox-close {
position: absolute;
top: -40px;
right: 0;
color: white;
background: none;
border: none;
font-size: 2rem;
cursor: pointer;
}
/* Responsive Design */
@media (max-width: 768px) {
.services-grid {
grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
gap: 1.5rem;
}
.service-card {
border-radius: 12px;
}
.service-card-header,
.service-card-footer {
padding: 1.25rem;
}
.profile-header {
margin-bottom: 60px;
}
.profile-banner {
height: 200px;
}
.profile-avatar {
width: 120px;
height: 120px;
left: 20px;
bottom: -40px;
}
.profile-info {
padding: 0 20px 20px;
}
.profile-name {
font-size: 1.75rem;
}
.rating-pill {
margin-left: 140px;
top: 80px;
}
.key-info-row {
padding: 0 20px 24px;
grid-template-columns: 1fr;
}
.profile-tabs {
padding: 0 20px;
}
.tabs {
gap: 16px;
overflow-x: auto;
padding-bottom: 8px;
}
.tab-content {
padding: 24px 20px;
}
.portfolio-grid {
grid-template-columns: repeat(2, 1fr);
}
}
@media (max-width: 480px) {
.services-grid-container {
padding: 1rem;
}
.services-grid {
grid-template-columns: 1fr;
gap: 1rem;
}
.service-card-header,
.service-card-footer {
padding: 1rem;
}
.profile-banner {
height: 160px;
}
.profile-avatar {
width: 100px;
height: 100px;
left: 16px;
bottom: -30px;
}
.profile-name {
font-size: 1.5rem;
}
.rating-pill {
margin-left: 116px;
top: 60px;
padding: 8px 16px;
font-size: 0.875rem;
}
.profile-actions {
flex-direction: column;
}
.btn-follow, .btn-message {
width: 100%;
}
.portfolio-grid {
grid-template-columns: 1fr;
}
}
/* Animations */
@keyframes float {
0%, 100% {
transform: translateY(0px);
}
50% {
transform: translateY(-20px);
}
}
@keyframes float-delayed {
0%, 100% {
transform: translateY(0px);
}
50% {
transform: translateY(-15px);
}
}
.animate-float {
animation: float 6s ease-in-out infinite;
}
.animate-float-delayed {
animation: float-delayed 8s ease-in-out infinite;
}
.hero-text {
opacity: 0;
transform: translateY(20px);
animation: fadeInUp 1s ease-out forwards;
}
@keyframes fadeInUp {
to {
opacity: 1;
transform: translateY(0);
}
}
.category-card:hover {
transform: translateY(-5px);
transition: transform 0.3s ease;
}
.category-card:hover div {
background: linear-gradient(135deg, #0ea5b7 0%, #0f766e 100%) !important;
}
.category-card:hover i {
color: white !important;
}
.category-card:hover p {
color: #0ea5b7;
font-weight: 600;
}