DOMMETI commited on
Commit
ea8ee0c
ยท
verified ยท
1 Parent(s): 50ceeab

Update Home.py

Browse files
Files changed (1) hide show
  1. Home.py +76 -45
Home.py CHANGED
@@ -1,87 +1,118 @@
 
1
  import streamlit as st
 
 
2
 
3
- # ๐ŸŽจ Custom CSS
4
  st.markdown("""
5
  <style>
6
- @import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;500&display=swap');
 
7
  body {
8
- background: #111827;
9
- color: white;
10
  font-family: 'Poppins', sans-serif;
 
11
  }
12
- h1, h2 {
 
 
13
  text-align: center;
 
 
 
 
 
14
  color: #00FFFF;
15
- text-shadow: 0 0 8px rgba(0,255,255,0.6);
 
 
 
 
16
  }
 
17
  .section {
18
- background: rgba(255, 255, 255, 0.05);
19
  padding: 20px;
20
- border-radius: 12px;
21
- margin-bottom: 25px;
22
- box-shadow: 0 4px 10px rgba(0,255,255,0.15);
23
- }
24
- .button-container {
25
- text-align: center;
26
- margin-top: 20px;
27
  }
 
28
  .glow-button {
29
- background: linear-gradient(90deg, #00FFFF, #00BFFF);
30
  border: none;
31
- padding: 10px 24px;
32
  color: black;
33
  font-weight: bold;
34
- border-radius: 20px;
35
- margin: 6px;
36
- font-size: 14px;
37
- box-shadow: 0px 0px 8px rgba(0,255,255,0.5);
38
  text-decoration: none;
39
  display: inline-block;
 
 
 
40
  }
41
  .glow-button:hover {
42
- transform: scale(1.05);
43
- box-shadow: 0px 0px 15px rgba(0,255,255,1);
 
 
 
 
 
44
  }
45
  </style>
46
  """, unsafe_allow_html=True)
47
 
48
- # ๐Ÿš€ Header
49
- st.markdown("<h1>๐Ÿ”ฌ Neural Network Playground</h1>", unsafe_allow_html=True)
50
 
51
- # ๐Ÿ” About Section
 
 
 
 
 
 
 
 
 
 
 
 
 
 
52
  st.markdown('<div class="section">', unsafe_allow_html=True)
53
- st.markdown("## ๐Ÿค– What is this App?")
54
- st.write("This interactive app lets you explore neural networks in 2D using synthetic datasets. Visualize decision boundaries, test different architectures, and train models right in your browser using Keras and TensorFlow!")
55
  st.markdown('</div>', unsafe_allow_html=True)
56
 
57
- # ๐Ÿ›  Features
58
  st.markdown('<div class="section">', unsafe_allow_html=True)
59
- st.markdown("## ๐Ÿง  Key Features")
60
  st.markdown("""
61
- - ๐ŸŒ€ Multiple synthetic datasets (`moons`, `circles`, `blobs`, etc.)
62
- - ๐Ÿงฑ Choose number of hidden layers (including zero!)
63
- - โš™๏ธ Adjustable neurons per layer & activation functions
64
- - ๐Ÿงฎ Live decision boundary visualization
65
- - ๐Ÿ“‰ Training loss and validation curves
66
  """)
67
  st.markdown('</div>', unsafe_allow_html=True)
68
 
69
- # ๐Ÿ‘ค Creator Section
70
  st.markdown('<div class="section">', unsafe_allow_html=True)
71
- st.markdown("## ๐Ÿ‘จโ€๐Ÿ’ป About the Creator")
72
- st.write("Built by a passionate developer blending Machine Learning with interactive visualization tools to make learning intuitive and engaging.")
73
  st.markdown('</div>', unsafe_allow_html=True)
74
 
75
- # ๐Ÿ“ฌ Contact / Footer
76
  st.markdown('<div class="section">', unsafe_allow_html=True)
77
- st.markdown("## ๐Ÿ“ฌ Contact Me")
 
 
78
  st.markdown('<div class="button-container">', unsafe_allow_html=True)
79
  st.markdown("""
80
- [<a class="glow-button" href="https://www.linkedin.com/in/dommeti-thoran-raj-692769191/" target="_blank">LinkedIn</a>]
81
- [<a class="glow-button" href="https://github.com/raj2216" target="_blank">GitHub</a>]
82
- [<a class="glow-button" href="mailto:rajbunny2216@gmail.com">Email</a>]
83
  """, unsafe_allow_html=True)
84
- st.markdown('</div>', unsafe_allow_html=True)
85
- st.markdown('</div>', unsafe_allow_html=True)
86
-
87
 
 
1
+ You said:
2
  import streamlit as st
3
+ from streamlit_lottie import st_lottie
4
+ import requests
5
 
