Skip to content

Commit 67a8a9b

Browse files
committed
make all mention changes and formating
1 parent d4b4828 commit 67a8a9b

6 files changed

Lines changed: 27 additions & 24 deletions

File tree

public/img/logo.png

-6.57 KB
Binary file not shown.

public/img/logo.svg

Lines changed: 9 additions & 0 deletions
Loading

src/components/Logo/Logo.tsx

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,20 @@
11
import React from 'react';
22
import 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
}

src/components/Logo/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export { default } from './Logo';
1+
export { default } from './Logo';

src/components/Navbar/Navbar.tsx

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
import React from 'react';
22
import Link from 'next/link';
3-
// import Image from 'next/image';
4-
// import logo from '../../../public/reactdevske.svg';
53
import Logo from '../Logo/Logo';
64

75
import {
@@ -15,22 +13,14 @@ import {
1513
} from '../../util/routeConstants';
1614

1715
export 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>

tailwind.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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'],

0 commit comments

Comments
 (0)