Skip to content

Commit 9164586

Browse files
authored
Merge branch 'main' into Illaf2
2 parents 1bee92f + 33a6386 commit 9164586

File tree

6 files changed

+132
-23
lines changed

6 files changed

+132
-23
lines changed

.github/workflows/auto-comment.yml

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
name: Auto Comment
2+
on:
3+
issues:
4+
types:
5+
- opened
6+
- closed
7+
- assigned
8+
pull_request:
9+
types:
10+
- opened
11+
- closed
12+
13+
jobs:
14+
run:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: Auto Comment on Issues Opened
18+
uses: wow-actions/auto-comment@v1
19+
with:
20+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
21+
issuesOpened: |
22+
👋 @{{ author }}
23+
24+
Thank you for raising an issue. We will investigate into the matter and get back to you as soon as possible.
25+
26+
Please make sure you have given us as much context as possible.
27+
28+
- name: Auto Comment on Issues Closed
29+
uses: wow-actions/auto-comment@v1
30+
with:
31+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
32+
issuesClosed: |
33+
👋 @{{ author }} This issue is closed.
34+
35+
- name: Auto Comment on Pull Request Merged
36+
uses: wow-actions/auto-comment@v1
37+
with:
38+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
39+
pullRequestMerged: |
40+
👋 @{{ author }} 🎉 Congrats on your merged pull request! Thanks for the valuable contribution! 👏🎉 Congrats on your merged pull request! Thanks for the valuable contribution! 👏
41+
42+
- name: Auto Comment on Pull Request Opened
43+
uses: wow-actions/auto-comment@v1
44+
with:
45+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
46+
pullRequestOpened: |
47+
Hello👋 @{{ author }}, I hope you are doing well!
48+
<br>
49+
Thank you for raising your pull request and contributing to our Community 🎉
50+
51+
Please make sure you have followed our contributing guidelines. We will review it as soon as possible.
52+
53+
- name: Auto Comment on Issues Assigned
54+
uses: wow-actions/auto-comment@v1
55+
with:
56+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
57+
issuesAssigned: |
58+
Hello @{{ author }}, thank you for raising an issue. 🙌 Kindly wait for the maintainers to assign you the issue before starting any work on it. If you encounter any problems, please feel free to connect with us. 👍
59+
60+

src/components/HomePage/stats/index.jsx

Lines changed: 37 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,56 @@
11
import React, { useState, useEffect } from 'react';
2+
import img from '../../../assets/Team/Developer.jpg';
3+
import Image from 'next/image';
24

35
const 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

src/components/Navbar.jsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff 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>

src/components/testimonial.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { useEffect, useState } from "react";
22
import Header from "./header";
3-
import Image from "next/image";
43

54
const 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}

src/pages/404.js

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
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+
}

src/pages/home/index.jsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import Footer from "@/components/Footer";
44
import Cards from "@/components/HomePage/Events_Cards";
55
import Navbar from "@/components/Navbar";
66
import ScrollToTop from "@/components/ScrollToTop";
7+
import TestimonialCarousel from "@/components/testimonial";
78
import { useEffect, useState } from "react";
89
import HashLoader from "react-spinners/HashLoader";
910
const 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
};

0 commit comments

Comments
 (0)