-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
68 lines (68 loc) · 3.21 KB
/
index.html
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
<!DOCTYPE html>
<html lang="uk">
<head>
<meta charset="UTF-8">
<title>NeuroCommit</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- Підключення шрифтів та стилів -->
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;600&display=swap" rel="stylesheet">
<link rel="stylesheet" href="styles.css">
</head>
<body>
<div class="container">
<header>
<div class="header-top">
<h1>NeuroCommit</h1>
<div class="language-switcher">
<button id="langUk" class="active">УКР</button>
<button id="langEn">ENG</button>
</div>
<div class="theme-switcher">
<label class="switch">
<input type="checkbox" id="themeToggle">
<span class="slider"></span>
</label>
<span id="themeLabel">Темна тема</span>
</div>
</div>
<p id="headerDescription">Перетворіть свій <code>git diff</code> у готовий промт для нейромережі та зробіть свій коміт кращим!</p>
</header>
<main>
<div class="split left">
<h2 id="gitDiffTitle">Вивід команди git diff</h2>
<div class="textarea-controls">
<button id="pasteButton">Вставити з буфера</button>
<button id="clearButton">Очистити поле</button>
</div>
<textarea id="gitDiffInput" placeholder="Вставте сюди результат команди git diff..."></textarea>
<div class="git-commands">
<h3>Команди для отримання git diff</h3>
<div class="command">
<code>git diff</code>
<button class="copyCommandButton" data-command="git diff">Копіювати</button>
</div>
<div class="command">
<code>git diff --staged</code>
<button class="copyCommandButton" data-command="git diff --staged">Копіювати</button>
</div>
</div>
</div>
<div class="split right">
<h2 id="promptTitle">Згенерований промт для нейромережі</h2>
<div class="prompt-container">
<pre id="promptOutput" class="prompt"></pre>
</div>
<div class="prompt-buttons">
<button id="copyButton">Скопіювати промт</button>
<button id="downloadButton">Завантажити промт</button>
</div>
</div>
</main>
<footer>
<p><a href="https://github.com/cr1ma/neuro-commit" target="_blank">Приєднуйтесь до розробки на GitHub</a></p>
</footer>
</div>
<div id="toast" class="toast"></div>
<script src="script.js"></script>
</body>
</html>