File size: 6,889 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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
import { useState } from "react";

import { Header } from "components/editor-icons/comps/header";
import { DEFAULT_VALUE } from "components/editor-icons/editor.constants";
// import { Editor } from "components/editor-icons";

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

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

export default function IconsEditor() {
  const intl = useIntl();
  const [editor, setEditor] = useState<EditorType>(DEFAULT_VALUE);

  return (
    <>
      <Head>
        <title>{intl.formatMessage({ id: "iconsEditor.meta.title" })}</title>
        <meta
          name="description"
          content={intl.formatMessage({ id: "iconsEditor.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: "iconsEditor.meta.title",
          })}
        ></meta>
        <meta
          property="og:description"
          content={intl.formatMessage({ id: "iconsEditor.meta.description" })}
        ></meta>
        <meta property="og:image" content="/banner.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: "iconsEditor.meta.title",
          })}
        ></meta>
        <meta
          property="twitter:description"
          content={intl.formatMessage({ id: "iconsEditor.meta.description" })}
        ></meta>
      </Head>
      <TourProvider
        steps={[
          {
            selector: ".first-step",
            content: intl.formatMessage({ id: "iconsEditor.tour.step1" }),
          },
          {
            selector: ".second-step",
            content: intl.formatMessage({ id: "iconsEditor.tour.step2" }),
          },
          {
            selector: ".third-step",
            content: intl.formatMessage({ id: "iconsEditor.tour.step3" }),
          },
          {
            selector: ".fourth-step",
            content: intl.formatMessage({ id: "iconsEditor.tour.step4" }),
          },
        ]}
      >
        <div>
          <Header>
            <DynamicEditor editor={editor} onChange={setEditor} />
          </Header>
          <div className="max-w-6xl w-full mx-auto relative z-10 mt-10 px-6 xl:px-0">
            <h3 className="font-extrabold text-dark-600 text-xl font-title">
              <FormattedMessage id="iconsEditor.pack.title" />
            </h3>
            <div className="grid grid-cols-1 lg:grid-cols-3 gap-8 lg:gap-10 mt-6">
              <div className="p-5 rounded-lg border-dark-100 border-opacity-50 border hover:ring-4 cursor-pointer ring-blue ring-opacity-50 relative overflow-hidden">
                <h4 className="font-medium font-title text-sm text-dark-300">
                  Rocket League pack
                </h4>
                <p className="text-sm text-dark-200">
                  6 icons for your Rocket League server
                </p>
                <div className="flex items-center gap-3 mt-4">
                  <div className="w-7 h-7 rounded-full bg-blue"></div>
                  <div className="w-7 h-7 rounded-full bg-darkGreen"></div>
                  <div className="w-7 h-7 rounded-full bg-green"></div>
                  <div className="w-7 h-7 rounded-full bg-dark-300"></div>
                  <div className="w-7 h-7 rounded-full bg-red"></div>
                </div>
                <div className="absolute w-full h-full top-0 left-0 bg-white bg-opacity-40 filter backdrop-blur-sm flex items-center justify-center">
                  <p className="font-extrabold font-title text-center text-blue text-xl">
                    <FormattedMessage id="badge.comingSoon" />
                  </p>
                </div>
              </div>
              <div className="p-5 rounded-lg border-dark-100 border-opacity-50 border hover:ring-4 cursor-pointer ring-blue ring-opacity-50 relative overflow-hidden">
                <h4 className="font-medium font-title text-sm text-dark-300">
                  Rocket League pack
                </h4>
                <p className="text-sm text-dark-200">
                  6 icons for your Rocket League server
                </p>
                <div className="flex items-center gap-3 mt-4">
                  <div className="w-7 h-7 rounded-full bg-yellow"></div>
                  <div className="w-7 h-7 rounded-full bg-green"></div>
                  <div className="w-7 h-7 rounded-full bg-blue"></div>
                  <div className="w-7 h-7 rounded-full bg-dark-300"></div>
                  <div className="w-7 h-7 rounded-full bg-red"></div>
                </div>
                <div className="absolute w-full h-full top-0 left-0 bg-white bg-opacity-40 filter backdrop-blur-sm flex items-center justify-center">
                  <p className="font-extrabold font-title text-center text-blue text-xl">
                    <FormattedMessage id="badge.comingSoon" />
                  </p>
                </div>
              </div>
              <div className="p-5 rounded-lg border-dark-100 border-opacity-50 border hover:ring-4 cursor-pointer ring-blue ring-opacity-50 relative overflow-hidden">
                <h4 className="font-medium font-title text-sm text-dark-300">
                  Rocket League pack
                </h4>
                <p className="text-sm text-dark-200">
                  6 icons for your Rocket League server
                </p>
                <div className="flex items-center gap-3 mt-4">
                  <div className="w-7 h-7 rounded-full bg-blue"></div>
                  <div className="w-7 h-7 rounded-full bg-dark-300"></div>
                  <div className="w-7 h-7 rounded-full bg-darkGreen"></div>
                  <div className="w-7 h-7 rounded-full bg-red"></div>
                  <div className="w-7 h-7 rounded-full bg-green"></div>
                </div>
                <div className="absolute w-full h-full top-0 left-0 bg-white bg-opacity-40 filter backdrop-blur-sm flex items-center justify-center">
                  <p className="font-extrabold font-title text-center text-blue text-xl">
                    <FormattedMessage id="badge.comingSoon" />
                  </p>
                </div>
              </div>
            </div>
          </div>
          <Footer />
        </div>
      </TourProvider>
    </>
  );
}