LakshmiHarika commited on
Commit
d7ccfa7
·
verified ·
1 Parent(s): 83e990f

Update pages/3Life Cycle of Machine Learning Project.py

Browse files
pages/3Life Cycle of Machine Learning Project.py CHANGED
@@ -48,11 +48,11 @@ st.markdown("""
48
 
49
  import streamlit as st
50
 
51
- # Custom CSS for Circular Layout
52
  custom_css = """
53
  <style>
54
  html, body, [data-testid="stAppViewContainer"] {
55
- background: url('https://your-image-url-here.png') no-repeat center center fixed;
56
  background-size: cover;
57
  font-family: Arial, sans-serif;
58
  color: #ffffff;
@@ -68,8 +68,8 @@ custom_css = """
68
  }
69
  .circle-container .button {
70
  position: absolute;
71
- width: 120px;
72
- height: 120px;
73
  background: #2e2e3e;
74
  color: white;
75
  border-radius: 50%;
@@ -86,16 +86,15 @@ custom_css = """
86
  .circle-container .button:hover {
87
  transform: scale(1.1);
88
  }
89
- .circle-container .button:nth-child(1) { top: 10%; left: 50%; transform: translate(-50%, -50%); }
90
- .circle-container .button:nth-child(2) { top: 30%; left: 80%; transform: translate(-50%, -50%); }
91
- .circle-container .button:nth-child(3) { top: 60%; left: 90%; transform: translate(-50%, -50%); }
92
- .circle-container .button:nth-child(4) { top: 90%; left: 70%; transform: translate(-50%, -50%); }
93
- .circle-container .button:nth-child(5) { top: 100%; left: 40%; transform: translate(-50%, -50%); }
94
- .circle-container .button:nth-child(6) { top: 90%; left: 10%; transform: translate(-50%, -50%); }
95
- .circle-container .button:nth-child(7) { top: 60%; left: 0%; transform: translate(-50%, -50%); }
96
- .circle-container .button:nth-child(8) { top: 30%; left: 10%; transform: translate(-50%, -50%); }
97
- .circle-container .button:nth-child(9) { top: 10%; left: 20%; transform: translate(-50%, -50%); }
98
- .circle-container .button:nth-child(10) { top: 40%; left: 50%; transform: translate(-50%, -50%); }
99
  .center {
100
  position: absolute;
101
  top: 50%;
@@ -104,12 +103,12 @@ custom_css = """
104
  font-size: 1.5rem;
105
  font-weight: bold;
106
  text-align: center;
107
- color: white;
108
  }
109
  </style>
110
  """
111
 
112
- # HTML for the Lifecycle Buttons
113
  ml_lifecycle_html = """
114
  <div class="circle-container">
115
  <a href="#" class="button">Problem Statement</a>
@@ -120,11 +119,10 @@ ml_lifecycle_html = """
120
  <a href="#" class="button">Feature Engineering</a>
121
  <a href="#" class="button">Model Training</a>
122
  <a href="#" class="button">Testing</a>
123
- <a href="#" class="button">Deployment</a>
124
  <a href="#" class="center">ML Lifecycle</a>
125
  </div>
126
  """
127
 
128
- # Render CSS and HTML
129
  st.markdown(custom_css, unsafe_allow_html=True)
130
  st.markdown(ml_lifecycle_html, unsafe_allow_html=True)
 
48
 
49
  import streamlit as st
50
 
51
+ # CSS for Circular Layout with precise positioning
52
  custom_css = """
53
  <style>
54
  html, body, [data-testid="stAppViewContainer"] {
55
+ background: url('https://your-background-image-url') no-repeat center center fixed;
56
  background-size: cover;
57
  font-family: Arial, sans-serif;
58
  color: #ffffff;
 
68
  }
69
  .circle-container .button {
70
  position: absolute;
71
+ width: 110px;
72
+ height: 110px;
73
  background: #2e2e3e;
74
  color: white;
75
  border-radius: 50%;
 
86
  .circle-container .button:hover {
87
  transform: scale(1.1);
88
  }
89
+ /* Adjust button positions to form a perfect circle */
90
+ .button:nth-child(1) { top: 10%; left: 50%; transform: translate(-50%, -50%); } /* Top */
91
+ .button:nth-child(2) { top: 25%; left: 75%; transform: translate(-50%, -50%); }
92
+ .button:nth-child(3) { top: 50%; left: 90%; transform: translate(-50%, -50%); }
93
+ .button:nth-child(4) { top: 75%; left: 75%; transform: translate(-50%, -50%); }
94
+ .button:nth-child(5) { top: 90%; left: 50%; transform: translate(-50%, -50%); } /* Bottom */
95
+ .button:nth-child(6) { top: 75%; left: 25%; transform: translate(-50%, -50%); }
96
+ .button:nth-child(7) { top: 50%; left: 10%; transform: translate(-50%, -50%); }
97
+ .button:nth-child(8) { top: 25%; left: 25%; transform: translate(-50%, -50%); }
 
98
  .center {
99
  position: absolute;
100
  top: 50%;
 
103
  font-size: 1.5rem;
104
  font-weight: bold;
105
  text-align: center;
106
+ color: blue;
107
  }
108
  </style>
109
  """
110
 
111
+ # HTML for Lifecycle Buttons
112
  ml_lifecycle_html = """
113
  <div class="circle-container">
114
  <a href="#" class="button">Problem Statement</a>
 
119
  <a href="#" class="button">Feature Engineering</a>
120
  <a href="#" class="button">Model Training</a>
121
  <a href="#" class="button">Testing</a>
 
122
  <a href="#" class="center">ML Lifecycle</a>
123
  </div>
124
  """
125
 
126
+ # Apply CSS and Render HTML
127
  st.markdown(custom_css, unsafe_allow_html=True)
128
  st.markdown(ml_lifecycle_html, unsafe_allow_html=True)