Upload 2 files
Browse files- .streamlit/config.toml +4 -0
- style.css +193 -0
.streamlit/config.toml
ADDED
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
1 |
+
[theme]
|
2 |
+
base="dark"
|
3 |
+
primaryColor="#4caf50"
|
4 |
+
secondaryBackgroundColor="#1b1e1a"
|
style.css
ADDED
@@ -0,0 +1,193 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
body {
|
2 |
+
font-family: 'Roboto', sans-serif;
|
3 |
+
background-color: transparent;
|
4 |
+
}
|
5 |
+
|
6 |
+
.stApp {
|
7 |
+
max-width: 100%;
|
8 |
+
margin: 0;
|
9 |
+
padding: 2rem;
|
10 |
+
background-color: transparent;
|
11 |
+
border-radius: 10px;
|
12 |
+
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
|
13 |
+
}
|
14 |
+
|
15 |
+
.reportview-container {
|
16 |
+
background-color: transparent;
|
17 |
+
}
|
18 |
+
|
19 |
+
.reportview-container .main {
|
20 |
+
background-color: transparent;
|
21 |
+
}
|
22 |
+
|
23 |
+
.reportview-container .main .block-container {
|
24 |
+
background-color: transparent;
|
25 |
+
}
|
26 |
+
|
27 |
+
.stNavigation {
|
28 |
+
background-color: transparent !important;
|
29 |
+
}
|
30 |
+
|
31 |
+
.stNavigation .css-218ufz,
|
32 |
+
.stNavigation .css-f0ifqm,
|
33 |
+
.stNavigation .css-jc4t97 {
|
34 |
+
background-color: transparent !important;
|
35 |
+
}
|
36 |
+
|
37 |
+
/* Word-by-word animation for "Welcome to Health & Nutrition Analyzer" */
|
38 |
+
.animated-text {
|
39 |
+
opacity: 0;
|
40 |
+
animation: fade-in 1s ease-in-out forwards;
|
41 |
+
}
|
42 |
+
|
43 |
+
@keyframes fade-in {
|
44 |
+
0% {
|
45 |
+
opacity: 0;
|
46 |
+
transform: translateY(20px);
|
47 |
+
}
|
48 |
+
100% {
|
49 |
+
opacity: 1;
|
50 |
+
transform: translateY(0);
|
51 |
+
}
|
52 |
+
}
|
53 |
+
|
54 |
+
.animated-text span {
|
55 |
+
display: inline-block;
|
56 |
+
animation: slide-in 0.5s ease-in-out forwards;
|
57 |
+
}
|
58 |
+
|
59 |
+
@keyframes slide-in {
|
60 |
+
0% {
|
61 |
+
opacity: 0;
|
62 |
+
transform: translateX(-20px);
|
63 |
+
}
|
64 |
+
100% {
|
65 |
+
opacity: 1;
|
66 |
+
transform: translateX(0);
|
67 |
+
}
|
68 |
+
}
|
69 |
+
|
70 |
+
/* Responsive styles */
|
71 |
+
@media (max-width: 767px) {
|
72 |
+
.stApp {
|
73 |
+
padding: 1rem;
|
74 |
+
}
|
75 |
+
|
76 |
+
.animated-text {
|
77 |
+
font-size: 1.5rem;
|
78 |
+
}
|
79 |
+
|
80 |
+
.stButton > button {
|
81 |
+
font-size: 0.9rem;
|
82 |
+
}
|
83 |
+
}
|
84 |
+
|
85 |
+
@media (min-width: 768px) {
|
86 |
+
.stApp {
|
87 |
+
padding: 2rem;
|
88 |
+
}
|
89 |
+
|
90 |
+
.animated-text {
|
91 |
+
font-size: 2rem;
|
92 |
+
}
|
93 |
+
|
94 |
+
.stButton > button {
|
95 |
+
font-size: 1rem;
|
96 |
+
}
|
97 |
+
}
|
98 |
+
|
99 |
+
h1, h2, h3 {
|
100 |
+
color: #4CAF50;
|
101 |
+
}
|
102 |
+
|
103 |
+
.stButton > button {
|
104 |
+
background-color: transparent;
|
105 |
+
color: white;
|
106 |
+
border: 3px solid #4CAF50;
|
107 |
+
border-radius: 5px;
|
108 |
+
padding: 0.5rem 1rem;
|
109 |
+
font-size: 1rem;
|
110 |
+
font-weight: 900;
|
111 |
+
transition: all 0.3s ease;
|
112 |
+
}
|
113 |
+
|
114 |
+
/* Hover styles for buttons: text turns black, border turns lime */
|
115 |
+
.stButton > button:hover {
|
116 |
+
background-color: transparent; /* Change background color */
|
117 |
+
color: lime; /* Text color turns black */
|
118 |
+
border: 6px solid lime; /* Border becomes lime */
|
119 |
+
transform: translateY(-2px); /* Lift effect */
|
120 |
+
box-shadow: 0 4px 6px rgba(74, 128, 35, 0.1); /* Subtle shadow */
|
121 |
+
}
|
122 |
+
|
123 |
+
/* Translation box, edit profile toggle, upload image box */
|
124 |
+
.stSelectbox > div > div > select,
|
125 |
+
.stCheckbox > label,
|
126 |
+
.stFileUploader > div {
|
127 |
+
background-color: black !important;
|
128 |
+
color: #45a049 !important;
|
129 |
+
}
|
130 |
+
|
131 |
+
/* Register section specific styles */
|
132 |
+
[data-testid="stNumberInput"] > div > div > input,
|
133 |
+
[data-testid="stSelectbox"] > div > div > select,
|
134 |
+
.stButton > button[kind="primaryFormSubmit"] {
|
135 |
+
background-color: #45a049 !important;
|
136 |
+
color: #000 !important;
|
137 |
+
}
|
138 |
+
|
139 |
+
/* Black spinner */
|
140 |
+
.stSpinner > div > div {
|
141 |
+
border-top-color: black !important;
|
142 |
+
}
|
143 |
+
|
144 |
+
/* Add this to center-align elements on the home page */
|
145 |
+
.home-container {
|
146 |
+
text-align: center; /* Center-align text */
|
147 |
+
}
|
148 |
+
|
149 |
+
/* Add this for the heading shadow effect */
|
150 |
+
h1.animated-text {
|
151 |
+
text-shadow: 2px 2px 5px black; /* Black shadow border effect */
|
152 |
+
}
|
153 |
+
|
154 |
+
/* Center-align subtext and buttons in the home page */
|
155 |
+
.home-container .subtext, /* Assuming the subtext has a class of 'subtext' */
|
156 |
+
.stButton {
|
157 |
+
text-align: center; /* Center-align text */
|
158 |
+
}
|
159 |
+
|
160 |
+
/* Add 3D effect to the heading in the home page */
|
161 |
+
h1.animated-text {
|
162 |
+
text-shadow: 2px 2px 5px black, 0 0 25px #174919, 0 0 5px #00ff08; /* 3D shadow effect */
|
163 |
+
}
|
164 |
+
|
165 |
+
/* Increase size of heading in the home page */
|
166 |
+
.home-container h1.animated-text {
|
167 |
+
font-size: 4.5rem; /* Adjust the size as needed */
|
168 |
+
}
|
169 |
+
|
170 |
+
/* Increase size of subtext in the home page */
|
171 |
+
.home-container .subtext {
|
172 |
+
text-align: center;
|
173 |
+
font-size: 1rem; /* Adjust the size as needed */
|
174 |
+
margin-top: 0.25rem; /* Optional: Add some space above the subtext */
|
175 |
+
}
|
176 |
+
|
177 |
+
/* Reduce distance between the two buttons in home page */
|
178 |
+
.stButton {
|
179 |
+
margin: 0.5rem; /* Adjust margin to reduce distance */
|
180 |
+
}
|
181 |
+
|
182 |
+
/* Center-align buttons in the home page */
|
183 |
+
.home-button-container {
|
184 |
+
display: flex;
|
185 |
+
justify-content: center; /* Center-align buttons */
|
186 |
+
margin-top: 1rem; /* Optional: Add some space above the buttons */
|
187 |
+
}
|
188 |
+
|
189 |
+
/* Ensure buttons are displayed inline */
|
190 |
+
.stButton > button {
|
191 |
+
margin: 0 0.5rem; /* Adjust margin to reduce distance between buttons */
|
192 |
+
}
|
193 |
+
|