* fix: adding language support package * fix: language support implementation using mobx * fix: adding more languages for support * fix: profile settings translations * feat: added language support for sidebar and user settings * feat: added language support for deactivation modal * fix: added project sync after transfer issues (#6200) * code refactor and improvement (#6203) * chore: package code refactoring * chore: component restructuring and refactor * chore: comment create improvement * refactor: enhance workspace and project wrapper modularity (#6207) * [WEB-2678]feat: added functionality to add labels directly from dropdown (#6211) * enhancement:added functionality to add features directly from dropdown * fix: fixed import order * fix: fixed lint errors * chore: added common component for project activity (#6212) * chore: added common component for project activity * fix: added enum * fix: added enum for initiatives * - Do not clear temp files that are locked. (#6214) - Handle edge cases in sync workspace * fix: labels empty state for drop down (#6216) * refactor: remove cn helper function from the editor package (#6217) * * feat: added language support to issue create modal in sidebar * fix: project activity type * * fix: added missing translations * fix: modified translation for plurals * fix: fixed spanish translation * dev: language type error in space user profile types * fix: type fixes * chore: added alpha tag --------- Co-authored-by: sriram veeraghanta <veeraghanta.sriram@gmail.com> Co-authored-by: Anmol Singh Bhatia <121005188+anmolsinghbhatia@users.noreply.github.com> Co-authored-by: Prateek Shourya <prateekshourya29@gmail.com> Co-authored-by: Akshita Goyal <36129505+gakshita@users.noreply.github.com> Co-authored-by: Satish Gandham <satish.iitg@gmail.com> Co-authored-by: Aaryan Khandelwal <65252264+aaryan610@users.noreply.github.com> Co-authored-by: gurusinath <gurusainath007@gmail.com>
94 lines
3.4 KiB
TypeScript
94 lines
3.4 KiB
TypeScript
"use client";
|
|
|
|
import React from "react";
|
|
import { observer } from "mobx-react";
|
|
import Image from "next/image";
|
|
import { useTranslation } from "@plane/i18n";
|
|
// ui
|
|
import { ContentWrapper, getButtonStyling } from "@plane/ui";
|
|
// components
|
|
import { ProIcon } from "@/components/common";
|
|
// constants
|
|
import { MARKETING_PRICING_PAGE_LINK } from "@/constants/common";
|
|
import { WORKSPACE_ACTIVE_CYCLES_DETAILS } from "@/constants/cycle";
|
|
// helper
|
|
import { cn } from "@/helpers/common.helper";
|
|
// hooks
|
|
import { useUser } from "@/hooks/store";
|
|
|
|
export const WorkspaceActiveCyclesUpgrade = observer(() => {
|
|
const { t } = useTranslation();
|
|
// store hooks
|
|
const {
|
|
userProfile: { data: userProfile },
|
|
} = useUser();
|
|
|
|
const isDarkMode = userProfile?.theme.theme === "dark";
|
|
|
|
return (
|
|
<ContentWrapper className="gap-10">
|
|
<div
|
|
className={cn("item-center flex min-h-[25rem] justify-between rounded-xl", {
|
|
"bg-gradient-to-l from-[#CFCFCF] to-[#212121]": userProfile?.theme.theme === "dark",
|
|
"bg-gradient-to-l from-[#3b5ec6] to-[#f5f7fe]": userProfile?.theme.theme === "light",
|
|
})}
|
|
>
|
|
<div className="relative flex flex-col justify-center gap-7 px-14 lg:w-1/2">
|
|
<div className="flex max-w-64 flex-col gap-2">
|
|
<h2 className="text-2xl font-semibold">{t("on_demand_snapshots_of_all_your_cycles")}</h2>
|
|
<p className="text-base font-medium text-custom-text-300">{t("active_cycles_description")}</p>
|
|
</div>
|
|
<div className="flex items-center gap-3">
|
|
<a
|
|
className={`${getButtonStyling("primary", "md")} cursor-pointer`}
|
|
href={MARKETING_PRICING_PAGE_LINK}
|
|
target="_blank"
|
|
rel="noreferrer"
|
|
>
|
|
<ProIcon className="h-3.5 w-3.5 text-white" />
|
|
{t("upgrade")}
|
|
</a>
|
|
</div>
|
|
<span className="absolute left-0 top-0">
|
|
<Image
|
|
src={`/workspace-active-cycles/cta-l-1-${isDarkMode ? "dark" : "light"}.webp`}
|
|
height={125}
|
|
width={125}
|
|
className="rounded-xl"
|
|
alt="l-1"
|
|
/>
|
|
</span>
|
|
</div>
|
|
<div className="relative hidden w-1/2 lg:block">
|
|
<span className="absolute bottom-0 right-0">
|
|
<Image
|
|
src={`/workspace-active-cycles/cta-r-1-${isDarkMode ? "dark" : "light"}.webp`}
|
|
height={420}
|
|
width={500}
|
|
alt="r-1"
|
|
/>
|
|
</span>
|
|
<span className="absolute -bottom-16 right-1/2 rounded-xl">
|
|
<Image
|
|
src={`/workspace-active-cycles/cta-r-2-${isDarkMode ? "dark" : "light"}.webp`}
|
|
height={210}
|
|
width={280}
|
|
alt="r-2"
|
|
/>
|
|
</span>
|
|
</div>
|
|
</div>
|
|
<div className="grid h-full grid-cols-1 gap-5 pb-8 lg:grid-cols-2 xl:grid-cols-3">
|
|
{WORKSPACE_ACTIVE_CYCLES_DETAILS.map((item) => (
|
|
<div key={item.title} className="flex min-h-32 w-full flex-col gap-2 rounded-md bg-custom-background-80 p-4">
|
|
<div className="flex gap-2 justify-between">
|
|
<h3 className="font-medium">{t(item.key)}</h3>
|
|
<item.icon className="mt-1 h-4 w-4 text-blue-500" />
|
|
</div>
|
|
<span className="text-sm text-custom-text-300">{t(`${item.key}_description`)}</span>
|
|
</div>
|
|
))}
|
|
</div>
|
|
</ContentWrapper>
|
|
);
|
|
});
|