Skytrace
You ever look out the window and actually wonder what's floating in the air? Or what that random plant down the street is really pumping out? That's exactly why I put together SkyTrace.
You just type in your city or drop a pin, and it gives you the straight facts. You get real live air quality stats, wind direction, and a solid map of all the nearby chemical plants and toxic facilities in your area. It even has a smooth 3D globe you can spin around to check data anywhere on the planet, plus a live sci-fi radar for your local spot.
No complicated setup, just straight data. Take a look and see what's actually going on in your neighborhood.
Tech stack
- Cursor
- Gemini
Links
Prompt steps
Step 1
Act as an expert web coder. Build me a working single-file website called "SkyTrace". It is an environmental tracker that shows air quality and nearby toxic factories. Put everything in ONE single HTML file. Use inline <style> for CSS and inline <script> for JavaScript. You can use free data from the internet (like Open-Meteo for weather). But DO NOT use any outside libraries. No React, no Tailwind, no jQuery. Just plain HTML, CSS, and JS. Here are the exact rules for how the site must look and work: ### 1. LAYOUT & DESIGN - **No Scrolling:** The entire app must fit perfectly in the browser window. Use `height: 100vh; overflow: hidden;` on the body. - **Theme:** Dark mode, futuristic. Deep blue/black background. Use a glassmorphism effect for panels (slightly see-through, blurred background). Use cyan (#00f2fe) for primary accents and red (#ff0844) for danger. - **Background:** Create an animated background with slow-moving, blurry "aurora" blobs. - **Header:** A top navigation bar with the logo "SKYTRACE" and 5 tabs: Dashboard, Locations, 3D Globe, Live Radar, History. Also add a Fullscreen button. - **Tabs:** Clicking a tab hides all other pages and shows only the selected one…Step 2
Now we need to build the 3D Globe page (the tab that currently has an empty black div). Add Three.js and OrbitControls to the HTML head via CDN. Write the JavaScript to build a stunning 3D space scene. Here are the exact rules for the 3D Globe: ### 1. THE 3D SCENE - **The Earth:** Create a sphere with a high-res Earth texture (`https://unpkg.com/three-globe/example/img/earth-blue-marble.jpg`). - **The Sun:** Place a yellow glowing sphere in a FIXED position far to the top-right (e.g., x: 20, y: 15, z: 20). Add a soft glow sprite around it (reduce opacity to 0.4 so it doesn't blind the user). - **Lighting:** Add a directional light at the sun's position. Crucially, add an Ambient Light with a soft blue color (`0x6b8cae` and intensity `2.5`) so the dark side of the earth is still clearly visible and doesn't look pitch black. - **Stars:** Add 3000 tiny white particles scattered around the scene. Make them twinkle smoothly using a Math.sin() function in the animation loop. - **Space:** Make the background of the globe container pure black (`#000`). ### 2. CONTROLS & ROTATION - Use OrbitControls. Enable damping for smooth dragging. Disable panning. Limit the zoom distance. - Enab…
9 likes · 3 comments · 11 views
Comments (2)
This is really interesting man. I could see my dad loving something like this. There are a few plants near me I'll check out on here. Thanks for sharing!
thank you boss, it's my pleasure
great idea. nice job