Spaces:
Running
Running
File size: 7,303 Bytes
a8624fc |
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 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 |
class CustomServices extends HTMLElement {
connectedCallback() {
this.attachShadow({ mode: 'open' });
this.shadowRoot.innerHTML = `
<style>
.services-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 2rem;
margin-top: 3rem;
}
.service-card {
background: rgba(30, 41, 59, 0.7);
border-radius: 16px;
padding: 2rem;
border: 1px solid rgba(255, 255, 255, 0.1);
transition: all 0.3s ease;
position: relative;
overflow: hidden;
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
}
.service-card::before {
content: '';
position: absolute;
top: -2px;
left: -2px;
right: -2px;
bottom: -2px;
background: linear-gradient(45deg, #4f46e5, #ec4899);
z-index: -1;
border-radius: 18px;
opacity: 0;
transition: opacity 0.3s ease;
}
.service-card:hover {
transform: translateY(-10px);
box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}
.service-card:hover::before {
opacity: 1;
}
.service-icon {
width: 60px;
height: 60px;
display: flex;
align-items: center;
justify-content: center;
margin-bottom: 1.5rem;
border-radius: 12px;
background: linear-gradient(135deg, rgba(79, 70, 229, 0.2), rgba(236, 72, 153, 0.2));
}
.service-icon i {
color: #ec4899;
width: 28px;
height: 28px;
}
.service-title {
font-size: 1.25rem;
font-weight: 600;
margin-bottom: 1rem;
color: white;
}
.service-desc {
color: rgba(255, 255, 255, 0.8);
margin-bottom: 1.5rem;
line-height: 1.6;
}
.service-link {
display: flex;
align-items: center;
color: #4f46e5;
font-weight: 500;
text-decoration: none;
transition: color 0.3s ease;
}
.service-link:hover {
color: #ec4899;
}
.service-link i {
margin-left: 0.5rem;
width: 16px;
height: 16px;
}
</style>
<div class="services-grid">
<div class="service-card animate-on-scroll">
<div class="service-icon">
<i data-feather="globe"></i>
</div>
<h3 class="service-title">Web Development</h3>
<p class="service-desc">Building high-performance, scalable web applications with modern technologies like React, Next.js, and Node.js.</p>
<a href="#" class="service-link">
Learn more
<i data-feather="arrow-right"></i>
</a>
</div>
<div class="service-card animate-on-scroll">
<div class="service-icon">
<i data-feather="smartphone"></i>
</div>
<h3 class="service-title">Mobile Development</h3>
<p class="service-desc">Creating beautiful, native-feeling mobile apps for iOS and Android using React Native and Flutter.</p>
<a href="#" class="service-link">
Learn more
<i data-feather="arrow-right"></i>
</a>
</div>
<div class="service-card animate-on-scroll">
<div class="service-icon">
<i data-feather="cpu"></i>
</div>
<h3 class="service-title">AI Solutions</h3>
<p class="service-desc">Leveraging machine learning and artificial intelligence to solve complex business problems and automate processes.</p>
<a href="#" class="service-link">
Learn more
<i data-feather="arrow-right"></i>
</a>
</div>
<div class="service-card animate-on-scroll">
<div class="service-icon">
<i data-feather="cloud"></i>
</div>
<h3 class="service-title">Cloud Architecture</h3>
<p class="service-desc">Designing and implementing scalable cloud infrastructure on AWS, Google Cloud, and Azure platforms.</p>
<a href="#" class="service-link">
Learn more
<i data-feather="arrow-right"></i>
</a>
</div>
<div class="service-card animate-on-scroll">
<div class="service-icon">
<i data-feather="lock"></i>
</div>
<h3 class="service-title">Cybersecurity</h3>
<p class="service-desc">Protecting your digital assets with comprehensive security assessments, penetration testing, and robust security solutions.</p>
<a href="#" class="service-link">
Learn more
<i data-feather="arrow-right"></i>
</a>
</div>
<div class="service-card animate-on-scroll">
<div class="service-icon">
<i data-feather="bar-chart-2"></i>
</div>
<h3 class="service-title">Data Analytics</h3>
<p class="service-desc">Transforming raw data into actionable insights with powerful analytics tools and custom dashboard solutions.</p>
<a href="#" class="service-link">
Learn more
<i data-feather="arrow-right"></i>
</a>
</div>
</div>
`;
}
}
customElements.define('custom-services', CustomServices); |