Skip to content

Commit 4fd70b6

Browse files
authored
Merge pull request #464 from theunhackable/main
[Fix] (application): Removed AlanAIComponent which causing application to crash
2 parents ff3aa7c + bbb2457 commit 4fd70b6

File tree

6 files changed

+17
-13
lines changed

6 files changed

+17
-13
lines changed

next.config.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
/** @type {import('next').NextConfig} */
22
const nextConfig = {
33
reactStrictMode: true,
4+
images: {
5+
domains:['avatars.githubusercontent.com'],
6+
}
47
};
58

69
module.exports = nextConfig;

src/components/Navbar.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const Navbar = () => {
1515
];
1616
let [open, setOpen] = useState(false);
1717
return (
18-
<div className="w-full z-999 top-0 left-0 sticky bg-black bg-opacity-75 shadow-lg">
18+
<div className="w-full z-999 top-0 left-0 sticky bg-black/75 backdrop-blur-sm shadow-lg">
1919
<div className="md:flex md:items-center md:justify-between py-4 px-7">
2020
<div className="font-bold text-base cursor-pointer flex flex-col md:items-center font-secondary text-white">
2121
<span>
@@ -37,7 +37,7 @@ const Navbar = () => {
3737
>
3838
<Link
3939
href={link.link}
40-
className="text-white font-3 hover:text-transparent bg-clip-text bg-gradient-to-r from-[#AF7AF2] via-[#A5F7A8] to-[#AF7AF2] duration-200 relative transition-all duration-500 before:content-[''] before:absolute before:-bottom-2 before:left-0 before:w-0 before:h-1 before:opacity-0 before:transition-all before:duration-500 before:bg-gradient-to-r hover:before:w-full hover:before:opacity-100"
40+
className="text-white font-3 hover:text-transparent bg-clip-text bg-gradient-to-r from-[#AF7AF2] via-[#A5F7A8] to-[#AF7AF2] relative transition-all duration-200 before:content-[''] before:absolute before:-bottom-2 before:left-0 before:w-0 before:h-1 before:opacity-0 before:transition-all before:duration-500 before:bg-gradient-to-r hover:before:w-full hover:before:opacity-100"
4141
>
4242
{link.name}
4343
</Link>

src/components/testimonial.js

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

45
const testimonials = [
56
{
@@ -51,10 +52,12 @@ const Testimonial = ({ testimonial }) => (
5152
<p className="text-white">{testimonial.text}</p>
5253
<div className="flex items-center mt-4">
5354
<div className="flex-shrink-0">
54-
<img
55+
<Image
5556
className="w-12 h-12 rounded-full"
56-
src={testimonial.image}
57+
src={`/${testimonial.image}`}
5758
alt={testimonial.name}
59+
width={48}
60+
height={48}
5861
/>
5962
</div>
6063
<div className="ml-4">

src/pages/Contributors.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import Footer from "@/components/Footer";
22
import Navbar from "@/components/Navbar";
33
import axios from "axios";
4+
import Image from "next/image";
45
import { useEffect, useState } from "react";
56
import { BsGithub } from "react-icons/bs";
67

@@ -31,13 +32,13 @@ const Contributors = () => {
3132
</h1>
3233
<div className="contributor-container relative z-[1] flex justify-center items-center flex-wrap p-[1em]">
3334
{contributors.map((i) => (
34-
<div className="contributor-card relative w-[300px] h-[400px] shadow-[0_15px_35px_rgba(0,0,0,0.9)] flex justify-center items-center flex-col backdrop-blur-2xl bg-clip-padding shadow-[0px_10px_10px_rgba(46,54,68,0.03)] m-[1em] rounded-[15px] border-[solid] border-transparent bg-gray-900 cursor-auto" key={i.login}>
35+
<div className="contributor-card relative w-[300px] h-[400px] shadow-[0_15px_35px_rgba(0,0,0,0.9)] flex justify-center items-center flex-col backdrop-blur-2xl bg-clip-padding m-[1em] rounded-[15px] bg-gray-900 cursor-auto" key={i.login}>
3536
<div className="contributor-content relative flex justify-center items-center flex-col opacity-50 transition duration-[0.5s]">
36-
<div class="relative w-[150px] h-[150px] overflow-hidden rounded-[50%] border-[10px] border-solid border-[rgba(0,0,0,0.25)]">
37-
<img className="absolute w-full h-full object-cover left-0 top-0" src={i.avatar_url} alt={i.login} />
37+
<div className="relative w-[150px] h-[150px] overflow-hidden rounded-[50%] border-[10px] border-solid border-[rgba(0,0,0,0.25)]">
38+
<Image className="absolute w-full h-full object-cover left-0 top-0" src={i.avatar_url} alt={i.login} width={400} height={400} />
3839
</div>
3940

40-
<div class="contributor-details">
41+
<div className="contributor-details">
4142
<h3 className="text-white uppercase tracking-[2px] font-medium text-lg text-center leading-[1.1em] mt-5 mb-2.5 mx-0">
4243
{i.login}<br />
4344
<span className="text-xs font-light">Commits: {i.contributions}</span>

src/pages/_app.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,8 @@
11
import "@/styles/globals.css";
2-
import AlanAIComponent from "./alan";
32

43
export default function App({ Component, pageProps }) {
54
return (
65
<>
7-
{/* <AlanAIComponent/> */}
8-
<AlanAIComponent />
96
<Component {...pageProps} />
107
</>
118
);

src/pages/events/index.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ const Events = () => {
5151
link: "/events/spaces",
5252
},
5353
];
54-
const [EventsData, SetEventsData] = useState(eventsData);
54+
const [EventsData,] = useState(eventsData);
5555
const FilteredData = EventsData.filter((event) =>
5656
event.name.toLowerCase().includes(searchInput.toLowerCase())
5757
);
@@ -88,7 +88,7 @@ const Events = () => {
8888
data-aos-duration="500"
8989
>
9090
<h1 className="text-5xl mb-7 font-bold text-blue-500">Features</h1>
91-
<p className="team-description text-left ml-3 text-3xl">
91+
<ul className="team-description text-left ml-3 text-3xl">
9292
<li className="mb-5">Networking Opportunities</li>
9393
<li className="mb-5">Learning from Industry Experts</li>
9494
<li className="mb-5">Collaboration and Partnership <span className="ml-10">Opportunities</span> </li>

0 commit comments

Comments
 (0)