SotiproAlpha2 / src /App.scss
Ezmary's picture
Update src/App.scss
af9b7ca verified
raw
history blame
9.22 kB
/* App.scss or your main SCSS/CSS file */
/* Tailwind base, components, utilities (ensure this is at the top) */
/* @tailwind base; */
/* @tailwind components; */
/* @tailwind utilities; */
:root {
--radius: 0.625rem; /* 10px */
--radius-md: 0.5rem; /* 8px */
--background: oklch(1 0 0); /* White */
--foreground: oklch(0.145 0 0); /* Dark Gray/Black */
--popover: oklch(1 0 0);
--popover-foreground: oklch(0.145 0 0);
--border: oklch(0.922 0 0); /* Light Gray */
--color-cam-button-bg: #E0ECFF; // Light Blue
--color-mic-button-bg: #fecdd3; // Light Red
--color-red-500: #ef4444; // For mic pulse
}
.dark {
--background: oklch(0.145 0 0); /* Dark Gray/Black */
--foreground: oklch(0.985 0 0); /* Off-White */
--popover: oklch(0.205 0 0);
--popover-foreground: oklch(0.985 0 0);
--border: oklch(1 0 0 / 10%); /* Very Dark Transparent Gray */
--color-cam-button-bg: #223355; // Dark Blue
--color-mic-button-bg: #5C2129; // Dark Red
--color-red-500: #f87171; // Lighter Red for dark mode pulse
}
body {
background-color: var(--background);
color: var(--foreground);
/* @apply antialiased; (If using Tailwind's font smoothing) */
font-family: sans-serif; /* Or your preferred font stack */
overflow-x: hidden;
}
/* Base styles for control buttons if not fully handled by Tailwind */
.control-button {
/* Tailwind handles size, border-radius, flex, items-center, justify-center, p-0 */
/* Tailwind handles shadow, hover:scale, hover:shadow, transition */
border-width: 1px; /* Or manage with Tailwind like 'border' */
border-color: var(--border);
cursor: pointer;
}
.cam-button-color {
background-color: var(--color-cam-button-bg);
}
.mic-button-color {
background-color: var(--color-mic-button-bg);
}
/* Mic Pulse Animation */
@property --volume {
syntax: "<length>";
inherit: false;
initial-value: 0px;
}
.mic-button-wrapper .control-button.active:before {
position: absolute;
z-index: -1;
top: calc(var(--volume) * -1);
left: calc(var(--volume) * -1);
display: block;
content: "";
opacity: 0.35;
background-color: var(--color-red-500); /* Use CSS variable */
width: calc(100% + var(--volume) * 2);
height: calc(100% + var(--volume) * 2);
/* Ensure border-radius matches the button's rounded-full */
border-radius: 9999px; /* Or inherit if possible */
transition: all 0.02s ease-in-out;
}
/* Styles for the switch camera button container and content (from your HTML's CSS) */
/* These are crucial for the pop-up animation of the switch camera button */
.switch-camera-button-container {
/* Tailwind classes in JSX now handle most of this:
absolute bottom-[calc(100%+0.65rem)] left-1/2 z-[5] transform -translate-x-1/2
opacity-0 scale-75 pointer-events-none translate-y-[15px]
transition-opacity duration-300 ease-[cubic-bezier(0.68,-0.55,0.27,1.55)]
transform-origin-center-bottom
*/
/* The .visible class logic is now inline in JSX based on state */
}
/* .switch-camera-button-container.visible {
opacity: 1;
transform: translateY(0) scale(1) translateX(-50%);
pointer-events: auto;
} */
.switch-camera-button-content {
/* Tailwind classes in JSX now handle most of this:
w-12 h-12 bg-background dark:bg-neutral-800 border dark:border-neutral-700 border-neutral-300
rounded-full flex items-center justify-center shadow-lg hover:scale-110 hover:rotate-[-6deg]
active:scale-105 active:rotate-0 transition-transform transform-origin-center
*/
cursor: pointer; /* Ensure cursor is pointer */
}
.switch-camera-button-content svg {
width: 22px; /* Or use Tailwind w-5 h-5 or similar */
height: 22px;
stroke: var(--foreground); /* Ensure SVG picks up text color */
transition: transform 0.3s ease-in-out;
}
.switch-camera-button-content:hover svg {
/* @apply rotate-[360deg]; (If you want to use Tailwind transform) */
transform: rotate(360deg); /* Or keep as is */
}
/* Footer controls base class (if needed beyond Tailwind) */
.footer-controls {
/* Most styling now via Tailwind in JSX */
/* width: 100%; display: flex; gap: 1rem; position: absolute;
bottom: 0; padding: 2rem 3rem; align-items: center; */
}
/* .footer-controls.layout-default { justify-content: space-between; } */
/* .footer-controls.layout-with-small-logo { justify-content: space-around; } */
/* Other styles from App.scss (notification, header, video feed, logos) should remain */
/* ... (rest of your App.scss from previous correct version) ... */
.notification-popover-wrapper {
position: fixed;
top: 1rem;
left: 50%;
transform: translateX(-50%);
z-index: 100;
width: calc(100% - 2rem);
max-width: 28rem;
display: flex;
justify-content: center;
pointer-events: none;
}
.popover-content {
width: 100%;
border-radius: var(--radius-md, 0.5rem);
border-width: 1px;
border-color: var(--border);
background-color: var(--popover);
color: var(--popover-foreground);
box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
outline: none;
transition: opacity 0.3s ease-out, transform 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
opacity: 0;
transform: translateY(-100%) scale(0.9);
pointer-events: none;
}
.popover-content.open {
opacity: 1;
transform: translateY(0) scale(1);
pointer-events: auto;
}
.notification-popover-text-content {
background-color: #eff6ff; /* bg-blue-50 */
font-size: 0.875rem;
line-height: 1.5rem;
direction: rtl;
padding: 1rem;
border-radius: var(--radius-md, 0.5rem);
color: oklch(0.145 0 0);
}
.dark .notification-popover-text-content {
background-color: oklch(0.25 0.05 230);
color: oklch(0.95 0.01 230);
}
.header-controls {
display: flex;
padding: 1rem;
justify-content: space-between;
align-items: center;
width: 100%;
position: absolute;
top: 0;
left: 0;
z-index: 10;
}
.header-button {
display: flex;
align-items: center;
justify-content: center;
padding: 0.5rem;
border-radius: var(--radius-lg, 0.625rem);
background-color: #e5e7eb; /* bg-gray-200 */
cursor: pointer;
transition: background-color 0.2s;
border: none;
}
.header-button:hover {
background-color: #d1d5db; /* bg-gray-300 */
}
.header-button svg {
opacity: 0.7;
stroke: #374151; /* gray-700 */
width: 24px;
height: 24px;
}
.dark .header-button {
background-color: oklch(0.28 0 0);
}
.dark .header-button:hover {
background-color: oklch(0.35 0 0);
}
.dark .header-button svg {
opacity: 0.8;
stroke: oklch(0.85 0 0);
}
.app-container {
width: 100%;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
min-height: 90vh;
}
@media (min-width: 768px) {
.app-container {
min-height: 100vh;
}
}
.main-content-wrapper {
max-width: 48rem;
width: 100%;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
height: 100%;
position: relative;
}
.media-toggle-area {
width: 100%;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
height: 90vh;
background-color: var(--background);
top: 0;
left: 0;
position: relative;
}
.video-feed {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
object-fit: cover;
transform: scaleX(-1);
}
.large-logo-container, .small-logo-container {
display: flex;
align-items: center;
justify-content: center;
}
.large-logo-container {
width: 100%;
height: 100%;
position: absolute;
top: 0;
left: 0;
}
.App {
height: 100vh;
width: 100vw;
overflow: hidden;
background-color: var(--background);
}
.streaming-console { /* May not be used if SidePanel is removed */
display: flex;
flex-grow: 1;
overflow: hidden;
}
main {
flex-grow: 1;
display: flex;
flex-direction: column;
position: relative;
overflow: hidden; /* Important for positioning Altair on top */
height: 100%; /* Ensure main takes full height for absolute positioning inside */
}
.main-app-area {
flex-grow: 1;
position: relative; /* For positioning Altair and video feed */
height: 100%;
}
/* Example: Ensure Altair (chat bubbles) are visible and on top */
/* You'll need to inspect Altair's generated classes or wrap it */
div[class*="altair-chat-container"], /* Example selector, adjust as needed */
.altair-chat {
position: absolute;
top: 60px; /* Adjust to be below your header */
bottom: 120px; /* Adjust to be above your footer controls */
left: 10px;
right: 10px;
z-index: 20; /* Ensure it's above video feed, but below popovers/modals */
overflow-y: auto; /* Allow scrolling for chat messages */
pointer-events: auto; /* Allow interaction with chat */
/* background: rgba(255,255,255,0.1); // For testing visibility */
}
.dark div[class*="altair-chat-container"],
.dark .altair-chat {
/* background: rgba(0,0,0,0.1); // For testing visibility in dark mode */
}