File tree Expand file tree Collapse file tree 7 files changed +21
-43
lines changed Expand file tree Collapse file tree 7 files changed +21
-43
lines changed Original file line number Diff line number Diff line change @@ -84,3 +84,5 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
84
84
### Added
85
85
86
86
### Fixed
87
+ - replaced next/legacy/image with next/image
88
+ - removed unused function in api/register.js
Original file line number Diff line number Diff line change 1
- import Image from 'next/legacy/ image' ;
1
+ import Image from 'next/image' ;
2
2
import Link from 'next/link' ;
3
3
import styles from '@/styles/Card.module.scss' ;
4
4
@@ -21,13 +21,7 @@ export default function Card({
21
21
>
22
22
{ image && (
23
23
< div className = { styles . card__image } >
24
- < Image
25
- src = { image }
26
- alt = { altTag }
27
- className = { styles . img }
28
- layout = 'fill'
29
- objectFit = 'cover'
30
- />
24
+ < Image src = { image } alt = { altTag } className = { styles . img } fill />
31
25
</ div >
32
26
) }
33
27
Original file line number Diff line number Diff line change 1
- import Image from 'next/legacy/ image' ;
1
+ import Image from 'next/image' ;
2
2
import styles from '@/styles/Member.module.scss' ;
3
3
4
4
export default function Member ( {
@@ -15,7 +15,7 @@ export default function Member({
15
15
< div className = { styles . card } >
16
16
{ image && (
17
17
< div className = { styles . card__image } >
18
- < Image src = { image } alt = { name } className = { styles . img } layout = ' fill' />
18
+ < Image src = { image } alt = { name } className = { styles . img } fill />
19
19
</ div >
20
20
) }
21
21
@@ -28,8 +28,8 @@ export default function Member({
28
28
< Image
29
29
src = '/images/svg/linkedin-portfolio.svg'
30
30
alt = 'LinkedIn'
31
- height = '25px'
32
- width = '25px'
31
+ height = { 25 }
32
+ width = { 25 }
33
33
/>
34
34
< a
35
35
href = { `https://linkedin.com/in/${ linkedIn } ` }
@@ -45,8 +45,8 @@ export default function Member({
45
45
< Image
46
46
src = '/images/svg/globe.svg'
47
47
alt = 'Web Site'
48
- height = '25px'
49
- width = '25px'
48
+ height = { 25 }
49
+ width = { 25 }
50
50
/>
51
51
< a
52
52
href = { `https://${ portfolio } ` }
Original file line number Diff line number Diff line change 1
- import Image from 'next/legacy/ image' ;
1
+ import Image from 'next/image' ;
2
2
import ButtonLink from '@/components/buttons/ButtonLink' ;
3
3
import Container from '@/components/containers/Container' ;
4
4
import styles from '@/styles/TwoColumn.module.scss' ;
@@ -57,12 +57,7 @@ export default function TwoColumn({
57
57
{ secondTextColumn && secondTextColumn }
58
58
{ ! secondTextColumn && image && (
59
59
< div className = { styles . inner__image } >
60
- < Image
61
- src = { image }
62
- alt = { altTag }
63
- className = { styles . img }
64
- layout = 'fill'
65
- />
60
+ < Image src = { image } alt = { altTag } className = { styles . img } fill />
66
61
</ div >
67
62
) }
68
63
</ Container >
Original file line number Diff line number Diff line change 1
1
import { useState , useEffect , useRef } from 'react' ;
2
- import Image from 'next/legacy/image' ;
3
2
import { useRouter } from 'next/router' ;
4
3
import Container from '@/components/containers/Container' ;
5
4
import styles from '@/styles/Nav.module.scss' ;
@@ -55,17 +54,14 @@ export default function Nav() {
55
54
< Container >
56
55
< div ref = { containerRef } >
57
56
< nav className = { styles . nav } >
58
- < div className = { styles . nav__logo } >
59
- < a href = '/' passhref = 'true' >
60
- < Image
61
- src = '/images/svg/logo.svg'
62
- height = { 115 }
63
- width = { 180 }
64
- alt = 'Logo'
65
- title = 'Go to the Homepage'
66
- />
67
- </ a >
68
- </ div >
57
+ < a href = '/' passhref = 'true' >
58
+ < img
59
+ className = { styles . nav__logo }
60
+ src = '/images/svg/logo.svg'
61
+ alt = 'Logo'
62
+ title = 'Go to the Homepage'
63
+ />
64
+ </ a >
69
65
< ul
70
66
className = { `${ styles . nav__links } ${ active ? styles . active : '' } ` }
71
67
>
Original file line number Diff line number Diff line change 1
- const sleep = ( ) =>
2
- new Promise ( resolve => {
3
- setTimeout ( ( ) => {
4
- resolve ( ) ;
5
- } , 350 ) ;
6
- } ) ;
7
-
8
1
export default async function handler ( req , res ) {
9
2
const SECRET_KEY = process . env . RECAPTCHA_SECRET_KEY ;
10
3
@@ -35,9 +28,6 @@ export default async function handler(req, res) {
35
28
const captchaValidation = await response . json ( ) ;
36
29
37
30
if ( captchaValidation . success ) {
38
- // Replace this with the API that will save the data received
39
- // to your backend
40
- await sleep ( ) ;
41
31
// Return 200 if everything is successful
42
32
return res . status ( 200 ) . send ( 'OK' ) ;
43
33
}
Original file line number Diff line number Diff line change 61
61
62
62
.img {
63
63
border-radius : 0.25rem ;
64
+ object-fit : cover ;
64
65
}
65
66
}
66
67
You can’t perform that action at this time.
0 commit comments