File size: 5,024 Bytes
16c170c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Headline Generator</title>
    <link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap" rel="stylesheet">
    <style>

        body {

            font-family: 'Inter', sans-serif;

            margin: 0;

            background-color: #1a1a2e;

            color: #fff;

        }



        .navbar {

            background-color: #e63946;

            padding: 1rem;

            display: flex;

            justify-content: space-between;

            align-items: center;

        }



        .navbar .logo {

            font-size: 1.5rem;

            font-weight: bold;

            color: #fff;

        }



        .navbar .bulk-generator {

            background-color: #fff;

            color: #e63946;

            padding: 0.5rem 1rem;

            border-radius: 5px;

            font-weight: bold;

            text-decoration: none;

            cursor: pointer;

        }



        .container {

            text-align: center;

            padding: 2rem;

        }



        .container h1 {

            font-size: 2.5rem;

            margin-bottom: 1rem;

        }



        .container p {

            font-size: 1rem;

            margin-bottom: 2rem;

        }



        .headline-box {

            background-color: #2d2d44;

            border-radius: 10px;

            padding: 2rem;

            width: 90%;

            max-width: 600px;

            margin: 0 auto 2rem auto;

            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);

        }



        .headline-box input {

            width: 100%;

            padding: 0.8rem;

            margin: 1rem 0;

            border: none;

            border-radius: 5px;

        }



        .headline-box button {

            background-color: #e63946;

            color: #fff;

            border: none;

            padding: 0.8rem 1.5rem;

            border-radius: 5px;

            font-size: 1rem;

            cursor: pointer;

        }



        .headline-box button:hover {

            background-color: #b4343a;

        }



        .predicted-headline {

            margin-top: 2rem;

            opacity: 0;

            transform: translateY(20px);

            transition: opacity 0.5s, transform 0.5s;

            background-color: #2d2d44;

            color: #ffdd57;

            padding: 1rem;

            border-radius: 10px;

            width: 90%;

            max-width: 600px;

            margin: 2rem auto;

            font-weight: bold;

            text-align: center;

            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);

        }



        .predicted-headline.visible {

            opacity: 1;

            transform: translateY(0);

        }



        .seo-score {

            margin-top: 2rem;

            background: #2d2d44;

            padding: 1rem;

            border-radius: 10px;

            text-align: center;

        }



        .seo-score .score {

            font-size: 2rem;

            font-weight: bold;

            color: #ffdd57;

        }

        .headline-box textarea {

    width: 100%; /* Takes the full width of the container */

    max-width: 600px; /* Optional: Set a maximum width */

    height: auto; /* Adjusts height dynamically if needed */

    padding: 0.8rem;

    margin: 1rem 0;

    border: none;

    border-radius: 5px;

    font-family: 'Inter', sans-serif;

    font-size: 1rem;

    resize: vertical; /* Allow users to resize vertically */

}



    </style>
</head>
<body>
    <div class="navbar">
        <div class="logo">Avrotac Team_257</div>
        <a href="#" class="bulk-generator">LogicLooM 3.0</a>

    </div>

    <div class="container">
        <h1>Headline Generator</h1>
        <p>Effortlessly generate eye-catching headlines with AI. All we need is a topic from you.</p>

        <div class="headline-box">
            <h2>AI-Powered Headline Generator</h2>
            <form action="/" method="post">
                <!-- <input type="" name="article" placeholder="Enter your article here" id="topic-input" required> -->
                <textarea name="article" id="topic-input" placeholder="Enter your article here" rows="8" required></textarea>

                <button type="submit">Generate</button>
            </form>
        </div>

        {% if headline %}
        <div class="predicted-headline visible">
            {{ headline }}
        </div>
        {% else %}
        <div class="predicted-headline" id="predicted-headline">
            Your generated headline will appear here!
        </div>
        {% endif %}

        <div class="seo-score">
            <p>Desing and develop by Team_257 Avrotac</p>
            <div class="score">LogicLooM 3.0</div>
            <p>Generate Heading form News Article </p>
        </div>
    </div>
</body>
</html>