Skip to content

Commit a9b09cc

Browse files
committed
Added contact us section
1 parent ebcb541 commit a9b09cc

File tree

1 file changed

+65
-2
lines changed

1 file changed

+65
-2
lines changed

frontend/streamlit/Home.py

Lines changed: 65 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
import streamlit as st
22

3+
CLIPABIT_EMAIL = "warrenxu2017@gmail.com"
4+
35
st.set_page_config(
46
page_title="ClipABit",
57
page_icon="🎬",
@@ -51,6 +53,37 @@
5153
margin-top: 0.4rem;
5254
margin-bottom: 0.6rem;
5355
}
56+
57+
/* Contact icon container */
58+
.contact-icon-row {
59+
display: flex;
60+
align-items: center;
61+
gap: 1rem;
62+
margin-top: 0.5rem;
63+
}
64+
65+
/* Link wrapper for icons */
66+
.contact-icon-link {
67+
display: inline-flex;
68+
align-items: center;
69+
justify-content: center;
70+
text-decoration: none;
71+
}
72+
73+
/* Base styles for icon images and emojis */
74+
.contact-icon-img,
75+
.contact-icon-emoji {
76+
transition: transform 0.18s ease-out, box-shadow 0.18s ease-out, opacity 0.18s ease-out;
77+
opacity: 0.9;
78+
}
79+
80+
/* Hover effect */
81+
.contact-icon-link:hover .contact-icon-img,
82+
.contact-icon-link:hover .contact-icon-emoji {
83+
transform: translateY(-2px) scale(1.06);
84+
box-shadow: 0 8px 20px rgba(0,0,0,0.25);
85+
opacity: 1;
86+
}
5487
</style>
5588
""",
5689
unsafe_allow_html=True,
@@ -174,6 +207,36 @@
174207
unsafe_allow_html=True,
175208
)
176209

177-
# Footer
210+
# Contact Us & footer
178211
st.markdown("---")
179-
st.caption("ClipABit - Powered by CLIP embeddings and semantic search")
212+
213+
st.subheader("Contact us")
214+
st.markdown(
215+
f"""
216+
<div class="clip-card">
217+
<p>Have feedback, feature ideas, or want to learn more? Check us out below!</p>
218+
<div class="contact-icon-row">
219+
<a class="contact-icon-link"
220+
href="https://github.com/ClipABit"
221+
target="_blank"
222+
rel="noopener noreferrer"
223+
title="View on GitHub">
224+
<img src="https://github.githubassets.com/images/modules/logos_page/GitHub-Mark.png"
225+
alt="GitHub"
226+
width="28"
227+
class="contact-icon-img"
228+
style="border-radius: 50%; display: block;">
229+
</a>
230+
<a class="contact-icon-link"
231+
href="mailto:{CLIPABIT_EMAIL}"
232+
title="Email us"
233+
style="text-decoration: none; font-size: 24px; display: flex; align-items: center;">
234+
<span class="contact-icon-emoji" style="font-size: 24px; line-height: 1;">✉️</span>
235+
</a>
236+
</div>
237+
</div>
238+
""",
239+
unsafe_allow_html=True,
240+
)
241+
242+
st.caption("ClipABit - Powered by CLIP embeddings and semantic search")

0 commit comments

Comments
 (0)