diff --git a/src/app/home/components/ServiceCard.jsx b/src/app/home/components/ServiceCard.jsx
index f48dd69..288ae3f 100644
--- a/src/app/home/components/ServiceCard.jsx
+++ b/src/app/home/components/ServiceCard.jsx
@@ -40,6 +40,7 @@ const ServiceCardContent = ({ service }) => {
theme.palette.text.secondary}
>
{ service.description }
diff --git a/src/app/home/components/Services.jsx b/src/app/home/components/Services.jsx
index 5d09f84..69b27ca 100644
--- a/src/app/home/components/Services.jsx
+++ b/src/app/home/components/Services.jsx
@@ -4,6 +4,8 @@ import { useEffect, useRef } from "react"
import { faBrain, faGamepad, faGlobe, faLaptopCode, faShield } from "@fortawesome/free-solid-svg-icons"
import { faAndroid, faFigma } from "@fortawesome/free-brands-svg-icons"
import Grid from "@mui/material/Unstable_Grid2"
+import { useResponsive } from "../../../hooks/useResponsive"
+import styles from './service.module.css'
const services = [
{
@@ -45,6 +47,7 @@ const services = [
const Services = () => {
const servicesContainerRef = useRef()
+ const {isTablet} = useResponsive();
useEffect(() => {
servicesContainerRef.current.addEventListener('mousemove', e => {
@@ -68,35 +71,99 @@ const Services = () => {
>
What we do.
-
+
+
+
+ {
+ services.filter((item,idx)=> idx <= (services.length/2)).map((filteredItem)=>(
+
+
+
+ ))
}
- }
- }}
- >
- { services.map(s => (
-
+
+ {
+ services.filter((item,idx)=> idx <= (services.length/2)).map((filteredItem)=>(
+
+
+
+ ))
+ }
+
+
+
+
+
+
+
+ {
+ services.filter((item,idx)=> idx >= (services.length/2)).map((filteredItem)=>(
+
+
+
+ ))
+ }
+
+
+ {
+ services.filter((item,idx)=> idx >= (services.length/2)).map((filteredItem)=>(
+
+
+
+ ))
+ }
+
+
+
+
+ ):(
+
-
+ { services.map(s => (
+
+
+
+ )) }
- )) }
-
+ )
+ }
)
}
diff --git a/src/app/home/components/service.module.css b/src/app/home/components/service.module.css
new file mode 100644
index 0000000..1f90351
--- /dev/null
+++ b/src/app/home/components/service.module.css
@@ -0,0 +1,39 @@
+.leftSlider{
+ animation: 10s slide infinite linear;
+ display: inline-block;
+}
+
+.rightSlider{
+ animation: 10s slideR infinite linear;
+ display: inline-block;
+}
+
+@keyframes slide {
+ from {
+ transform: translateX(-102.5%);
+ }
+ to{
+ transform: translateX(0);
+ }
+}
+
+
+@keyframes slideR {
+ from {
+ transform: translateX(0);
+ }
+ to{
+ transform: translateX(-102.5%);
+ }
+}
+
+.slide-container{
+ padding: 60px 0 0;
+ overflow: hidden!important;
+
+ white-space: nowrap;
+}
+
+.cards{
+
+}
\ No newline at end of file