From a9990e4c1221c2dc125873d836f91c6ed8a850a1 Mon Sep 17 00:00:00 2001 From: Manish Gupta Date: Thu, 12 Sep 2024 15:18:43 +0200 Subject: [PATCH] landing - top spacing fix 75px -> 30px, notification - height 28px -> 36px --- app/(layout)/page.tsx | 2 +- components/Notification.tsx | 102 ++++++++++++++++-------------------- 2 files changed, 45 insertions(+), 59 deletions(-) diff --git a/app/(layout)/page.tsx b/app/(layout)/page.tsx index f09ad1e6..b4dd4025 100644 --- a/app/(layout)/page.tsx +++ b/app/(layout)/page.tsx @@ -26,7 +26,7 @@ export async function generateMetadata(): Promise { export default async function Page() { return ( <> - + { >
= filteredData.length - 1 - ? "pb-[10px]" - : "pb-[10px] border-b border-dashed border-forest-1000 dark:border-forest-500" - } w-auto ${item.url ? "cursor-pointer" : "cursor-normal"} flex`} + className={`flex items-center pl-[12px] pr-[10px] relative pt-[10px] gap-x-[12px] ${i >= filteredData.length - 1 + ? "pb-[10px]" + : "pb-[10px] border-b border-dashed border-forest-1000 dark:border-forest-500" + } w-auto ${item.url ? "cursor-pointer" : "cursor-normal"} flex`} >
@@ -155,9 +153,8 @@ const Notification = () => {
{ {filteredData && ( <>
{ handleShowNotifications(); }} @@ -255,7 +251,7 @@ const Notification = () => { }} >
{ ref={ref} >
@@ -276,11 +271,10 @@ const Notification = () => {
{filteredData.length > 0 && (
0 - ? "relative flex items-center gap-x-[10px] text-[12px] leading-[1.5] w-full overflow-hidden transition-opacity duration-300" - : "hidden" - } ${hideText ? "opacity-0" : "opacity-100"}`} + className={`${!openNotif && filteredData.length > 0 + ? "relative flex items-center gap-x-[10px] text-[12px] leading-[1.5] w-full overflow-hidden transition-opacity duration-300" + : "hidden" + } ${hideText ? "opacity-0" : "opacity-100"}`} style={{ color: currentItemTextColor, }} @@ -290,15 +284,14 @@ const Notification = () => { > {hasUnseenNotifications && (
{ { >
{filteredData[currentIndex] && - filteredData[currentIndex].desc + filteredData[currentIndex].desc ? filteredData[currentIndex].desc : ""}
-
{filteredData[currentIndex] && - filteredData[currentIndex].body + filteredData[currentIndex].body ? filteredData[currentIndex].body : ""} @@ -342,9 +335,8 @@ const Notification = () => {
{ track("clicked Notification Center", { location: "desktop header", @@ -362,9 +354,8 @@ const Notification = () => {
{ handleShowNotifications(true); @@ -407,11 +397,10 @@ const Notification = () => {
{
{item.url ? ( { ) : (
@@ -479,9 +466,8 @@ const Notification = () => { )}
{ setOpenNotif(!openNotif);