Skip to content

Commit

Permalink
added experiencing some issues message
Browse files Browse the repository at this point in the history
  • Loading branch information
Nutlope committed Mar 10, 2023
1 parent 1614864 commit 40ddaf5
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 10 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,3 +58,8 @@ npm run dev
Deploy the example using [Vercel](https://vercel.com?utm_source=github&utm_medium=readme&utm_campaign=vercel-examples):

[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?repository-url=https://github.com/Nutlope/roomGPT&env=REPLICATE_API_KEY&project-name=room-GPT&repo-name=roomGPT)

## Todos

- add axiom
- add a status page
1 change: 1 addition & 0 deletions pages/api/remaining.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ export default async function handler(
// Check if user is logged in
const session = await getServerSession(req, res, authOptions);
if (!session || !session.user) {
console.log("User not logged in");
return res.status(500).json("Login to upload.");
}

Expand Down
24 changes: 14 additions & 10 deletions pages/dream.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -132,16 +132,20 @@ const Home: NextPage = () => {
Generate your <span className="text-blue-600">dream</span> room
</h1>
{status === "authenticated" && data && !restoredImage && (
<p className="text-gray-400">
You have{" "}
<span className="font-semibold text-gray-300">
{data.remainingGenerations} generations
</span>{" "}
left today. Your generation
{Number(data.remainingGenerations) > 1 ? "s" : ""} will renew in{" "}
<span className="font-semibold text-gray-300">
{data.hours + 5} hours and {data.minutes} minutes.
</span>
// <p className="text-gray-400">
// You have{" "}
// <span className="font-semibold text-gray-300">
// {data.remainingGenerations} generations
// </span>{" "}
// left today. Your generation
// {Number(data.remainingGenerations) > 1 ? "s" : ""} will renew in{" "}
// <span className="font-semibold text-gray-300">
// {data.hours + 5} hours and {data.minutes} minutes.
// </span>
// </p>
<p className="text-gray-300 font-medium">
We're currently experiencing some issues with our server. Please try
again later.
</p>
)}
<ResizablePanel>
Expand Down

1 comment on commit 40ddaf5

@vercel
Copy link

@vercel vercel bot commented on 40ddaf5 Mar 10, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.