-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: improve user experience on the scan page when there is no clou…
…d provider added
- Loading branch information
Showing
10 changed files
with
58 additions
and
39 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
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 |
---|---|---|
@@ -1,30 +1,44 @@ | ||
"use client"; | ||
|
||
import { Card, CardBody } from "@nextui-org/react"; | ||
import React from "react"; | ||
|
||
import { InfoIcon } from "../icons/Icons"; | ||
import { CustomButton } from "../ui/custom"; | ||
|
||
export const NoProvidersAdded = () => { | ||
return ( | ||
<div className="flex h-screen items-center justify-center"> | ||
<Card shadow="sm" className="w-full max-w-md dark:bg-prowler-blue-400"> | ||
<CardBody className="space-y-6 p-6 text-center"> | ||
<h2 className="text-xl font-bold">No Cloud Accounts Configured</h2> | ||
<p className="text-md text-gray-600"> | ||
You don't have any cloud accounts configured yet. This is the | ||
first step to get started. | ||
</p> | ||
<CustomButton | ||
asLink="/providers/connect-account" | ||
ariaLabel="Go to Add Cloud Account page" | ||
variant="solid" | ||
color="action" | ||
size="lg" | ||
> | ||
Add Cloud Account | ||
</CustomButton> | ||
</CardBody> | ||
</Card> | ||
<div className="dark:bg-prowler-blue-900 flex min-h-screen items-center justify-center"> | ||
<div className="mx-auto w-full max-w-7xl px-4"> | ||
<Card className="mx-auto w-full max-w-3xl rounded-lg dark:bg-prowler-blue-400"> | ||
<CardBody className="flex flex-col items-center space-y-8 p-6 text-center sm:p-8"> | ||
<div className="flex flex-col items-center space-y-4"> | ||
<InfoIcon className="h-10 w-10 text-gray-800 dark:text-white" /> | ||
<h2 className="text-2xl font-bold text-gray-800 dark:text-white"> | ||
No Cloud Providers Configured | ||
</h2> | ||
</div> | ||
<div className="flex flex-col items-center space-y-3"> | ||
<p className="text-md leading-relaxed text-gray-600 dark:text-gray-300"> | ||
You don't have any cloud providers configured yet. | ||
</p> | ||
<p className="text-md leading-relaxed text-gray-600 dark:text-gray-300"> | ||
Adding a cloud provider is the first step. | ||
</p> | ||
</div> | ||
<CustomButton | ||
asLink="/providers/connect-account" | ||
ariaLabel="Go to Add Cloud Provider page" | ||
className="w-full max-w-xs justify-center" | ||
variant="solid" | ||
color="action" | ||
size="lg" | ||
> | ||
Get Started | ||
</CustomButton> | ||
</CardBody> | ||
</Card> | ||
</div> | ||
</div> | ||
); | ||
}; |
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