herutriana44's picture
First Commit
b7d9967 verified
import streamlit as st
import pandas as pd
title_app = "ReVa"
title_app2 = "ReVa:AI For Design Vaccine In Silico"
description = """ReVa is an AI-based software for predicting linear epitopes, allergenicity, antigenicity, toxicity,
and conducting physicochemical calculations. It also performs docking (force field calculations and machine learning based) with
human receptors and several simulations for adjuvant addition."""
button1_color = "#018205"
nav_color = "#018205"
jumbotron_color = "#73ff77"
body_color = "#b7f7b9" # Updated body background color
# Mengubah title dan icon web dengan gambar
st.set_page_config(
page_title=title_app,
page_icon="asset/img/kaede_kayano.ico"
)
st.markdown(
"""
<style>
.reportview-container {
background-color: #b7f7b9
}
.sidebar .sidebar-content {
background-color: #b7f7b9
}
</style>
""",
unsafe_allow_html=True
)
# Custom CSS for styling
custom_css = f"""
<style>
body {{
background-color: {body_color};
}}
.navbar {{
display: flex;
justify-content: space-between;
padding: 10px 20px;
background-color: {nav_color};
border-bottom: 1px solid #dee2e6;
width: 100%;
position: sticky;
top: 0;
z-index: 100;
}}
.navbar span {{
margin: 0 10px;
cursor: pointer;
}}
.navbar a {{
color: white;
}}
a {{
text-decoration: none;
}}
.jumbotron {{
background-color: {jumbotron_color};
padding: 20px;
border: 1px solid #f5c6cb;
border-radius: 5px;
}}
.footer {{
text-align: center;
padding: 10px;
left: 0;
bottom: 0;
width: 100%;
background-color: {nav_color};
border-top: 1px solid #dee2e6;
color: white;
}}
</style>
"""
# Inject custom CSS
st.markdown(custom_css, unsafe_allow_html=True)
# Navbar
st.markdown(
f"""
<div class="navbar">
<div>
<a href="#jumbotron"><span style="font-size: 24px; font-weight: bold;">{title_app}</span></a>
</div>
<div>
<a href="#jumbotron"><span>Home</span></a>
<a href="#features"><span>Features</span></a>
<a href="#contact"><span>Contact</span></a>
</div>
</div>
"""
, unsafe_allow_html=True)
# Jumbotron
st.markdown(
f"""
<div id="jumbotron" class="jumbotron">
<h1>{title_app2}</h1>
<p>{description}</p>
<a href='https://science-ai.space/ReVa_app/ReVa.exe' target='_blank' style='text-decoration: none;'>
<button style='padding: 10px 20px; background-color: {button1_color}; color: white; border: none; border-radius: 5px; cursor: pointer;'>
<img src='https://upload.wikimedia.org/wikipedia/commons/thumb/4/48/Windows_logo_-_2012_%28dark_blue%29.svg/2048px-Windows_logo_-_2012_%28dark_blue%29.svg.png' style="width:20px;margin-right:10px">
Windows
</button>
</a>
<a href='https://your_link_here' target='_blank' style='text-decoration: none;'>
<button style='padding: 10px 20px; background-color: {button1_color}; color: white; border: none; border-radius: 5px; cursor: pointer;' disabled>
<img src='https://upload.wikimedia.org/wikipedia/commons/thumb/3/35/Tux.svg/800px-Tux.svg.png' style="width:20px;margin-right:10px">
Linux (on going)
</button>
</a>
</div>
"""
, unsafe_allow_html=True)
# Table
st.write("## Features")
st.markdown(
f"""
<ol id="features">
<li>B Cell Or T Cell Linear Epitope Prediction</li>
<li>Allergenicity Prediction</li>
<li>Antigenicity Prediction</li>
<li>Toxicitty Prediction</li>
<li>BLAST Result Epitope</li>
<li>Phsycochemical Calculator</li>
<li>Scoring Using Force Field</li>
<li>Scoring Using Machine Learning(Regression Based)</li>
<li>Van Der Walls Calculator</li>
<li>Adjuvant Addition Simulation And Scoring Using Force Field</li>
<li>Adjuvant Addition Simulation And Scoring Using Machine Learning</li>
</ol>
"""
, unsafe_allow_html=True)
# Contact
st.write("## Contact")
st.markdown(
f"""
<ul id="contact">
<li>
<a href='mailto:herutriana44@gmail.com' target='_blank' style='text-decoration: none;'>
<button style='padding: 10px 20px; background-color: {button1_color}; color: white; border: none; border-radius: 5px; cursor: pointer;'>
<img src='https://mailmeteor.com/logos/assets/PNG/Gmail_Logo_512px.png' style="width:20px;margin-right:10px">
herutriana44@gmail.com
</button>
</a>
</li>
<li>
<a href='https://github.com/Herutriana44/' target='_blank' style='text-decoration: none;'>
<button style='padding: 10px 20px; background-color: {button1_color}; color: white; border: none; border-radius: 5px; cursor: pointer;'>
<img src='https://cdn-icons-png.flaticon.com/512/25/25231.png' style="width:20px;margin-right:10px">
Herutriana44
</button>
</a>
</li>
</ul>
"""
, unsafe_allow_html=True)
# Footer
st.markdown(
f"""
<style>
.footer {{
text-align: center;
padding: 10px;
left: 0;
bottom: 0;
width: 100%;
background-color: {nav_color};
border-top: 1px solid #dee2e6;
color: white;
}}
</style>
"""
, unsafe_allow_html=True)
footer = st.markdown(
f"""
<div class="footer">
<p>&copy; 2023 {title_app}</p>
</div>
"""
, unsafe_allow_html=True)