Spaces:
Running
Running
Update src/App.scss
Browse files- src/App.scss +111 -73
src/App.scss
CHANGED
@@ -37,8 +37,6 @@
|
|
37 |
-moz-osx-font-smoothing: grayscale;
|
38 |
margin: 0;
|
39 |
padding: 0;
|
40 |
-
// برای جلوگیری از پرش هنگام ظاهر شدن اسکرول بار احتمالی در برخی موارد
|
41 |
-
// overflow-y: scroll;
|
42 |
}
|
43 |
html {
|
44 |
margin: 0;
|
@@ -54,23 +52,11 @@
|
|
54 |
}
|
55 |
.media-area {
|
56 |
flex-grow: 1;
|
57 |
-
position: relative;
|
58 |
-
}
|
59 |
-
|
60 |
-
// انیمیشن پینگ برای لوگو (از Tailwind، اگر مستقیماً استفاده نمیشود، میتوان اینجا تعریف کرد)
|
61 |
-
@keyframes ping {
|
62 |
-
75%, 100% {
|
63 |
-
transform: scale(2);
|
64 |
-
opacity: 0;
|
65 |
-
}
|
66 |
-
}
|
67 |
-
.animate-ping {
|
68 |
-
animation: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite;
|
69 |
}
|
70 |
|
71 |
-
|
72 |
-
|
73 |
-
display: flex;
|
74 |
align-items: center;
|
75 |
justify-content: center;
|
76 |
width: 100%;
|
@@ -78,80 +64,103 @@
|
|
78 |
position: absolute;
|
79 |
top: 0;
|
80 |
left: 0;
|
|
|
81 |
}
|
82 |
|
83 |
-
|
84 |
/* Notification Popover & Header controls (بدون تغییر) */
|
85 |
-
.notification-popover-wrapper {
|
86 |
-
|
87 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
88 |
.dark .notification-popover-text-content { background-color: oklch(0.25 0.05 230); color: oklch(0.95 0.01 230); }
|
89 |
-
.header-controls {
|
90 |
-
|
91 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
92 |
|
93 |
-
/* Logo Animation
|
94 |
-
.logo-animation-
|
95 |
-
position: relative; // برای حلقههای داخلی
|
96 |
display: flex;
|
97 |
align-items: center;
|
98 |
justify-content: center;
|
99 |
-
//
|
100 |
-
|
101 |
-
|
102 |
-
|
103 |
-
|
104 |
-
height: 100%;
|
105 |
}
|
|
|
106 |
|
107 |
-
|
108 |
-
/* Footer styles - تلاش برای تطابق بیشتر با HTML مرجع */
|
109 |
.footer-controls-html-like {
|
110 |
width: 100%;
|
111 |
display: flex;
|
112 |
-
align-items: center;
|
113 |
position: absolute;
|
114 |
-
|
115 |
-
// ***
|
116 |
-
// مقدار
|
117 |
-
//
|
118 |
-
|
119 |
-
//
|
120 |
-
|
121 |
-
padding
|
122 |
-
//
|
123 |
-
|
124 |
-
padding-bottom: 0.5rem;
|
125 |
box-sizing: border-box;
|
126 |
z-index: 20;
|
127 |
justify-content: space-between; // میکروفون چپ، دوربین راست
|
128 |
}
|
129 |
|
130 |
.small-logo-footer-html-like {
|
131 |
-
|
132 |
-
|
133 |
-
justify-content: center;
|
134 |
-
// برای قرارگیری دقیق بین دو دکمه اصلی با چیدمان space-between در والد
|
135 |
-
// این عنصر به طور خودکار فضای باقی مانده را پر نمی کند،
|
136 |
-
// بلکه باید به صورت absolute در مرکز قرار گیرد یا flex والد تغییر کند.
|
137 |
-
// اگر والد `justify-content: space-between;` دارد:
|
138 |
position: absolute;
|
139 |
left: 50%;
|
140 |
-
top: 50%; // نسبت به
|
141 |
transform: translate(-50%, -50%);
|
142 |
-
z-index: 1; // پشت دکمهها اگر همپوشانی
|
|
|
|
|
|
|
143 |
}
|
144 |
|
145 |
-
|
146 |
-
.control-button-wrapper {
|
147 |
position: relative;
|
148 |
display: flex;
|
149 |
justify-content: center;
|
150 |
}
|
151 |
|
152 |
.control-button {
|
153 |
-
height: 80px;
|
154 |
-
width: 80px;
|
155 |
border-radius: 9999px;
|
156 |
padding: 0;
|
157 |
display: flex;
|
@@ -163,28 +172,57 @@
|
|
163 |
cursor: pointer;
|
164 |
transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
|
165 |
flex-shrink: 0;
|
166 |
-
z-index: 2;
|
167 |
-
|
|
|
|
|
|
|
|
|
168 |
svg {
|
169 |
-
//
|
170 |
-
//
|
171 |
-
//
|
172 |
-
//
|
173 |
-
// max-height: 60%;
|
174 |
}
|
175 |
}
|
176 |
|
177 |
-
|
178 |
-
.
|
|
|
|
|
179 |
.dark .mic-button-color { background-color: #5C2129; }
|
180 |
.dark .cam-button-color { background-color: #223355; }
|
181 |
|
|
|
182 |
/* Switch Camera Button (بدون تغییر) */
|
183 |
-
.switch-camera-button-container {
|
184 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
185 |
|
186 |
/* Keyframes for popover (بدون تغییر) */
|
187 |
-
@keyframes popover-drop-in {
|
188 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
189 |
.animate-popover-open-top-center { animation: popover-drop-in 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55) forwards; }
|
190 |
.animate-popover-close-top-center { animation: popover-lift-out 0.3s ease-in forwards; }
|
|
|
37 |
-moz-osx-font-smoothing: grayscale;
|
38 |
margin: 0;
|
39 |
padding: 0;
|
|
|
|
|
40 |
}
|
41 |
html {
|
42 |
margin: 0;
|
|
|
52 |
}
|
53 |
.media-area {
|
54 |
flex-grow: 1;
|
55 |
+
position: relative;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
56 |
}
|
57 |
|
58 |
+
#large-logo-container {
|
59 |
+
display: flex;
|
|
|
60 |
align-items: center;
|
61 |
justify-content: center;
|
62 |
width: 100%;
|
|
|
64 |
position: absolute;
|
65 |
top: 0;
|
66 |
left: 0;
|
67 |
+
pointer-events: none; // از کلیک شدن روی لوگو جلوگیری میکند
|
68 |
}
|
69 |
|
|
|
70 |
/* Notification Popover & Header controls (بدون تغییر) */
|
71 |
+
.notification-popover-wrapper {
|
72 |
+
position: fixed; top: 1rem; left: 50%; transform: translateX(-50%); z-index: 100;
|
73 |
+
width: calc(100% - 1rem); max-width: 28rem; display: flex; justify-content: center; pointer-events: none;
|
74 |
+
}
|
75 |
+
.popover-content {
|
76 |
+
width: 100%; border-radius: var(--radius-md, 0.5rem); border-width: 1px; border-color: var(--border);
|
77 |
+
background-color: var(--popover); color: var(--popover-foreground);
|
78 |
+
box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
|
79 |
+
outline: none; transition: opacity 0.3s ease-out, transform 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
|
80 |
+
opacity: 0; transform: translateY(-100%) scale(0.9); pointer-events: none;
|
81 |
+
&.open { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
|
82 |
+
}
|
83 |
+
.notification-popover-text-content {
|
84 |
+
background-color: #eff6ff; font-size: 0.875rem; line-height: 1.5rem; direction: rtl;
|
85 |
+
padding: 1rem; border-radius: var(--radius-md, 0.5rem); color: oklch(0.145 0 0);
|
86 |
+
}
|
87 |
.dark .notification-popover-text-content { background-color: oklch(0.25 0.05 230); color: oklch(0.95 0.01 230); }
|
88 |
+
.header-controls {
|
89 |
+
display: flex; padding: 0.75rem 0.5rem; justify-content: space-between; align-items: center;
|
90 |
+
width: 100%; position: absolute; top: 0; left: 0; z-index: 10;
|
91 |
+
}
|
92 |
+
.header-button {
|
93 |
+
display: flex; align-items: center; justify-content: center; padding: 0.5rem;
|
94 |
+
width: 40px; height: 40px; border-radius: var(--radius-lg, 0.625rem); background-color: #e5e7eb;
|
95 |
+
cursor: pointer; transition: background-color 0.2s, transform 0.1s ease-out;
|
96 |
+
svg { opacity: 0.7; stroke: #374151; width: 24px; height: 24px; }
|
97 |
+
&:hover { background-color: #d1d5db; }
|
98 |
+
&:active { background-color: #9ca3af; transform: scale(0.95); }
|
99 |
+
}
|
100 |
+
.dark .header-button {
|
101 |
+
background-color: oklch(0.28 0 0);
|
102 |
+
&:hover { background-color: oklch(0.35 0 0); }
|
103 |
+
&:active { background-color: oklch(0.40 0 0); transform: scale(0.95); }
|
104 |
+
svg { opacity: 0.8; stroke: oklch(0.85 0 0); }
|
105 |
+
}
|
106 |
|
107 |
+
/* Logo Animation Styling */
|
108 |
+
.logo-animation-wrapper {
|
109 |
+
position: relative; // مهم برای حلقههای داخلی
|
110 |
display: flex;
|
111 |
align-items: center;
|
112 |
justify-content: center;
|
113 |
+
// اطمینان از اینکه SVG داخل لوگو تمام کانتینر آیکون را پر میکند
|
114 |
+
& > .z-10 > svg { // هدفگیری دقیقتر SVG داخل کانتینر آیکون
|
115 |
+
width: 100%;
|
116 |
+
height: 100%;
|
117 |
+
}
|
|
|
118 |
}
|
119 |
+
// .logo-animation-wrapper.for-footer { } // اگر استایل خاصی برای لوگوی فوتر لازم باشد
|
120 |
|
121 |
+
/* Footer styles to mimic HTML example - با padding کمتر برای بالاتر آمدن */
|
|
|
122 |
.footer-controls-html-like {
|
123 |
width: 100%;
|
124 |
display: flex;
|
125 |
+
align-items: center;
|
126 |
position: absolute;
|
127 |
+
bottom: 0; /* چسبیده به پایین */
|
128 |
+
// *** MODIFIED: کاهش padding-bottom برای بالاتر آمدن دکمهها ***
|
129 |
+
// مقدار padding در HTML مرجع شما 2rem 3rem بود (32px بالا/پایین، 48px چپ/راست)
|
130 |
+
// برای بالاتر آمدن، padding-bottom را کمتر میکنیم یا از bottom با مقدار مثبت استفاده میکنیم.
|
131 |
+
// امتحان کنید:
|
132 |
+
padding: 1.5rem 2rem; // 24px بالا/پایین، 32px چپ/راست. یا حتی کمتر برای padding-bottom.
|
133 |
+
// یا
|
134 |
+
// padding: 2rem 3rem;
|
135 |
+
// bottom: 1rem; // امتحان کنید دکمهها را 1rem از پایین صفحه فاصله دهید
|
136 |
+
|
|
|
137 |
box-sizing: border-box;
|
138 |
z-index: 20;
|
139 |
justify-content: space-between; // میکروفون چپ، دوربین راست
|
140 |
}
|
141 |
|
142 |
.small-logo-footer-html-like {
|
143 |
+
// این به صورت خودکار بین دو دکمه با justify-content: space-between قرار نمیگیرد.
|
144 |
+
// باید به صورت absolute در وسط قرار گیرد.
|
|
|
|
|
|
|
|
|
|
|
145 |
position: absolute;
|
146 |
left: 50%;
|
147 |
+
top: 50%; // نسبت به کادر padding فوتر
|
148 |
transform: translate(-50%, -50%);
|
149 |
+
z-index: 1; // پشت دکمهها اگر همپوشانی داشته باشند (که نباید داشته باشند)
|
150 |
+
display: flex;
|
151 |
+
align-items: center;
|
152 |
+
justify-content: center;
|
153 |
}
|
154 |
|
155 |
+
.control-button-wrapper {
|
|
|
156 |
position: relative;
|
157 |
display: flex;
|
158 |
justify-content: center;
|
159 |
}
|
160 |
|
161 |
.control-button {
|
162 |
+
height: 80px;
|
163 |
+
width: 80px;
|
164 |
border-radius: 9999px;
|
165 |
padding: 0;
|
166 |
display: flex;
|
|
|
172 |
cursor: pointer;
|
173 |
transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
|
174 |
flex-shrink: 0;
|
175 |
+
z-index: 2;
|
176 |
+
&:hover {
|
177 |
+
transform: scale(1.05);
|
178 |
+
box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
|
179 |
+
}
|
180 |
+
// اطمینان از اندازه مناسب SVG های داخل دکمه ها
|
181 |
svg {
|
182 |
+
// width: 50%; // یا هر درصدی که مناسب به نظر می رسد
|
183 |
+
// height: 50%;
|
184 |
+
// یا اگر SVG ها transform دارند، آن را حفظ کنید
|
185 |
+
// transform: scale(0.55); // اگر این چیزی است که در HTML اصلی کار می کند
|
|
|
186 |
}
|
187 |
}
|
188 |
|
189 |
+
// رنگها بر اساس HTML مرجع (میکروفون چپ، دوربین راست)
|
190 |
+
.mic-button-color { background-color: #fecdd3; } // قرمز برای میکروفون (چپ)
|
191 |
+
.cam-button-color { background-color: #E0ECFF; } // آبی برای دوربین (راست)
|
192 |
+
|
193 |
.dark .mic-button-color { background-color: #5C2129; }
|
194 |
.dark .cam-button-color { background-color: #223355; }
|
195 |
|
196 |
+
|
197 |
/* Switch Camera Button (بدون تغییر) */
|
198 |
+
.switch-camera-button-container {
|
199 |
+
position: absolute; bottom: calc(100% + 0.65rem); left: 50%;
|
200 |
+
transform: translateX(-50%) translateY(15px) scale(0.7); z-index: 5;
|
201 |
+
opacity: 0; pointer-events: none;
|
202 |
+
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);
|
203 |
+
transform-origin: center bottom;
|
204 |
+
&.visible { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); pointer-events: auto; }
|
205 |
+
}
|
206 |
+
.switch-camera-button-content {
|
207 |
+
width: 48px; height: 48px; background-color: var(--background); border: 1px solid var(--border);
|
208 |
+
border-radius: 9999px; display: flex; align-items: center; justify-content: center;
|
209 |
+
box-shadow: 0 5px 10px rgba(0,0,0,0.12), 0 2px 4px rgba(0,0,0,0.08); cursor: pointer;
|
210 |
+
transform-origin: center; transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
|
211 |
+
&:hover { transform: scale(1.12) rotate(-6deg); box-shadow: 0 7px 15px rgba(0,0,0,0.18), 0 3px 6px rgba(0,0,0,0.12); }
|
212 |
+
&:active { transform: scale(1.03) rotate(0deg); }
|
213 |
+
svg { width: 22px; height: 22px; stroke: var(--foreground); transition: transform 0.3s ease-in-out; }
|
214 |
+
&:hover svg { transform: rotate(360deg); }
|
215 |
+
}
|
216 |
|
217 |
/* Keyframes for popover (بدون تغییر) */
|
218 |
+
@keyframes popover-drop-in {
|
219 |
+
0% { opacity: 0; transform: translateY(-100%) scale(0.9); }
|
220 |
+
70% { opacity: 1; transform: translateY(5px) scale(1.02); }
|
221 |
+
100% { opacity: 1; transform: translateY(0) scale(1); }
|
222 |
+
}
|
223 |
+
@keyframes popover-lift-out {
|
224 |
+
0% { opacity: 1; transform: translateY(0) scale(1); }
|
225 |
+
100% { opacity: 0; transform: translateY(-100%) scale(0.9); }
|
226 |
+
}
|
227 |
.animate-popover-open-top-center { animation: popover-drop-in 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55) forwards; }
|
228 |
.animate-popover-close-top-center { animation: popover-lift-out 0.3s ease-in forwards; }
|