File size: 4,820 Bytes
64e0a17
 
 
 
 
 
 
 
e791347
64e0a17
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
e791347
64e0a17
 
 
 
 
 
 
f80294c
64e0a17
 
 
 
 
 
 
 
 
 
e791347
64e0a17
 
 
 
e791347
64e0a17
 
 
 
 
14b1cf8
64e0a17
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
14b1cf8
64e0a17
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
# app.py

import streamlit as st
import os
from components import canvas_chat, plan_generator, validator, decision_engine, pdf_chat, upload_files, ai_advisor_chat
from dotenv import load_dotenv

load_dotenv()
st.set_page_config(page_title="StartoPilot – (AI Business Copilot)", layout="wide")

# === Global Styling & Animations ===
st.markdown("""
    <style>
    .fade-container {
        animation: fadeInSlide 0.9s ease-in-out;
        opacity: 0;
        animation-fill-mode: forwards;
    }
    @keyframes fadeInSlide {
        from { opacity: 0; transform: translateY(20px); }
        to { opacity: 1; transform: translateY(0); }
    }

    .stButton>button {
        transition: all 0.3s ease-in-out;
        border-radius: 12px;
        font-weight: bold;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    }

    .stButton>button:hover {
        transform: scale(1.05);
        box-shadow: 0 0 15px rgba(249, 197, 78, 0.6);
    }

    h1, h2, h3 {
        color: rgb(39, 124, 160);
    }

    .sidebar .sidebar-content {
        padding: 1rem;
    }

    .sidebar .block-container {
        padding-top: 2rem;
    }

    .hero-title {
        font-size: 3rem;
        font-weight: bold;
        color: rgb(39, 124, 160);
    }

    .tagline {
        font-size: 1.3rem;
        color: rgb(67, 168, 137);
        margin-top: -0.5rem;
    }

    .feature-box {
        background-color: rgba(249, 197, 78, 0.1);
        border-left: 5px solid rgb(249, 197, 78);
        padding: 1rem;
        margin: 1rem 0;
        border-radius: 10px;
    }

    .main > div {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
        padding-left: 3rem !important;
        padding-right: 3rem !important;
    }
    </style>
""", unsafe_allow_html=True)

# === Sidebar Navigation ===
st.sidebar.title("🧭 StartoPilot")
st.sidebar.markdown("Automate your business strategy with AI πŸ€–")

page = st.sidebar.radio("πŸ“‚ Navigate", [
    "🏠 Home",
    "πŸ“€ Upload Business Docs",
    "🧠 Canvas Assistant",
    "πŸ“‘ Auto Plan Generator",
    "πŸ’¬ PDF Q&A",
    "βœ… Validate Canvas",
    "🎯 Strategy Suggestions",
    "πŸ’¬ Ask AI Advisor"
])

# === Page Routing ===
if page == "🏠 Home":
    st.markdown('<div class="fade-container">', unsafe_allow_html=True)

    st.markdown("""
        <div class="hero-title">πŸš€ StartoPilot – (Your AI Business Copilot)</div>
        <div class="tagline">Build smart business plans, strategies, and insights with zero guesswork.</div>
    """, unsafe_allow_html=True)

    st.markdown("<br>", unsafe_allow_html=True)
    st.markdown("## πŸ” What You Can Do with StartoPilot:")

    features = [
        ("πŸ“€ Upload Documents", "Upload PDFs or Drive link for business data"),
        ("🧠 Canvas Builder", "AI guides you through the Business Model Canvas"),
        ("πŸ“‘ Plan Generator", "Generate a detailed business plan or pitch deck"),
        ("πŸ’¬ Ask Your Documents", "AI answers questions from uploaded file"),
        ("βœ… Model Validator", "Get AI-powered feedback and suggestions"),
        ("🎯 Strategic Suggestions", "Let AI recommend smart business actions"),
        ("πŸ’¬ Ask AI Advisor", "Chat with AI to explore ideas, pivots, improvements")
    ]

    for icon, desc in features:
        st.markdown(f'<div class="feature-box"><b>{icon}</b>: {desc}</div>', unsafe_allow_html=True)

    st.markdown('</div>', unsafe_allow_html=True)

elif page == "πŸ“€ Upload Business Docs":
    st.markdown('<div class="fade-container">', unsafe_allow_html=True)
    upload_files.run_upload_files()
    st.markdown('</div>', unsafe_allow_html=True)

elif page == "🧠 Canvas Assistant":
    st.markdown('<div class="fade-container">', unsafe_allow_html=True)
    canvas_chat.run_canvas_chat()
    st.markdown('</div>', unsafe_allow_html=True)

elif page == "πŸ“‘ Auto Plan Generator":
    st.markdown('<div class="fade-container">', unsafe_allow_html=True)
    plan_generator.run_plan_generator()
    st.markdown('</div>', unsafe_allow_html=True)

elif page == "πŸ’¬ PDF Q&A":
    st.markdown('<div class="fade-container">', unsafe_allow_html=True)
    pdf_chat.run_pdf_qa()
    st.markdown('</div>', unsafe_allow_html=True)

elif page == "βœ… Validate Canvas":
    st.markdown('<div class="fade-container">', unsafe_allow_html=True)
    validator.run_validator()
    st.markdown('</div>', unsafe_allow_html=True)

elif page == "🎯 Strategy Suggestions":
    st.markdown('<div class="fade-container">', unsafe_allow_html=True)
    decision_engine.run_decision_engine()
    st.markdown('</div>', unsafe_allow_html=True)

elif page == "πŸ’¬ Ask AI Advisor":
    st.markdown('<div class="fade-container">', unsafe_allow_html=True)
    ai_advisor_chat.run_ai_advisor_chat()
    st.markdown('</div>', unsafe_allow_html=True)