-
Notifications
You must be signed in to change notification settings - Fork 1
/
translate.html
127 lines (123 loc) · 6.06 KB
/
translate.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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Cypher</title>
<link rel="icon" type="image/png" href="img/cypher-logo.png" />
<link rel="stylesheet" href="dist/css/main.css">
<script src="https://kit.fontawesome.com/1a72bf9d1c.js" crossorigin="anonymous"></script>
</head>
<body>
<nav>
<a href="./index.html">
<img class="logo-img" src="img/cypher-logo.png" alt="cypher-logo">
</a>
<p class="title">Cypher</p>
<div class="back-btn-desk">
<a class="back-btn" href="./index.html">Back to home</a>
</div>
<a href="./index.html" class="back-btn-mobile">
<i class="fa-solid fa-house"></i>
</a>
</nav>
<div class="container">
<div class="validation-screen">
<div class="modal-inner-wrapper">
<h1>Translator</h1>
<h2>Cypher helps you identify errors and convert your code into whatever language will help move your
projects forward.</h1>
<div class="textarea-wrapper">
<div class="spinner-screen" id="spinner-screen1">
<p>Checking code for any errors...</p>
<div class="spinner-wrapper">
<div class="spinner-grow" role="status"></div>
<div class="spinner-grow" role="status"></div>
<div class="spinner-grow" role="status"></div>
</div>
</div>
<textarea class="textBox" id='initial-input' type="text" placeholder="Please enter message"
required></textarea>
</div>
<div class="validation-btn-wrap" id="validation-btn-wrap">
<div class="dropdown-wrapper">
<select class="dropdown" id="user-language">
<option value="" disabled selected>Translate to</option>
<option value="HTML5">HTML5</option>
<option value="CSS3">CSS3</option>
<option value="JavaScript">JavaScript</option>
<option value="Java">Java</option>
<option value="PHP">PHP</option>
<option value="Tailwind">Tailwind</option>
<option value="SASS">SASS</option>
<option value="Bootstrap">Bootstrap</option>
</select>
<button class="run-btn" id="validation-btn">Run<i
class="icon fa-solid fa-arrow-right"></i></button>
</div>
</div>
<div class="btn-grp" id="btn-grp">
<div class="btn-grp-wrapper">
<button id="accept-btn">Accept Corrections</button>
<button id="keep-btn">Continue Uncorrected</button>
<button id="retry-btn">Retry</button>
</div>
</div>
</div>
</div>
<div class="main-screen">
<div class="grid">
<div class="inner-wrapper col-12 col-5-lg">
<div class="textBox">
<div class="lang-display">
<p>Translate from:</p>
<p id="input-lang"></p>
</div>
<textarea id='validatedInput' type="text" readonly></textarea>
</div>
<button id="new-input-btn">Try New Input</button>
</div>
<div class="inner-wrapper col-12 col-2-lg">
<div class="spinner-screen" id="spinner-screen2">
<p>Translating...</p>
<div class="spinner-wrapper">
<div class="spinner-grow" role="status"></div>
<div class="spinner-grow" role="status"></div>
<div class="spinner-grow" role="status"></div>
</div>
</div>
<div id="confirm-img">
<p>Translation complete</p>
<img src="img/check-round.svg" alt="check-confirmed-icon">
</div>
</div>
<div class="inner-wrapper col-12 col-5-lg">
<div class="textBox" id="chat-card-item">
<div class="lang-display">
<p>Translate to:</p>
<p id="output-lang"></p>
</div>
<div id="output"></div>
</div>
<div class="dropdown-wrapper">
<select class="dropdown" id="another-language">
<option value="" disabled selected>Choose another language</option>
<option value="HTML5">HTML5</option>
<option value="CSS3">CSS3</option>
<option value="JavaScript">JavaScript</option>
<option value="Java">Java</option>
<option value="PHP">PHP</option>
<option value="Tailwind">Tailwind</option>
<option value="SASS">SASS</option>
<option value="Bootstrap">Bootstrap</option>
</select>
<button id="translate-btn">Run<i class="icon fa-solid fa-arrow-right"></i></button>
</div>
</div>
</div>
</div>
</div>
<footer>MDIA-QA-Final Project</footer>
<script type="module" src="js/chat-gpt.js"></script>
</body>
</html>