프롬프트 도감 › No.1537
날씨 대시보드 앱 만들기
Weather Dashboard App
OpenWeatherMap API(날씨 정보를 주는 서비스)를 쓰는 날씨 대시보드 웹앱 코드를 만들어 달라고 해요. 현재 날씨, 5일 예보, 지역 검색, 단위 바꾸기가 들어가요.
이럴 때 코딩 연습, 나만의 시작 화면 만들기, 포트폴리오 예제
도구 ChatGPT · Claude · Gemini
프롬프트
Build a comprehensive weather dashboard using HTML5, CSS3, JavaScript and the OpenWeatherMap API. Create a visually appealing interface showing current weather conditions with appropriate icons and background changes based on weather/time of day. Display a detailed 5-day forecast with expandable hourly breakdown for each day. Implement location search with autocomplete and history, supporting both city names and coordinates. Add geolocation support to automatically detect user's location. Include toggles for temperature units (°C/°F) and time formats. Display severe weather alerts with priority highlighting. Show detailed meteorological data including wind speed/direction, humidity, pressure, UV index, and air quality when available. Include sunrise/sunset times with visual indicators. Create a fully responsive layout using CSS Grid that adapts to all device sizes with appropriate information density.
팁
- API 키(서비스 이용 비밀번호)는 환경 변수(코드 밖 설정값)로 쓰게 부탁하세요
- 도시를 서울로 정해 두면 더 간단해져요
출처
권리: CC0 (f/prompts.chat). 자유 사용. 기여자: f.