File tree Expand file tree Collapse file tree 8 files changed +20
-7
lines changed Expand file tree Collapse file tree 8 files changed +20
-7
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import { HiMenuAlt4 } from 'react-icons/hi'
3
3
import { AiOutlineClose } from 'react-icons/ai'
4
4
import Link from 'next/link'
5
5
import { useRouter } from 'next/router'
6
-
6
+ import { prefix } from '../../constants'
7
7
const NavBarItem = ( { item, pathname, classprops } ) => (
8
8
< a href = { item . url } >
9
9
< li
@@ -38,7 +38,7 @@ const Navbar = () => {
38
38
href = '/'
39
39
passHref
40
40
>
41
- < img src = '/logo.png' alt = 'WebXDAO' className = 'w-24 h-14 md:w-36 md:h-20' />
41
+ < img src = { prefix + '/logo.png' } alt = 'WebXDAO' className = 'w-24 h-14 md:w-36 md:h-20' />
42
42
</ Link >
43
43
</ div >
44
44
< ul className = 'lg:flex hidden list-none flex-row justify-end items-center ml-auto' >
Original file line number Diff line number Diff line change
1
+ import { prefix } from "../../constants"
2
+
1
3
const DeveloperPath = ( ) => {
2
4
const devPaths = [
3
5
{
@@ -51,7 +53,7 @@ const DeveloperPath = () => {
51
53
< img
52
54
alt = { name }
53
55
className = 'bg-gray-50 p-5 rounded-md'
54
- src = { imgUrl }
56
+ src = { prefix + imgUrl }
55
57
/>
56
58
</ div >
57
59
< div id = 'body' className = 'flex flex-col gap-y-3 pl-5' >
Original file line number Diff line number Diff line change 1
1
import Link from 'next/link'
2
+ import { prefix } from '../../constants'
2
3
3
4
const DevprotocolBrands = ( ) => {
4
5
const projects = [
@@ -42,7 +43,7 @@ const DevprotocolBrands = () => {
42
43
< Link key = { name + index } href = { url } passHref className = 'h-full group' >
43
44
< 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' >
44
45
< div className = 'relative h-24 w-full flex-shrink-0' >
45
- < img src = { imgUrl } alt = { name } className = "object-contain" />
46
+ < img src = { prefix + imgUrl } alt = { name } className = "object-contain" />
46
47
</ div >
47
48
< p className = 'text-gray-800 mt-8 mb-2 text-sm px-8 sm:px-4 h-full' > { text } </ p >
48
49
</ div >
Original file line number Diff line number Diff line change
1
+ import { prefix } from "../../constants"
1
2
2
3
const Testimonials = ( ) => {
3
4
const data = [
@@ -72,7 +73,7 @@ const Testimonials = () => {
72
73
< p className = 'text-gray-600 text-base mb-2' > { text } </ p >
73
74
< div className = 'flex flex-row items-center justify-start py-2' >
74
75
< div className = 'relative h-16 w-16 flex-shrink-0' >
75
- < img src = { imgUrl } alt = { name } className = 'object-contain' />
76
+ < img src = { prefix + imgUrl } alt = { name } className = 'object-contain' />
76
77
</ div >
77
78
78
79
< div className = 'flex flex-col justify-center pl-3' >
Original file line number Diff line number Diff line change
1
+ export const prefix = '/WebXDAO.github.io'
Original file line number Diff line number Diff line change 1
1
module . exports = {
2
+ basePath : '/WebXDAO.github.io' ,
3
+ assetPrefix : '/WebXDAO.github.io' ,
2
4
exportPathMap : function ( ) {
3
5
return {
4
6
'/' : { page : '/' }
Original file line number Diff line number Diff line change 1
1
import Head from 'next/head'
2
+ import { prefix } from '../constants'
2
3
3
4
export default function Partners ( ) {
4
5
const data = [
@@ -54,7 +55,11 @@ export default function Partners() {
54
55
>
55
56
< div className = 'grid grid-cols-3 items-center justify-start overflow-hidden' >
56
57
< div className = 'relative col-span-1' >
57
- < img alt = { name } className = 'bg-gray-50 p-5 rounded-md' src = { imgUrl } />
58
+ < img
59
+ alt = { name }
60
+ className = 'bg-gray-50 p-5 rounded-md'
61
+ src = { prefix + imgUrl }
62
+ />
58
63
</ div >
59
64
< div className = 'flex flex-col col-span-2 gap-y-3 pl-5' >
60
65
< h4 className = 'text-xl font-semibold' > { title } </ h4 >
Original file line number Diff line number Diff line change 1
1
import Head from 'next/head'
2
+ import { prefix } from '../constants'
2
3
3
4
export default function Projects ( ) {
4
5
const data = [
@@ -53,7 +54,7 @@ export default function Projects() {
53
54
< div className = 'relative mb-6' >
54
55
< img
55
56
className = 'lg:h-60 xl:h-56 md:h-64 h-72 w-full object-cover object-center rounded-md'
56
- src = { imgUrl }
57
+ src = { prefix + imgUrl }
57
58
alt = { name }
58
59
/>
59
60
</ div >
You can’t perform that action at this time.
0 commit comments