6
+ # Custom CSS for Enhanced Styling
7
  st.markdown("""
8
  <style>
9
+ @import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');
10
+ @import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;600&display=swap');
11
  body {
12
+ background: linear-gradient(135deg, #1e1e2f, #2a2a3b);
 
13
  font-family: 'Poppins', sans-serif;
14
+ color: white;
15
  }
16
+
17
+ /* Header Styling */
18
+ h1, h2, h3 {
19
  text-align: center;
20
+ color: #00FFFF; /* Bright Cyan */
21
+ text-shadow: 0px 0px 12px rgba(0, 255, 255, 1),
22
+ 0px 0px 20px rgba(0, 128, 255, 0.8);
23
+ }
24
+ .custom-subheader {
25
  color: #00FFFF;
26
+ font-family: 'Roboto', sans-serif;
27
+ font-weight: 600;
28
+ font-size: 28px;
29
+ margin-bottom: 15px;
30
+ text-align: center;
31
  }
32
+ /* Section Background */
33
  .section {
34
+ background: rgba(255, 255, 255, 0.1);
35
  padding: 20px;
36
+ border-radius: 15px;
37
+ margin-bottom: 30px;
38
+ box-shadow: 0px 4px 12px rgba(0, 255, 255, 0.2);
 
 
 
 
39
  }
40
+ /* Glowing Button */
41
  .glow-button {
42
+ background: linear-gradient(90deg, #00FFFF, #00CCFF);
43
  border: none;
44
+ padding: 12px 25px;
45
  color: black;
46
  font-weight: bold;
47
+ border-radius: 25px;
48
+ box-shadow: 0px 0px 10px rgba(0, 255, 255, 0.8);
49
+ transition: 0.3s;
 
50
  text-decoration: none;
51
  display: inline-block;
52
+ text-align: center;
53
+ font-size: 16px;
54
+ margin: 10px 5px;
55
  }
56
  .glow-button:hover {
57
+ transform: scale(1.1);
58
+ box-shadow: 0px 0px 20px rgba(0, 255, 255, 1);
59
+ }
60
+ .button-container {
61
+ text-align: center;
62
+ margin-top: 15px;
63
+ margin-bottom: 20px;
64
  }
65
  </style>
66
  """, unsafe_allow_html=True)
67
 
 
 
68
 
69
+ # Title
70
+ st.markdown("<h1 class='custom-subheader'>๐Ÿ Crick-o-Meter: Unleashing Data-Driven Cricket Insights! ๐Ÿ“Š๐Ÿ”ฅ</h1>", unsafe_allow_html=True)
71
+
72
+ # Lottie Animation
73
+ @st.cache_data
74
+ def load_lottie_url(url: str):
75
+ response = requests.get(url)
76
+ if response.status_code != 200:
77
+ return None
78
+ return response.json()
79
+
80
+ lottie_animation = load_lottie_url("https://lottie.host/6e182649-61a6-4683-8680-5493855ac08a/G0pStmcS8T.json")
81
+ st_lottie(lottie_animation, height=200, key="cricket")
82
+
83
+ # About the App
84
  st.markdown('<div class="section">', unsafe_allow_html=True)
85
+ st.markdown("<h2 class='custom-subheader'>๐ŸŽฏ About the App</h2>", unsafe_allow_html=True)
86
+ st.write("Crick-o-Meter is your ultimate companion for cricket statistics and analytics. Whether you're a fantasy cricket player, a data nerd, or just an ardent fan, our app gives you real-time stats, player comparisons, and predictive insights!")
87
  st.markdown('</div>', unsafe_allow_html=True)
88
 
89
+ # Key Features
90
  st.markdown('<div class="section">', unsafe_allow_html=True)
91
+ st.markdown("<h2 class='custom-subheader'>๐Ÿš€ Key Features</h2>", unsafe_allow_html=True)
92
  st.markdown("""
93
+ - ๐Ÿ“Š **Player Performance Analysis**
94
+ - ๐Ÿ“ˆ **Predictive Insights for Matches**
95
+ - ๐Ÿง  **AI-driven Cricket Forecasting**
96
+ - ๐Ÿ“Œ **Team Comparisons & Head-to-Head Stats**
 
97
  """)
98
  st.markdown('</div>', unsafe_allow_html=True)
99
 
100
+ # About the Creator
101
  st.markdown('<div class="section">', unsafe_allow_html=True)
102
+ st.markdown("<h2 class='custom-subheader'>๐Ÿ‘จโ€๐Ÿ’ป About the Creator</h2>", unsafe_allow_html=True)
103
+ st.write("Hi! I'm a passionate developer blending machine learning with cricket analytics. My goal is to make cricket statistics accessible and insightful for fans worldwide.")
104
  st.markdown('</div>', unsafe_allow_html=True)
105
 
106
+ # Contact Section
107
  st.markdown('<div class="section">', unsafe_allow_html=True)
108
+ st.markdown("<h2 class='custom-subheader'>๐Ÿ“ž Contact Me</h2>", unsafe_allow_html=True)
109
+
110
+ # Button Section (Now Centered with Space)
111
  st.markdown('<div class="button-container">', unsafe_allow_html=True)
112
  st.markdown("""
113
+ [<button class="glow-button">LinkedIn</button>](https://www.linkedin.com/in/dommeti-thoran-raj-692769191/)
114
+ [<button class="glow-button">GitHub</button>](https://github.com/raj2216)
115
+ [<button class="glow-button">Email</button>](mailto:rajbunny2216@gmail.com)
116
  """, unsafe_allow_html=True)
117
+ st.markdown('</div>', unsafe_allow_html=True
 
 
118