Spaces:
Running
Running
Update src/App.scss
Browse files- src/App.scss +89 -189
src/App.scss
CHANGED
|
@@ -15,7 +15,6 @@
|
|
| 15 |
--popover-foreground: oklch(0.145 0 0);
|
| 16 |
--border: oklch(0.922 0 0);
|
| 17 |
}
|
| 18 |
-
|
| 19 |
.dark {
|
| 20 |
--background: oklch(0.145 0 0);
|
| 21 |
--foreground: oklch(0.985 0 0);
|
|
@@ -26,229 +25,130 @@
|
|
| 26 |
|
| 27 |
// 3. Apply base styles
|
| 28 |
@layer base {
|
| 29 |
-
* {
|
| 30 |
-
border-color: theme('colors.custom-border');
|
| 31 |
-
outline-color: theme('colors.custom-foreground');
|
| 32 |
-
box-sizing: border-box;
|
| 33 |
-
}
|
| 34 |
body {
|
| 35 |
@apply bg-custom-background text-custom-foreground;
|
| 36 |
overflow-x: hidden;
|
| 37 |
-
font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif
|
| 38 |
-
|
| 39 |
-
-moz-osx-font-smoothing: grayscale;
|
| 40 |
-
margin: 0;
|
| 41 |
-
padding: 0;
|
| 42 |
-
}
|
| 43 |
-
html {
|
| 44 |
-
margin: 0;
|
| 45 |
-
padding: 0;
|
| 46 |
-
overflow-x: hidden;
|
| 47 |
}
|
| 48 |
}
|
| 49 |
|
| 50 |
-
|
| 51 |
-
|
| 52 |
-
|
| 53 |
-
|
| 54 |
-
}
|
| 55 |
-
.media-area {
|
| 56 |
-
flex-grow: 1;
|
| 57 |
-
position: relative;
|
| 58 |
}
|
| 59 |
|
| 60 |
-
|
| 61 |
-
|
| 62 |
-
|
| 63 |
-
|
| 64 |
-
width: 100%;
|
| 65 |
-
height: 100%;
|
| 66 |
-
position: absolute;
|
| 67 |
-
top: 0;
|
| 68 |
-
left: 0;
|
| 69 |
-
pointer-events: none;
|
| 70 |
-
}
|
| 71 |
-
|
| 72 |
-
/* Notification Popover */
|
| 73 |
-
.notification-popover-wrapper {
|
| 74 |
-
position: fixed; top: 1rem; left: 50%; transform: translateX(-50%); z-index: 100;
|
| 75 |
-
width: calc(100% - 1rem); max-width: 28rem; display: flex; justify-content: center; pointer-events: none;
|
| 76 |
-
}
|
| 77 |
-
.popover-content {
|
| 78 |
-
width: 100%; border-radius: var(--radius-md, 0.5rem); border-width: 1px;
|
| 79 |
-
background-color: theme('colors.custom-popover');
|
| 80 |
-
color: theme('colors.custom-popover-foreground');
|
| 81 |
-
border-color: theme('colors.custom-border');
|
| 82 |
-
box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
|
| 83 |
-
outline: none; transition: opacity 0.3s ease-out, transform 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
|
| 84 |
-
opacity: 0; transform: translateY(-100%) scale(0.9); pointer-events: none;
|
| 85 |
-
&.open { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
|
| 86 |
-
}
|
| 87 |
-
.notification-popover-text-content {
|
| 88 |
-
background-color: #eff6ff;
|
| 89 |
-
font-size: 0.875rem; line-height: 1.5rem; direction: rtl;
|
| 90 |
-
padding: 1rem; border-radius: var(--radius-md, 0.5rem);
|
| 91 |
-
color: oklch(0.145 0 0);
|
| 92 |
-
}
|
| 93 |
-
.dark .notification-popover-text-content {
|
| 94 |
-
background-color: oklch(0.25 0.05 230);
|
| 95 |
-
color: oklch(0.95 0.01 230);
|
| 96 |
}
|
| 97 |
|
| 98 |
-
/* Header controls */
|
| 99 |
.header-controls {
|
| 100 |
-
display: flex; padding: 0.75rem
|
| 101 |
-
width: 100%; position: absolute; top: 0; left: 0; z-index:
|
|
|
|
|
|
|
| 102 |
}
|
| 103 |
-
|
|
|
|
| 104 |
display: flex; align-items: center; justify-content: center; padding: 0.5rem;
|
| 105 |
-
width:
|
| 106 |
-
background-color:
|
| 107 |
-
|
| 108 |
-
|
| 109 |
-
|
| 110 |
-
|
| 111 |
-
|
|
|
|
|
|
|
|
|
|
| 112 |
}
|
| 113 |
-
&:hover { background-color:
|
| 114 |
-
&:active {
|
| 115 |
-
}
|
| 116 |
-
|
| 117 |
-
|
| 118 |
-
|
| 119 |
-
|
| 120 |
-
|
| 121 |
-
|
| 122 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 123 |
}
|
|
|
|
| 124 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 125 |
|
| 126 |
-
|
| 127 |
-
|
|
|
|
|
|
|
| 128 |
position: relative;
|
| 129 |
-
|
| 130 |
-
|
| 131 |
-
|
| 132 |
-
|
| 133 |
-
|
| 134 |
-
|
| 135 |
-
height: 100%;
|
| 136 |
-
}
|
| 137 |
}
|
| 138 |
-
|
| 139 |
-
/* Footer styles */
|
| 140 |
.footer-controls-html-like {
|
| 141 |
-
width: 100%;
|
| 142 |
-
|
| 143 |
-
|
| 144 |
-
position: absolute;
|
| 145 |
-
bottom: 2rem;
|
| 146 |
-
padding-left: 2.5rem;
|
| 147 |
-
padding-right: 2.5rem;
|
| 148 |
-
padding-top: 0.5rem;
|
| 149 |
-
padding-bottom: 0.5rem;
|
| 150 |
-
box-sizing: border-box;
|
| 151 |
-
z-index: 20;
|
| 152 |
-
justify-content: space-between;
|
| 153 |
}
|
| 154 |
-
|
| 155 |
.small-logo-footer-html-like {
|
| 156 |
-
position: absolute;
|
| 157 |
-
|
| 158 |
-
top: 50%;
|
| 159 |
-
transform: translate(-50%, -50%);
|
| 160 |
-
z-index: 1;
|
| 161 |
-
display: flex;
|
| 162 |
-
align-items: center;
|
| 163 |
-
justify-content: center;
|
| 164 |
-
}
|
| 165 |
-
|
| 166 |
-
.control-button-wrapper {
|
| 167 |
-
position: relative;
|
| 168 |
-
display: flex;
|
| 169 |
-
justify-content: center;
|
| 170 |
}
|
| 171 |
-
|
| 172 |
.control-button {
|
| 173 |
-
height: 80px;
|
| 174 |
-
|
| 175 |
-
border-
|
| 176 |
-
padding: 0;
|
| 177 |
-
display: flex;
|
| 178 |
-
align-items: center;
|
| 179 |
-
justify-content: center;
|
| 180 |
-
border-width: 1px;
|
| 181 |
-
border-color: theme('colors.custom-border');
|
| 182 |
box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
|
| 183 |
-
cursor: pointer;
|
| 184 |
-
|
| 185 |
-
|
| 186 |
-
|
| 187 |
-
overflow: hidden;
|
| 188 |
-
|
| 189 |
-
&:hover {
|
| 190 |
-
transform: scale(1.05);
|
| 191 |
-
box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
|
| 192 |
-
}
|
| 193 |
-
|
| 194 |
-
svg {
|
| 195 |
-
&.reference-mic-svg {
|
| 196 |
-
width: 75%;
|
| 197 |
-
height: 75%;
|
| 198 |
-
}
|
| 199 |
-
}
|
| 200 |
}
|
| 201 |
-
|
| 202 |
.mic-button-color { background-color: #fecdd3; }
|
| 203 |
.cam-button-color { background-color: #E0ECFF; }
|
| 204 |
.dark .mic-button-color { background-color: #5C2129; }
|
| 205 |
.dark .cam-button-color { background-color: #223355; }
|
| 206 |
-
|
| 207 |
-
/* Switch Camera Button */
|
| 208 |
.switch-camera-button-container {
|
| 209 |
position: absolute; bottom: calc(100% + 0.65rem); left: 50%;
|
| 210 |
transform: translateX(-50%) translateY(15px) scale(0.7); z-index: 5;
|
| 211 |
-
opacity: 0; pointer-events: none;
|
| 212 |
-
transition: opacity 0.35s cubic-bezier(0.68, -0.55, 0.27, 1.55), transform 0.35s cubic-bezier(0.68, -0.55, 0.27, 1.55);
|
| 213 |
transform-origin: center bottom;
|
| 214 |
&.visible { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); pointer-events: auto; }
|
| 215 |
}
|
| 216 |
.switch-camera-button-content {
|
| 217 |
-
width: 48px; height: 48px;
|
| 218 |
-
|
| 219 |
-
|
| 220 |
-
|
| 221 |
-
|
| 222 |
-
|
| 223 |
-
|
| 224 |
-
|
| 225 |
-
&:hover {
|
| 226 |
-
transform: scale(1.12); /* فقط بزرگ شدن در هاور */
|
| 227 |
-
box-shadow: 0 7px 15px rgba(0,0,0,0.18), 0 3px 6px rgba(0,0,0,0.12);
|
| 228 |
-
}
|
| 229 |
-
&:active {
|
| 230 |
-
transform: scale(1.03); /* فقط کمی بزرگ شدن در کلیک، بدون چرخش */
|
| 231 |
-
}
|
| 232 |
-
svg {
|
| 233 |
-
width: 22px; height: 22px;
|
| 234 |
-
stroke: theme('colors.custom-foreground');
|
| 235 |
-
transition: transform 0.3s ease-in-out;
|
| 236 |
-
}
|
| 237 |
-
&:hover svg {
|
| 238 |
-
// transform: rotate(360deg); // حذف چرخش آیکون داخلی هم اگر نمیخواهید
|
| 239 |
-
}
|
| 240 |
-
}
|
| 241 |
-
|
| 242 |
-
/* Keyframes for popover */
|
| 243 |
-
.animate-popover-open-top-center {
|
| 244 |
-
animation-name: popover-drop-in;
|
| 245 |
-
animation-duration: 0.4s;
|
| 246 |
-
animation-timing-function: cubic-bezier(0.68, -0.55, 0.27, 1.55);
|
| 247 |
-
animation-fill-mode: forwards;
|
| 248 |
-
}
|
| 249 |
-
.animate-popover-close-top-center {
|
| 250 |
-
animation-name: popover-lift-out;
|
| 251 |
-
animation-duration: 0.3s;
|
| 252 |
-
animation-timing-function: ease-in;
|
| 253 |
-
animation-fill-mode: forwards;
|
| 254 |
}
|
|
|
|
| 15 |
--popover-foreground: oklch(0.145 0 0);
|
| 16 |
--border: oklch(0.922 0 0);
|
| 17 |
}
|
|
|
|
| 18 |
.dark {
|
| 19 |
--background: oklch(0.145 0 0);
|
| 20 |
--foreground: oklch(0.985 0 0);
|
|
|
|
| 25 |
|
| 26 |
// 3. Apply base styles
|
| 27 |
@layer base {
|
| 28 |
+
* { box-sizing: border-box; }
|
|
|
|
|
|
|
|
|
|
|
|
|
| 29 |
body {
|
| 30 |
@apply bg-custom-background text-custom-foreground;
|
| 31 |
overflow-x: hidden;
|
| 32 |
+
font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
|
| 33 |
+
margin: 0; padding: 0;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 34 |
}
|
| 35 |
}
|
| 36 |
|
| 37 |
+
/* --- START: استایلهای جدید و اصلاح شده --- */
|
| 38 |
+
.loading-screen {
|
| 39 |
+
display: flex; align-items: center; justify-content: center;
|
| 40 |
+
height: 100vh; font-size: 1.2rem; color: oklch(0.85 0 0);
|
|
|
|
|
|
|
|
|
|
|
|
|
| 41 |
}
|
| 42 |
|
| 43 |
+
.main-wrapper {
|
| 44 |
+
min-height: 100vh;
|
| 45 |
+
display: flex;
|
| 46 |
+
flex-direction: column;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 47 |
}
|
| 48 |
|
|
|
|
| 49 |
.header-controls {
|
| 50 |
+
display: flex; padding: 0.75rem 1rem; justify-content: space-between; align-items: center;
|
| 51 |
+
width: 100%; position: absolute; top: 0; left: 0; z-index: 50;
|
| 52 |
+
pointer-events: none;
|
| 53 |
+
> div, > button { pointer-events: auto; }
|
| 54 |
}
|
| 55 |
+
|
| 56 |
+
.header-icon-button {
|
| 57 |
display: flex; align-items: center; justify-content: center; padding: 0.5rem;
|
| 58 |
+
width: 44px; height: 44px; border-radius: 9999px;
|
| 59 |
+
background-color: rgba(44, 44, 46, 0.7);
|
| 60 |
+
border: 1px solid rgba(255, 255, 255, 0.1);
|
| 61 |
+
backdrop-filter: blur(8px);
|
| 62 |
+
cursor: pointer; transition: all 0.2s ease-out;
|
| 63 |
+
svg, .material-symbols-outlined {
|
| 64 |
+
opacity: 0.9;
|
| 65 |
+
color: oklch(0.95 0 0);
|
| 66 |
+
stroke: oklch(0.95 0 0);
|
| 67 |
+
width: 26px; height: 26px; font-size: 26px;
|
| 68 |
}
|
| 69 |
+
&:hover { background-color: rgba(60, 60, 62, 0.8); }
|
| 70 |
+
&:active { transform: scale(0.95); }
|
| 71 |
+
}
|
| 72 |
+
|
| 73 |
+
.notification-popover-wrapper, .personality-popover-wrapper {
|
| 74 |
+
position: absolute; z-index: 100; opacity: 0; pointer-events: none;
|
| 75 |
+
transform: translateY(-10px) scale(0.95); transition: all 150ms ease-in-out;
|
| 76 |
+
&.open { opacity: 1; pointer-events: auto; transform: translateY(0) scale(1); }
|
| 77 |
+
.popover-content {
|
| 78 |
+
background: rgba(44,44,46,0.95); backdrop-filter: blur(10px);
|
| 79 |
+
border-radius: 12px; padding: 8px; box-shadow: 0 4px 12px rgba(0,0,0,0.4);
|
| 80 |
+
border: 1px solid rgba(255, 255, 255, 0.1); color: oklch(0.95 0 0); font-size: 14px;
|
| 81 |
+
|
| 82 |
+
ul { list-style: none; padding: 0; margin: 0; width: 220px; }
|
| 83 |
+
li {
|
| 84 |
+
display: flex; align-items: center; justify-content: space-between;
|
| 85 |
+
padding: 10px 12px; border-radius: 8px; cursor: pointer; transition: background-color 150ms ease;
|
| 86 |
+
&:hover { background: #3a3a3c; }
|
| 87 |
+
&.active { color: #fff; font-weight: 500; }
|
| 88 |
+
div { display: flex; align-items: center; gap: 12px; }
|
| 89 |
+
.material-symbols-outlined { font-size: 22px; &.tick { color: #34c759; } }
|
| 90 |
}
|
| 91 |
+
}
|
| 92 |
}
|
| 93 |
+
.notification-popover-wrapper {
|
| 94 |
+
top: calc(1rem + 44px + 8px); right: 1rem;
|
| 95 |
+
.popover-content { padding: 12px 16px; width: 280px; }
|
| 96 |
+
}
|
| 97 |
+
.personality-popover-wrapper {
|
| 98 |
+
top: calc(1rem + 44px + 8px); left: 1rem;
|
| 99 |
+
}
|
| 100 |
+
/* --- END: استایلهای جدید و اصلاح شده --- */
|
| 101 |
|
| 102 |
+
|
| 103 |
+
/* بخشهای دیگر استایل که از کد شما حفظ شدهاند */
|
| 104 |
+
.media-area {
|
| 105 |
+
flex-grow: 1;
|
| 106 |
position: relative;
|
| 107 |
+
width: 100%;
|
| 108 |
+
height: 100%;
|
| 109 |
+
}
|
| 110 |
+
#large-logo-container {
|
| 111 |
+
display: flex; align-items: center; justify-content: center; width: 100%; height: 100%;
|
| 112 |
+
position: absolute; top: 0; left: 0; pointer-events: none;
|
|
|
|
|
|
|
| 113 |
}
|
|
|
|
|
|
|
| 114 |
.footer-controls-html-like {
|
| 115 |
+
width: 100%; display: flex; align-items: center; position: absolute;
|
| 116 |
+
bottom: 2rem; padding-left: 2.5rem; padding-right: 2.5rem; padding-top: 0.5rem;
|
| 117 |
+
padding-bottom: 0.5rem; box-sizing: border-box; z-index: 20; justify-content: space-between;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 118 |
}
|
|
|
|
| 119 |
.small-logo-footer-html-like {
|
| 120 |
+
position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
|
| 121 |
+
z-index: 1; display: flex; align-items: center; justify-content: center;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 122 |
}
|
| 123 |
+
.control-button-wrapper { position: relative; display: flex; justify-content: center; }
|
| 124 |
.control-button {
|
| 125 |
+
height: 80px; width: 80px; border-radius: 9999px; padding: 0;
|
| 126 |
+
display: flex; align-items: center; justify-content: center;
|
| 127 |
+
border-width: 1px; border-color: theme('colors.custom-border');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 128 |
box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
|
| 129 |
+
cursor: pointer; transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
|
| 130 |
+
flex-shrink: 0; z-index: 2; overflow: hidden;
|
| 131 |
+
&:hover { transform: scale(1.05); }
|
| 132 |
+
svg.reference-mic-svg { width: 75%; height: 75%; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 133 |
}
|
|
|
|
| 134 |
.mic-button-color { background-color: #fecdd3; }
|
| 135 |
.cam-button-color { background-color: #E0ECFF; }
|
| 136 |
.dark .mic-button-color { background-color: #5C2129; }
|
| 137 |
.dark .cam-button-color { background-color: #223355; }
|
|
|
|
|
|
|
| 138 |
.switch-camera-button-container {
|
| 139 |
position: absolute; bottom: calc(100% + 0.65rem); left: 50%;
|
| 140 |
transform: translateX(-50%) translateY(15px) scale(0.7); z-index: 5;
|
| 141 |
+
opacity: 0; pointer-events: none; transition: opacity 0.35s, transform 0.35s;
|
|
|
|
| 142 |
transform-origin: center bottom;
|
| 143 |
&.visible { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); pointer-events: auto; }
|
| 144 |
}
|
| 145 |
.switch-camera-button-content {
|
| 146 |
+
width: 48px; height: 48px; background-color: theme('colors.custom-background');
|
| 147 |
+
border: 1px solid theme('colors.custom-border'); border-radius: 9999px;
|
| 148 |
+
display: flex; align-items: center; justify-content: center;
|
| 149 |
+
box-shadow: 0 5px 10px rgba(0,0,0,0.12); cursor: pointer;
|
| 150 |
+
transition: transform 0.2s ease-out;
|
| 151 |
+
&:hover { transform: scale(1.12); }
|
| 152 |
+
&:active { transform: scale(1.03); }
|
| 153 |
+
svg { width: 22px; height: 22px; stroke: theme('colors.custom-foreground'); }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 154 |
}
|