Skip to content

Commit

Permalink
add some urls
Browse files Browse the repository at this point in the history
  • Loading branch information
1hella committed Oct 12, 2023
1 parent 6d9a09d commit 5b6d578
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 1 deletion.
2 changes: 2 additions & 0 deletions Home.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,5 @@
url = row['url']
text = get_url_text(url)
st.write(f"[{text}]({url})")

st.write("[Contact me](./Contact_Me)")
Binary file added __pycache__/config_manager.cpython-311.pyc
Binary file not shown.
Binary file modified __pycache__/url_to_link.cpython-311.pyc
Binary file not shown.
7 changes: 7 additions & 0 deletions pages/Contact Me.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,13 @@
with streamlit_analytics.track(unsafe_password=os.getenv('STREAMLIT_PASSWORD'),
firestore_key_file=config_file, firestore_collection_name="contact"):
st.title("Contact Me")
col1, col2, col3, col4 = st.columns(4)
with col1:
st.write("[LinkedIn](https://linkedin.com/in/swanhella)")
with col2:
st.write("[GitHub](https://github.com/1hella)")

st.subheader("Contact Form")
with st.form(key="email_forms", clear_on_submit=True):
if 'submitted' not in st.session_state:
st.session_state['submitted'] = False
Expand Down
2 changes: 1 addition & 1 deletion url_to_link.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
def get_url_text(url):
if "github" or "codepen" in url:
if "github" in url or "codepen" in url:
return "Source Code"
else:
return "Link"

0 comments on commit 5b6d578

Please sign in to comment.