Spaces:
Sleeping
Sleeping
Vargock
commited on
Commit
·
efb595a
1
Parent(s):
36075ce
Added better CSS visuals
Browse files- templates/index.html +72 -9
templates/index.html
CHANGED
|
@@ -6,25 +6,88 @@
|
|
| 6 |
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 7 |
<title>Text Summarizer</title>
|
| 8 |
<style>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 9 |
body {
|
| 10 |
-
font-family:
|
| 11 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 12 |
}
|
| 13 |
|
| 14 |
textarea {
|
| 15 |
width: 100%;
|
| 16 |
-
height: 200px;
|
| 17 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 18 |
}
|
| 19 |
|
| 20 |
input[type="submit"] {
|
| 21 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 22 |
}
|
| 23 |
|
| 24 |
.summary {
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 28 |
}
|
| 29 |
</style>
|
| 30 |
</head>
|
|
@@ -32,7 +95,7 @@
|
|
| 32 |
<body>
|
| 33 |
<h1>Text Summarizer</h1>
|
| 34 |
<form method="POST">
|
| 35 |
-
<textarea name="text" placeholder="Paste your text here">{{ text }}</textarea
|
| 36 |
<input type="submit" value="Summarize">
|
| 37 |
</form>
|
| 38 |
|
|
|
|
| 6 |
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 7 |
<title>Text Summarizer</title>
|
| 8 |
<style>
|
| 9 |
+
/* Reset some defaults */
|
| 10 |
+
* {
|
| 11 |
+
box-sizing: border-box;
|
| 12 |
+
margin: 0;
|
| 13 |
+
padding: 0;
|
| 14 |
+
}
|
| 15 |
+
|
| 16 |
body {
|
| 17 |
+
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
|
| 18 |
+
background: #f5f7fa;
|
| 19 |
+
color: #333;
|
| 20 |
+
display: flex;
|
| 21 |
+
flex-direction: column;
|
| 22 |
+
align-items: center;
|
| 23 |
+
padding: 40px 20px;
|
| 24 |
+
}
|
| 25 |
+
|
| 26 |
+
h1 {
|
| 27 |
+
color: #5c3c92;
|
| 28 |
+
margin-bottom: 30px;
|
| 29 |
+
font-size: 2.5rem;
|
| 30 |
+
text-align: center;
|
| 31 |
+
}
|
| 32 |
+
|
| 33 |
+
form {
|
| 34 |
+
width: 100%;
|
| 35 |
+
max-width: 800px;
|
| 36 |
+
display: flex;
|
| 37 |
+
flex-direction: column;
|
| 38 |
}
|
| 39 |
|
| 40 |
textarea {
|
| 41 |
width: 100%;
|
| 42 |
+
min-height: 200px;
|
| 43 |
+
padding: 15px;
|
| 44 |
+
border: 1px solid #ccc;
|
| 45 |
+
border-radius: 10px;
|
| 46 |
+
font-size: 1rem;
|
| 47 |
+
resize: vertical;
|
| 48 |
+
transition: border 0.3s;
|
| 49 |
+
}
|
| 50 |
+
|
| 51 |
+
textarea:focus {
|
| 52 |
+
border-color: #5c3c92;
|
| 53 |
+
outline: none;
|
| 54 |
}
|
| 55 |
|
| 56 |
input[type="submit"] {
|
| 57 |
+
margin-top: 20px;
|
| 58 |
+
padding: 15px 25px;
|
| 59 |
+
font-size: 1.1rem;
|
| 60 |
+
background: linear-gradient(90deg, #5c3c92, #8f5de8);
|
| 61 |
+
color: white;
|
| 62 |
+
border: none;
|
| 63 |
+
border-radius: 10px;
|
| 64 |
+
cursor: pointer;
|
| 65 |
+
transition: background 0.3s, transform 0.2s;
|
| 66 |
+
}
|
| 67 |
+
|
| 68 |
+
input[type="submit"]:hover {
|
| 69 |
+
background: linear-gradient(90deg, #8f5de8, #5c3c92);
|
| 70 |
+
transform: scale(1.05);
|
| 71 |
}
|
| 72 |
|
| 73 |
.summary {
|
| 74 |
+
width: 100%;
|
| 75 |
+
max-width: 800px;
|
| 76 |
+
background: white;
|
| 77 |
+
border-radius: 10px;
|
| 78 |
+
padding: 25px;
|
| 79 |
+
margin-top: 30px;
|
| 80 |
+
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
|
| 81 |
+
}
|
| 82 |
+
|
| 83 |
+
.summary h3 {
|
| 84 |
+
margin-bottom: 15px;
|
| 85 |
+
color: #5c3c92;
|
| 86 |
+
}
|
| 87 |
+
|
| 88 |
+
.summary p {
|
| 89 |
+
line-height: 1.6;
|
| 90 |
+
font-size: 1.1rem;
|
| 91 |
}
|
| 92 |
</style>
|
| 93 |
</head>
|
|
|
|
| 95 |
<body>
|
| 96 |
<h1>Text Summarizer</h1>
|
| 97 |
<form method="POST">
|
| 98 |
+
<textarea name="text" placeholder="Paste your text here">{{ text }}</textarea>
|
| 99 |
<input type="submit" value="Summarize">
|
| 100 |
</form>
|
| 101 |
|