Ronio Jerico Roque commited on
Commit
6bea16c
·
2 Parent(s): e254dbd5c3e0ef

Merge branch 'temp'

Browse files
Files changed (1) hide show
  1. pages/home.py +11 -4
pages/home.py CHANGED
@@ -21,6 +21,7 @@ from classes.amazon import Amazon
21
  from classes.ebay import eBay
22
  import asyncio
23
  from helper.upload_button import hide_button, unhide_button
 
24
 
25
  class DigitalFootprintDashboard:
26
  def __init__(self):
@@ -42,7 +43,7 @@ class DigitalFootprintDashboard:
42
 
43
  async def create_row1(self):
44
  """Create the first row with four columns"""
45
- col1, col2, col3, col4 = st.columns(4, border=True, gap="medium", vertical_alignment="top")
46
 
47
  with col1:
48
 
@@ -53,6 +54,7 @@ class DigitalFootprintDashboard:
53
  else:
54
  st.session_state["analyze"] = ''
55
 
 
56
  self.analyze_button = st.button("Analyze", icon="✨", use_container_width=True)
57
  if self.analyze_button == True:
58
  st.switch_page("pages/analyzing_page.py")
@@ -61,6 +63,8 @@ class DigitalFootprintDashboard:
61
 
62
  self.client_summary = CientSummary()
63
 
 
 
64
  with col2:
65
  st.write("## Website Traffic")
66
  self.backlinks = SeoOffPageAnalyst(os.getenv('MODEL_Off_Page_Analyst'))
@@ -77,6 +81,9 @@ class DigitalFootprintDashboard:
77
  st.write('### Twitter')
78
  self.twitter = Twitter(os.getenv('MODEL_Social_Media_Analyst'))
79
 
 
 
 
80
  st.write('### YouTube')
81
  self.youtube = YouTube(os.getenv('MODEL_Social_Media_Analyst'))
82
 
@@ -85,8 +92,8 @@ class DigitalFootprintDashboard:
85
 
86
  st.write('### Tiktok')
87
  self.tiktok = Tiktok(os.getenv('MODEL_Social_Media_Analyst'))
88
-
89
- with col4:
90
  st.write("## Website Structure")
91
  #self.crawl = SeoOnCrawl(os.getenv('MODEL_On_Page_Analyst'))
92
  self.on_page = SeoOn(os.getenv('MODEL_On_Page_Analyst'))
@@ -95,7 +102,7 @@ class DigitalFootprintDashboard:
95
  self.pull_through_offers = PullThroughOffers(os.getenv('Model_Pull_Through_Offers_Analyst'))
96
  self.content = Content(os.getenv('Model_Content'))
97
 
98
- return col1, col2, col3, col4
99
 
100
  async def create_row2(self):
101
  """Create the first row with four columns"""
 
21
  from classes.ebay import eBay
22
  import asyncio
23
  from helper.upload_button import hide_button, unhide_button
24
+ import time
25
 
26
  class DigitalFootprintDashboard:
27
  def __init__(self):
 
43
 
44
  async def create_row1(self):
45
  """Create the first row with four columns"""
46
+ col1, col2, col3, col4, col5 = st.columns(5, border=True, gap="medium", vertical_alignment="top")
47
 
48
  with col1:
49
 
 
54
  else:
55
  st.session_state["analyze"] = ''
56
 
57
+
58
  self.analyze_button = st.button("Analyze", icon="✨", use_container_width=True)
59
  if self.analyze_button == True:
60
  st.switch_page("pages/analyzing_page.py")
 
63
 
64
  self.client_summary = CientSummary()
65
 
66
+
67
+
68
  with col2:
69
  st.write("## Website Traffic")
70
  self.backlinks = SeoOffPageAnalyst(os.getenv('MODEL_Off_Page_Analyst'))
 
81
  st.write('### Twitter')
82
  self.twitter = Twitter(os.getenv('MODEL_Social_Media_Analyst'))
83
 
84
+
85
+ with col4:
86
+ st.write("## Social Media")
87
  st.write('### YouTube')
88
  self.youtube = YouTube(os.getenv('MODEL_Social_Media_Analyst'))
89
 
 
92
 
93
  st.write('### Tiktok')
94
  self.tiktok = Tiktok(os.getenv('MODEL_Social_Media_Analyst'))
95
+
96
+ with col5:
97
  st.write("## Website Structure")
98
  #self.crawl = SeoOnCrawl(os.getenv('MODEL_On_Page_Analyst'))
99
  self.on_page = SeoOn(os.getenv('MODEL_On_Page_Analyst'))
 
102
  self.pull_through_offers = PullThroughOffers(os.getenv('Model_Pull_Through_Offers_Analyst'))
103
  self.content = Content(os.getenv('Model_Content'))
104
 
105
+ return col1, col2, col3, col4, col5
106
 
107
  async def create_row2(self):
108
  """Create the first row with four columns"""