Skip to content

Commit cb327ec

Browse files
committed
Remove next Image elements
1 parent d58d4bd commit cb327ec

26 files changed

+37
-51
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ package-lock.json
1313

1414
# next.js
1515
/.next/
16-
/out/
1716

1817
# production
1918
/build

components/Global/Blogs.jsx

Lines changed: 4 additions & 10 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

43
const Blogs = ({ articles, contentOnly = false, show = articles.length }) => {
@@ -21,11 +20,8 @@ const Blogs = ({ articles, contentOnly = false, show = articles.length }) => {
2120
<div className='flex flex-col justify-between items-stretch col-span-3 md:col-span-1 cursor-pointer p-2 shadow rounded-md focus:outline-none focus:shadow-outline transform transition hover:shadow-lg hover:scale-105 duration-300 ease-in-out'>
2221
<div className='bg-white p-4 rounded-lg'>
2322
<div className='relative bg-contain'>
24-
<Image
23+
<img
2524
alt={article.title}
26-
layout='responsive'
27-
height={150}
28-
width={150}
2925
className='lg:h-60 xl:h-56 md:h-64 sm:h-72 xs:h-72 h-72 rounded-md w-full object-cover object-center mb-6'
3026
src={article.social_image}
3127
/>
@@ -36,13 +32,11 @@ const Blogs = ({ articles, contentOnly = false, show = articles.length }) => {
3632
<p className='leading-relaxed text-sm text-gray-600'>{article.description}</p>
3733
</div>
3834
<time className='p-4 text-gray-500 text-xs flex items-end'>
39-
<Image
40-
layout='fixed'
41-
width={40}
42-
height={40}
35+
<img
36+
4337
src={article?.user?.profile_image}
4438
alt={article.user.name}
45-
className='rounded-full'
39+
className='rounded-full w-16 h-16 mr-1'
4640
/>
4741
<p className='ml-2 opacity-50'>
4842
by {article.user.name} on

components/Global/Navbar.jsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import { useState } from 'react'
22
import { HiMenuAlt4 } from 'react-icons/hi'
33
import { AiOutlineClose } from 'react-icons/ai'
4-
import Image from 'next/image'
54
import Link from 'next/link'
65
import { useRouter } from 'next/router'
76

@@ -39,7 +38,7 @@ const Navbar = () => {
3938
href='/'
4039
passHref
4140
>
42-
<Image layout='fixed' width={150} height={80} src='/logo.png' alt='WebXDAO' />
41+
<img src='/logo.png' alt='WebXDAO' className='w-24 h-14 md:w-36 md:h-20'/>
4342
</Link>
4443
</div>
4544
<ul className='lg:flex hidden list-none flex-row justify-end items-center ml-auto'>
@@ -67,7 +66,7 @@ const Navbar = () => {
6766
className='z-10 fixed -top-0 -right-2 p-3 w-[70vw] h-screen shadow-2xl lg:hidden list-none
6867
flex flex-col justify-start items-end rounded-md blue-glassmorphism'
6968
>
70-
<li className='text-xl w-full my-2 text-blue-600'>
69+
<li className='text-xl w-full my-2 text-blue-600 cursor-pointer '>
7170
<AiOutlineClose onClick={() => setToggleMenu(false)} />
7271
</li>
7372
{navItems.map((item, index) => (

components/Home/DeveloperPath.jsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,8 @@ const DeveloperPath = () => {
5050
>
5151
<div className='flex items-center justify-start overflow-hidden'>
5252
<div className='relative bg-contain w-1/3'>
53-
<Image
53+
<img
5454
alt={name}
55-
layout='responsive'
56-
height={150}
57-
width={150}
5855
className='bg-gray-50 p-5 rounded-md'
5956
src={imgUrl}
6057
/>

components/Home/DevprotocolBrands.jsx

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

43
const DevprotocolBrands = () => {
@@ -43,7 +42,7 @@ const DevprotocolBrands = () => {
4342
<Link key={name + index} href={url} passHref className='h-full group'>
4443
<div className='mx-auto flex flex-col justify-evenly items-center h-full object-center text-center p-8 shadow cursor-pointer rounded-md focus:outline-none focus:shadow-outline transform bg-white transition hover:shadow-lg hover:scale-105 duration-300 ease-in-out'>
4544
<div className='relative h-24 w-full flex-shrink-0'>
46-
<Image src={imgUrl} alt={name} layout='fill' objectFit='contain' />
45+
<img src={imgUrl} alt={name} className="object-contain" />
4746
</div>
4847
<p className='text-gray-800 mt-8 mb-2 text-sm px-8 sm:px-4 h-full'>{text}</p>
4948
</div>

components/Home/Hero.jsx

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
1-
import Image from 'next/image'
21

32
const Hero = () => {
43
return (
54
<div className='text-white bg-[#00007F] pt-24 py-24'>
65
<div className='container px-5 mx-auto flex flex-wrap flex-col md:flex-row items-center'>
7-
<div className='px-5 flex flex-col w-full md:w-2/5 items-start text-center md:text-left'>
6+
<div className='px-5 flex flex-col mx-auto w-full md:w-2/5 items-start text-center md:text-left'>
87
<h1 className='my-4 text-3xl font-bold leading-tight'>
98
A new community for Blockchain developers, designers, and Dapp Owners
109
</h1>
@@ -21,8 +20,8 @@ const Hero = () => {
2120
</div>
2221
</div>
2322

24-
<div className='relative w-full md:w-3/5 h-96 py-6 text-center items-end'>
25-
<Image src='/hero.gif' layout='fill' objectFit='contain' alt='Web3' />
23+
<div className='w-full md:w-2/5 flex mx-auto items-end'>
24+
<img src='/hero.gif' className='object-contain' alt='Web3' />
2625
</div>
2726
</div>
2827
</div>

components/Home/Testimonials.jsx

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

32
const Testimonials = () => {
43
const data = [
@@ -73,7 +72,7 @@ const Testimonials = () => {
7372
<p className='text-gray-600 text-base mb-2'>{text}</p>
7473
<div className='flex flex-row items-center justify-start py-2'>
7574
<div className='relative h-16 w-16 flex-shrink-0'>
76-
<Image src={imgUrl} alt={name} layout='fill' objectFit='contain' />
75+
<img src={imgUrl} alt={name} className='object-contain' />
7776
</div>
7877

7978
<div className='flex flex-col justify-center pl-3'>

out/_next/static/6noCD3vzjTiMBoYbnU8zr/_buildManifest.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
self.__MIDDLEWARE_MANIFEST=[];self.__MIDDLEWARE_MANIFEST_CB&&self.__MIDDLEWARE_MANIFEST_CB()
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
self.__SSG_MANIFEST=new Set(["\u002F","\u002Fblog"]);self.__SSG_MANIFEST_CB&&self.__SSG_MANIFEST_CB()

0 commit comments

Comments
 (0)