File size: 3,376 Bytes
3b27d22
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
import os
import streamlit as st
from app_utils import get_gif, save_user_data


def main():
    # Define Streamlit configurations
    st.set_page_config(page_title="Instamuse", page_icon=":camera:", initial_sidebar_state='auto')

    # Sidebar configuration
    with st.sidebar:
        st.image(os.path.abspath('images/insta.png'))
        st.title("InstaMuse")
        st.subheader(
            "Welcome to InstaMuse, the ultimate tool for turning your snapshots "
            "into social media sensations!"
        )
        st.write("Start turning heads with your posts. Use InstaMuse now and watch your likes soar!")

    # Title and Style
    st.markdown("""
    <style>
    .title-font {
        font-size: 50px;
        font-weight: bold;
        font-family: 'Helvetica', sans-serif;
        color: #FF573D;
    }
    </style>
    """, unsafe_allow_html=True)
    st.markdown('<h1 class="title-font">The Worlds Best Instagram Caption Generator</h1>', unsafe_allow_html=True)

    # Subheader
    st.write(
        "### Transform your online presence—join InstaMuse to create "
        "innovative captions that increase likes and enhance your visibility."
    )

    # Gif display
    st.image(get_gif(os.path.abspath('images/insta.png')))

    # Why us?
    st.subheader('Why InstaMuse?')
    st.write("""
    - 🎨 **Creativity at your fingertips:** Generate unique captions that stand out.
    - ⏳ **Save time:** Stop spending hours trying to write the perfect caption.
    - 🚀 **Boost engagement:** Captions crafted to keep your audience engaged.
    - 💸 **Free to use:** Get access to our technology preview at no cost.
    """)

    # Success Stories
    st.subheader('Success Stories')
    cols = st.columns(2)
    with cols[0]:
        st.image(os.path.abspath('images/insta_post.png'))
    with cols[1]:
        st.write("")
        st.write('"InstaMuse helped us reach a wider audience. Our engagement rates have never been higher!" - CR')
        st.write('"Thanks to InstaMuse, our posts now resonate better with our audience, bringing more likes and comments than ever before." - LJ')
        st.write('"The creative captions we developed with InstaMuse have not only increased likes but also built lasting connections with our followers." - MK')
    
    # Sign up section
    st.subheader('Sign up here for priority access')
    st.write('Enter your details below to get early access to our innovative caption generator.')

    # Form to collect user details
    with st.form(key='user_details_form', clear_on_submit=True):
        cols = st.columns(2)
        with cols[0]:
            first_name = st.text_input("First Name")
            email = st.text_input("Email", help="We'll never share your email with anyone else.")
        with cols[1]:
            last_name = st.text_input("Last Name")
            phone = st.text_input("Phone Number", help="We'll never share your number with anyone else.")
        submit_button = st.form_submit_button("Start Using InstaMuse")
        
        if submit_button:
            if first_name and last_name and email and phone:
                save_user_data(first_name, last_name, email, phone)
                st.success("Thank you for signing up! We will be in touch soon.")
            else:
                st.error("Please fill in all the fields.")


if __name__ == "__main__":
    main()