Spaces:
Sleeping
Sleeping
Upload index.html
Browse files- index.html +126 -0
index.html
ADDED
@@ -0,0 +1,126 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<!DOCTYPE html>
|
2 |
+
<html lang="en">
|
3 |
+
<head>
|
4 |
+
<meta charset="UTF-8">
|
5 |
+
<title>Spell & Grammar Checker</title>
|
6 |
+
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@300;500;700&display=swap" rel="stylesheet">
|
7 |
+
<style>
|
8 |
+
* {
|
9 |
+
margin: 0;
|
10 |
+
padding: 0;
|
11 |
+
box-sizing: border-box;
|
12 |
+
}
|
13 |
+
|
14 |
+
body {
|
15 |
+
font-family: 'Poppins', sans-serif;
|
16 |
+
background: linear-gradient(to right, #6a11cb, #2575fc);
|
17 |
+
color: #fff;
|
18 |
+
min-height: 100vh;
|
19 |
+
padding: 40px;
|
20 |
+
}
|
21 |
+
|
22 |
+
h1 {
|
23 |
+
text-align: center;
|
24 |
+
font-weight: 700;
|
25 |
+
margin-bottom: 40px;
|
26 |
+
font-size: 2.5rem;
|
27 |
+
}
|
28 |
+
|
29 |
+
form {
|
30 |
+
max-width: 700px;
|
31 |
+
margin: auto;
|
32 |
+
background-color: rgba(255, 255, 255, 0.1);
|
33 |
+
backdrop-filter: blur(10px);
|
34 |
+
border-radius: 20px;
|
35 |
+
padding: 30px;
|
36 |
+
box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
|
37 |
+
}
|
38 |
+
|
39 |
+
textarea {
|
40 |
+
width: 100%;
|
41 |
+
height: 150px;
|
42 |
+
padding: 15px;
|
43 |
+
border-radius: 10px;
|
44 |
+
border: none;
|
45 |
+
font-size: 16px;
|
46 |
+
resize: none;
|
47 |
+
font-family: 'Poppins', sans-serif;
|
48 |
+
}
|
49 |
+
|
50 |
+
input[type="submit"] {
|
51 |
+
margin-top: 20px;
|
52 |
+
background-color: #fff;
|
53 |
+
color: #2575fc;
|
54 |
+
border: none;
|
55 |
+
padding: 12px 30px;
|
56 |
+
font-size: 18px;
|
57 |
+
font-weight: bold;
|
58 |
+
border-radius: 10px;
|
59 |
+
cursor: pointer;
|
60 |
+
transition: all 0.3s ease;
|
61 |
+
}
|
62 |
+
|
63 |
+
input[type="submit"]:hover {
|
64 |
+
background-color: #2575fc;
|
65 |
+
color: #fff;
|
66 |
+
transform: scale(1.05);
|
67 |
+
}
|
68 |
+
|
69 |
+
.output {
|
70 |
+
max-width: 700px;
|
71 |
+
margin: 30px auto;
|
72 |
+
background-color: rgba(255, 255, 255, 0.15);
|
73 |
+
backdrop-filter: blur(12px);
|
74 |
+
padding: 25px;
|
75 |
+
border-radius: 20px;
|
76 |
+
box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
|
77 |
+
}
|
78 |
+
|
79 |
+
.output h3 {
|
80 |
+
color: #fff;
|
81 |
+
margin-bottom: 10px;
|
82 |
+
}
|
83 |
+
|
84 |
+
.output p, .output li {
|
85 |
+
font-weight: 300;
|
86 |
+
line-height: 1.6;
|
87 |
+
}
|
88 |
+
|
89 |
+
.issues li {
|
90 |
+
color: #ff9f9f;
|
91 |
+
}
|
92 |
+
</style>
|
93 |
+
</head>
|
94 |
+
<body>
|
95 |
+
<h1>Spell & Grammar Checker</h1>
|
96 |
+
<form method="POST">
|
97 |
+
<textarea name="text" placeholder="Type or paste your text here..."></textarea><br>
|
98 |
+
<input type="submit" value="✨ Check Now">
|
99 |
+
</form>
|
100 |
+
|
101 |
+
{% if corrected_spelling %}
|
102 |
+
<div class="output">
|
103 |
+
<h3>✅ Corrected Spelling:</h3>
|
104 |
+
<p>{{ corrected_spelling }}</p>
|
105 |
+
</div>
|
106 |
+
{% endif %}
|
107 |
+
|
108 |
+
{% if corrected_grammar %}
|
109 |
+
<div class="output">
|
110 |
+
<h3>📝 Grammar Suggestions:</h3>
|
111 |
+
<p>{{ corrected_grammar }}</p>
|
112 |
+
</div>
|
113 |
+
{% endif %}
|
114 |
+
|
115 |
+
{% if grammar_issues %}
|
116 |
+
<div class="output issues">
|
117 |
+
<h4>🚨 Issues Found:</h4>
|
118 |
+
<ul>
|
119 |
+
{% for issue in grammar_issues %}
|
120 |
+
<li>{{ issue }}</li>
|
121 |
+
{% endfor %}
|
122 |
+
</ul>
|
123 |
+
</div>
|
124 |
+
{% endif %}
|
125 |
+
</body>
|
126 |
+
</html>
|