Skip to content

Commit e52a828

Browse files
committed
튜토리얼 설정
1 parent f37f80d commit e52a828

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/pages/Visualization/VisualizationClassroom.tsx

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,14 @@ const VisualizationClassroom = () => {
121121
}
122122
};
123123

124+
const closeTutorial = () => {
125+
setCookie("firstVisit", "true", {
126+
path: "/",
127+
maxAge: 7 * 24 * 60 * 60, // 7일(초 단위)
128+
});
129+
setIsTutorialVisible(false);
130+
};
131+
124132
// zustand store
125133
const { focus } = useEditorStore();
126134
const isGptToggle = useGptTooltipStore((state) => state.isGptToggle);
@@ -210,6 +218,9 @@ const VisualizationClassroom = () => {
210218
left: `${tutorialPosition.left}px`,
211219
}}
212220
>
221+
<button className="tutorial-close-button" onClick={closeTutorial}>
222+
×
223+
</button>
213224
<div className="tutorial-content">
214225
<h2>{steps[currentStep].title}</h2>
215226
<p>{steps[currentStep].description}</p>

0 commit comments

Comments
 (0)