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

Update Home.py

Browse files
Files changed (1) hide show
  1. Home.py +44 -81
Home.py CHANGED
@@ -1,124 +1,87 @@
1
  import streamlit as st
2
- from streamlit_lottie import st_lottie
3
- import requests
4
 
5
- # Custom CSS for Enhanced Styling
6
  st.markdown("""
7
  <style>
8
- @import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');
9
- @import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;600&display=swap');
10
-
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
-
25
- .custom-subheader {
26
  color: #00FFFF;
27
- font-family: 'Roboto', sans-serif;
28
- font-weight: 600;
29
- font-size: 28px;
30
- margin-bottom: 15px;
31
- text-align: center;
32
  }
33
-
34
- /* Section Background */
35
  .section {
36
- background: rgba(255, 255, 255, 0.1);
37
  padding: 20px;
38
- border-radius: 15px;
39
- margin-bottom: 30px;
40
- box-shadow: 0px 4px 12px rgba(0, 255, 255, 0.2);
 
 
 
 
41
  }
42
-
43
- /* Glowing Button */
44
  .glow-button {
45
- background: linear-gradient(90deg, #00FFFF, #00CCFF);
46
  border: none;
47
- padding: 12px 25px;
48
  color: black;
49
  font-weight: bold;
50
- border-radius: 25px;
51
- box-shadow: 0px 0px 10px rgba(0, 255, 255, 0.8);
52
- transition: 0.3s;
 
53
  text-decoration: none;
54
  display: inline-block;
55
- text-align: center;
56
- font-size: 16px;
57
- margin: 10px 5px;
58
  }
59
-
60
  .glow-button:hover {
61
- transform: scale(1.1);
62
- box-shadow: 0px 0px 20px rgba(0, 255, 255, 1);
63
- }
64
-
65
- .button-container {
66
- text-align: center;
67
- margin-top: 15px;
68
- margin-bottom: 20px;
69
  }
70
  </style>
71
  """, unsafe_allow_html=True)
72
 
 
 
73
 
74
- # Title
75
- st.markdown("<h1 class='custom-subheader'>๐Ÿ Crick-o-Meter: Unleashing Data-Driven Cricket Insights! ๐Ÿ“Š๐Ÿ”ฅ</h1>", unsafe_allow_html=True)
76
-
77
- # Lottie Animation
78
- @st.cache_data
79
- def load_lottie_url(url: str):
80
- response = requests.get(url)
81
- if response.status_code != 200:
82
- return None
83
- return response.json()
84
-
85
- lottie_animation = load_lottie_url("https://lottie.host/6e182649-61a6-4683-8680-5493855ac08a/G0pStmcS8T.json")
86
- st_lottie(lottie_animation, height=200, key="cricket")
87
-
88
- # About the App
89
  st.markdown('<div class="section">', unsafe_allow_html=True)
90
- st.markdown("<h2 class='custom-subheader'>๐ŸŽฏ About the App</h2>", unsafe_allow_html=True)
91
- 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!")
92
  st.markdown('</div>', unsafe_allow_html=True)
93
 
94
- # Key Features
95
  st.markdown('<div class="section">', unsafe_allow_html=True)
96
- st.markdown("<h2 class='custom-subheader'>๐Ÿš€ Key Features</h2>", unsafe_allow_html=True)
97
  st.markdown("""
98
- - ๐Ÿ“Š **Player Performance Analysis**
99
- - ๐Ÿ“ˆ **Predictive Insights for Matches**
100
- - ๐Ÿง  **AI-driven Cricket Forecasting**
101
- - ๐Ÿ“Œ **Team Comparisons & Head-to-Head Stats**
 
102
  """)
103
  st.markdown('</div>', unsafe_allow_html=True)
104
 
105
- # About the Creator
106
  st.markdown('<div class="section">', unsafe_allow_html=True)
107
- st.markdown("<h2 class='custom-subheader'>๐Ÿ‘จโ€๐Ÿ’ป About the Creator</h2>", unsafe_allow_html=True)
108
- 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.")
109
  st.markdown('</div>', unsafe_allow_html=True)
110
 
111
- # Contact Section
112
  st.markdown('<div class="section">', unsafe_allow_html=True)
113
- st.markdown("<h2 class='custom-subheader'>๐Ÿ“ž Contact Me</h2>", unsafe_allow_html=True)
114
-
115
- # Button Section (Now Centered with Space)
116
  st.markdown('<div class="button-container">', unsafe_allow_html=True)
117
  st.markdown("""
118
- [<button class="glow-button">LinkedIn</button>](https://www.linkedin.com/in/dommeti-thoran-raj-692769191/)
119
- [<button class="glow-button">GitHub</button>](https://github.com/raj2216)
120
- [<button class="glow-button">Email</button>](mailto:rajbunny2216@gmail.com)
121
  """, unsafe_allow_html=True)
122
  st.markdown('</div>', unsafe_allow_html=True)
123
-
124
  st.markdown('</div>', unsafe_allow_html=True)
 
 
 
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
+