Update Frontend/style.css
Browse files- Frontend/style.css +109 -83
Frontend/style.css
CHANGED
|
@@ -1,127 +1,153 @@
|
|
| 1 |
body {
|
| 2 |
margin: 0;
|
| 3 |
-
font-family: 'Segoe UI', sans-serif;
|
| 4 |
-
background: linear-gradient(to bottom right, #
|
| 5 |
-
color: #
|
| 6 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 7 |
}
|
| 8 |
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
-
|
| 14 |
-
|
|
|
|
|
|
|
| 15 |
}
|
| 16 |
|
| 17 |
-
|
| 18 |
font-size: 2.5rem;
|
| 19 |
-
margin:
|
|
|
|
| 20 |
}
|
| 21 |
|
| 22 |
-
|
| 23 |
font-size: 1.2rem;
|
| 24 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 25 |
}
|
| 26 |
|
| 27 |
-
.
|
| 28 |
-
|
|
|
|
|
|
|
| 29 |
}
|
| 30 |
|
| 31 |
#videoElement {
|
| 32 |
width: 100%;
|
| 33 |
-
|
| 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 |
-
.
|
| 42 |
-
|
| 43 |
-
|
| 44 |
-
|
| 45 |
-
|
| 46 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 47 |
}
|
| 48 |
|
| 49 |
-
|
| 50 |
-
|
| 51 |
-
|
| 52 |
-
padding:
|
|
|
|
| 53 |
border: none;
|
| 54 |
-
border-radius:
|
|
|
|
| 55 |
font-size: 1rem;
|
| 56 |
-
font-weight: bold;
|
| 57 |
cursor: pointer;
|
| 58 |
-
|
| 59 |
-
|
| 60 |
}
|
| 61 |
|
| 62 |
-
|
| 63 |
-
|
| 64 |
-
|
| 65 |
}
|
| 66 |
|
| 67 |
-
.
|
| 68 |
-
|
|
|
|
| 69 |
}
|
| 70 |
|
| 71 |
-
|
| 72 |
-
|
| 73 |
-
|
| 74 |
-
|
| 75 |
-
|
| 76 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 77 |
}
|
| 78 |
|
| 79 |
-
|
| 80 |
-
|
| 81 |
-
|
| 82 |
-
|
|
|
|
|
|
|
| 83 |
}
|
| 84 |
|
| 85 |
-
#
|
| 86 |
-
|
| 87 |
-
|
| 88 |
-
|
| 89 |
-
color: #c7ffec;
|
| 90 |
}
|
| 91 |
|
| 92 |
-
#
|
| 93 |
display: inline-block;
|
| 94 |
-
|
| 95 |
-
background:
|
| 96 |
-
|
| 97 |
-
border-radius: 30px;
|
| 98 |
-
color: white;
|
| 99 |
-
text-decoration: none;
|
| 100 |
font-weight: bold;
|
| 101 |
-
|
| 102 |
-
|
| 103 |
-
|
| 104 |
-
#downloadEmoji:hover {
|
| 105 |
-
transform: scale(1.05);
|
| 106 |
-
box-shadow: 0 8px 16px rgba(238, 9, 121, 0.3);
|
| 107 |
}
|
| 108 |
|
| 109 |
-
|
| 110 |
-
|
| 111 |
-
50% { transform: translateY(-10px); }
|
| 112 |
}
|
| 113 |
|
| 114 |
-
|
| 115 |
-
|
| 116 |
-
|
| 117 |
-
|
| 118 |
-
}
|
| 119 |
-
.btn {
|
| 120 |
-
width: 90%;
|
| 121 |
-
padding: 14px 0;
|
| 122 |
-
font-size: 1.1rem;
|
| 123 |
}
|
| 124 |
-
|
| 125 |
-
|
|
|
|
| 126 |
}
|
| 127 |
}
|
|
|
|
| 1 |
body {
|
| 2 |
margin: 0;
|
| 3 |
+
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
|
| 4 |
+
background: linear-gradient(to bottom right, #003973, #E5E5BE);
|
| 5 |
+
color: #fff;
|
| 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 |
+
.title {
|
| 24 |
font-size: 2.5rem;
|
| 25 |
+
margin-bottom: 10px;
|
| 26 |
+
font-weight: 700;
|
| 27 |
}
|
| 28 |
|
| 29 |
+
.subtitle {
|
| 30 |
font-size: 1.2rem;
|
| 31 |
+
color: #cfd9df;
|
| 32 |
+
margin-bottom: 20px;
|
| 33 |
+
}
|
| 34 |
+
|
| 35 |
+
.camera-emoji-container {
|
| 36 |
+
display: flex;
|
| 37 |
+
justify-content: space-between;
|
| 38 |
+
flex-wrap: wrap;
|
| 39 |
+
gap: 15px;
|
| 40 |
+
margin-bottom: 20px;
|
| 41 |
+
}
|
| 42 |
+
|
| 43 |
+
.camera-section,
|
| 44 |
+
.emoji-section {
|
| 45 |
+
flex: 1 1 45%;
|
| 46 |
+
background-color: #004c99;
|
| 47 |
+
border-radius: 15px;
|
| 48 |
+
padding: 15px;
|
| 49 |
+
position: relative;
|
| 50 |
}
|
| 51 |
|
| 52 |
+
.video-wrapper {
|
| 53 |
+
position: relative;
|
| 54 |
+
border-radius: 10px;
|
| 55 |
+
overflow: hidden;
|
| 56 |
}
|
| 57 |
|
| 58 |
#videoElement {
|
| 59 |
width: 100%;
|
| 60 |
+
border-radius: 10px;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 61 |
}
|
| 62 |
|
| 63 |
+
.back-button {
|
| 64 |
+
position: absolute;
|
| 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 |
+
#switchCamera,
|
| 78 |
+
#capture {
|
| 79 |
+
margin: 10px 5px 0;
|
| 80 |
+
padding: 10px;
|
| 81 |
+
background-color: #00bcd4;
|
| 82 |
border: none;
|
| 83 |
+
border-radius: 8px;
|
| 84 |
+
color: #fff;
|
| 85 |
font-size: 1rem;
|
|
|
|
| 86 |
cursor: pointer;
|
| 87 |
+
width: 100%;
|
| 88 |
+
transition: background-color 0.3s ease;
|
| 89 |
}
|
| 90 |
|
| 91 |
+
#switchCamera:hover,
|
| 92 |
+
#capture:hover {
|
| 93 |
+
background-color: #0097a7;
|
| 94 |
}
|
| 95 |
|
| 96 |
+
.emoji-display {
|
| 97 |
+
font-size: 5rem;
|
| 98 |
+
margin-bottom: 10px;
|
| 99 |
}
|
| 100 |
|
| 101 |
+
.emotion-label {
|
| 102 |
+
font-size: 1.5rem;
|
| 103 |
+
font-weight: bold;
|
| 104 |
+
color: #ffeb3b;
|
| 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 |
+
.captured-img-wrapper {
|
| 116 |
+
max-width: 100%;
|
| 117 |
+
height: auto;
|
| 118 |
+
border-radius: 10px;
|
| 119 |
+
overflow: hidden;
|
| 120 |
+
margin-bottom: 10px;
|
| 121 |
}
|
| 122 |
|
| 123 |
+
#capturedImage {
|
| 124 |
+
width: 100%;
|
| 125 |
+
border-radius: 10px;
|
| 126 |
+
display: block;
|
|
|
|
| 127 |
}
|
| 128 |
|
| 129 |
+
#downloadLink {
|
| 130 |
display: inline-block;
|
| 131 |
+
padding: 10px 20px;
|
| 132 |
+
background-color: #00e676;
|
| 133 |
+
color: #003973;
|
|
|
|
|
|
|
|
|
|
| 134 |
font-weight: bold;
|
| 135 |
+
border-radius: 8px;
|
| 136 |
+
text-decoration: none;
|
| 137 |
+
transition: background-color 0.3s ease;
|
|
|
|
|
|
|
|
|
|
| 138 |
}
|
| 139 |
|
| 140 |
+
#downloadLink:hover {
|
| 141 |
+
background-color: #00c853;
|
|
|
|
| 142 |
}
|
| 143 |
|
| 144 |
+
@media screen and (max-width: 600px) {
|
| 145 |
+
.camera-emoji-container {
|
| 146 |
+
flex-direction: column;
|
| 147 |
+
align-items: center;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 148 |
}
|
| 149 |
+
.camera-section,
|
| 150 |
+
.emoji-section {
|
| 151 |
+
width: 100%;
|
| 152 |
}
|
| 153 |
}
|