File size: 2,232 Bytes
ae49b72
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
import streamlit as st

# Set page configuration (only once in main.py)
st.set_page_config(page_title="AI Generator App", page_icon="🎡", layout="wide")

# Custom CSS to improve the appearance
st.markdown("""

    <style>

    .stApp {

        background-image:linear-gradient(to bottom, #000000 , #0a0908, #250902, #641220);

        font-family: 'Helvetica', sans-serif;

    }

    .main-title {

        font-size: 3.5rem !important;

        color: #f1faee;

        text-align: center;

        margin-bottom: 0.5rem;

        font-weight: bold;

    }

    .subtitle {

        font-size: 1.5rem;

        color: #f1faee;

        text-align: center;

        margin-bottom: 3rem;

    }

    .stButton button {

        background-color: #4CAF50;

        color: white;

        padding: 15px 32px;

        font-size: 1.2rem;

        margin: 10px;

        border-radius: 12px;

        border: none;

        cursor: pointer;

        transition: background-color 0.3s ease;

    }

    .stButton button:hover {

        background-color: #45a049;

    }

    .section-title {

        color: #fff;

        font-size: 1.5rem;

        margin-bottom: 1rem;

    }

    .section-description {

        color: #ddd;

        margin-bottom: 1.5rem;

    }

    </style>

""", unsafe_allow_html=True)

# Main page content
st.markdown("<h1 class='main-title'>🎨 AI Music and Image Generator</h1>", unsafe_allow_html=True)
st.markdown("<p class='subtitle'>Welcome to the AI Generator app! Use the navigation menu to switch between generating music or images based on text prompts.</p>", unsafe_allow_html=True)

# Brief description of each section
st.markdown("### Available Sections:")
col1, col2 = st.columns(2)

with col1:
    st.markdown("<div class='section-title'>🎡 Music Generator</div>", unsafe_allow_html=True)
    st.markdown("<div class='section-description'>Transform your ideas into music using AI.</div>", unsafe_allow_html=True)


with col2:
    st.markdown("<div class='section-title'>πŸ–ΌοΈ Image Generator</div>", unsafe_allow_html=True)
    st.markdown("<div class='section-description'>Generate stunning images from your text descriptions.</div>", unsafe_allow_html=True)