diff --git a/components/UI/Hero.jsx b/components/UI/Hero.jsx index f1f35703..5acb3d96 100644 --- a/components/UI/Hero.jsx +++ b/components/UI/Hero.jsx @@ -1,7 +1,7 @@ -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"; @@ -10,46 +10,40 @@ import classNames from "../../styles/subtitle.module.css"; const Hero = () => { return ( -
- {/* desktop / large screen view */} - +
+ {/* Desktop / Large screen view */} + -
+

I'm Piyush Garg

Fullstack Developer & Instructor

- Hi there! My name is Piyush Garg and I’m a software + 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.

+ + {/* Discord Button - Desktop */}
+
Piyush Garg @@ -58,58 +52,41 @@ const Hero = () => { - {/* mobile / small screen view */} - + {/* Mobile / Small screen view */} -
+
- Piyush Garg + Piyush Garg

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

Fullstack Developer & Instructor

- Hi there! My name is Piyush Garg and I’m a software + 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.

+ + {/* Discord Button - Mobile */}
-
+
- - Join Discord Server - + Join Discord Server
diff --git a/styles/globals.css b/styles/globals.css index 2426545f..b2c457f8 100644 --- a/styles/globals.css +++ b/styles/globals.css @@ -156,19 +156,6 @@ footer { display: block; border: 5px solid #2980b9; } -.ribbon span { - position: absolute; - display: block; - width: 225px; - padding: 15px 0; - background-color: #3498db; - box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1); - color: #fff; - font: 700 18px/1 "Lato", sans-serif; - text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2); - text-transform: uppercase; - text-align: center; -} /* top left*/ .ribbon-top-left { @@ -266,6 +253,23 @@ footer { transform: rotate(-225deg); } +.discord-btn { + background-color: #5865F2; + color: white; + font-weight: 600; + padding: 12px 24px; + border-radius: 8px; + transition: all 0.3s ease; + box-shadow: 0 4px 14px rgba(88, 101, 242, 0.4); +} + +.discord-btn:hover { + background-color: #4752c4; + transform: scale(1.05); + box-shadow: 0 6px 20px rgba(88, 101, 242, 0.6); +} + + @media only screen and (max-width: 992px) { p { font-size: 0.9rem !important;