File size: 5,749 Bytes
a611752 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 | class CustomServices extends HTMLElement {
connectedCallback() {
this.attachShadow({ mode: 'open' });
this.shadowRoot.innerHTML = `
<style>
:host {
display: block;
padding: 6rem 0;
background-color: white;
}
.container {
max-width: 1200px;
margin: 0 auto;
padding: 0 2rem;
}
.header {
text-align: center;
margin-bottom: 4rem;
}
.section-title {
font-size: 2.25rem;
font-weight: 700;
color: #1f2937;
margin-bottom: 1rem;
}
.section-subtitle {
color: #6b7280;
max-width: 600px;
margin: 0 auto;
}
.services-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 2rem;
}
.service-card {
background-color: #f9fafb;
border-radius: 0.5rem;
padding: 2rem;
transition: transform 0.3s, box-shadow 0.3s;
}
.service-card:hover {
transform: translateY(-5px);
box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}
.service-icon {
width: 3rem;
height: 3rem;
display: flex;
align-items: center;
justify-content: center;
background-color: var(--primary-light);
color: white;
border-radius: 0.5rem;
margin-bottom: 1.5rem;
}
.service-title {
font-size: 1.25rem;
font-weight: 600;
margin-bottom: 1rem;
color: #1f2937;
}
.service-description {
color: #6b7280;
line-height: 1.6;
}
</style>
<div class="container" id="services">
<div class="header observe-me">
<h2 class="section-title">Our <span class="gradient-text">Services</span></h2>
<p class="section-subtitle">We offer a comprehensive suite of digital services to help your business thrive online.</p>
</div>
<div class="services-grid">
<div class="service-card observe-me delay-100">
<div class="service-icon">
<i data-feather="layout"></i>
</div>
<h3 class="service-title">Web Design</h3>
<p class="service-description">Beautiful, responsive websites tailored to your brand and audience with modern design principles.</p>
</div>
<div class="service-card observe-me delay-200">
<div class="service-icon">
<i data-feather="code"></i>
</div>
<h3 class="service-title">Web Development</h3>
<p class="service-description">Custom web applications built with the latest technologies for performance and scalability.</p>
</div>
<div class="service-card observe-me delay-300">
<div class="service-icon">
<i data-feather="smartphone"></i>
</div>
<h3 class="service-title">Mobile Apps</h3>
<p class="service-description">Cross-platform mobile applications that deliver seamless user experiences on any device.</p>
</div>
<div class="service-card observe-me delay-100">
<div class="service-icon">
<i data-feather="shopping-cart"></i>
</div>
<h3 class="service-title">E-commerce</h3>
<p class="service-description">Complete online store solutions with secure payment processing and inventory management.</p>
</div>
<div class="service-card observe-me delay-200">
<div class="service-icon">
<i data-feather="search"></i>
</div>
<h3 class="service-title">SEO Optimization</h3>
<p class="service-description">Improve your search rankings and drive organic traffic with our proven SEO strategies.</p>
</div>
<div class="service-card observe-me delay-300">
<div class="service-icon">
<i data-feather="bar-chart-2"></i>
</div>
<h3 class="service-title">Digital Marketing</h3>
<p class="service-description">Targeted campaigns across social media and search platforms to grow your audience.</p>
</div>
</div>
</div>
`;
}
}
customElements.define('custom-services', CustomServices); |