Welcome to WordPress. This is your first post. Edit or delete it, then start writing!
Blog
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Article Prompt Generator</title>
<style>
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
background-color: #eef1f5;
margin: 0;
padding: 0;
}
.container {
max-width: 900px;
margin: 50px auto;
background: #fff;
padding: 30px;
border-radius: 12px;
box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
h1 {
text-align: center;
font-size: 2rem;
color: #222;
margin-bottom: 15px;
}
p {
text-align: center;
font-size: 0.95rem;
color: #555;
margin-bottom: 25px;
}
textarea, input {
width: 100%;
padding: 10px;
font-size: 0.95rem;
margin-bottom: 20px;
border-radius: 6px;
border: 1px solid #ccc;
box-sizing: border-box;
}
button {
padding: 10px;
font-size: 1rem;
background-color: #2563eb;
color: white;
border: none;
border-radius: 6px;
cursor: pointer;
transition: background-color 0.3s;
width: 100%;
}
button:hover {
background-color: #1e40af;
}
.output-block {
margin-top: 15px;
background: #f9f9f9;
padding: 15px;
border-radius: 10px;
position: relative;
}
.output-block textarea {
height: 120px;
font-size: 0.9rem;
background: #f4f4f4;
border: 1px solid #bbb;
border-radius: 5px;
resize: none;
}
.copy-btn {
position: absolute;
top: 12px;
right: 12px;
padding: 6px 10px;
font-size: 0.85rem;
background-color: #4caf50;
color: white;
border: none;
border-radius: 4px;
cursor: pointer;
}
.copy-btn:hover {
background-color: #388e3c;
}
</style>
</head>
<body>
<div class="container">
<h1>Article Prompt Generator</h1>
<p>Enter up to 10 keywords (one per line) to instantly generate writing instructions.</p>
<textarea id="keywordBox" placeholder="Enter 10 keywords, one per line..."></textarea>
<button onclick="generateInstructions()">Generate Instructions</button>
<div id="outputs"></div>
</div>
<script>
function generateInstructions() {
const keywords = document.getElementById("keywordBox").value.split('\n').filter(k => k.trim());
const outputs = document.getElementById("outputs");
outputs.innerHTML = '';
keywords.slice(0, 10).forEach((keyword) => {
const block = document.createElement('div');
block.className = 'output-block';
const textarea = document.createElement('textarea');
textarea.readOnly = true;
textarea.value = `Write a professional article on the topic I provide. {${keyword.trim()}}
Use an <h1> tag for the title. Add a short description right after the title (1–2 lines summarizing the article). Write 2 to 4 main paragraphs. Each paragraph must start with an <h2> tag and an appropriate heading. End the article with a conclusion that starts with <h2> Conclusion. Maintain a formal and professional tone throughout the article.`;
const copyBtn = document.createElement('button');
copyBtn.textContent = 'Copy';
copyBtn.className = 'copy-btn';
copyBtn.onclick = () => {
navigator.clipboard.writeText(textarea.value);
copyBtn.textContent = 'Copied!';
setTimeout(() => copyBtn.textContent = 'Copy', 1500);
};
block.appendChild(copyBtn);
block.appendChild(textarea);
outputs.appendChild(block);
});
}
</script>
</body>
</html>