본문 바로가기

11월 26일 19:43 기준 · 10분마다 새 소식을 확인합니다

광고나 제휴로 순서를 바꾸지 않습니다 · pick 기준 보기 ›
소식 받기
코딩 · 개발

인터랙티브 메시지 HTML 제작

클릭 이벤트로 숨겨진 메시지를 보여주는 간단한 이벤트용 웹페이지를 빠르게 구현할 때 활용합니다.

추천 툴
공통AI 분류
쓰인 기법
역할 부여 · 예시 제공 · 기술 스택 지정

프롬프트 원문

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>
```
한국어 풀이 보기(참고용)
웹 개발자로 활동하세요. 당신의 과제는 연인을 위한 간단하고 시각적으로 매력적인 HTML 페이지를 제작하는 것입니다. 당신의 과제는 클릭 시 아름다운 메시지가 표시되는 인터랙티브 페이지를 만드는 것입니다.

다음 사항을 수행해야 합니다:
- HTML을 사용하여 페이지 구조를 잡습니다.
- 매력적이면서도 무겁지 않게 CSS로 스타일을 적용합니다.
- JavaScript를 사용하여 클릭 이벤트를 처리하고 'دوستت دارم'이라는 메시지를 표시합니다.

예시:
```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>
```
  • 활용메시지 문구나 배경색, 폰트 스타일을 원하는 디자인에 맞게 수정해 사용하세요.
  • 활용Fade-in 애니메이션 등 시각 효과를 추가하도록 프롬프트를 확장할 수 있습니다.

출처 · prompts.chat · Interactive Love Message HTML Page — 원문은 출처에 게시된 그대로이며, 권리는 원작자에게 있습니다.

웹 화면(HTML) 결과

Gemini로 프롬프트를 실행해 생성한 화면입니다. 화면 안에서 직접 조작하실 수 있습니다.

로맨틱한 분위기의 캔버스 하트 파티클 엔진과 3D 카드 뒤집기 애니메이션을 결합하여, 클릭 시 페르시아어 메시지 'دوستت دارم'이 우아하게 등장하도록 구현한 인터랙티브 모션 웹페이지입니다. 사용자가 조작하지 않아도 배경의 미광 입자와 하트가 자동으로 흐르며, 클릭과 마우스 이동에 따라 입체적인 틸트 및 파티클 폭발 연출을 제공합니다.

인터랙티브 메시지 HTML 제작 실행 결과
새 창에서 보기 ↗데스크톱 1280px 화면을 0%로 보이는 중격리된 환경에서 실행되며 외부와 통신하지 않습니다.
실행 입력값 보기
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>mopick 로맨틱 메신저 - 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>
```

텍스트 결과

Gemini로 실행한 결과입니다. 입력 항목에는 국내 환경의 예시값을 적용했습니다(AI 생성 — 사실 확인 필요).

실행 입력값 보기
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>mopick 로맨틱 메신저 - 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>
```

로맨틱한 분위기의 캔버스 하트 파티클 엔진과 3D 카드 뒤집기 애니메이션을 결합하여, 클릭 시 페르시아어 메시지 'دوستت دارم'이 우아하게 등장하도록 구현한 인터랙티브 모션 웹페이지입니다. 사용자가 조작하지 않아도 배경의 미광 입자와 하트가 자동으로 흐르며, 클릭과 마우스 이동에 따라 입체적인 틸트 및 파티클 폭발 연출을 제공합니다.

mopick 개선안

원문을 더 잘 동작하게 고쳐 쓴 프롬프트

원문을 그대로 넣으면 AI 가 매번 다르게 답하거나 중요한 부분을 빠뜨릴 수 있습니다. 개선안은 원문의 뜻과 언어는 그대로 두고 역할 · 바꿔 넣을 입력 칸 · 결과 형식 · 지킬 조건을 보완해 다시 쓴 버전입니다. 원문과 같은 곳(ChatGPT · Claude 등)에 그대로 붙여 넣어 쓰면 됩니다.

AI 자체 평가 — 개선안을 쓴 AI 가 명확성 · 구체성 · 결과 형식 · 재사용성 기준(100점)으로 직접 매긴 점수 · 결과를 돌려 검증한 값은 아님

원문68
개선안92

원문의 문제 → 개선안에서 고친 점

  • 입력 칸레슨 05 배우기 ›

    원문 · 없음바꿔 넣을 자리가 표시돼 있지 않아 쓸 때마다 원문을 직접 고쳐야 했습니다.

    개선 · 4개[دوستت دارم] · [Custom Message] · [Page Title] 외 1개

  • 작업 순서레슨 07 배우기 ›

    원문 · 없음작업 순서가 정해져 있지 않아 AI 가 순서를 스스로 정해야 했습니다.

    개선 · 4단계

고친 이유 (개선안을 만든 AI 의 설명)

  1. 1RTL 텍스트 방향 지정 및 페이드인 애니메이션 등 UI 요구사항 추가
  2. 2단일 파일 완전성 및 커스텀 변수([대괄호]) 명시로 재사용성 향상
  3. 3반응형 레이아웃과 구체적인 출력 형식을 지시하여 명확성 강화

원문

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>
```

개선안 · 색칠한 [칸]에 내 내용을 넣어 쓰세요

Act as a Senior Web Developer. Your task is to create a modern, responsive, and visually appealing single-file interactive HTML page for a partner.

Context & Objective:
Build an elegant web page that reveals a heartfelt message when the user interacts with a button or card.

Requirements:
1. Structure (HTML): Use semantic markup including a title, an interactive element (e.g., a button or heart icon), and a hidden message container.
2. Styling (CSS): Clean, modern aesthetic (soft background gradients, centered layout, smooth fade-in transition animations). Ensure RTL support (`dir="rtl"`) for Persian text. Keep it lightweight without external libraries.
3. Interactivity (JavaScript): Handle the click event smoothly to reveal the message: '[دوستت دارم]' (or custom text: [Custom Message]).
4. Customization: Use placeholdable variables like [Page Title] and [Accent Color] for easy reuse.

Output Format:
- Provide ONLY the complete, ready-to-run single HTML file containing embedded `<style>` and `<script>` tags.
- Include clean, readable code with brief inline comments for customization.

Template Structure:
```html
<!DOCTYPE html>
<html lang="fa" dir="rtl">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>[Page Title]</title>
    <style>
        /* Responsive flex layout & fade animation */
    </style>
</head>
<body>
    <!-- Interactive element and hidden message -->
    <script>
        // Click event with smooth visual feedback
    </script>
</body>
</html>
```

같은 분야 프롬프트 코딩 · 개발

더 보기 ›