diff --git a/components/UI/Hero.jsx b/components/UI/Hero.jsx index f1f35703..b26858e7 100644 --- a/components/UI/Hero.jsx +++ b/components/UI/Hero.jsx @@ -1,120 +1,101 @@ -import React, { Suspense } from "react"; +import React from "react"; import Link from "next/link"; import SectionSubtitle from "./SectionSubtitle"; -import { Container, Row, Col, Button } from "reactstrap"; +import { Container, Row, Col } from "reactstrap"; import { BsDiscord } from "react-icons/bs"; import Image from "next/image"; -import heroImg from "../../public/images/PiyushGarg.png"; -import classes from "../../styles/hero.module.css"; +import heroImg from "/images/PiyushGarg.png"; // Use path from public folder import classNames from "../../styles/subtitle.module.css"; const Hero = () => { return ( -
- {/* desktop / large screen view */} - - +
+ {/* Desktop / large screen */} + + + {/* Left Content */} -
+
-

I'm Piyush Garg

-
Fullstack Developer & Instructor
-

- Hi there! My name is Piyush Garg and I’m a software - engineer with over 5 years of experience in the industry. I love - all things tech and coding, and on my channel, I share my - knowledge and experience with others. +

I'm Piyush Garg

+
Fullstack Developer & Instructor
+

+ Hi there! My name is Piyush Garg and I’m a software engineer + with over 5 years of experience in the industry. I love all + things tech and coding, and on my channel, I share my knowledge + and experience with others.

-
-
-
-
+ +
- + + Join Discord Server
- -
- Piyush Garg + + {/* Right Image */} + +
+ Piyush Garg
- {/* mobile / small screen view */} + {/* Mobile / small screen */} + +
+
+ Piyush Garg +
- - - -
-
- -
- Piyush Garg -
- -

- - Hello !{" "} - - I'm Piyush Garg -

-
Fullstack Developer & Instructor
-

- Hi there! My name is Piyush Garg and I’m a software - engineer with over 5 years of experience in the industry. I - love all things tech and coding, and on my channel, I share my - knowledge and experience with others. -

-
-
-
-
-
- - - Join Discord Server - - -
-
- -
+

+ Hello! + I'm Piyush Garg +

+
Fullstack Developer & Instructor
+

+ Hi there! My name is Piyush Garg and I’m a software engineer + with over 5 years of experience in the industry. I love all things + tech and coding, and on my channel, I share my knowledge and + experience with others. +

+ +
+ + + + Join Discord Server + + +
+
); diff --git a/components/UI/Services.jsx b/components/UI/Services.jsx index 87050f80..0f9b0b2b 100644 --- a/components/UI/Services.jsx +++ b/components/UI/Services.jsx @@ -11,79 +11,83 @@ const Services = ({ youtubeStats, youtubeVideos }) => { dots: false, autoplay: true, speed: 500, - autoplaySpeed: 2000, + autoplaySpeed: 2500, infinite: true, swipeToSlide: true, slidesToShow: 1, slidesToScroll: 1, arrows: true, }; + + const formatSubscribers = (count) => { + if (!count) return "0 Subscribers"; + const num = Number(count); + if (num >= 1_000_000) return `${(num / 1_000_000).toFixed(1)}M Subscribers`; + if (num >= 1_000) return `${(num / 1_000).toFixed(1)}K Subscribers`; + return `${num} Subscribers`; + }; + return ( -
+
- - - + + {/* YouTube Slider */} + + {youtubeVideos ?.filter((video) => video.id.videoId) ?.map((video) => (
window.open( `https://youtube.com/watch?v=${video.id.videoId}`, - "_blank" + "_blank", + "noreferrer" ) } - style={{ padding: "10px" }} - key={video.id.videoId} + className="p-2" > - {video.snippet.title} -

{video.snippet.title}

-

+

+ {video.snippet.title} +
+

{video.snippet.title}

+

{new Date(video.snippet.publishTime).toDateString()}

))}
- + + {/* YouTube Stats */} + - - -

Popular

-

Uploads from My Youtube Channel

+ {/* Text Section */} + + +

Popular Uploads from My YouTube Channel

I would really appreciate it if you could check it out and maybe even hit the subscribe button if you enjoy the content.

-

Thanks in advance!

+

Thanks in advance!