Update Frontend/style.css
Browse files- Frontend/style.css +75 -112
Frontend/style.css
CHANGED
@@ -1,153 +1,116 @@
|
|
1 |
body {
|
2 |
margin: 0;
|
3 |
-
font-family: 'Segoe UI',
|
4 |
-
background: linear-gradient(to bottom right, #
|
5 |
-
color: #
|
6 |
-
display: flex;
|
7 |
-
justify-content: center;
|
8 |
-
align-items: center;
|
9 |
-
min-height: 100vh;
|
10 |
-
padding: 20px;
|
11 |
-
}
|
12 |
-
|
13 |
-
.container {
|
14 |
-
max-width: 500px;
|
15 |
-
width: 100%;
|
16 |
-
background: #003973;
|
17 |
-
border-radius: 20px;
|
18 |
-
box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
|
19 |
-
padding: 20px;
|
20 |
text-align: center;
|
21 |
}
|
22 |
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
.subtitle {
|
30 |
-
font-size: 1.2rem;
|
31 |
-
color: #cfd9df;
|
32 |
-
margin-bottom: 20px;
|
33 |
}
|
34 |
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
flex-wrap: wrap;
|
39 |
-
gap: 15px;
|
40 |
-
margin-bottom: 20px;
|
41 |
}
|
42 |
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
background-color: #004c99;
|
47 |
-
border-radius: 15px;
|
48 |
-
padding: 15px;
|
49 |
-
position: relative;
|
50 |
}
|
51 |
|
52 |
-
.
|
53 |
-
|
54 |
-
border-radius: 10px;
|
55 |
-
overflow: hidden;
|
56 |
}
|
57 |
|
58 |
#videoElement {
|
59 |
width: 100%;
|
60 |
-
|
|
|
|
|
|
|
|
|
|
|
61 |
}
|
62 |
|
63 |
-
.
|
64 |
-
|
65 |
-
top: 10px;
|
66 |
-
left: 10px;
|
67 |
-
background: rgba(255, 255, 255, 0.2);
|
68 |
-
border: none;
|
69 |
-
color: #fff;
|
70 |
-
font-size: 1.5rem;
|
71 |
-
border-radius: 50%;
|
72 |
-
width: 35px;
|
73 |
-
height: 35px;
|
74 |
-
cursor: pointer;
|
75 |
}
|
76 |
|
77 |
-
|
78 |
-
#
|
79 |
-
|
80 |
-
padding:
|
81 |
-
background-color: #00bcd4;
|
82 |
border: none;
|
83 |
-
border-radius:
|
84 |
-
color: #fff;
|
85 |
font-size: 1rem;
|
|
|
|
|
86 |
cursor: pointer;
|
87 |
-
|
88 |
-
|
89 |
}
|
90 |
|
91 |
-
|
92 |
-
|
93 |
-
|
94 |
}
|
95 |
|
96 |
-
.
|
97 |
-
|
98 |
-
margin-bottom: 10px;
|
99 |
}
|
100 |
|
101 |
-
|
102 |
-
|
103 |
-
|
104 |
-
|
105 |
-
|
106 |
-
|
107 |
-
.captured-section {
|
108 |
-
background-color: #004466;
|
109 |
-
border-radius: 15px;
|
110 |
-
padding: 15px;
|
111 |
-
margin-top: 20px;
|
112 |
-
text-align: center;
|
113 |
}
|
114 |
|
115 |
-
|
116 |
-
|
117 |
-
|
118 |
-
|
119 |
-
overflow: hidden;
|
120 |
-
margin-bottom: 10px;
|
121 |
}
|
122 |
|
123 |
-
#
|
124 |
-
|
125 |
-
|
126 |
-
|
|
|
127 |
}
|
128 |
|
129 |
-
#
|
130 |
display: inline-block;
|
131 |
-
|
132 |
-
background
|
133 |
-
|
134 |
-
|
135 |
-
|
136 |
text-decoration: none;
|
137 |
-
|
|
|
138 |
}
|
139 |
|
140 |
-
#
|
141 |
-
|
|
|
142 |
}
|
143 |
|
144 |
-
|
145 |
-
|
146 |
-
|
147 |
-
|
148 |
-
|
149 |
-
.camera-section,
|
150 |
-
.emoji-section {
|
151 |
-
width: 100%;
|
152 |
-
}
|
153 |
}
|
|
|
|
|
|
|
|
|
|
|
|
1 |
body {
|
2 |
margin: 0;
|
3 |
+
font-family: 'Segoe UI', sans-serif;
|
4 |
+
background: linear-gradient(to bottom right, #141e30, #243b55);
|
5 |
+
color: #f3f3f3;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
6 |
text-align: center;
|
7 |
}
|
8 |
|
9 |
+
header {
|
10 |
+
padding: 2rem 1rem;
|
11 |
+
background: linear-gradient(to right, #ff9a9e, #fad0c4);
|
12 |
+
color: transparent;
|
13 |
+
-webkit-background-clip: text;
|
14 |
+
background-clip: text;
|
|
|
|
|
|
|
|
|
15 |
}
|
16 |
|
17 |
+
header h1 {
|
18 |
+
font-size: 3rem;
|
19 |
+
margin: 0;
|
|
|
|
|
|
|
20 |
}
|
21 |
|
22 |
+
header p {
|
23 |
+
font-size: 1.2rem;
|
24 |
+
margin-top: 0.5rem;
|
|
|
|
|
|
|
|
|
25 |
}
|
26 |
|
27 |
+
.camera-section {
|
28 |
+
padding: 1rem;
|
|
|
|
|
29 |
}
|
30 |
|
31 |
#videoElement {
|
32 |
width: 100%;
|
33 |
+
max-width: 460px;
|
34 |
+
border-radius: 20px;
|
35 |
+
border: 4px solid rgba(255, 255, 255, 0.3);
|
36 |
+
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
|
37 |
+
object-fit: cover;
|
38 |
+
margin-bottom: 1rem;
|
39 |
}
|
40 |
|
41 |
+
.btn-group {
|
42 |
+
margin-top: 1rem;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
43 |
}
|
44 |
|
45 |
+
.btn {
|
46 |
+
background: linear-gradient(to right, #6a11cb, #2575fc);
|
47 |
+
color: white;
|
48 |
+
padding: 12px 24px;
|
|
|
49 |
border: none;
|
50 |
+
border-radius: 40px;
|
|
|
51 |
font-size: 1rem;
|
52 |
+
font-weight: bold;
|
53 |
+
margin: 8px;
|
54 |
cursor: pointer;
|
55 |
+
transition: all 0.3s ease;
|
56 |
+
box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
|
57 |
}
|
58 |
|
59 |
+
.btn:hover {
|
60 |
+
background: linear-gradient(to right, #43e97b, #38f9d7);
|
61 |
+
transform: scale(1.05);
|
62 |
}
|
63 |
|
64 |
+
.result-section {
|
65 |
+
padding: 1rem;
|
|
|
66 |
}
|
67 |
|
68 |
+
#capturedImagePreview img {
|
69 |
+
width: 100%;
|
70 |
+
max-width: 360px;
|
71 |
+
margin-top: 1rem;
|
72 |
+
border-radius: 16px;
|
73 |
+
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
|
|
|
|
|
|
|
|
|
|
|
|
|
74 |
}
|
75 |
|
76 |
+
#emojiDisplay img {
|
77 |
+
margin-top: 1rem;
|
78 |
+
width: 100px;
|
79 |
+
animation: bounce 1.2s ease-in-out infinite;
|
|
|
|
|
80 |
}
|
81 |
|
82 |
+
#emotionText {
|
83 |
+
margin-top: 1rem;
|
84 |
+
font-size: 1.3rem;
|
85 |
+
font-weight: 500;
|
86 |
+
color: #c7ffec;
|
87 |
}
|
88 |
|
89 |
+
#downloadEmoji {
|
90 |
display: inline-block;
|
91 |
+
margin-top: 1rem;
|
92 |
+
background: linear-gradient(to right, #ee0979, #ff6a00);
|
93 |
+
padding: 12px 24px;
|
94 |
+
border-radius: 30px;
|
95 |
+
color: white;
|
96 |
text-decoration: none;
|
97 |
+
font-weight: bold;
|
98 |
+
transition: 0.3s;
|
99 |
}
|
100 |
|
101 |
+
#downloadEmoji:hover {
|
102 |
+
transform: scale(1.05);
|
103 |
+
box-shadow: 0 8px 16px rgba(238, 9, 121, 0.3);
|
104 |
}
|
105 |
|
106 |
+
footer {
|
107 |
+
margin-top: 2rem;
|
108 |
+
padding: 1rem;
|
109 |
+
font-size: 0.9rem;
|
110 |
+
color: #aaa;
|
|
|
|
|
|
|
|
|
111 |
}
|
112 |
+
|
113 |
+
@keyframes bounce {
|
114 |
+
0%, 100% { transform: translateY(0); }
|
115 |
+
50% { transform: translateY(-10px); }
|
116 |
+
}
|