File tree Expand file tree Collapse file tree 5 files changed +72
-23
lines changed
Expand file tree Collapse file tree 5 files changed +72
-23
lines changed Original file line number Diff line number Diff line change 11import React , { useState , useEffect } from 'react' ;
2+ import img from '../../../assets/Team/Developer.jpg' ;
3+ import Image from 'next/image' ;
24
35const Stats = ( { stats } ) => {
46 const [ count , setCount ] = useState ( 0 ) ;
57
68 useEffect ( ( ) => {
79 const interval = setInterval ( ( ) => {
810 setCount ( ( prevCount ) => prevCount + 1 ) ;
9- } , 10 ) ; // Adjust the interval duration as needed
11+ } , 10 ) ;
1012
1113 return ( ) => {
1214 clearInterval ( interval ) ;
1315 } ;
1416 } , [ ] ) ;
1517
1618 return (
17- < section className = "text-gray-600 body-font" >
18- < div className = "container px-5 py-4 mx-auto" >
19- < div className = "flex flex-wrap -m-4 text-center" >
20- { stats &&
21- stats . map ( ( data , index ) => {
22- return (
23- < div key = { index } className = "p-4 sm:w-1/3 w-full" >
24- < h2 className = "title-font font-medium sm:text-4xl text-3xl text-transparent bg-clip-text bg-gradient-to-br from-[#FF008A] to-[#6100FF]" >
25- { count > data . number ? data . number : count } +
26- </ h2 >
27- < p className = "leading-relaxed text-white mt-2" > { data . name } </ p >
28- </ div >
29- ) ;
30- } ) }
31- </ div >
32- </ div >
19+ < section className = 'flex space-x-6 items-center justify-center' >
20+ {
21+ stats &&
22+ stats . map ( ( data , index ) => {
23+ return (
24+ < div
25+ key = { index }
26+ className = "block
27+ w-[24rem]
28+ h-[10rem]
29+ p-6
30+ bg-gradient-to-r from-indigo-800 to-purple-500
31+ border
32+ border-gray-200
33+ rounded-lg
34+ shadow
35+ hover:bg-[#6B3183]
36+ items-center
37+ justify-center
38+ text-center
39+ hover:translate-y-2
40+ transition-transform
41+ mt-4
42+ mb-4
43+ " >
44+ < h2 className = "mb-2 text-5xl font-bold tracking-tight text-white dark:text-white text-center" >
45+ { count > data . number ? data . number : count } +
46+ </ h2 >
47+ < p className = "font-bold text-gray-400 text-2xl mt-5 text-center" > { data . name } </ p >
48+ </ div >
49+ )
50+ } )
51+ }
3352 </ section >
53+
3454 ) ;
3555} ;
3656
Original file line number Diff line number Diff line change @@ -40,7 +40,11 @@ const Navbar = () => {
4040 >
4141 < Link
4242 href = { link . link }
43- className = "text-white font-3 hover:text-transparent bg-clip-text bg-gradient-to-r from-[#AF7AF2] via-[#A5F7A8] to-[#AF7AF2] duration-200"
43+ className = "text-white font-3 hover:text-transparent bg-clip-text bg-gradient-to-r from-[#AF7AF2] via-[#A5F7A8] to-[#AF7AF2] duration-200
44+ relative transition-all duration-500 before:content-[''] before:absolute before:-bottom-2
45+ before:left-0 before:w-0 before:h-1 before:opacity-0 before:transition-all before:duration-500
46+ before:bg-gradient-to-r hover:before:w-full hover:before:opacity-100
47+ "
4448 >
4549 { link . name }
4650 </ Link >
Original file line number Diff line number Diff line change 11import { useEffect , useState } from "react" ;
22import Header from "./header" ;
3- import Image from "next/image" ;
43
54const testimonials = [
65 {
@@ -52,9 +51,7 @@ const Testimonial = ({ testimonial }) => (
5251 < p className = "text-white" > { testimonial . text } </ p >
5352 < div className = "flex items-center mt-4" >
5453 < div className = "flex-shrink-0" >
55- < Image
56- width = { 0 }
57- height = { 0 }
54+ < img
5855 className = "w-12 h-12 rounded-full"
5956 src = { testimonial . image }
6057 alt = { testimonial . name }
Original file line number Diff line number Diff line change 1+ import Link from "next/link" ;
2+
3+ export default function custom404 ( ) {
4+ return (
5+ < div >
6+ < div className = "w-9/12 m-auto py-16 min-h-screen flex items-center justify-center" >
7+ < div className = "shadow overflow-hidden sm:rounded-lg pb-8" >
8+ < div className = "border-t border-gray-200 text-center pt-8" >
9+ < h1 className = "text-9xl font-bold text-white" > 404</ h1 >
10+ < h1 className = "text-6xl font-medium py-8 text-white" > Oops! Page not found</ h1 >
11+ < p className = "text-2xl pb-8 px-12 font-medium text-gray-300" >
12+ Oops! The page you are looking for does not exist. It might have been moved or deleted.
13+ </ p >
14+ < Link href = "/"
15+ className = "bg-gradient-to-r from-purple-400 to-blue-500 hover:from-indigo-500
16+ hover:to-purple-500 text-white font-semibold px-6 py-3 mt-5 rounded-md mr-6" >
17+ Go to HOME
18+ </ Link >
19+ </ div >
20+ </ div >
21+ </ div >
22+ </ div >
23+ )
24+ }
Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ import Footer from "@/components/Footer";
44import Cards from "@/components/HomePage/Events_Cards" ;
55import Navbar from "@/components/Navbar" ;
66import ScrollToTop from "@/components/ScrollToTop" ;
7+ import TestimonialCarousel from "@/components/testimonial" ;
78import { useEffect , useState } from "react" ;
89import HashLoader from "react-spinners/HashLoader" ;
910const Home = ( ) => {
@@ -33,8 +34,11 @@ const Home = () => {
3334 < ScrollToTop />
3435 < AboutCommunity />
3536 < Cards />
37+ < TestimonialCarousel />
3638 < FaqAccordion />
37- < Footer /> </ > ) }
39+ < Footer />
40+ </ >
41+ ) }
3842 </ >
3943 ) ;
4044} ;
You can’t perform that action at this time.
0 commit comments