# Suno Landing Page Generator

This script generates MDX landing pages for Suno inspire features based on JSON data.

## Setup

1. Install the required dependencies:
   ```
   pip install -r requirements.txt
   ```

2. Add your Suno API key to the `.env` file:
   ```
   SUNO_API_KEY=your_suno_api_key_here
   ```

3. Ensure you have AWS CLI configured for downloading images from S3.

## Usage

1. Prepare your JSON data in the `sample.json` file. The structure should be:
   ```json
   [
     {
       "title": "Your title",
       "headline": "Your headline",
       "song_prompts": ["Prompt 1", "Prompt 2", ...],
       "image_prompts": ["Image prompt 1", "Image prompt 2", ...],
       "url_slug": "your-url-slug",
       "description": "Your detailed description",
       "page": "Short description of what the page is about"
     }
   ]
   ```

2. Run the script:
   ```
   python generate_inspire_page.py
   ```

3. Find the generated MDX files in the `generated_pages` directory, with each page in its own subdirectory based on the `url_slug`.

## Features

- Automatically generates MDX files with the proper structure
- Generates a song using Suno API based on a random prompt from the provided list
- Generates an image using Flux based on a random prompt from the provided list
- Creates a complete landing page with proper styling and content sections