From 30a80ce75805f6fb25f87eb4ccb22707ecea8537 Mon Sep 17 00:00:00 2001 From: MIGHTY1o1 Date: Mon, 21 Oct 2024 01:59:34 +0530 Subject: [PATCH] revamp home page --- Web_app/Home_Page.py | 226 +++++++++++++++++++++++++++++++++++++------ 1 file changed, 199 insertions(+), 27 deletions(-) diff --git a/Web_app/Home_Page.py b/Web_app/Home_Page.py index d4cd4874..e05685b8 100644 --- a/Web_app/Home_Page.py +++ b/Web_app/Home_Page.py @@ -2,14 +2,79 @@ # Configure the page st.set_page_config( - page_title="Movie Review Analysis and Recommendation System", - page_icon="👋", + page_title="Movie Maestro: Your Cinema Companion", + page_icon="🎬", + layout="wide", ) -# Welcome message -st.write("# Welcome to Movie Review Analysis and Recommendation System 👋") +# Custom CSS for enhanced styling +st.markdown( + """ + +""", + unsafe_allow_html=True, +) -# Sidebar with enhanced content +# Sidebar (keeping existing content) with st.sidebar: # Animated header st.markdown( @@ -118,6 +183,92 @@ # Conclusion st.success("Select options to refine your movie recommendations and have fun!") +# Main content +st.markdown( + """ + +

Movie Maestro: Your Cinema Companion

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

Discover, Analyze, and Fall in Love with Movies

', + unsafe_allow_html=True, +) + +# Feature badges +st.markdown( + """ +
+ 🎭 Genre Analysis + 🌟 Personalized Recommendations + 📊 Sentiment Analysis + 🔍 Advanced Search +
+""", + unsafe_allow_html=True, +) + +# Quick stats +st.markdown("### 📈 Movie Insights at a Glance") +col1, col2, col3, col4 = st.columns(4) + +with col1: + st.markdown( + """ +
+
500K+
+
Movies Analyzed
+
+ """, + unsafe_allow_html=True, + ) + +with col2: + st.markdown( + """ +
+
98%
+
Recommendation Accuracy
+
+ """, + unsafe_allow_html=True, + ) + +with col3: + st.markdown( + """ +
+
50+
+
Genres Covered
+
+ """, + unsafe_allow_html=True, + ) + +with col4: + st.markdown( + """ +
+
24/7
+
Movie Magic
+
+ """, + unsafe_allow_html=True, + ) + # Main content with a structured introduction st.markdown( """ @@ -131,33 +282,54 @@ 1. **Sentiment Analysis** : Analyzes the sentiment of movie reviews (positive, negative). 2. **Personalized Recommendations** : Recommends movies based on content filtering. - **👈 Select the part from the sidebar** + **👈 Select options from the sidebar to refine your experience** """ ) -# Adding some animation to the main content +# Interactive elements +st.markdown("### 🎬 Dive into the World of Cinema") + +# Movie mood selector +movie_mood = st.select_slider( + "What's your movie mood today?", + options=["😴 Relaxed", "😊 Happy", "🤔 Thoughtful", "😢 Emotional", "😱 Thrilled"], +) +st.write(f"Based on your mood, we recommend: {movie_mood.split()[1]} movies!") + +# Personalized recommendation +st.markdown("### 🎯 Get Your Personalized Movie Recommendation") +fav_genre = st.multiselect( + "Select your favorite genres:", + ["Action", "Comedy", "Drama", "Sci-Fi", "Romance", "Horror"], +) +watch_time = st.slider("How much time do you have? (in minutes)", 60, 240, 120) + +if st.button("Generate Recommendation"): + st.balloons() + st.success( + f"Based on your preferences, we recommend watching 'Inception'! It's a mind-bending {', '.join(fav_genre)} film that fits your {watch_time}-minute watch time." + ) + +# Call-to-action +st.markdown("### 🚀 Ready to Explore?") st.markdown( """ - -

🌟 Discover Your Next Favorite Movie! 🌟

- """, +# Footer +st.markdown("---") +st.markdown( + """ +
+ Made with ❤️ by Movie Maestro Team | © 2024 All Rights Reserved +
+""", unsafe_allow_html=True, )