MohanadAfiffy commited on
Commit
309e6bd
·
verified ·
1 Parent(s): 2101548

Delete pages/Business_Hubs.py

Browse files
Files changed (1) hide show
  1. pages/Business_Hubs.py +0 -89
pages/Business_Hubs.py DELETED
@@ -1,89 +0,0 @@
1
- #!/usr/bin/env python3
2
- # -*- coding: utf-8 -*-
3
- """
4
- Created on Tue Jan 2 12:26:26 2024
5
-
6
- @author: mohanadafiffy
7
- """
8
-
9
- import streamlit as st
10
- from clients import BH_Ngo ,BH_industry
11
-
12
- def main():
13
- # Start of the form
14
- if 'form_submitted' not in st.session_state:
15
- st.session_state['form_submitted'] = False
16
-
17
- # Dictionary mapping emails to sender names
18
- email_to_sender = {
19
- "[email protected]": "Michael",
20
- "[email protected]": "James",
21
- "[email protected]": "Weronika",
22
- "[email protected]": "Paulina",
23
- "[email protected]": "Fabio",
24
- "[email protected]": "Rudradeb",
25
- "[email protected]": "Mohanad"
26
- }
27
-
28
- with st.form(key='my_form'):
29
- options = ["NGO Emails", "Industry company focused Emails"]
30
- selected_options = st.selectbox("Please select the needed features", options,key='select feature')
31
-
32
- email_options = list(email_to_sender.keys())
33
- email_receiver = st.selectbox("Please select an email address", email_options)
34
-
35
- # Display the sender name based on the selected email
36
- sender_name = email_to_sender.get(email_receiver, " ")
37
-
38
- # Submit button for the form
39
- calendly_link = st.text_input("Please write your Calendly link")
40
- submit_button = st.form_submit_button(label='Select features')
41
-
42
- # Check if the form has been submitted
43
- if submit_button:
44
- st.session_state['form_submitted'] = True
45
- if st.session_state['form_submitted']:
46
- if "NGO Emails" in selected_options :
47
- BH_Ngo(email_receiver,calendly_link,sender_name)
48
- elif "Industry company focused Emails" in selected_options :
49
- BH_industry(email_receiver,calendly_link,sender_name)
50
-
51
-
52
-
53
- if __name__ == "__main__":
54
- st.markdown(
55
- """
56
- <style>
57
- .higher-title {
58
- font-size:35px !important;
59
- color: #4A90E2; /* Shade of blue */
60
- text-align: center;
61
- font-weight: bold;
62
- margin-top: -20px; /* Adjust this value to control the height */
63
- }
64
- </style>
65
- """,
66
- unsafe_allow_html=True,
67
- )
68
-
69
- st.markdown('<p class="higher-title">SalesIntel AI</p>', unsafe_allow_html=True)
70
-
71
-
72
-
73
- logo_url = "https://i.imgur.com/WYnv26e.jpeg" # Replace this with your image's direct URL
74
- st.markdown(
75
- f"""
76
- <style>
77
- .logo {{
78
- position: fixed;
79
- bottom: 5px;
80
- right: 5px;
81
- width: 100px; # Adjust width as needed
82
- }}
83
- </style>
84
- <img src="{logo_url}" class="logo">
85
- """,
86
- unsafe_allow_html=True,
87
- )
88
- main()
89
-