Skip to content

Commit

Permalink
update: demo images
Browse files Browse the repository at this point in the history
  • Loading branch information
Friedjof committed Oct 10, 2024
1 parent fdc9f79 commit d1f46c9
Show file tree
Hide file tree
Showing 11 changed files with 6 additions and 67 deletions.
57 changes: 1 addition & 56 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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/<str: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/<str: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/<str:building>/laundry/<int:machine_id>/`**
- **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/<str:building>/laundry/<int:machine_id>/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/<str:building>/laundry/<int:machine_id>/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/<str:building>/laundry/<int:machine_id>/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/<str:building>/laundry/<int:machine_id>/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

Expand Down
16 changes: 5 additions & 11 deletions static/css/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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 */
Expand Down
Binary file modified static/media/demo-404.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified static/media/demo-available.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified static/media/demo-done.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified static/media/demo-home.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/media/demo-index.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed static/media/demo-one-timer.png
Binary file not shown.
Binary file modified static/media/demo-repair.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified static/media/demo-report-defect.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified static/media/demo-set-timer.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit d1f46c9

Please sign in to comment.