dwqqwd / templates /index1.html
Rudrameher45's picture
Upload 2 files
16c170c verified
<!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>