import streamlit as st import streamlit.components.v1 as components from streamlit_extras.switch_page_button import switch_page import login_page def show(): # Top-right Logout button col1, col2 = st.columns([8, 2]) with col2: if st.button("Logout", key="logout_btn"): st.session_state.logged_in = False st.session_state.page = "Home" st.rerun() # Hero Section st.markdown("""

🧬 TransPolymer

A Transformer-based AI Model for Polymer Property Predictions

""", unsafe_allow_html=True) # Typing Animation components.html("""
|
""", height=120) # Flip Cards st.markdown("""
Polymer Property Prediction

Polymer Property Prediction

Using advanced AI models to make accurate and fast polymer property predictions.

SMILES Input

SMILES Input

TransPolymer works with SMILES strings to generate accurate predictions of polymer properties.

Transformer Technology

Transformer Technology

Built on the powerful Transformer architecture .

""", unsafe_allow_html=True) st.markdown("""

What is TransPolymer?

TransPolymer is a powerful AI assistant that predicts physical and chemical properties of polymers using deep learning techniques.
It transforms molecular SMILES strings into property insights within seconds.

""", unsafe_allow_html=True) # Circular Layout components.html("""
Who Can Use TransPolymer?
Polymer Scientists
Drug Delivery Researchers
Materials Scientists
Optical Material Engineers
Environmental Researchers
Students in Chemistry
""", height=600) # Footer st.markdown("""

Transpolymer - Simple. Smart. Scientific

© 2025 TransPolymer. All rights reserved.

""", unsafe_allow_html=True)