Skip to content

Commit ed3c2de

Browse files
refactor: remove guest book
1 parent 6d260ef commit ed3c2de

File tree

10 files changed

+43
-236
lines changed

10 files changed

+43
-236
lines changed

components/LoginBtn.jsx

Lines changed: 0 additions & 18 deletions
This file was deleted.

components/NavBar.jsx

Lines changed: 42 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import Image from "next/image";
1+
import Image from 'next/image';
22
import Link from 'next/link';
33
import { useRouter } from 'next/router';
44
import { useState } from 'react';
@@ -14,93 +14,90 @@ const NavBar = () => {
1414
{ name: 'About', path: '/about' },
1515
{ name: 'Projects', path: '/projects' },
1616
{ name: 'Open Source', path: '/open-source' },
17-
{ name: 'Guestbook', path: '/guestbook' },
1817
];
1918

2019
return (
21-
(<div className='bg-sh-dark-500 bg-opacity-80 fixed w-full top-0 z-20 backdrop-filter backdrop-blur-sm shadow-lg mb-28'>
22-
<div className='max-w-[50rem] mx-auto w-full px-5 py-2.5 md:px-10 lg:px-0'>
20+
<div className='fixed top-0 z-20 w-full shadow-lg bg-sh-dark-500 bg-opacity-80 backdrop-filter backdrop-blur-sm mb-28'>
21+
<div className='max-w-[50rem] mx-auto w-full px-5 py-2.5 md:px-10 lg:px-0'>
2322
<div className='flex items-center w-full'>
24-
<div className='w-3/4 justify-start items-center inline-flex'>
23+
<div className='inline-flex items-center justify-start w-3/4'>
2524
<div className='dropdown'>
2625
<label
2726
onClick={() => setIsMenuOpen(!isMenuOpen)}
2827
className='md:hidden'
2928
>
30-
<HiOutlineMenuAlt1 className='bg-sh-dark p-2 rounded-lg h-9 w-9 mr-5 cursor-pointer' />
29+
<HiOutlineMenuAlt1 className='p-2 mr-5 rounded-lg cursor-pointer bg-sh-dark h-9 w-9' />
3130
</label>
3231
{isMenuOpen && (
3332
<ul className='border border-sh-white-500 bg-sh-dark-500 bg-opacity-[0.97] backdrop-filter shadow-lg shadow-sh-dark-500 rounded-md absolute mt-3 px-2 py-5 w-64 space-y-5'>
3433
{webLinks.map((link, index) => (
3534
<li key={index} onClick={() => setIsMenuOpen(false)}>
3635
<Link
37-
href={link.path}
38-
className={
39-
router.pathname == link.path
40-
? 'menu-item active'
41-
: 'menu-item'
42-
}>
43-
44-
{link.name}
45-
46-
</Link>
36+
href={link.path}
37+
className={
38+
router.pathname == link.path
39+
? 'menu-item active'
40+
: 'menu-item'
41+
}
42+
>
43+
{link.name}
44+
</Link>
4745
</li>
4846
))}
4947
</ul>
5048
)}
5149
</div>
5250
<Link
53-
href='/'
54-
className='rounded-full border-2 border-sh-blue flex mr-7 w-10 h-10 scale-90 hover:scale-100 transition ease-in select-none'>
55-
56-
<Image
57-
className='rounded-full'
58-
src={UserImg}
59-
alt='Shafin Avatar'
60-
draggable='false'
61-
style={{
62-
maxWidth: "100%",
63-
height: "auto",
64-
objectFit: "contain"
65-
}} />
66-
67-
</Link>
51+
href='/'
52+
className='flex w-10 h-10 transition ease-in scale-90 border-2 rounded-full select-none border-sh-blue mr-7 hover:scale-100'
53+
>
54+
<Image
55+
className='rounded-full'
56+
src={UserImg}
57+
alt='Shafin Avatar'
58+
draggable='false'
59+
style={{
60+
maxWidth: '100%',
61+
height: 'auto',
62+
objectFit: 'contain',
63+
}}
64+
/>
65+
</Link>
6866
<div className='hidden md:flex'>
6967
<ul className='inline-flex flex-row gap-3'>
7068
{webLinks.map((link, index) => (
7169
<li key={index}>
7270
<Link
73-
href={link.path}
74-
className={
75-
router.pathname == link.path
76-
? 'menu-item active'
77-
: 'menu-item'
78-
}>
79-
80-
{link.name}
81-
82-
</Link>
71+
href={link.path}
72+
className={
73+
router.pathname == link.path
74+
? 'menu-item active'
75+
: 'menu-item'
76+
}
77+
>
78+
{link.name}
79+
</Link>
8380
</li>
8481
))}
8582
</ul>
8683
</div>
8784
</div>
8885

89-
<div className='w-1/4 justify-end text-xl flex gap-3'>
86+
<div className='flex justify-end w-1/4 gap-3 text-xl'>
9087
<a
9188
target='_blank'
9289
aria-label='github link'
9390
rel='noopener noreferrer'
9491
href='https://github.com/shahriarshafin'
95-
className='cursor-pointer p-3 rounded-xl hover:bg-sh-dark transition ease-in'
92+
className='p-3 transition ease-in cursor-pointer rounded-xl hover:bg-sh-dark'
9693
>
9794
<FaGithub />
9895
</a>
9996
</div>
10097
</div>
10198
</div>
102-
</div>)
103-
);
99+
</div>
100+
);
104101
};
105102

106103
export default NavBar;

components/index.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
import Footer from './Footer';
22
import Hero from './Hero';
33
import Highlights from './Highlights';
4-
import LoginBtn from './LoginBtn';
54
import NavBar from './NavBar';
65
import PageLayout from './PageLayout';
76
import PinnedRepo from './PinnedRepo';
87

9-
export { Footer, Hero, Highlights, LoginBtn, NavBar, PageLayout, PinnedRepo };
8+
export { Footer, Hero, Highlights, NavBar, PageLayout, PinnedRepo };

pages/_app.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,9 @@ function MyApp({ Component, pageProps: { session, ...pageProps } }) {
1111
// }, []);
1212

1313
return (
14-
// <SessionProvider session={session}>
1514
<PageLayout>
1615
<Component {...pageProps} />
1716
</PageLayout>
18-
// </SessionProvider>
1917
);
2018
}
2119

pages/api/auth/[...nextauth].js

Lines changed: 0 additions & 14 deletions
This file was deleted.

pages/api/guests.js

Lines changed: 0 additions & 15 deletions
This file was deleted.

pages/guestbook.jsx

Lines changed: 0 additions & 111 deletions
This file was deleted.

prisma/migrations/20230803084627_init/migration.sql

Lines changed: 0 additions & 10 deletions
This file was deleted.

prisma/migrations/migration_lock.toml

Lines changed: 0 additions & 3 deletions
This file was deleted.

prisma/schema.prisma

Lines changed: 0 additions & 16 deletions
This file was deleted.

0 commit comments

Comments
 (0)