2022-01-02 18:54:19 +01:00
|
|
|
import Head from 'next/head';
|
|
|
|
import Script from 'next/script';
|
2021-12-22 18:40:46 +01:00
|
|
|
|
|
|
|
export default function Home() {
|
2022-01-02 18:54:19 +01:00
|
|
|
return (
|
|
|
|
<div>
|
|
|
|
<Head>
|
|
|
|
<title>Roles Bot</title>
|
|
|
|
<link rel="icon" href="logo.ico" />
|
|
|
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.3.1/styles/default.min.css" />
|
2021-12-22 19:25:44 +01:00
|
|
|
|
2022-01-02 18:54:19 +01:00
|
|
|
<script src="https://kit.fontawesome.com/5acf4d9e80.js" crossOrigin="anonymous"></script>
|
|
|
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
|
|
|
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.3.1/highlight.min.js"></script>
|
|
|
|
</Head>
|
|
|
|
<section className="flex-container">
|
|
|
|
<div className="container animate__animated animate__fadeIn">
|
|
|
|
<h1>Generate</h1>
|
|
|
|
<form>
|
|
|
|
<input placeholder="Your Message" name="message" id="message"/><br />
|
2022-04-14 12:41:23 +02:00
|
|
|
<select placeholder="Message Type" name="type" id="type" required>
|
|
|
|
<option value="" disabled={true}>Select a type</option>
|
|
|
|
<option value="1">Buttons</option>
|
|
|
|
<option value="2">Select Menu</option>
|
|
|
|
</select><br />
|
2022-04-14 11:48:02 +02:00
|
|
|
<input placeholder="Channel Id*" name="channel" id="channel" required/>
|
2022-01-02 18:54:19 +01:00
|
|
|
</form>
|
|
|
|
<button id="addRole">Add Role</button>
|
|
|
|
<button id="buttonCopy">Copy</button>
|
|
|
|
<pre className={'hljs language-json copy'} id="jsonPre"><code id="json" className="code"></code></pre>
|
|
|
|
</div>
|
|
|
|
</section>
|
2021-12-22 18:40:46 +01:00
|
|
|
|
2022-01-02 18:54:19 +01:00
|
|
|
<script src="https://cdn.jsdelivr.net/npm/sweetalert2@11"></script>
|
|
|
|
<Script src="script.js"></Script>
|
|
|
|
<Script id='hljs'>hljs.initHighlightingOnLoad();</Script>
|
|
|
|
</div>
|
|
|
|
);
|
2021-12-22 18:40:46 +01:00
|
|
|
}
|