본문 바로가기

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

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

사이드바 대시보드 UI 개발

반응형 웹 대시보드의 modern 사이드바 메뉴 인터페이스를 빠른 시일 내에 개발할 때 사용합니다.

추천 툴
CursorAI 분류
쓰인 기법
역할 부여 · 제약 조건 설정

프롬프트 원문

Cursor로 실행
Act as a Frontend Developer. You are tasked with designing a sidebar dashboard interface that is both modern and user-friendly. Your responsibilities include:

- Creating a responsive layout using HTML5 and CSS3.
- Implementing interactive elements with JavaScript for dynamic content updates.
- Ensuring the sidebar is easily navigable and accessible, with collapsible sections for different functionalities.
- Using best practices for UX/UI design to enhance user experience.

Rules:
- Maintain clean and organized code.
- Ensure cross-browser compatibility.
- Optimize for mobile and desktop views.
한국어 풀이 보기(참고용)
프론트엔드 개발자 역할을 수행하세요. 당신은 현대적이고 사용자 친화적인 사이드바 대시보드 인터페이스를 설계하는 임무를 맡았습니다. 책임 사항은 다음과 같습니다:

- HTML5와 CSS3를 사용하여 반응형 레이아웃을 생성합니다.
- JavaScript로 동적 콘텐츠 업데이트를 위한 대화형 요소를 구현합니다.
- 다양한 기능을 위해 접고 펼칠 수 있는 섹션을 갖추어 사이드바를 쉽게 탐색하고 접근할 수 있도록 합니다.
- 사용자 경험 향상을 위해 UX/UI 디자인 모범 사례를 따릅니다.

규칙:
- 깨끗하고 잘 정돈된 코드를 유지하세요.
- 크로스 브라우저 호환성을 보장하세요.
- 모바일 및 데스크톱 뷰 모두에 최적화하세요.
  • 활용Tailwind CSS나 React 환경이 필요하다면 해당 프레임워크 제약조건을 규칙에 추가하세요.
  • 활용다크모드 지원 기능을 추가하도록 규칙을 수정하면 완성도가 올라갑니다.

출처 · prompts.chat · Sidebar Dashboard Design — 원문은 출처에 게시된 그대로이며, 권리는 원작자에게 있습니다.

텍스트 결과

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

실행 입력값 보기
Act as a Frontend Developer. You are tasked with designing a sidebar dashboard interface that is both modern and user-friendly. Your responsibilities include:

- Creating a responsive layout using HTML5 and CSS3.
- Implementing interactive elements with JavaScript for dynamic content updates.
- Ensuring the sidebar is easily navigable and accessible, with collapsible sections for different functionalities.
- Using best practices for UX/UI design to enhance user experience.

Rules:
- Maintain clean and organized code.
- Ensure cross-browser compatibility.
- Optimize for mobile and desktop views.

모던하고 웹 접근성을 고려한 반응형 사이드바 대시보드 인터페이스 코드 구조입니다.

<!DOCTYPE html>
<html lang="ko">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Responsive Sidebar Dashboard</title>
  <style>
    :root { --bg-color: #1e293b; --hover-color: #334155; --text-color: #f8fafc; }
    * { box-sizing: border-box; margin: 0; padding: 0; font-family: system-ui, sans-serif; }
    body { display: flex; min-height: 100vh; background: #f1f5f9; }
    .sidebar { width: 260px; background: var(--bg-color); color: var(--text-color); transition: width 0.3s ease; }
    .sidebar.collapsed { width: 70px; }
    .sidebar-header { padding: 1rem; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--hover-color); }
    .menu-item { list-style: none; }
    .menu-btn { width: 100%; padding: 12px 20px; background: none; border: none; color: inherit; text-align: left; cursor: pointer; display: flex; justify-content: space-between; }
    .menu-btn:hover { background: var(--hover-color); }
    .submenu { display: none; background: #0f172a; list-style: none; }
    .submenu.open { display: block; }
    .submenu a { display: block; padding: 10px 30px; color: #94a3b8; text-decoration: none; }
    .submenu a:hover { color: #fff; }
    @media (max-width: 768px) {
      .sidebar { position: fixed; height: 100%; transform: translateX(-100%); }
      .sidebar.mobile-open { transform: translateX(0); }
    }
  </style>
</head>
<body>
  <aside class="sidebar" id="sidebar">
    <div class="sidebar-header">
      <h2>Dashboard</h2>
      <button id="toggle-btn" aria-label="Toggle Sidebar">☰</button>
    </div>
    <nav>
      <ul>
        <li class="menu-item">
          <button class="menu-btn" onclick="toggleSubmenu(this)">통계 분석 <span>▾</span></button>
          <ul class="submenu">
            <li><a href="#">일간 리포트</a></li>
            <li><a href="#">월간 리포트</a></li>
          </ul>
        </li>
      </ul>

mopick 개선안

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

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

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

원문68
개선안88

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

  • 입력 칸레슨 05 배우기 ›

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

    개선 · 2개[target application/dashboard type, e.g., Analytics Dashboard] · [preferred framework, e.g., React]

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

  1. 1코드 블록 분리 및 명확한 출력 형식을 지정함.
  2. 2ARIA 접근성 표준 및 반응형 제약 조건을 구체화함.
  3. 3커스텀 파라미터[대괄호]를 추가해 재사용성을 제고함.

이 개선안에 쓰인 기법 — 프롬프트 클래스에서 배우기

03결과 모양 정하기05입력 칸으로 템플릿 만들기09구역을 나눠 쓰기

클래스 전체 ›

원문

Act as a Frontend Developer. You are tasked with designing a sidebar dashboard interface that is both modern and user-friendly. Your responsibilities include:

- Creating a responsive layout using HTML5 and CSS3.
- Implementing interactive elements with JavaScript for dynamic content updates.
- Ensuring the sidebar is easily navigable and accessible, with collapsible sections for different functionalities.
- Using best practices for UX/UI design to enhance user experience.

Rules:
- Maintain clean and organized code.
- Ensure cross-browser compatibility.
- Optimize for mobile and desktop views.

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

Act as a Senior Frontend Developer. Design a modern, responsive, and accessible sidebar dashboard interface tailored for [target application/dashboard type, e.g., Analytics Dashboard].

Task & Requirements:
- Code Structure: Provide clean HTML5, CSS3 (Flexbox/Grid), and vanilla JavaScript (or [preferred framework, e.g., React]).
- Accessibility & UX: Include ARIA attributes (e.g., aria-expanded, aria-controls) for full navigation accessibility.
- Responsiveness: Implement a mobile-first layout optimized for both mobile and desktop screens.
- Interactivity: Build smooth sidebar toggle mechanisms and dynamic content updates.

Output Format:
1. Production-ready code separated into clear HTML, CSS, and JS blocks.
2. Brief summary of key UI/UX design choices and browser compatibility notes.

Rules:
- Write clean, well-commented, and cross-browser compatible code.
- Do not use external CSS/JS libraries unless specified.

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

더 보기 ›