Spaces:
Sleeping
Sleeping
File size: 2,760 Bytes
60f878e | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 | import React, { useState, useEffect } from "react";
import { useI18n } from "../i18n";
import "./tutorial.scss";
export const Tutorial: React.FC = () => {
const { t } = useI18n();
return (
<div className="drawnix-tutorial">
<div className="tutorial-overlay">
<div className="tutorial-content">
<h1 className="brand-title">{t('tutorial.title')}</h1>
<p className="brand-description">{t('tutorial.description')}</p>
<p className="brand-tooltip">{t('tutorial.dataDescription')}</p>
<div className="feature-pointer top-left">
<svg className="pointer-arrow-svg" width="130" height="100" viewBox="0 0 130 100">
<defs>
<marker id="arrow-left" markerWidth="10" markerHeight="10" refX="0" refY="3" orient="auto" markerUnits="strokeWidth">
<path d="M0,0 L0,6 L6,3 z" fill="#888" />
</marker>
</defs>
<path d="M 80,70 Q 35,60 15,15" fill="none" stroke="#aaa" strokeWidth="1.5" markerEnd="url(#arrow-left)" />
</svg>
<div className="pointer-content">
<p>{t('tutorial.appToolbar')}</p>
</div>
</div>
<div className="feature-pointer top-center">
<svg className="pointer-arrow-svg" width="100" height="130" viewBox="0 0 100 130">
<defs>
<marker id="arrow-top" markerWidth="10" markerHeight="10" refX="0" refY="3" orient="auto" markerUnits="strokeWidth">
<path d="M0,0 L0,6 L6,3 z" fill="#888" />
</marker>
</defs>
<path d="M 45,90 Q 20,50 45,10" fill="none" stroke="#aaa" strokeWidth="1.5" markerEnd="url(#arrow-top)" />
</svg>
<div className="pointer-content">
<p>{t('tutorial.creationToolbar')}</p>
</div>
</div>
<div className="feature-pointer bottom-right">
<svg className="pointer-arrow-svg" width="180" height="100" viewBox="0 0 180 100">
<defs>
<marker id="arrow-right" markerWidth="10" markerHeight="10" refX="0" refY="3" orient="auto" markerUnits="strokeWidth">
<path d="M0,0 L0,6 L6,3 z" fill="#888" />
</marker>
</defs>
<path d="M 20,25 Q 75,20 105,70" fill="none" stroke="#aaa" strokeWidth="1.5" markerEnd="url(#arrow-right)" />
</svg>
<div className="pointer-content">
<p>{t('tutorial.themeDescription')}</p>
</div>
</div>
</div>
</div>
</div>
);
}; |