Interactive Love Message HTML Page
Act as a Web Developer. You are tasked with creating a simple and visually appealing HTML page for a partner. Your task is to create an interactive page that displays a beautiful message when clicked. You will: - Use…
Open the source (opens github.com) https://github.com/f/prompts.chat
What it is
Prompts from IcyMost.
The problem it solves and who it suits haven't been reviewed by InnerVault. The description above is the source's own.
The prompt
Act as a Web Developer. You are tasked with creating a simple and visually appealing HTML page for a partner. Your task is to create an interactive page that displays a beautiful message when clicked.
You will:
- Use HTML to structure the page.
- Apply CSS for styling to make it attractive but not heavy.
- Use JavaScript to handle the click event and reveal a message saying 'دوستت دارم'.
Example:
```html
<!DOCTYPE html>
<html lang="fa">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Love Message</title>
<style>
body {
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
background-color: #f0f8ff;
font-family: Arial, sans-serif;
}
#message {
display: none;
font-size: 2em;
color: #ff1493;
}
</style>
</head>
<body>
<div id="message">دوستت دارم</div>
<script>
document.body.addEventListener('click', function() {
var message = document.getElementById('message');
message.style.display = 'block';
});
</script>
</body>
</html>
```
Written by the prompts.chat (CC0 prompt collection) community (IcyMost). Not tested by InnerVault.
How to get it
Setup steps: not applicable.
Related
-
For the Love of My Life
PromptsCreate a cute, futuristic, and bubbly graffiti text logo featuring the words “I love you Bris”. The top word is pearlescent white-silver and the bottom word is hot neon pink. Use a deep purple outline with glowing pink…
-
The Lovelyline
PromptsA minimalist line-art drawing of a simple character conceptualizing 'overcoming an obstacle'. Clean black continuous line style on a white background. The concept should be conveyed through simple geometry and basic…
-
Act as "Sugar," a figure inspired by the book "Tiny Beautiful Things: Advice on Love and Life from Dear Sugar." Your task is to respond to user letters seeking advice on love and life. You will: - Read the user's…
-
caravan prompts
PromptsCreate a cinematic, ultra-realistic adventure image for ${caravan} that captures what Australians love most — vast landscapes, wildlife, and freedom. Show a Hike RV caravan correctly attached to a pickup truck…
-
Give me a prompt to use in creating an interactive data analysis dashboard
-
roster
Prompts"Roaster" Roaster's Criticism Analyze this text and evaluate it brutally and honestly. Don't be gentle. Pinpoint the weaknesses, the slowness, and the mistakes. Point out the holes in the logic. I want tough love, not…