LakshmiHarika commited on
Commit
8d7be8f
·
verified ·
1 Parent(s): e4a1f49

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

Browse files
pages/3Life Cycle of Machine Learning Project.py CHANGED
@@ -49,29 +49,32 @@ st.markdown("""
49
 
50
  import streamlit as st
51
 
52
- # CSS for the Circular Buttons and Layout
53
  custom_css = """
54
  <style>
55
- .vertical-container {
56
  display: flex;
57
- flex-direction: column;
58
  align-items: center;
59
- margin: 20px;
 
 
 
60
  }
61
  .circle-button {
 
62
  width: 80px;
63
  height: 80px;
64
- background-color: #4CAF50;
65
  color: white;
66
  border-radius: 50%;
67
  display: flex;
68
  justify-content: center;
69
  align-items: center;
70
- font-size: 14px;
71
  font-weight: bold;
 
72
  cursor: pointer;
73
- margin: 10px 0;
74
- box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
75
  transition: transform 0.2s, background-color 0.2s;
76
  }
77
  .circle-button:hover {
@@ -79,36 +82,49 @@ custom_css = """
79
  background-color: #3e8e41;
80
  }
81
  .arrow {
82
- width: 20px;
83
- height: 20px;
 
84
  border-left: 4px solid green;
85
  border-bottom: 4px solid green;
86
- transform: rotate(-45deg);
87
- margin: -10px 0 10px 0;
88
  }
 
 
 
 
 
 
 
 
 
 
 
89
  </style>
90
  """
91
 
92
- # HTML Structure
93
- ml_lifecycle_html = """
94
- <div class="vertical-container">
95
  <div class="circle-button">Step 1</div>
96
- <div class="arrow"></div>
97
  <div class="circle-button">Step 2</div>
98
- <div class="arrow"></div>
99
  <div class="circle-button">Step 3</div>
100
- <div class="arrow"></div>
101
  <div class="circle-button">Step 4</div>
102
- <div class="arrow"></div>
103
  <div class="circle-button">Step 5</div>
 
 
 
 
 
104
  </div>
105
  """
106
 
107
  # Apply CSS and Render HTML
108
  st.markdown(custom_css, unsafe_allow_html=True)
109
- st.markdown(ml_lifecycle_html, unsafe_allow_html=True)
110
 
111
- # Add functionality for each step (optional)
112
  query_params = st.query_params
113
  selected_step = query_params.get("step", [""])[0]
114
 
 
49
 
50
  import streamlit as st
51
 
52
+ # CSS for Circular Buttons and Circular Layout
53
  custom_css = """
54
  <style>
55
+ .circle-container {
56
  display: flex;
57
+ justify-content: center;
58
  align-items: center;
59
+ position: relative;
60
+ width: 600px;
61
+ height: 600px;
62
+ margin: 0 auto;
63
  }
64
  .circle-button {
65
+ position: absolute;
66
  width: 80px;
67
  height: 80px;
68
+ background: #4CAF50;
69
  color: white;
70
  border-radius: 50%;
71
  display: flex;
72
  justify-content: center;
73
  align-items: center;
74
+ font-size: 12px;
75
  font-weight: bold;
76
+ text-align: center;
77
  cursor: pointer;
 
 
78
  transition: transform 0.2s, background-color 0.2s;
79
  }
80
  .circle-button:hover {
 
82
  background-color: #3e8e41;
83
  }
84
  .arrow {
85
+ position: absolute;
86
+ width: 50px;
87
+ height: 50px;
88
  border-left: 4px solid green;
89
  border-bottom: 4px solid green;
90
+ transform: rotate(45deg);
91
+ z-index: -1;
92
  }
93
+ /* Circular positions for the buttons */
94
+ .circle-button:nth-child(1) { top: 5%; left: 50%; transform: translate(-50%, -50%); }
95
+ .circle-button:nth-child(2) { top: 20%; left: 80%; transform: translate(-50%, -50%); }
96
+ .circle-button:nth-child(3) { top: 50%; left: 95%; transform: translate(-50%, -50%); }
97
+ .circle-button:nth-child(4) { top: 80%; left: 80%; transform: translate(-50%, -50%); }
98
+ .circle-button:nth-child(5) { top: 95%; left: 50%; transform: translate(-50%, -50%); }
99
+ .circle-button:nth-child(6) { top: 80%; left: 20%; transform: translate(-50%, -50%); }
100
+ .circle-button:nth-child(7) { top: 50%; left: 5%; transform: translate(-50%, -50%); }
101
+ .circle-button:nth-child(8) { top: 20%; left: 20%; transform: translate(-50%, -50%); }
102
+ .circle-button:nth-child(9) { top: 10%; left: 35%; transform: translate(-50%, -50%); }
103
+ .circle-button:nth-child(10) { top: 10%; left: 65%; transform: translate(-50%, -50%); }
104
  </style>
105
  """
106
 
107
+ # HTML for Buttons
108
+ html_content = """
109
+ <div class="circle-container">
110
  <div class="circle-button">Step 1</div>
 
111
  <div class="circle-button">Step 2</div>
 
112
  <div class="circle-button">Step 3</div>
 
113
  <div class="circle-button">Step 4</div>
 
114
  <div class="circle-button">Step 5</div>
115
+ <div class="circle-button">Step 6</div>
116
+ <div class="circle-button">Step 7</div>
117
+ <div class="circle-button">Step 8</div>
118
+ <div class="circle-button">Step 9</div>
119
+ <div class="circle-button">Step 10</div>
120
  </div>
121
  """
122
 
123
  # Apply CSS and Render HTML
124
  st.markdown(custom_css, unsafe_allow_html=True)
125
+ st.markdown(html_content, unsafe_allow_html=True)
126
 
127
+ # Optional: Add functionality for each step
128
  query_params = st.query_params
129
  selected_step = query_params.get("step", [""])[0]
130