From ad9cddd7df8ea24a1d0b7417079b0eff63605424 Mon Sep 17 00:00:00 2001 From: Eshan Roy Date: Tue, 3 Dec 2024 20:45:30 +0530 Subject: [PATCH] fix some common warnings --- src/components/home/ImageSlider.tsx | 54 ++++++++++++++-------------- src/components/home/PenTestTools.tsx | 2 +- src/pages/About.tsx | 2 +- src/pages/Developers.tsx | 2 +- src/pages/Download.tsx | 2 +- src/pages/Features.tsx | 2 +- 6 files changed, 32 insertions(+), 32 deletions(-) diff --git a/src/components/home/ImageSlider.tsx b/src/components/home/ImageSlider.tsx index baa7c08..f6b1ed3 100644 --- a/src/components/home/ImageSlider.tsx +++ b/src/components/home/ImageSlider.tsx @@ -1,4 +1,4 @@ -import React, { useState, useEffect } from 'react'; +import { useState, useEffect } from 'react'; import { ChevronLeft, ChevronRight } from 'lucide-react'; const slides = [ @@ -10,40 +10,40 @@ const slides = [ }, { type: 'image', - url: "https://images.unsplash.com/photo-1516314175872-b4fe7fe63f55?crop=entropy&cs=tinysrgb&fit=max&ixid=MnwzNjA3fDB8MHxwaG90by1mZWF0Y2h8Mnx8c3lzdGVtcyUyMGF0JTIwd29yayxlbnwwfHx8fDE2NzgzNjI4NzY&ixlib=rb-1.2.1&q=80&w=1080", + url: "https://images.pexels.com/photos/5380792/pexels-photo-5380792.jpeg?auto=compress&cs=tinysrgb&dpr=1&w=500", title: "Firewalls", description: "Secure your network with advanced firewall protection." }, { type: 'image', - url: "https://images.unsplash.com/photo-1584697964178-70f5289cbbd1?crop=entropy&cs=tinysrgb&fit=max&ixid=MnwzNjA3fDB8MHxwaG90by1mZWF0Y2h8OXx8c3lzdGVtcyUyMGFuZCUyMHNlY3VyaXR5fGVufDB8fHx8fDE2NzgzNjM0NjQ&ixlib=rb-1.2.1&q=80&w=1080", + url: "https://images.pexels.com/photos/14066351/pexels-photo-14066351.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=1", title: "Malware Detection", description: "Detect and mitigate malware threats with sophisticated tools." - }, - { - type: 'image', - url: "https://images.unsplash.com/photo-1584697964178-70f5289cbbd1?crop=entropy&cs=tinysrgb&fit=max&ixid=MnwzNjA3fDB8MHxwaG90by1mZWF0Y2h8OXx8c3lzdGVtcyUyMGFuZCUyMHNlY3VyaXR5fGVufDB8fHx8fDE2NzgzNjM0NjQ&ixlib=rb-1.2.1&q=80&w=1080", - title: "Cybersecurity Awareness", - description: "Stay informed about the latest cybersecurity trends and threats." - }, - { - type: 'image', - url: "https://images.unsplash.com/photo-1584697964178-70f5289cbbd1?crop=entropy&cs=tinysrgb&fit=max&ixid=MnwzNjA3fDB8MHxwaG90by1mZWF0Y2h8OXx8c3lzdGVtcyUyMGFuZCUyMHNlY3VyaXR5fGVufDB8fHx8fDE2NzgzNjM0NjQ&ixlib=rb-1.2.1&q=80&w=1080", - title: "Advanced Threat Protection", - description: "Protect your systems with advanced threat protection tools." - }, - { - type: 'image', - url: "https://images.unsplash.com/photo-1590517286893-84f635b02cf0?crop=entropy&cs=tinysrgb&fit=max&ixid=MnwzNjA3fDB8MHxwaG90by1mZWF0Y2h8MXx8cGFzc3dvcmQlMjBmb3IlMjBjdXJlcyxlbnwwfHx8fDE2NzgzNjM5Nzg&ixlib=rb-1.2.1&q=80&w=1080", - title: "Cybersecurity Policy", - description: "Establish robust cybersecurity policies for your organization." - }, - { - type: 'image', - url: "https://images.unsplash.com/photo-1622736606985-5f6881a2ffb6?crop=entropy&cs=tinysrgb&fit=max&ixid=MnwzNjA3fDB8MHxwaG90by1mZWF0Y2h8NXx8aXNtYWdlJTIwd2l0aCUyMHRlY2huaWNhbHxlbnwwfHx8fDE2NzgzNjQyNzg&ixlib=rb-1.2.1&q=80&w=1080", - title: "Cybersecurity Tools", - description: "Utilize the latest cybersecurity tools to keep your systems safe." } + // { + // type: 'image', + // url: "https://images.unsplash.com/photo-1584697964178-70f5289cbbd1?crop=entropy&cs=tinysrgb&fit=max&ixid=MnwzNjA3fDB8MHxwaG90by1mZWF0Y2h8OXx8c3lzdGVtcyUyMGFuZCUyMHNlY3VyaXR5fGVufDB8fHx8fDE2NzgzNjM0NjQ&ixlib=rb-1.2.1&q=80&w=1080", + // title: "Cybersecurity Awareness", + // description: "Stay informed about the latest cybersecurity trends and threats." + // }, + // { + // type: 'image', + // url: "https://images.unsplash.com/photo-1584697964178-70f5289cbbd1?crop=entropy&cs=tinysrgb&fit=max&ixid=MnwzNjA3fDB8MHxwaG90by1mZWF0Y2h8OXx8c3lzdGVtcyUyMGFuZCUyMHNlY3VyaXR5fGVufDB8fHx8fDE2NzgzNjM0NjQ&ixlib=rb-1.2.1&q=80&w=1080", + // title: "Advanced Threat Protection", + // description: "Protect your systems with advanced threat protection tools." + // }, + // { + // type: 'image', + // url: "https://images.unsplash.com/photo-1590517286893-84f635b02cf0?crop=entropy&cs=tinysrgb&fit=max&ixid=MnwzNjA3fDB8MHxwaG90by1mZWF0Y2h8MXx8cGFzc3dvcmQlMjBmb3IlMjBjdXJlcyxlbnwwfHx8fDE2NzgzNjM5Nzg&ixlib=rb-1.2.1&q=80&w=1080", + // title: "Cybersecurity Policy", + // description: "Establish robust cybersecurity policies for your organization." + // }, + // { + // type: 'image', + // url: "https://images.unsplash.com/photo-1622736606985-5f6881a2ffb6?crop=entropy&cs=tinysrgb&fit=max&ixid=MnwzNjA3fDB8MHxwaG90by1mZWF0Y2h8NXx8aXNtYWdlJTIwd2l0aCUyMHRlY2huaWNhbHxlbnwwfHx8fDE2NzgzNjQyNzg&ixlib=rb-1.2.1&q=80&w=1080", + // title: "Cybersecurity Tools", + // description: "Utilize the latest cybersecurity tools to keep your systems safe." + // } ]; export default function ImageSlider() { diff --git a/src/components/home/PenTestTools.tsx b/src/components/home/PenTestTools.tsx index fe0af34..df94602 100644 --- a/src/components/home/PenTestTools.tsx +++ b/src/components/home/PenTestTools.tsx @@ -1,4 +1,4 @@ -import React from 'react'; +// import React from 'react'; import { Wifi, Network, diff --git a/src/pages/About.tsx b/src/pages/About.tsx index 0af57dd..f8d3d94 100644 --- a/src/pages/About.tsx +++ b/src/pages/About.tsx @@ -1,4 +1,4 @@ -import React from 'react'; +// import React from 'react'; import { Shield, Users, Globe, Package, Laptop, Star } from 'lucide-react'; export default function About() { diff --git a/src/pages/Developers.tsx b/src/pages/Developers.tsx index 3c81143..874373e 100644 --- a/src/pages/Developers.tsx +++ b/src/pages/Developers.tsx @@ -1,4 +1,4 @@ -import React, { useEffect, useState } from 'react'; +import { useEffect, useState } from 'react'; import { Code, GitBranch, Users, MessageSquare } from 'lucide-react'; // Define the type for a developer's GitHub data diff --git a/src/pages/Download.tsx b/src/pages/Download.tsx index 32fdf0b..40998fa 100644 --- a/src/pages/Download.tsx +++ b/src/pages/Download.tsx @@ -1,4 +1,4 @@ -import React from 'react'; +// import React from 'react'; import { Download, Laptop, HardDrive, Cloud, Archive, Server, Box } from 'lucide-react'; export default function DownloadPage() { diff --git a/src/pages/Features.tsx b/src/pages/Features.tsx index 3072974..b1e1599 100644 --- a/src/pages/Features.tsx +++ b/src/pages/Features.tsx @@ -1,4 +1,4 @@ -import React from 'react'; +// import React from 'react'; import { Terminal, Lock, Cpu, Cloud, Database, Shield, Wifi, Laptop } from 'lucide-react'; export default function Features() {