Sathwikchowdary commited on
Commit
65395b7
β€’
1 Parent(s): ec415b0

Update Home.py

Browse files
Files changed (1) hide show
  1. Home.py +42 -1
Home.py CHANGED
@@ -1,7 +1,48 @@
1
  import streamlit as st
2
  import pandas as pd
3
  import numpy as np
4
- st.markdown("<h1 style='text-align: center; color: Balck;'>Zero to Hero ML</h1>", unsafe_allow_html=True)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5
  st.markdown("<h2 style='color: Black;'>About the App</h2>", unsafe_allow_html=True)
6
  st.markdown(
7
  "<p style='font-size: 16px; color: Blue; font-style: italic;'>"
 
1
  import streamlit as st
2
  import pandas as pd
3
  import numpy as np
4
+ st.set_page_config(page_title="Zero to Hero: Master Data Science & ML")
5
+
6
+ ## CSS Styling for Background Image with Gradient Overlay
7
+
8
+ custom_css = """
9
+ <style>
10
+ html, body, [data-testid="stAppViewContainer"] {
11
+ background-image:
12
+ linear-gradient(
13
+ rgba(0, 0, 0, 0.6),
14
+ rgba(0, 0, 0, 0.6)
15
+ ),
16
+ url("https://cdn.pixabay.com/photo/2023/08/14/02/18/ai-generated-8188691_1280.jpg") no-repeat center center fixed;
17
+ background-size: cover;
18
+ color: white;
19
+ }
20
+ h1 {
21
+ color: #ffffff;
22
+ text-align: center;
23
+ margin-top: 5px;
24
+ text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
25
+ }
26
+ .division {
27
+ margin: 20px auto;
28
+ padding: 20px;
29
+ background: rgba(255, 255, 255, 0.1);
30
+ border-radius: 10px;
31
+ box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
32
+ }
33
+ .division h2 {
34
+ color: #ffffff;
35
+ margin-bottom: 10px;
36
+ text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
37
+ }
38
+ .division p {
39
+ line-height: 1.5;
40
+ font-size: 1.0rem;
41
+ }
42
+ </style>
43
+ """
44
+ st.write(custom_css, unsafe_allow_html=True
45
+ st.markdown("<h1 style='text-align: center; color: Balck;'>πŸš€ Zero 2 Hero ML App πŸ€–</h1>", unsafe_allow_html=True)
46
  st.markdown("<h2 style='color: Black;'>About the App</h2>", unsafe_allow_html=True)
47
  st.markdown(
48
  "<p style='font-size: 16px; color: Blue; font-style: italic;'>"