Skip to content

Commit 3bcb71b

Browse files
Run the command 'c'
1 parent 69c374f commit 3bcb71b

8 files changed

Lines changed: 32 additions & 35 deletions

File tree

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,3 @@ node_modules
22
.devcontainer
33
.next
44
devcontainer
5-
.github

src/components/About.tsx

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from "react";
2-
import Image from "next/image";
32
import Link from "next/link";
4-
import AboutImg from "public/assets/ProfilePicture.jpeg";
3+
4+
const AboutImg = "/assets/ProfilePicture.jpeg";
55

66
const About = () => {
77
return (
@@ -26,12 +26,10 @@ Check out some of my latest projects.
2626
</div>
2727
<div className="w-full h-auto m-auto shadow-xl shadow-gray-400 rounded-xl flex items-center justify-center p-4 hover:scale-105 ease-in duration-300 overflow-hidden">
2828
<div data-aos="fade-up" data-aos-duration="1000" className="w-full">
29-
<Image
29+
<img
3030
src={AboutImg}
3131
className="rounded-xl w-full h-auto object-cover"
3232
alt="Zain Ali"
33-
height={600}
34-
width={500}
3533
loading="lazy"
3634
/>
3735
</div>

src/components/Contact.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
import Image from "next/image";
21
import Link from "next/link";
32
import React, { FormEvent, useState } from "react";
43
import { AiOutlineArrowRight } from "react-icons/ai";
54
import { BsFillPersonLinesFill } from "react-icons/bs";
65
import { FaGithub, FaLinkedinIn } from "react-icons/fa";
76
import { HiOutlineChevronDoubleUp } from "react-icons/hi";
8-
import ContactImg from "public/assets/contact.jpg";
7+
8+
const ContactImg = "/assets/contact.jpg";
99
import { RotateLoader } from "react-spinners";
1010
import emailjs from "@emailjs/browser";
1111
import { emConfig } from "src/utils/constants";
@@ -103,10 +103,10 @@ const Contact = () => {
103103
>
104104
<div className="lg:p-4 h-full ">
105105
<div>
106-
<Image
106+
<img
107107
className="rounded-xl hover:scale-105 ease-in duration-300"
108108
src={ContactImg}
109-
alt="/"
109+
alt="Contact"
110110
loading="lazy"
111111
/>
112112
</div>

src/components/Navbar.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
import Image from "next/image";
21
import Link from "next/link";
32
import React, { useState, useEffect } from "react";
43
import { AiOutlineClose, AiOutlineMail, AiOutlineMenu } from "react-icons/ai";
54
import { FaGithub, FaLinkedinIn } from "react-icons/fa";
65
import { BsFillPersonLinesFill } from "react-icons/bs";
7-
import NavLogo from "public/assets/navLogo.png";
6+
7+
const NavLogo = "/assets/navLogo.png";
88

99
const Navbar = () => {
1010
const [nav, setNav] = useState(false);
@@ -39,9 +39,9 @@ const Navbar = () => {
3939
<div className="flex justify-between items-center h-full px-2 2xl:px-16 ">
4040
<Link href="/">
4141
<a>
42-
<Image
42+
<img
4343
src={NavLogo}
44-
alt="/"
44+
alt="Logo"
4545
width="125"
4646
height="50"
4747
className="cursor-pointer"
@@ -99,7 +99,7 @@ const Navbar = () => {
9999
<div className="flex w-full items-center justify-between">
100100
<Link href="/">
101101
<a>
102-
<Image src={NavLogo} width="87" height="35" alt="/" loading="lazy" />
102+
<img src={NavLogo} width="87" height="35" alt="Logo" loading="lazy" />
103103
</a>
104104
</Link>
105105
<div

src/components/ProjectItem.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import Image from "next/image";
21
import Link from "next/link";
32
import React from "react";
43

@@ -15,7 +14,7 @@ const ProjectItem = ({ title, backgroundImg, tech, projectUrl }: ItemProps) => {
1514
<div className="relative flex items-center justify-center h-auto w-full md:scale-90 shadow-xl shadow-gray-400 rounded-xl group
1615
bg-transparent transition-all duration-500 ease-in-out
1716
hover:bg-gradient-to-r from-primary to-lightPrimary">
18-
<Image className="rounded-xl group-hover:opacity-10" src={backgroundImg} alt="/" loading="lazy" />
17+
<img className="rounded-xl group-hover:opacity-10" src={backgroundImg} alt={title} loading="lazy" />
1918
<div className="hidden group-hover:block absolute top-[50%] left-[50%] translate-x-[-50%] translate-y-[-50%]">
2019
<h3 className="text-2xl text-white tracking-wider text-center">{title}</h3>
2120
<p className="pb-4 pt-2 text-white text-center">{tech}</p>

src/components/Skills.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import Image from "next/image";
21
import React from "react";
32
import { skills } from "../utils/constants";
43

@@ -18,7 +17,7 @@ const Skills = () => {
1817
>
1918
<div className="grid grid-cols-2 gap-4 justify-center items-center">
2019
<div className="m-auto">
21-
<Image src={skill.image} width="64px" height="64px" alt="/" />
20+
<img src={skill.image} width="64" height="64" alt={skill.name} />
2221
</div>
2322
<div className="flex flex-col items-center justify-center">
2423
<h3 className="text-lg">{skill.name}</h3>

src/pages/resume.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import React from "react";
22
import Head from "next/head";
33
import Link from "next/link";
4-
import Image from "next/image";
54
import { FaGithub, FaLinkedinIn, FaDownload } from "react-icons/fa";
6-
import ResumeShot from "public/assets/Zain_Ali_Resume.jpg";
5+
6+
const ResumeShot = "/assets/Zain_Ali_Resume.jpg";
77

88
const ResumePdf = () => {
99
const resumePdfLink = "/assets/ZainResume.pdf";
@@ -17,7 +17,7 @@ const ResumePdf = () => {
1717
</div>
1818
</a>
1919
</div>
20-
<Image src={ResumeShot} className="rounded-xl w-full h-auto object-contain" alt="Zain Ali Resume" loading="lazy" />
20+
<img src={ResumeShot} className="rounded-xl w-full h-auto object-contain" alt="Zain Ali Resume" loading="lazy" />
2121
</div>
2222
</>
2323
);

src/utils/constants.ts

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,18 @@
1-
import PHP from "public/assets/skills/javascript.png";
2-
import Javascript from "public/assets/skills/javascript.png";
3-
import Node from "public/assets/skills/node.png";
4-
import Jquery from "public/assets/skills/javascript.png";
5-
import ReactImg from "public/assets/skills/react.png";
6-
import Tailwind from "public/assets/skills/tailwind.png";
7-
import Git from "public/assets/skills/git.png";
8-
import Docker from "public/assets/skills/docker.png";
9-
import MongoDB from "public/assets/skills/mongo.png";
10-
//
11-
import EcommerceStore from "public/assets/projects/ecommerce-store/ecommerce.jpg";
12-
import EVC from "public/assets/projects/evc/evc.jpg";
13-
import BuildMyMVP from "public/assets/projects/build-my-mvp/mvp.jpg";
1+
// Skills images
2+
const PHP = "/assets/skills/javascript.png";
3+
const Javascript = "/assets/skills/javascript.png";
4+
const Node = "/assets/skills/node.png";
5+
const Jquery = "/assets/skills/javascript.png";
6+
const ReactImg = "/assets/skills/react.png";
7+
const Tailwind = "/assets/skills/tailwind.png";
8+
const Git = "/assets/skills/git.png";
9+
const Docker = "/assets/skills/docker.png";
10+
const MongoDB = "/assets/skills/mongo.png";
11+
12+
// Project images
13+
const EcommerceStore = "/assets/projects/ecommerce-store/ecommerce.jpg";
14+
const EVC = "/assets/projects/evc/evc.jpg";
15+
const BuildMyMVP = "/assets/projects/build-my-mvp/mvp.jpg";
1416

1517
export const skills = [
1618
{

0 commit comments

Comments
 (0)