Sephfox commited on
Commit
9deb7e1
·
verified ·
1 Parent(s): b5bd1aa

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +97 -26
app.py CHANGED
@@ -18,33 +18,104 @@ st.set_page_config(page_title="NeuraSense AI", page_icon="🧠", layout="wide")
18
  # Custom CSS for a futuristic look
19
  st.markdown("""
20
  <style>
21
- body {
22
- color: #E0E0E0;
23
- background-color: #0E1117;
24
- }
25
- .stApp {
26
- background-image: linear-gradient(135deg, #0E1117 0%, #1A1F2C 100%);
27
- }
28
- .stButton>button {
29
- color: #00FFFF;
30
- border-color: #00FFFF;
31
- border-radius: 20px;
32
- }
33
- .stSlider>div>div>div>div {
34
- background-color: #00FFFF;
35
- }
36
- .stTextArea, .stNumberInput, .stSelectbox {
37
- background-color: #1A1F2C;
38
- color: #00FFFF;
39
- border-color: #00FFFF;
40
- border-radius: 20px;
41
- }
42
- .stTextArea:focus, .stNumberInput:focus, .stSelectbox:focus {
43
- box-shadow: 0 0 10px #00FFFF;
44
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
45
  </style>
46
- """, unsafe_allow_html=True)
47
-
48
 
49
 
50
  # Constants
 
18
  # Custom CSS for a futuristic look
19
  st.markdown("""
20
  <style>
21
+ @import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&display=swap');
22
+
23
+ body {
24
+ color: #E0E0E0;
25
+ background-color: #0E1117;
26
+ font-family: 'Orbitron', sans-serif;
27
+ }
28
+
29
+ .stApp {
30
+ background-image:
31
+ radial-gradient(circle at 10% 20%, rgba(0, 255, 255, 0.1) 0%, transparent 20%),
32
+ radial-gradient(circle at 90% 80%, rgba(0, 255, 255, 0.1) 0%, transparent 20%),
33
+ linear-gradient(135deg, #0E1117 0%, #1A1F2C 100%);
34
+ animation: pulse 10s infinite alternate;
35
+ }
36
+
37
+ @keyframes pulse {
38
+ 0% { background-position: 0% 50%; }
39
+ 100% { background-position: 100% 50%; }
40
+ }
41
+
42
+ .stButton>button {
43
+ color: #00FFFF;
44
+ border: 2px solid #00FFFF;
45
+ border-radius: 30px;
46
+ background: linear-gradient(45deg, #1A1F2C, #2C3E50);
47
+ box-shadow: 0 0 15px rgba(0, 255, 255, 0.5);
48
+ transition: all 0.3s ease;
49
+ }
50
+
51
+ .stButton>button:hover {
52
+ transform: scale(1.05);
53
+ box-shadow: 0 0 25px rgba(0, 255, 255, 0.8);
54
+ }
55
+
56
+ .stSlider>div>div>div>div {
57
+ background-color: #00FFFF;
58
+ box-shadow: 0 0 10px #00FFFF;
59
+ }
60
+
61
+ .stTextArea, .stNumberInput, .stSelectbox {
62
+ background-color: rgba(26, 31, 44, 0.8);
63
+ color: #00FFFF;
64
+ border: 2px solid #00FFFF;
65
+ border-radius: 15px;
66
+ backdrop-filter: blur(5px);
67
+ transition: all 0.3s ease;
68
+ }
69
+
70
+ .stTextArea:focus, .stNumberInput:focus, .stSelectbox:focus {
71
+ box-shadow: 0 0 20px rgba(0, 255, 255, 0.8);
72
+ transform: translateY(-2px);
73
+ }
74
+
75
+ .stProgress > div > div {
76
+ background-color: #00FFFF;
77
+ background-image: linear-gradient(45deg, rgba(255,255,255,.15) 25%, transparent 25%, transparent 50%, rgba(255,255,255,.15) 50%, rgba(255,255,255,.15) 75%, transparent 75%, transparent);
78
+ background-size: 40px 40px;
79
+ animation: progress-bar-stripes 1s linear infinite;
80
+ }
81
+
82
+ @keyframes progress-bar-stripes {
83
+ 0% { background-position: 40px 0; }
84
+ 100% { background-position: 0 0; }
85
+ }
86
+
87
+ .stCheckbox > label > div {
88
+ border-color: #00FFFF;
89
+ }
90
+
91
+ .stCheckbox > label > div[data-checked="true"] {
92
+ background-color: #00FFFF;
93
+ }
94
+
95
+ /* Futuristic scrollbar */
96
+ ::-webkit-scrollbar {
97
+ width: 10px;
98
+ }
99
+
100
+ ::-webkit-scrollbar-track {
101
+ background: #1A1F2C;
102
+ }
103
+
104
+ ::-webkit-scrollbar-thumb {
105
+ background: #00FFFF;
106
+ border-radius: 5px;
107
+ }
108
+
109
+ ::-webkit-scrollbar-thumb:hover {
110
+ background: #00CCCC;
111
+ }
112
+
113
+ /* Glowing text effect for headers */
114
+ h1, h2, h3 {
115
+ text-shadow: 0 0 10px #00FFFF, 0 0 20px #00FFFF, 0 0 30px #00FFFF;
116
+ }
117
  </style>
118
+ st.markdown(enhanced_css, unsafe_allow_html=True)
 
119
 
120
 
121
  # Constants