tracinginsights commited on
Commit
4069b44
1 Parent(s): 1e5cfbb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +20 -0
app.py CHANGED
@@ -1,6 +1,10 @@
 
1
  from git import Repo
2
  import os
3
  import streamlit as st
 
 
 
4
 
5
 
6
  st.set_page_config(
@@ -21,4 +25,20 @@ if not os.path.exists('repo_directory'):
21
  Repo.clone_from(f'https://tracinginsights:{GITHUB_PAT}@github.com/TracingInsights/F1_analysis.git', 'repo_directory' )
22
 
23
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
24
 
 
1
+ from repo_directory import button
2
  from git import Repo
3
  import os
4
  import streamlit as st
5
+ from repo_directory.st_functions import st_button, load_css
6
+ from PIL import Image
7
+
8
 
9
 
10
  st.set_page_config(
 
25
  Repo.clone_from(f'https://tracinginsights:{GITHUB_PAT}@github.com/TracingInsights/F1_analysis.git', 'repo_directory' )
26
 
27
 
28
+ load_css()
29
+
30
+ col1, col2, col3 = st.columns(3)
31
+ col2.image(Image.open('Logo.png'))
32
+
33
+
34
+ st.header('Tracing Insights')
35
+
36
+ st.info('Home for F1 data-driven analytics, pre-race predictions, post-race analysis, dank memes you won't find anywhere else')
37
+
38
+ icon_size = 20
39
+
40
+ st_button('youtube', 'https://www.youtube.com/@TracingInsights', 'Tracing Insights YouTube channel', icon_size)
41
+ st_button('twitter', 'https://twitter.com/tracinginsights', 'Follow me on Twitter', icon_size)
42
+ st_button('newsletter', 'https://tracinginsights.substack.com/', 'Sign up for my Newsletter', icon_size)
43
+ st_button('cup', 'https://www.buymeacoffee.com/tracinginsights', 'Buy me a Coffee', icon_size)
44