This project is a simple web application that retrieves and displays random poems using the PoetryDB API. Users can view a summary of each poem and click to see the full text in a modal popup.
- Fetches 3 random poems from the PoetryDB API.
- Displays poem title, author, and a short preview.
- Allows users to view the full poem in a Bootstrap modal.
- Clone or download this repository.
- Open
index.html
in your web browser.- No build steps or server required; works as a static site.
index.html
– Main HTML file, includes Bootstrap and modal for poem details.script.js
– Handles fetching poems and updating the DOM..vscode/launch.json
– VS Code launch configuration for debugging.
Open index.html
in your browser. The page will automatically fetch and display three random poems. Click "View Full Poem" to see the entire poem in a modal.