2023-11-29 15:03:08 +00:00
|
|
|
import Image from "next/image";
|
2023-12-01 10:20:01 +00:00
|
|
|
import Link from "next/link";
|
2023-11-29 15:03:08 +00:00
|
|
|
import { useTheme } from "next-themes";
|
|
|
|
// icons
|
|
|
|
import { Lightbulb } from "lucide-react";
|
|
|
|
// images
|
2023-12-01 10:20:01 +00:00
|
|
|
import latestFeatures from "public/onboarding/onboarding-pages.svg";
|
2023-11-29 15:03:08 +00:00
|
|
|
|
|
|
|
export const LatestFeatureBlock = () => {
|
|
|
|
const { resolvedTheme } = useTheme();
|
|
|
|
|
|
|
|
return (
|
|
|
|
<>
|
2023-12-01 10:20:01 +00:00
|
|
|
<div className="flex py-2 bg-onboarding-background-100 border border-onboarding-border-200 mx-auto rounded-[3.5px] sm:w-96 mt-16">
|
2023-11-29 15:03:08 +00:00
|
|
|
<Lightbulb className="h-7 w-7 mr-2 mx-3" />
|
2023-12-01 10:20:01 +00:00
|
|
|
<p className="text-sm text-left text-onboarding-text-100">
|
|
|
|
Pages gets a facelift! Write anything and use Galileo to help you start.{" "}
|
|
|
|
<Link href="https://plane.so/changelog" target="_blank" rel="noopener noreferrer">
|
|
|
|
<span className="font-medium text-sm underline hover:cursor-pointer">Learn more</span>
|
|
|
|
</Link>
|
2023-11-29 15:03:08 +00:00
|
|
|
</p>
|
|
|
|
</div>
|
2023-12-01 10:20:01 +00:00
|
|
|
<div className="border border-onboarding-border-200 sm:w-96 sm:h-52 object-cover mt-8 mx-auto rounded-md bg-onboarding-background-100 overflow-hidden">
|
|
|
|
<div className="h-[90%]">
|
|
|
|
<Image
|
|
|
|
src={latestFeatures}
|
|
|
|
alt="Plane Issues"
|
2023-12-06 08:52:59 +00:00
|
|
|
className={`rounded-md h-full ml-10 -mt-2 ${
|
2023-12-01 10:20:01 +00:00
|
|
|
resolvedTheme === "dark" ? "bg-onboarding-background-100" : "bg-custom-primary-70"
|
|
|
|
} `}
|
|
|
|
/>
|
|
|
|
</div>
|
2023-11-29 15:03:08 +00:00
|
|
|
</div>
|
|
|
|
</>
|
|
|
|
);
|
|
|
|
};
|