<!DOCTYPE html>
<html>
<head>
<title>Facebook Font Generator</title>
<style>
body {
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
background-color: #f0f0f0;
font-family: Arial, sans-serif;
}
.container {
text-align: center;
}
.input-group {
margin-bottom: 20px;
}
.input-group label {
display: block;
margin-bottom: 5px;
}
input {
height: 25px;
border-radius: 25px;
padding: 5px;
text-align: center;
border: 1px solid black;
}
.output {
font-size: 24px;
font-weight: bold;
}
</style>
</head>
<body>
<div class="container">
<h1>Facebook Font Generator</h1>
<div class="input-group">
<label for="text-input">Enter Text:</label>
<input type="text" id="text-input" placeholder="Enter your text" />
</div>
<div class="input-group">
<label for="font-select">Select Font:</label>
<select id="font-select">
<option value="Arial, sans-serif">Arial</option>
<option value="Times New Roman, serif">Times New Roman</option>
<option value="Courier New, monospace">Courier New</option>
<option value="Verdana, sans-serif">Verdana</option>
<!-- Add more font options here -->
</select>
</div>
<div class="output" id="output"></div>
</div>
<script>
const textInput = document.getElementById('text-input');
const fontSelect = document.getElementById('font-select');
const output = document.getElementById('output');
function updateOutput() {
const text = textInput.value;
const font = fontSelect.value;
output.innerText = text;
output.style.fontFamily = font;
}
textInput.addEventListener('input', updateOutput);
fontSelect.addEventListener('change', updateOutput);
</script>
</body>
</html>