File size: 2,531 Bytes
9cd6ddb
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
import { useState } from "react";

import { Header } from "components/editor-badge/comps/header";
// import { Editor } from "components/editor-badge";

import { TourProvider } from "@reactour/tour";
import { Footer } from "@/components/footer";
import Head from "next/head";
import { useIntl } from "react-intl";
import dynamic from "next/dynamic";

const DynamicEditor = dynamic(() => import("@/components/editor-badge"), {
  loading: () => <p>Loading...</p>,
});

export default function BadgeEditor() {
  const intl = useIntl();

  return (
    <>
      <Head>
        <title>{intl.formatMessage({ id: "badgeEditor.meta.title" })}</title>
        <meta
          name="description"
          content={intl.formatMessage({ id: "badgeEditor.meta.description" })}
        ></meta>

        <meta property="og:type" content="website"></meta>
        <meta property="og:url" content="https://discotools.xyz"></meta>
        <meta
          property="og:title"
          content={intl.formatMessage({
            id: "badgeEditor.meta.title",
          })}
        ></meta>
        <meta
          property="og:description"
          content={intl.formatMessage({ id: "badgeEditor.meta.description" })}
        ></meta>
        <meta property="og:image" content="/badge-editor.png"></meta>

        <meta property="twitter:card" content="summary_large_image"></meta>
        <meta property="twitter:url" content="https://discotools.xyz"></meta>
        <meta
          property="twitter:title"
          content={intl.formatMessage({
            id: "badgeEditor.meta.title",
          })}
        ></meta>
        <meta
          property="twitter:description"
          content={intl.formatMessage({ id: "badgeEditor.meta.description" })}
        ></meta>
      </Head>
      <TourProvider
        steps={[
          {
            selector: ".first-step",
            content: intl.formatMessage({ id: "badgeEditor.tour.step1" }),
          },
          {
            selector: ".second-step",
            content: intl.formatMessage({ id: "badgeEditor.tour.step2" }),
          },
          {
            selector: ".third-step",
            content: intl.formatMessage({ id: "badgeEditor.tour.step3" }),
          },
          {
            selector: ".fourth-step",
            content: intl.formatMessage({ id: "badgeEditor.tour.step4" }),
          },
        ]}
      >
        <div>
          <Header>
            <DynamicEditor />
          </Header>
          <Footer />
        </div>
      </TourProvider>
    </>
  );
}