mirror of
https://github.com/OpenCut-app/OpenCut.git
synced 2026-07-13 21:52:53 +02:00
Merge pull request [#482](https://github.com/mazeincoding/AppCut/issues/482)
This commit is contained in:
@@ -399,7 +399,7 @@ function ProjectCard({
|
|||||||
>
|
>
|
||||||
{isSelectionMode && (
|
{isSelectionMode && (
|
||||||
<div className="absolute top-3 left-3 z-10">
|
<div className="absolute top-3 left-3 z-10">
|
||||||
<div className="w-4 h-4 rounded-full bg-background/80 backdrop-blur-sm border flex items-center justify-center">
|
<div className="w-5 h-5 rounded bg-background/80 backdrop-blur-sm border flex items-center justify-center">
|
||||||
<Checkbox
|
<Checkbox
|
||||||
checked={isSelected}
|
checked={isSelected}
|
||||||
onCheckedChange={(checked) =>
|
onCheckedChange={(checked) =>
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
"use client";
|
"use client";
|
||||||
|
|
||||||
import { Dialog, DialogContent } from "./ui/dialog";
|
import { Dialog, DialogContent, DialogTitle } from "./ui/dialog";
|
||||||
import { Button } from "./ui/button";
|
import { Button } from "./ui/button";
|
||||||
import { ArrowRightIcon } from "lucide-react";
|
import { ArrowRightIcon } from "lucide-react";
|
||||||
import { useState, useEffect } from "react";
|
import { useState, useEffect } from "react";
|
||||||
@@ -26,6 +26,19 @@ export function Onboarding() {
|
|||||||
localStorage.setItem("hasSeenOnboarding", "true");
|
localStorage.setItem("hasSeenOnboarding", "true");
|
||||||
};
|
};
|
||||||
|
|
||||||
|
const getStepTitle = () => {
|
||||||
|
switch (step) {
|
||||||
|
case 0:
|
||||||
|
return "Welcome to OpenCut Beta! 🎉";
|
||||||
|
case 1:
|
||||||
|
return "⚠️ This is a super early beta!";
|
||||||
|
case 2:
|
||||||
|
return "🦋 Have fun testing!";
|
||||||
|
default:
|
||||||
|
return "OpenCut Onboarding";
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
const renderStepContent = () => {
|
const renderStepContent = () => {
|
||||||
switch (step) {
|
switch (step) {
|
||||||
case 0:
|
case 0:
|
||||||
@@ -42,7 +55,7 @@ export function Onboarding() {
|
|||||||
return (
|
return (
|
||||||
<div className="space-y-5">
|
<div className="space-y-5">
|
||||||
<div className="space-y-3">
|
<div className="space-y-3">
|
||||||
<Title title="⚠️ This is a super early beta!" />
|
<Title title={getStepTitle()} />
|
||||||
<Description description="OpenCut started just one month ago. There's still a ton of things to do to make this editor amazing." />
|
<Description description="OpenCut started just one month ago. There's still a ton of things to do to make this editor amazing." />
|
||||||
<Description description="If you're curious, check out our roadmap [here](https://opencut.app/roadmap)" />
|
<Description description="If you're curious, check out our roadmap [here](https://opencut.app/roadmap)" />
|
||||||
</div>
|
</div>
|
||||||
@@ -53,7 +66,7 @@ export function Onboarding() {
|
|||||||
return (
|
return (
|
||||||
<div className="space-y-5">
|
<div className="space-y-5">
|
||||||
<div className="space-y-3">
|
<div className="space-y-3">
|
||||||
<Title title="🦋 Have fun testing!" />
|
<Title title={getStepTitle()} />
|
||||||
<Description description="Join our [Discord](https://discord.gg/zmR9N35cjK), chat with cool people and share feedback to help make OpenCut the best editor ever." />
|
<Description description="Join our [Discord](https://discord.gg/zmR9N35cjK), chat with cool people and share feedback to help make OpenCut the best editor ever." />
|
||||||
</div>
|
</div>
|
||||||
<NextButton onClick={handleClose}>Finish</NextButton>
|
<NextButton onClick={handleClose}>Finish</NextButton>
|
||||||
@@ -67,6 +80,9 @@ export function Onboarding() {
|
|||||||
return (
|
return (
|
||||||
<Dialog open={isOpen} onOpenChange={handleClose}>
|
<Dialog open={isOpen} onOpenChange={handleClose}>
|
||||||
<DialogContent className="sm:max-w-[425px] !outline-none">
|
<DialogContent className="sm:max-w-[425px] !outline-none">
|
||||||
|
<DialogTitle>
|
||||||
|
<span className="sr-only">{getStepTitle()}</span>
|
||||||
|
</DialogTitle>
|
||||||
{renderStepContent()}
|
{renderStepContent()}
|
||||||
</DialogContent>
|
</DialogContent>
|
||||||
</Dialog>
|
</Dialog>
|
||||||
|
|||||||
Reference in New Issue
Block a user