-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
50 lines (45 loc) · 1.84 KB
/
index.html
File metadata and controls
50 lines (45 loc) · 1.84 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>StackSniper - Debug Errors Instantly</title>
<link rel="stylesheet" href="/static/css/style.css">
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap" rel="stylesheet">
</head>
<body>
<div class="container">
<header class="header">
<h1>🚀 StackSniper</h1>
<p>Paste your error message and get instant solutions from Stack Overflow</p>
<nav style="margin-top: 1rem;">
<a href="templates/about.html" style="color: white; text-decoration: underline;">About</a>
</nav>
</header>
<main class="main-content">
<div class="input-section">
<textarea
id="errorInput"
placeholder="Paste your error message here... Example: NameError: name 'x' is not defined"
rows="4"
></textarea>
<button id="snipeBtn" onclick="getSolution()">Snipe Solution</button>
</div>
<div class="result-section" id="resultSection" style="display: none;">
<div class="result-header">
<h3>Top Solution</h3>
<div class="loader" id="loader"></div>
</div>
<div class="result-content" id="resultContent">
<!-- Results will appear here -->
</div>
</div>
<div class="error-message" id="errorMessage" style="display: none;"></div>
</main>
<footer class="footer">
<p>Powered by Stack Overflow API • Built with FastAPI</p>
</footer>
</div>
<script src="/static/js/script.js"></script>
</body>
</html>