style: re-work add post button in navbar. feat: add actions modal to post component

This commit is contained in:
Stevan Freeborn
2023-09-11 17:39:02 -05:00
parent 4a1b806182
commit 3783bc34f0
3 changed files with 85 additions and 24 deletions
+10 -7
View File
@@ -1,6 +1,6 @@
import { SignedIn, SignedOut, currentUser } from '@clerk/nextjs';
import Link from 'next/link';
import { BiSolidMessageSquareAdd } from 'react-icons/bi';
import { BiPlus, BiSolidMessageSquare } from 'react-icons/bi';
import ThemeButton from './ThemeButton';
import UserButton from './UserButton';
@@ -36,12 +36,15 @@ export default async function Navbar() {
<Link href={`/profile/${user?.id}`}>Profile</Link>
</li>
<li>
<Link
href='/posts/add'
className='text-primary-accent'
>
<BiSolidMessageSquareAdd className='w-10 h-10' />
</Link>
<div className='mx-4'>
<Link
href='/posts/add'
className='relative'
>
<BiSolidMessageSquare className='absolute w-10 h-10 top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2 text-primary-accent' />
<BiPlus className='absolute w-5 h-5 top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2 text-white' />
</Link>
</div>
</li>
</SignedIn>
</ul>