ShamsKhan404 commited on
Commit
8e1f58c
·
verified ·
1 Parent(s): 6d733cc

Update static/style.css

Browse files
Files changed (1) hide show
  1. static/style.css +41 -70
static/style.css CHANGED
@@ -4,6 +4,7 @@
4
  box-sizing: border-box;
5
  }
6
 
 
7
  body {
8
  font-family: 'Poppins', sans-serif;
9
  background-color: #f8fafc;
@@ -14,10 +15,7 @@ body {
14
  height: 100vh;
15
  }
16
 
17
- /* Import Google Fonts */
18
- @import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500&family=Roboto+Mono&display=swap');
19
-
20
- /* ====== HEADER (Top Navbar) ====== */
21
  header {
22
  width: 100%;
23
  background-color: #1E293B;
@@ -26,11 +24,10 @@ header {
26
  align-items: center;
27
  justify-content: center;
28
  padding: 15px 20px;
29
- box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
30
  position: relative;
31
  }
32
 
33
- header button {
34
  position: absolute;
35
  left: 20px;
36
  background-color: #334155;
@@ -43,11 +40,10 @@ header button {
43
  transition: background 0.3s;
44
  }
45
 
46
- header button:hover {
47
  background-color: #475569;
48
  }
49
 
50
- /* Centers the navbar text and logo */
51
  .header-content {
52
  display: flex;
53
  align-items: center;
@@ -58,28 +54,27 @@ header img {
58
  height: 40px;
59
  }
60
 
61
- /* ====== SIDEBAR NAVIGATION ====== */
62
  nav {
63
  position: fixed;
64
  top: 0;
65
- left: 0;
66
  height: 100vh;
67
  width: 250px;
68
  background-color: #1E293B;
69
  color: white;
70
- display: none; /* Instead of translateX(-100%) */
71
  flex-direction: column;
72
  align-items: center;
73
  padding: 20px;
74
- transition: transform 0.3s ease-in-out;
75
  }
76
 
77
  nav.show {
78
- display: flex; /* Ensure it appears when triggered */
79
  }
80
 
81
- /* Sidebar Header (Logo + Title) */
82
- .nav-header {
83
  display: flex;
84
  align-items: center;
85
  gap: 10px;
@@ -95,7 +90,6 @@ nav h2 {
95
  font-weight: bold;
96
  }
97
 
98
- /* Sidebar Buttons */
99
  nav button {
100
  width: 100%;
101
  padding: 12px;
@@ -112,19 +106,7 @@ nav button:hover {
112
  background-color: #475569;
113
  }
114
 
115
- /* LinkedIn Link Styling */
116
- nav a {
117
- color: #60A5FA;
118
- text-decoration: none;
119
- font-size: 14px;
120
- margin-top: auto;
121
- }
122
-
123
- nav a:hover {
124
- text-decoration: underline;
125
- }
126
-
127
- /* ====== MAIN CONTENT ====== */
128
  .container {
129
  flex: 1;
130
  display: flex;
@@ -134,14 +116,19 @@ nav a:hover {
134
  padding: 40px;
135
  }
136
 
137
- /* ====== FILE UPLOAD FORM ====== */
138
- .upload-form {
139
- display: flex;
 
140
  align-items: center;
141
- justify-content: center;
142
- gap: 15px;
 
 
 
143
  }
144
 
 
145
  .upload-form input[type="file"] {
146
  border: 1px solid #ccc;
147
  padding: 8px;
@@ -150,8 +137,25 @@ nav a:hover {
150
  cursor: pointer;
151
  }
152
 
153
- /* Upload Button */
154
- .upload-form button {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
155
  background-color: #3B82F6;
156
  color: white;
157
  padding: 10px 20px;
@@ -159,41 +163,8 @@ nav a:hover {
159
  border-radius: 6px;
160
  font-size: 16px;
161
  cursor: pointer;
162
- transition: all 0.3s ease-in-out;
163
- font-family: 'Poppins', sans-serif;
164
- font-weight: 500;
165
  }
166
 
167
- .upload-form button:hover {
168
  background-color: #2563EB;
169
  }
170
-
171
- /* ====== DETECTED IMAGE OUTPUT ====== */
172
- .result-image {
173
- width: 100%;
174
- max-width: 600px;
175
- border-radius: 8px;
176
- box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
177
- margin-top: 10px;
178
- }
179
-
180
- /* ====== EMOTION RESULT LIST ====== */
181
- .emotion-list {
182
- list-style: none;
183
- padding: 0;
184
- margin-top: 10px;
185
- text-align: center;
186
- font-size: 18px;
187
- font-weight: 400;
188
- font-family: 'Roboto Mono', monospace;
189
- line-height: 1.6;
190
- }
191
-
192
- /* ====== FOOTER ====== */
193
- footer {
194
- margin-top: 20px;
195
- padding: 15px;
196
- background-color: #1E293B;
197
- color: white;
198
- font-size: 14px;
199
- }
 
4
  box-sizing: border-box;
5
  }
6
 
7
+ /* General Styles */
8
  body {
9
  font-family: 'Poppins', sans-serif;
10
  background-color: #f8fafc;
 
15
  height: 100vh;
16
  }
17
 
18
+ /* Header Navbar */
 
 
 
19
  header {
20
  width: 100%;
21
  background-color: #1E293B;
 
24
  align-items: center;
25
  justify-content: center;
26
  padding: 15px 20px;
 
27
  position: relative;
28
  }
29
 
30
+ header .sidebar-toggle {
31
  position: absolute;
32
  left: 20px;
33
  background-color: #334155;
 
40
  transition: background 0.3s;
41
  }
42
 
43
+ header .sidebar-toggle:hover {
44
  background-color: #475569;
45
  }
46
 
 
47
  .header-content {
48
  display: flex;
49
  align-items: center;
 
54
  height: 40px;
55
  }
56
 
57
+ /* Sidebar Navigation */
58
  nav {
59
  position: fixed;
60
  top: 0;
61
+ left: -250px;
62
  height: 100vh;
63
  width: 250px;
64
  background-color: #1E293B;
65
  color: white;
66
+ display: flex;
67
  flex-direction: column;
68
  align-items: center;
69
  padding: 20px;
70
+ transition: left 0.3s ease-in-out;
71
  }
72
 
73
  nav.show {
74
+ left: 0;
75
  }
76
 
77
+ nav .nav-header {
 
78
  display: flex;
79
  align-items: center;
80
  gap: 10px;
 
90
  font-weight: bold;
91
  }
92
 
 
93
  nav button {
94
  width: 100%;
95
  padding: 12px;
 
106
  background-color: #475569;
107
  }
108
 
109
+ /* Content Sections */
 
 
 
 
 
 
 
 
 
 
 
 
110
  .container {
111
  flex: 1;
112
  display: flex;
 
116
  padding: 40px;
117
  }
118
 
119
+ /* Hide Sections Initially */
120
+ #upload-container, #video-container {
121
+ display: none;
122
+ flex-direction: column;
123
  align-items: center;
124
+ padding: 20px;
125
+ }
126
+
127
+ #upload-container.active, #video-container.active {
128
+ display: flex;
129
  }
130
 
131
+ /* Upload Form */
132
  .upload-form input[type="file"] {
133
  border: 1px solid #ccc;
134
  padding: 8px;
 
137
  cursor: pointer;
138
  }
139
 
140
+ /* Emotion List */
141
+ .emotion-list {
142
+ list-style: none;
143
+ padding: 0;
144
+ margin-top: 10px;
145
+ font-size: 18px;
146
+ font-family: 'Roboto', sans-serif;
147
+ line-height: 1.6;
148
+ }
149
+
150
+ /* Video Controls */
151
+ .video-controls {
152
+ display: flex;
153
+ justify-content: center;
154
+ gap: 15px;
155
+ margin-top: 10px;
156
+ }
157
+
158
+ .video-controls button {
159
  background-color: #3B82F6;
160
  color: white;
161
  padding: 10px 20px;
 
163
  border-radius: 6px;
164
  font-size: 16px;
165
  cursor: pointer;
 
 
 
166
  }
167
 
168
+ .video-controls button:hover {
169
  background-color: #2563EB;
170
  }