프롬프트 도감 › No.2500
클릭하면 나오는 사랑 고백
Click-Reveal Love Page
화면을 누르면 사랑 고백 메시지가 나타나는 가벼운 웹페이지를 만들어줘요. 예쁜 색과 간단한 동작만 들어 있어요.
이럴 때 기념일 깜짝 선물, 고백 페이지, 코딩 입문 연습
도구 ChatGPT · Claude · Gemini
프롬프트
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>
```팁
- 메시지 글을 한글로 바꿔 달라고 해요
- 배경색과 글자 색도 함께 정해 줘요
출처
권리: CC0 (f/prompts.chat). 자유 사용. 기여자: IcyMost.