diff --git a/README.md b/README.md index ebec385..22d7252 100644 --- a/README.md +++ b/README.md @@ -105,62 +105,7 @@ Once the server is running, you can navigate to the home page, select your build - The application updates the machine status every 10 seconds to reflect real-time changes. ## API Endpoints - -### 1. **GET `/building//`** - - **Description**: Retrieves the laundry machine status for a specific building and renders the web page. - - **Method**: `GET` - - **Parameters**: - - `building`: The code for the building. - - **Response**: HTML page with machine statuses. - -### 2. **POST `/building//`** - - **Description**: Fetches the latest machine statuses for the specified building in JSON format. This is used for real-time updates on the frontend. - - **Method**: `POST` - - **Parameters**: - - `building`: The code for the building. - - **Response**: JSON containing updated machine statuses. - -### 3. **POST `/building//laundry//`** - - **Description**: Sets a timer for a specific machine (washer or dryer) in the given building. - - **Method**: `POST` - - **Parameters**: - - `building`: The code for the building. - - `machine_id`: The ID of the machine. - - **Request Body**: - - `timerDuration`: The duration (in minutes) to set the timer. - - **Response**: Success or failure message in JSON format. - -### 4. **POST `/building//laundry//available/`** - - **Description**: Marks a specific machine as available after it has finished running. - - **Method**: `POST` - - **Parameters**: - - `building`: The code for the building. - - `machine_id`: The ID of the machine. - - **Response**: Success or failure message in JSON format. - -### 5. **GET `/building//laundry//notes/`** - - **Description**: Retrieves any notes or comments associated with the specified machine. - - **Method**: `GET` - - **Parameters**: - - `building`: The code for the building. - - `machine_id`: The ID of the machine. - - **Response**: JSON containing machine notes. - -### 6. **POST `/building//laundry//defect/`** - - **Description**: Marks a machine as defective if it is broken or malfunctioning. - - **Method**: `POST` - - **Parameters**: - - `building`: The code for the building. - - `machine_id`: The ID of the machine. - - **Response**: Success or failure message in JSON format. - -### 7. **POST `/building//laundry//repair/`** - - **Description**: Marks a machine as repaired after it has been fixed. - - **Method**: `POST` - - **Parameters**: - - `building`: The code for the building. - - `machine_id`: The ID of the machine. - - **Response**: Success or failure message in JSON format. +> Coming soon… ## Configuration diff --git a/static/css/styles.css b/static/css/styles.css index 05a216e..6888be0 100644 --- a/static/css/styles.css +++ b/static/css/styles.css @@ -179,6 +179,11 @@ h1 { } /* Extra small devices (phones, up to 360px) */ +.header-image { + width: 40px; + height: 40px; +} + @media (max-width: 360px) { h1 { font-size: 4px; @@ -232,17 +237,6 @@ h1 { } } -/* Extra large devices (large desktops, 1200px and up) */ -@media (min-width: 1200px) { - h1 { - font-size: 2.5rem; - } - .header-image { - width: 120px; - height: 120px; - } -} - .custom-404-background { background-color: rgba(0, 0, 0, 0.8); /* 80% transparent dark background */ border-radius: 10px; /* Rounded corners */ diff --git a/static/media/demo-404.png b/static/media/demo-404.png index ea1103c..a790556 100644 Binary files a/static/media/demo-404.png and b/static/media/demo-404.png differ diff --git a/static/media/demo-available.png b/static/media/demo-available.png index be0f0fa..b95a974 100644 Binary files a/static/media/demo-available.png and b/static/media/demo-available.png differ diff --git a/static/media/demo-done.png b/static/media/demo-done.png index d1b3d35..908a01c 100644 Binary files a/static/media/demo-done.png and b/static/media/demo-done.png differ diff --git a/static/media/demo-home.png b/static/media/demo-home.png index 684cde5..88de829 100644 Binary files a/static/media/demo-home.png and b/static/media/demo-home.png differ diff --git a/static/media/demo-index.png b/static/media/demo-index.png new file mode 100644 index 0000000..18d936b Binary files /dev/null and b/static/media/demo-index.png differ diff --git a/static/media/demo-one-timer.png b/static/media/demo-one-timer.png deleted file mode 100644 index 17a71ec..0000000 Binary files a/static/media/demo-one-timer.png and /dev/null differ diff --git a/static/media/demo-repair.png b/static/media/demo-repair.png index d0b8b00..224aa65 100644 Binary files a/static/media/demo-repair.png and b/static/media/demo-repair.png differ diff --git a/static/media/demo-report-defect.png b/static/media/demo-report-defect.png index 8a27e77..aa1d115 100644 Binary files a/static/media/demo-report-defect.png and b/static/media/demo-report-defect.png differ diff --git a/static/media/demo-set-timer.png b/static/media/demo-set-timer.png index 69c3fc7..8da732a 100644 Binary files a/static/media/demo-set-timer.png and b/static/media/demo-set-timer.png differ