-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathHome.py
57 lines (44 loc) · 1.58 KB
/
Home.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
"""
Landing page
"""
import streamlit as st
from mangoleaf import frontend
frontend.add_config()
frontend.add_style()
frontend.add_sidebar_login()
frontend.add_sidebar_logo()
# Social links
social_max = frontend.add_social_links("max", True, True)
social_soren = frontend.add_social_links("soren", True, True)
st.image("images/white_logo_transparent_background.png")
st.markdown(
"""
**Welcome to MANGOLEAF**, your ultimate guide to discovering the best books and manga tailored
to your tastes. Whether you're a seasoned reader or just starting, MANGOLEAF provides personalized
recommendations to help you find your next favorite read.
"""
)
hydrate_recommendation = frontend.add_mixed_recommendations(n=8)
st.subheader("About Us", anchor=False)
st.markdown(
f"""
MANGOLEAF is brought to you by Max {social_max} and Sören {social_soren}, passionate developers and
data scientists dedicated to enhancing your reading experience.
""",
unsafe_allow_html=True,
)
st.subheader("How To Use MANGOLEAF", anchor=False)
st.markdown(
"""
Choose on the left if you are interested in Books or Manga and explore the recommendations!
If you want to save your ratings and get personalized recommendations based on your ratings,
create an account in the side bar.
Personalized recommendations based on ratings are updated every 24 hours.
<div class="explorer_info"><div align="center">
To prevent spam and abuse, user profiles are reset and deleted every 5 days.<br />
But you can export and download your ratings at any time.
</div></div>
""",
unsafe_allow_html=True,
)
hydrate_recommendation()