File size: 2,629 Bytes
2691522
 
 
 
 
 
 
 
efb595a
 
 
 
 
 
 
2691522
efb595a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2691522
 
 
 
efb595a
 
 
 
 
 
 
 
 
 
 
 
2691522
 
 
efb595a
 
 
 
 
 
 
 
 
 
 
 
 
 
2691522
 
 
efb595a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2691522
 
 
 
 
 
 
efb595a
2691522
 
 
 
 
 
 
 
 
 
 
 
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
<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Text Summarizer</title>
    <style>
        /* Reset some defaults */
        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }

        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background: #f5f7fa;
            color: #333;
            display: flex;
            flex-direction: column;
            align-items: center;
            padding: 40px 20px;
        }

        h1 {
            color: #5c3c92;
            margin-bottom: 30px;
            font-size: 2.5rem;
            text-align: center;
        }

        form {
            width: 100%;
            max-width: 800px;
            display: flex;
            flex-direction: column;
        }

        textarea {
            width: 100%;
            min-height: 200px;
            padding: 15px;
            border: 1px solid #ccc;
            border-radius: 10px;
            font-size: 1rem;
            resize: vertical;
            transition: border 0.3s;
        }

        textarea:focus {
            border-color: #5c3c92;
            outline: none;
        }

        input[type="submit"] {
            margin-top: 20px;
            padding: 15px 25px;
            font-size: 1.1rem;
            background: linear-gradient(90deg, #5c3c92, #8f5de8);
            color: white;
            border: none;
            border-radius: 10px;
            cursor: pointer;
            transition: background 0.3s, transform 0.2s;
        }

        input[type="submit"]:hover {
            background: linear-gradient(90deg, #8f5de8, #5c3c92);
            transform: scale(1.05);
        }

        .summary {
            width: 100%;
            max-width: 800px;
            background: white;
            border-radius: 10px;
            padding: 25px;
            margin-top: 30px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        }

        .summary h3 {
            margin-bottom: 15px;
            color: #5c3c92;
        }

        .summary p {
            line-height: 1.6;
            font-size: 1.1rem;
        }
    </style>
</head>

<body>
    <h1>Text Summarizer</h1>
    <form method="POST">
        <textarea name="text" placeholder="Paste your text here">{{ text }}</textarea>
        <input type="submit" value="Summarize">
    </form>

    {% if summary %}
    <div class="summary">
        <h3>Summary:</h3>
        <p>{{ summary }}</p>
    </div>
    {% endif %}
</body>

</html>