Update src/streamlit_app.py
Browse files- src/streamlit_app.py +42 -13
src/streamlit_app.py
CHANGED
|
@@ -72,7 +72,7 @@ st.markdown("""
|
|
| 72 |
background: rgba(255, 255, 255, 0.95) !important;
|
| 73 |
backdrop-filter: blur(10px) !important;
|
| 74 |
z-index: 99999 !important;
|
| 75 |
-
padding: 1rem
|
| 76 |
border-bottom: 3px solid #bf5700 !important;
|
| 77 |
box-shadow: 0 4px 8px rgba(0,0,0,0.15) !important;
|
| 78 |
transform: translateZ(0) !important;
|
|
@@ -80,34 +80,36 @@ st.markdown("""
|
|
| 80 |
display: flex !important;
|
| 81 |
align-items: center !important;
|
| 82 |
justify-content: center !important;
|
| 83 |
-
flex-direction:
|
| 84 |
-
gap:
|
| 85 |
}
|
| 86 |
|
| 87 |
/* LOGO STYLING */
|
| 88 |
.header-logo {
|
| 89 |
-
max-height:
|
| 90 |
-
max-width:
|
| 91 |
height: auto !important;
|
| 92 |
width: auto !important;
|
| 93 |
object-fit: contain !important;
|
| 94 |
border-radius: 8px !important;
|
| 95 |
box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
|
|
|
|
| 96 |
}
|
| 97 |
|
| 98 |
/* HEADER TEXT STYLING */
|
| 99 |
.header-text {
|
| 100 |
-
font-size:
|
| 101 |
color: #bf5700 !important; /* UT Austin burnt orange */
|
| 102 |
-
text-align:
|
| 103 |
margin: 0 !important;
|
| 104 |
font-weight: bold !important;
|
| 105 |
text-shadow: 1px 1px 2px rgba(0,0,0,0.1) !important;
|
|
|
|
| 106 |
}
|
| 107 |
|
| 108 |
-
/* ADD TOP MARGIN TO MAIN CONTENT TO AVOID OVERLAP -
|
| 109 |
.main > .block-container {
|
| 110 |
-
margin-top:
|
| 111 |
padding-top: 20px !important;
|
| 112 |
background: rgba(255, 255, 255, 0.9) !important;
|
| 113 |
border-radius: 10px !important;
|
|
@@ -118,16 +120,43 @@ st.markdown("""
|
|
| 118 |
/* RESPONSIVE DESIGN FOR MOBILE */
|
| 119 |
@media (max-width: 768px) {
|
| 120 |
.header-logo {
|
| 121 |
-
max-height:
|
| 122 |
-
max-width:
|
| 123 |
}
|
| 124 |
|
| 125 |
.header-text {
|
| 126 |
-
font-size: 1.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 127 |
}
|
| 128 |
|
| 129 |
.main > .block-container {
|
| 130 |
-
margin-top:
|
| 131 |
}
|
| 132 |
}
|
| 133 |
|
|
|
|
| 72 |
background: rgba(255, 255, 255, 0.95) !important;
|
| 73 |
backdrop-filter: blur(10px) !important;
|
| 74 |
z-index: 99999 !important;
|
| 75 |
+
padding: 1rem 2rem !important;
|
| 76 |
border-bottom: 3px solid #bf5700 !important;
|
| 77 |
box-shadow: 0 4px 8px rgba(0,0,0,0.15) !important;
|
| 78 |
transform: translateZ(0) !important;
|
|
|
|
| 80 |
display: flex !important;
|
| 81 |
align-items: center !important;
|
| 82 |
justify-content: center !important;
|
| 83 |
+
flex-direction: row !important;
|
| 84 |
+
gap: 20px !important;
|
| 85 |
}
|
| 86 |
|
| 87 |
/* LOGO STYLING */
|
| 88 |
.header-logo {
|
| 89 |
+
max-height: 70px !important;
|
| 90 |
+
max-width: 280px !important;
|
| 91 |
height: auto !important;
|
| 92 |
width: auto !important;
|
| 93 |
object-fit: contain !important;
|
| 94 |
border-radius: 8px !important;
|
| 95 |
box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
|
| 96 |
+
flex-shrink: 0 !important;
|
| 97 |
}
|
| 98 |
|
| 99 |
/* HEADER TEXT STYLING */
|
| 100 |
.header-text {
|
| 101 |
+
font-size: 2.2rem !important;
|
| 102 |
color: #bf5700 !important; /* UT Austin burnt orange */
|
| 103 |
+
text-align: left !important;
|
| 104 |
margin: 0 !important;
|
| 105 |
font-weight: bold !important;
|
| 106 |
text-shadow: 1px 1px 2px rgba(0,0,0,0.1) !important;
|
| 107 |
+
white-space: nowrap !important;
|
| 108 |
}
|
| 109 |
|
| 110 |
+
/* ADD TOP MARGIN TO MAIN CONTENT TO AVOID OVERLAP - ADJUSTED FOR HORIZONTAL LOGO */
|
| 111 |
.main > .block-container {
|
| 112 |
+
margin-top: 120px !important; /* Reduced back to 120px for horizontal layout */
|
| 113 |
padding-top: 20px !important;
|
| 114 |
background: rgba(255, 255, 255, 0.9) !important;
|
| 115 |
border-radius: 10px !important;
|
|
|
|
| 120 |
/* RESPONSIVE DESIGN FOR MOBILE */
|
| 121 |
@media (max-width: 768px) {
|
| 122 |
.header-logo {
|
| 123 |
+
max-height: 50px !important;
|
| 124 |
+
max-width: 200px !important;
|
| 125 |
}
|
| 126 |
|
| 127 |
.header-text {
|
| 128 |
+
font-size: 1.2rem !important;
|
| 129 |
+
}
|
| 130 |
+
|
| 131 |
+
.main-header {
|
| 132 |
+
padding: 0.8rem 1rem !important;
|
| 133 |
+
gap: 15px !important;
|
| 134 |
+
}
|
| 135 |
+
|
| 136 |
+
.main > .block-container {
|
| 137 |
+
margin-top: 100px !important;
|
| 138 |
+
}
|
| 139 |
+
}
|
| 140 |
+
|
| 141 |
+
/* EXTRA SMALL MOBILE */
|
| 142 |
+
@media (max-width: 480px) {
|
| 143 |
+
.main-header {
|
| 144 |
+
flex-direction: column !important;
|
| 145 |
+
gap: 8px !important;
|
| 146 |
+
padding: 0.8rem 0.5rem !important;
|
| 147 |
+
}
|
| 148 |
+
|
| 149 |
+
.header-logo {
|
| 150 |
+
max-height: 40px !important;
|
| 151 |
+
max-width: 180px !important;
|
| 152 |
+
}
|
| 153 |
+
|
| 154 |
+
.header-text {
|
| 155 |
+
font-size: 1.1rem !important;
|
| 156 |
}
|
| 157 |
|
| 158 |
.main > .block-container {
|
| 159 |
+
margin-top: 110px !important;
|
| 160 |
}
|
| 161 |
}
|
| 162 |
|