From 0375584d5318a5e8b9e944013bb414eeb12df477 Mon Sep 17 00:00:00 2001 From: Carl Zhang Date: Fri, 3 Oct 2025 19:04:40 -0500 Subject: [PATCH] add student officer content on homepage --- webpages/home.py | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/webpages/home.py b/webpages/home.py index ef0cbcce8..66538e4b1 100644 --- a/webpages/home.py +++ b/webpages/home.py @@ -135,3 +135,41 @@ def home(): """, unsafe_allow_html=True) + + # Student Officers + # load image in base64 + + import base64 + def load_image(image_path): + with open(image_path, "rb") as image_file: + return base64.b64encode(image_file.read()).decode() + + jesus_torres_img = load_image("./images/student_officer_photo/jesus_torres.jpg") + benjamin_mosley_img = load_image("./images/student_officer_photo/benjamin_mosley.jpg") + + st.markdown( + f""" +
+

Student Officers

+
+
+
+ Jesus Torres +
+ Jesus Torres
+ President
+ jtorres8@buffs.wtamu.edu +
+
+
+ Benjamin Mosley +
+ Benjamin Mosley
+ Tech Lead
+ brmosley1@buffs.wtamu.edu +
+
+
+
+
+ """, unsafe_allow_html=True)