mirror of
https://github.com/ahmadk953/tasko.git
synced 2025-05-02 03:39:38 +00:00
Made it So That You Can Go to the 'Marketing' If You Are Logged In
This commit is contained in:
parent
c3776e8874
commit
fe272499f8
8 changed files with 55 additions and 50 deletions
|
@ -9,9 +9,7 @@ export const Footer = () => {
|
|||
<Logo />
|
||||
<div className='flex w-full items-center justify-between space-x-4 md:block md:w-auto'>
|
||||
<Button size='sm' variant='ghost'>
|
||||
<Link href="/privacy-policy">
|
||||
Privacy Policy
|
||||
</Link>
|
||||
<Link href='/privacy-policy'>Privacy Policy</Link>
|
||||
</Button>
|
||||
<Button size='sm' variant='ghost'>
|
||||
Terms of Service
|
||||
|
|
|
@ -1,19 +1,35 @@
|
|||
import Link from 'next/link';
|
||||
import { auth } from '@clerk/nextjs';
|
||||
|
||||
import { Logo } from '@/components/logo';
|
||||
import { Button } from '@/components/ui/button';
|
||||
import Link from 'next/link';
|
||||
|
||||
export const Navbar = () => {
|
||||
const { userId } = auth();
|
||||
|
||||
let isSignedIn = !!userId;
|
||||
|
||||
return (
|
||||
<div className='fixed top-0 flex h-14 w-full items-center border-b bg-white px-4 shadow-sm'>
|
||||
<div className='mx-auto flex w-full items-center justify-between md:max-w-screen-2xl'>
|
||||
<Logo />
|
||||
<div className='flex w-full items-center justify-between space-x-4 md:block md:w-auto'>
|
||||
<Button size='sm' variant='outline' asChild>
|
||||
<Link href='sign-in'>Login</Link>
|
||||
</Button>
|
||||
<Button size='sm' asChild>
|
||||
<Link href='sign-up'>Get Tasko for Free</Link>
|
||||
</Button>
|
||||
{!isSignedIn ? (
|
||||
<div className='space-x-4'>
|
||||
<Button size='sm' variant='outline' asChild>
|
||||
<Link href='sign-in'>Login</Link>
|
||||
</Button>
|
||||
<Button size='sm' asChild>
|
||||
<Link href='sign-up'>Get Tasko for Free</Link>
|
||||
</Button>
|
||||
</div>
|
||||
) : (
|
||||
<div>
|
||||
<Button size='sm' variant='outline' asChild>
|
||||
<Link href='/select-org'>Dashboard</Link>
|
||||
</Button>
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue