mirror of
https://github.com/ahmadk953/tasko.git
synced 2025-05-01 03:09:34 +00:00
Added Blog Page and Housekeeping
This commit is contained in:
parent
db4bf103c3
commit
d32415232e
18 changed files with 6860 additions and 769 deletions
21
app/(main)/_components/footer.tsx
Normal file
21
app/(main)/_components/footer.tsx
Normal file
|
@ -0,0 +1,21 @@
|
|||
import { Logo } from '@/components/logo';
|
||||
import { Button } from '@/components/ui/button';
|
||||
import Link from 'next/link';
|
||||
|
||||
export const Footer = () => {
|
||||
return (
|
||||
<div className='fixed bottom-0 w-full border-t bg-slate-100 p-4'>
|
||||
<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 className='italic' size='sm' variant='ghost'>
|
||||
Privacy Policy - Temporarily Removed
|
||||
</Button>
|
||||
<Button className='italic' size='sm' variant='ghost'>
|
||||
Terms of Service - Coming Soon
|
||||
</Button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
};
|
45
app/(main)/_components/navbar.tsx
Normal file
45
app/(main)/_components/navbar.tsx
Normal file
|
@ -0,0 +1,45 @@
|
|||
import Link from 'next/link';
|
||||
import { auth } from '@clerk/nextjs/server';
|
||||
|
||||
import { Logo } from '@/components/logo';
|
||||
import { Button } from '@/components/ui/button';
|
||||
|
||||
export const Navbar = async () => {
|
||||
const { userId } = await 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='ml-0 flex w-full flex-auto items-center space-x-1 md:ml-6 md:block md:w-auto md:space-x-4'>
|
||||
<Button size='sm' variant='ghost' asChild>
|
||||
<Link href='/blog'>Blog</Link>
|
||||
</Button>
|
||||
<Button size='sm' variant='ghost' asChild>
|
||||
<Link href='https://tasko.mintlify.app/'>Docs</Link>
|
||||
</Button>
|
||||
</div>
|
||||
<div className='flex w-full items-center justify-between space-x-4 md:block md:w-auto'>
|
||||
{!isSignedIn ? (
|
||||
<div className='flex w-full 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>
|
||||
</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