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

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

Browse files
pages/3Life Cycle of Machine Learning Project.py CHANGED
@@ -49,7 +49,7 @@ st.markdown("""
49
 
50
  import streamlit as st
51
 
52
- # CSS for Circular Buttons and Circular Layout
53
  custom_css = """
54
  <style>
55
  .circle-container {
@@ -81,32 +81,45 @@ custom_css = """
81
  transform: scale(1.1);
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>
@@ -117,6 +130,17 @@ html_content = """
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
 
 
49
 
50
  import streamlit as st
51
 
52
+ # CSS for Buttons, Circular Layout, and Arrows
53
  custom_css = """
54
  <style>
55
  .circle-container {
 
81
  transform: scale(1.1);
82
  background-color: #3e8e41;
83
  }
 
 
 
 
 
 
 
 
 
84
  /* Circular positions for the buttons */
85
+ .circle-button:nth-child(1) { top: 5%; left: 50%; transform: translate(-50%, -50%); } /* Top */
86
  .circle-button:nth-child(2) { top: 20%; left: 80%; transform: translate(-50%, -50%); }
87
  .circle-button:nth-child(3) { top: 50%; left: 95%; transform: translate(-50%, -50%); }
88
  .circle-button:nth-child(4) { top: 80%; left: 80%; transform: translate(-50%, -50%); }
89
+ .circle-button:nth-child(5) { top: 95%; left: 50%; transform: translate(-50%, -50%); } /* Bottom */
90
  .circle-button:nth-child(6) { top: 80%; left: 20%; transform: translate(-50%, -50%); }
91
  .circle-button:nth-child(7) { top: 50%; left: 5%; transform: translate(-50%, -50%); }
92
  .circle-button:nth-child(8) { top: 20%; left: 20%; transform: translate(-50%, -50%); }
93
  .circle-button:nth-child(9) { top: 10%; left: 35%; transform: translate(-50%, -50%); }
94
  .circle-button:nth-child(10) { top: 10%; left: 65%; transform: translate(-50%, -50%); }
95
+
96
+ /* Arrow styles */
97
+ .arrow {
98
+ position: absolute;
99
+ width: 50px;
100
+ height: 50px;
101
+ border-left: 2px solid green;
102
+ border-bottom: 2px solid green;
103
+ transform: rotate(-45deg);
104
+ z-index: -1;
105
+ }
106
+ /* Position arrows */
107
+ .arrow-1 { top: 10%; left: 65%; transform: translate(-50%, -50%) rotate(30deg); }
108
+ .arrow-2 { top: 35%; left: 85%; transform: translate(-50%, -50%) rotate(60deg); }
109
+ .arrow-3 { top: 65%; left: 85%; transform: translate(-50%, -50%) rotate(90deg); }
110
+ .arrow-4 { top: 90%; left: 65%; transform: translate(-50%, -50%) rotate(120deg); }
111
+ .arrow-5 { top: 90%; left: 35%; transform: translate(-50%, -50%) rotate(150deg); }
112
+ .arrow-6 { top: 65%; left: 15%; transform: translate(-50%, -50%) rotate(180deg); }
113
+ .arrow-7 { top: 35%; left: 15%; transform: translate(-50%, -50%) rotate(210deg); }
114
+ .arrow-8 { top: 10%; left: 35%; transform: translate(-50%, -50%) rotate(240deg); }
115
+ .arrow-9 { top: 5%; left: 50%; transform: translate(-50%, -50%) rotate(270deg); }
116
  </style>
117
  """
118
 
119
+ # HTML for Buttons and Arrows
120
  html_content = """
121
  <div class="circle-container">
122
+ <!-- Buttons -->
123
  <div class="circle-button">Step 1</div>
124
  <div class="circle-button">Step 2</div>
125
  <div class="circle-button">Step 3</div>
 
130
  <div class="circle-button">Step 8</div>
131
  <div class="circle-button">Step 9</div>
132
  <div class="circle-button">Step 10</div>
133
+
134
+ <!-- Arrows -->
135
+ <div class="arrow arrow-1"></div>
136
+ <div class="arrow arrow-2"></div>
137
+ <div class="arrow arrow-3"></div>
138
+ <div class="arrow arrow-4"></div>
139
+ <div class="arrow arrow-5"></div>
140
+ <div class="arrow arrow-6"></div>
141
+ <div class="arrow arrow-7"></div>
142
+ <div class="arrow arrow-8"></div>
143
+ <div class="arrow arrow-9"></div>
144
  </div>
145
  """
146