-
Notifications
You must be signed in to change notification settings - Fork 1
/
SideBar.jsx
27 lines (24 loc) · 899 Bytes
/
SideBar.jsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
import React from 'react';
import { useLoggedInContext } from '../../../../context/LoggedInContext';
export const SideBar = () => {
const isLoggedIn = useLoggedInContext();
return (
<div
className={`bg-gray-400/10 dark:bg-black/[.2] lg:sticky ${
isLoggedIn ? `lg:top-[80px]` : `lg:top-[10px]`
} rounded-lg p-6`}
>
<div className="flex flex-col gap-y-24">
<p className="w-full h-80 flex bg-blue-700/20 dark:bg-blue-700/5 opacity-70 justify-center items-center rounded-md">
Popular
</p>
<p className="w-full h-80 flex bg-neutral-700/20 dark:bg-neutral-700/5 opacity-70 justify-center items-center rounded-md">
Your Ad
</p>
<p className="w-full h-80 flex bg-rose-700/20 dark:bg-rose-700/5 opacity-70 justify-center items-center rounded-md">
Tags
</p>
</div>
</div>
);
};