fix styling issues

This commit is contained in:
Vladyslav Matsiiako
2023-10-07 17:13:44 -07:00
parent 60bd5e57fc
commit 6df7590051
4 changed files with 41 additions and 27 deletions
@@ -23,10 +23,8 @@ export const ContentLoader = ({ text, frequency = 2000 }: Props) => {
}, []); }, []);
return ( return (
<div className="container mx-auto flex relative flex-col h-1/2 w-full items-center justify-center px-8 text-mineshaft-50 dark:[color-scheme:dark] space-y-8"> <div className="container mx-auto flex relative flex-col h-screen w-full items-center justify-center px-8 text-mineshaft-50 dark:[color-scheme:dark] space-y-8">
<div> <img src="/images/loading/loading.gif" height={70} width={120} alt="loading animation" />
<img src="/images/loading/loading.gif" height={210} width={240} alt="loading animation" />
</div>
{text && isTextArray && ( {text && isTextArray && (
<AnimatePresence exitBeforeEnter> <AnimatePresence exitBeforeEnter>
<motion.div <motion.div
@@ -40,7 +38,7 @@ export const ContentLoader = ({ text, frequency = 2000 }: Props) => {
</motion.div> </motion.div>
</AnimatePresence> </AnimatePresence>
)} )}
{text && !isTextArray && <div className="text-primary text-sm">{text}</div>} {text && !isTextArray && <div className="text-primary text-xs">{text}</div>}
</div> </div>
); );
}; };
+2 -2
View File
@@ -488,9 +488,9 @@ export const AppLayout = ({ children }: LayoutProps) => {
} }
icon="system-outline-189-domain-verification" icon="system-outline-189-domain-verification"
> >
Secret approval Secret approvals
{Boolean(secretApprovalReqCount?.open) && ( {Boolean(secretApprovalReqCount?.open) && (
<span className="text-xs p-0.5 rounded ml-2 bg-primary text-black"> <span className="text-xs font-semibold py-0.5 px-1 rounded ml-2 bg-primary-600 border border-primary-400 text-black">
{secretApprovalReqCount?.open} {secretApprovalReqCount?.open}
</span> </span>
)} )}
@@ -39,9 +39,9 @@ import { StoreProvider } from "./SecretMainPage.store";
import { Filter, GroupBy, SortDir } from "./SecretMainPage.types"; import { Filter, GroupBy, SortDir } from "./SecretMainPage.types";
const LOADER_TEXT = [ const LOADER_TEXT = [
"Retriving your encrypted secrets", "Retrieving your encrypted secrets...",
"Fetching folders", "Fetching folders...",
"Getting secret import links" "Getting secret import links..."
]; ];
export const SecretMainPage = () => { export const SecretMainPage = () => {
@@ -1,3 +1,7 @@
import Link from "next/link";
import { faArrowUpRightFromSquare } from "@fortawesome/free-solid-svg-icons";
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
import { OrgPermissionCan } from "@app/components/permissions"; import { OrgPermissionCan } from "@app/components/permissions";
import { Button } from "@app/components/v2"; import { Button } from "@app/components/v2";
import { import {
@@ -74,24 +78,36 @@ export const PreviewSection = () => {
subscription?.slug !== "enterprise" && subscription?.slug !== "enterprise" &&
subscription?.slug !== "pro" && subscription?.slug !== "pro" &&
subscription?.slug !== "pro-annual" && ( subscription?.slug !== "pro-annual" && (
<div className="p-4 rounded-lg flex-1 border border-mineshaft-600 mb-6 flex items-center bg-mineshaft-600"> <div className="flex flex-row space-x-6">
<div className="flex-1"> <div className="p-4 rounded-lg flex-1 border border-primary/40 mb-6 flex items-center bg-primary/10">
<h2 className="text-xl font-semibold text-mineshaft-50">Become Infisical</h2> <div className="flex-1">
<p className="text-gray-400 mt-4"> <h2 className="text-xl font-medium text-mineshaft-100">Unleash the full power of <span className="text-transparent font-semibold bg-clip-text bg-gradient-to-r from-primary-500 to-yellow">Infisical</span></h2>
Unlimited members, projects, RBAC, smart alerts, and so much more <p className="text-gray-400 mt-4">
</p> Get unlimited members, projects, RBAC, smart alerts, and so much more.
</p>
</div>
<OrgPermissionCan I={OrgPermissionActions.Create} a={OrgPermissionSubjects.Billing}>
{(isAllowed) => (
<Button
onClick={() => handleUpgradeBtnClick()}
color="mineshaft"
isDisabled={!isAllowed}
>
{!subscription.has_used_trial ? "Start Pro Free Trial" : "Upgrade Plan"}
</Button>
)}
</OrgPermissionCan>
</div>
<div className="flex flex-col max-w-[12rem] w-full items-start border border-mineshaft-600 mb-6 flex items-center bg-mineshaft-800 p-4 rounded-lg">
<div className="mb-4 flex justify-center w-full font-semibold text-mineshaft-200">Want to learn more? </div>
<div className="flex justify-center w-full">
<Link href="https://infisical.com/schedule-demo">
<span className="rounded-full px-4 py-2 bg-mineshaft-600 border border-mineshaft-500 hover:bg-primary/10 hover:border-primary/40 duration-200 cursor-pointer">
Book a demo <FontAwesomeIcon icon={faArrowUpRightFromSquare} className="text-xs mb-[0.06rem] ml-1"/>
</span>
</Link>
</div>
</div> </div>
<OrgPermissionCan I={OrgPermissionActions.Create} a={OrgPermissionSubjects.Billing}>
{(isAllowed) => (
<Button
onClick={() => handleUpgradeBtnClick()}
color="mineshaft"
isDisabled={!isAllowed}
>
{!subscription.has_used_trial ? "Start Pro Free Trial" : "Upgrade Plan"}
</Button>
)}
</OrgPermissionCan>
</div> </div>
)} )}
{!isLoading && subscription && data && ( {!isLoading && subscription && data && (