File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import React from 'react' ;
22import Image from 'next/image' ;
3- import logo from '../../../public/img/logo.png ' ;
3+ import logo from '../../../public/img/logo.svg ' ;
44
5- type logoType = {
6- logoSize : number ;
7- }
8-
9- export default function Logo ( { logoSize} :logoType ) {
5+ type LogoType = {
6+ size : number ;
7+ } ;
108
11- return (
12- < div className = 'animate-spin' >
13- < Image src = { logo } alt = "logo" width = { logoSize } />
14- </ div >
15- ) ;
9+ export default function Logo ( { size } : LogoType ) {
10+ return (
11+ < Image
12+ src = { logo }
13+ alt = "React developer community Kenya logo"
14+ width = { size }
15+ height = { size }
16+ layout = "fixed"
17+ className = "motion-safe:animate-spin"
18+ />
19+ ) ;
1620}
Original file line number Diff line number Diff line change 1- export { default } from './Logo' ;
1+ export { default } from './Logo' ;
Original file line number Diff line number Diff line change 11import React from 'react' ;
22import Link from 'next/link' ;
3- // import Image from 'next/image';
4- // import logo from '../../../public/reactdevske.svg';
53import Logo from '../Logo/Logo' ;
64
75import {
@@ -15,22 +13,14 @@ import {
1513} from '../../util/routeConstants' ;
1614
1715export default function Navbar ( ) {
18-
1916 return (
2017 < >
2118 < header className = "px-[181px] w-full shadow-md bg-white" >
2219 < nav className = "nav py-4 flex flex-col lg:flex-row justify-between items-center" >
2320 < div >
2421 < Link href = { HOME } >
2522 < a >
26- { /* <Image
27- src={logo}
28- alt="reactdevske logo"
29- width={137}
30- height={60}
31- /> */ }
32-
33- < Logo logoSize = { 60 } />
23+ < Logo size = { 60 } />
3424 </ a >
3525 </ Link >
3626 </ div >
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ module.exports = {
44 theme : {
55 extend : {
66 animation : {
7- ' spin' : 'spin 10s linear infinite' ,
7+ spin : 'spin 10s linear infinite' ,
88 } ,
99 fontFamily : {
1010 montserrat : [ 'Montserrat' , 'sans-serif' ] ,
You can’t perform that action at this time.
0 commit comments