chore: separate JS and CSS files from HTML

This commit is contained in:
2025-08-24 21:28:02 +02:00
parent 2bbb7fa9e6
commit b060fcfc08
5 changed files with 635 additions and 546 deletions

38
public/README.md Normal file
View File

@@ -0,0 +1,38 @@
# SPORE UI Frontend
This directory contains the frontend files for the SPORE UI application.
## File Structure
- **`index.html`** - Main HTML page with minimal markup
- **`styles.css`** - All CSS styles and animations
- **`script.js`** - All JavaScript functionality and API interactions
## Features
- **Responsive Design**: Works on all screen sizes
- **Modern UI**: Glassmorphism design with smooth animations
- **Interactive Cards**: Clickable cluster member cards
- **Real-time Data**: Auto-refreshes every 30 seconds
- **Expandable Details**: Click cards to see detailed node information
## How It Works
1. **HTML Structure**: Clean, semantic markup
2. **CSS Styling**: Modern design with CSS Grid and Flexbox
3. **JavaScript Logic**: API client, event handling, and DOM manipulation
## Browser Support
- Modern browsers with ES6+ support
- CSS Grid and Flexbox support required
- Fetch API support required
## Development
To modify the UI:
- **Layout**: Edit `index.html`
- **Styling**: Edit `styles.css`
- **Functionality**: Edit `script.js`
All files are automatically served by the Express backend.