-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ad60dc8
commit 1b2002f
Showing
26 changed files
with
1,001 additions
and
190 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
// import { createServerComponentClient } from '@supabase/auth-helpers-nextjs' | ||
// import { cookies } from 'next/headers' | ||
|
||
import { fetchUser } from "../actions"; | ||
import Layout from "@/components/new-index/layoutForApp"; | ||
// import Layout from "../../layout"; | ||
// import { redirect } from 'next/navigation' | ||
// import AccountPageWrapper from './pageWrapper' | ||
import { HOME_OG_IMAGE_URL } from "@/lib/constants"; | ||
import Dashboard from "@/components/Dashboard/Dashboard"; | ||
import Navigation from "@/components/Dashboard/navigation"; | ||
import NotificationsList from "@/components/Notifications/NotificationsList"; | ||
import { getCssText } from "stitches.config"; | ||
|
||
export const metadata = { | ||
title: "Notifications | Prototypr", | ||
description: "Your notifications on Prototypr", | ||
image: "", | ||
canonical: "https://prototypr.io/notifications", | ||
url: "https://prototypr.io/notifications", | ||
openGraph: { | ||
url: "https://prototypr.io/notifications", | ||
title: "Notifications | Prototypr", | ||
description: | ||
"Your notifications on Prototypr", | ||
images: [{ url: HOME_OG_IMAGE_URL }], | ||
site_name: "Prototypr", | ||
}, | ||
twitter: { | ||
handle: "@prototypr", | ||
site: "@prototypr", | ||
cardType: "summary_large_image", | ||
}, | ||
favicon:{ | ||
appleTouchIcon: "favicon/apple-touch-icon.png", | ||
favicon32: "favicon/favicon-32x32.png", | ||
favicon16: "favicon/favicon-16x16.png", | ||
siteManifest: "favicon/site.webmanifest", | ||
msTileColor: "#da532c", | ||
themeColor: "#ffffff", | ||
|
||
} | ||
}; | ||
|
||
export default async function NotificationsPage() { | ||
const userData = await fetchUser(); | ||
|
||
return ( | ||
<Layout sessionUser={userData?.user?.id} background={"#fbfcff"}> | ||
<div className="flex flex-col overflow-y-auto pt-[96px] mx-auto w-full"> | ||
{/* {userData?.user?.id} */} | ||
<div | ||
className="pb-20 mx-auto px-2 sm:px-6 lg:px-8 w-full" | ||
style={{ maxWidth: 800 }} | ||
> | ||
<div className="flex flex-row justify-between items-baseline mt-3"> | ||
<h1 className="my-3 text-3xl font-semibold">Notifications</h1> | ||
</div> | ||
<NotificationsList /> | ||
</div> | ||
{/* <AccountPageWrapper userData={userData}/> */} | ||
</div> | ||
</Layout> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import { usePathname } from "next/navigation"; | ||
import { useRouter } from "next/navigation"; | ||
import IconButton from "@/components/Primitives/IconButton"; | ||
|
||
const ActiveIconButtonLink = ({ children, href }) => { | ||
const pathname = usePathname(); | ||
const router = useRouter(); | ||
|
||
const handleClick = e => { | ||
e.preventDefault(); | ||
router.push(href); | ||
}; | ||
|
||
return ( | ||
<a href={href} onClick={handleClick}> | ||
<IconButton | ||
className={`${pathname == href ? "!bg-blue-100 !text-blue-700" : "!bg-transparent !text-gray-800"} flex flex-col text-center align-center rounded-[4px] justify-center outline-none !border-none !my-auto !cursor-pointer h-[28px] w-[28px] !shadow-none !hover:bg-gray-50 !hover:text-gray-900 !hover:shadow-none !hover:border-none !hover:outline-none`} | ||
> | ||
{children} | ||
</IconButton> | ||
</a> | ||
); | ||
}; | ||
export default ActiveIconButtonLink; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.