meet-demo: enhance layout with dark/light mode support and demo limitations section
This commit is contained in:
parent
4bded9dc33
commit
596a3e1589
@ -1,22 +1,108 @@
|
|||||||
|
/* Color Scheme Variables */
|
||||||
|
:root {
|
||||||
|
color-scheme: light dark;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Dark mode (default) */
|
||||||
|
:root,
|
||||||
|
:root[data-theme='dark'] {
|
||||||
|
--bg-body: #29292e;
|
||||||
|
--bg-card: #242429;
|
||||||
|
--bg-card-secondary: #1e1e23;
|
||||||
|
--bg-input: #1b1b1f;
|
||||||
|
--text-primary: #e5e7eb;
|
||||||
|
--text-secondary: #b0b0b5;
|
||||||
|
--text-tertiary: #c5c6ca;
|
||||||
|
--text-muted: #9ca3af;
|
||||||
|
--text-strong: #f3f4f6;
|
||||||
|
--text-bright: #f9fafb;
|
||||||
|
--border-color: #3c3c44;
|
||||||
|
--border-separator: #2a2a30;
|
||||||
|
--text-info: #d1d5db;
|
||||||
|
--text-warning: #f59e0b;
|
||||||
|
--shadow: rgba(0, 0, 0, 0.25);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Light mode */
|
||||||
|
@media (prefers-color-scheme: light) {
|
||||||
|
:root:not([data-theme='dark']) {
|
||||||
|
--bg-body: #f3f4f6;
|
||||||
|
--bg-card: #ffffff;
|
||||||
|
--bg-card-secondary: #f9fafb;
|
||||||
|
--bg-input: #ffffff;
|
||||||
|
--text-primary: #1f2937;
|
||||||
|
--text-secondary: #4b5563;
|
||||||
|
--text-tertiary: #6b7280;
|
||||||
|
--text-muted: #9ca3af;
|
||||||
|
--text-strong: #111827;
|
||||||
|
--text-bright: #000000;
|
||||||
|
--border-color: #d1d5db;
|
||||||
|
--border-separator: #e5e7eb;
|
||||||
|
--text-info: #374151;
|
||||||
|
--text-warning: #d97706;
|
||||||
|
--shadow: rgba(0, 0, 0, 0.1);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/* General layout */
|
/* General layout */
|
||||||
body {
|
body {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
font-family: 'Roboto', 'RobotoDraft', Helvetica, Arial, sans-serif;
|
font-family: 'Roboto', 'RobotoDraft', Helvetica, Arial, sans-serif;
|
||||||
background-color: #29292e;
|
background-color: var(--bg-body);
|
||||||
color: #e5e7eb;
|
color: var(--text-primary);
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
min-height: 100dvh;
|
||||||
height: 100vh;
|
padding: 2rem 0;
|
||||||
|
box-sizing: border-box;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Container */
|
/* Container */
|
||||||
.container {
|
.container {
|
||||||
width: 90%;
|
width: 90%;
|
||||||
max-width: 500px;
|
max-width: 1100px;
|
||||||
padding: 2rem;
|
padding: 0 2rem;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
|
margin: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Content Wrapper */
|
||||||
|
.content-wrapper {
|
||||||
|
display: flex;
|
||||||
|
gap: 2rem;
|
||||||
|
align-items: stretch;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Adjust order for mobile: info first, form second */
|
||||||
|
.content-wrapper {
|
||||||
|
flex-direction: column;
|
||||||
|
}
|
||||||
|
|
||||||
|
.info-card {
|
||||||
|
order: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
.card {
|
||||||
|
order: 2;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Desktop layout: form left, info right */
|
||||||
|
@media (min-width: 768px) {
|
||||||
|
.content-wrapper {
|
||||||
|
flex-direction: row;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.card {
|
||||||
|
flex: 1;
|
||||||
|
order: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
.info-card {
|
||||||
|
flex: 1;
|
||||||
|
order: 2;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Header */
|
/* Header */
|
||||||
@ -30,22 +116,23 @@ body {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.subtitle {
|
.subtitle {
|
||||||
color: #b0b0b5;
|
color: var(--text-secondary);
|
||||||
font-size: 1.2rem;
|
font-size: 1.2rem;
|
||||||
|
margin-top: 0;
|
||||||
line-height: 1.4;
|
line-height: 1.4;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Card */
|
/* Card */
|
||||||
.card {
|
.card {
|
||||||
background-color: #242429;
|
background-color: var(--bg-card);
|
||||||
border-radius: 12px;
|
border-radius: 12px;
|
||||||
padding: 2rem;
|
padding: 2rem;
|
||||||
box-shadow: 0 0 20px rgba(0, 0, 0, 0.25);
|
box-shadow: 0 0 10px var(--shadow);
|
||||||
}
|
}
|
||||||
|
|
||||||
.card h2 {
|
.card h2 {
|
||||||
margin-top: 0;
|
margin-top: 0;
|
||||||
color: #f3f4f6;
|
color: var(--text-strong);
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -58,7 +145,7 @@ form {
|
|||||||
|
|
||||||
label {
|
label {
|
||||||
font-size: 0.9rem;
|
font-size: 0.9rem;
|
||||||
color: #c5c6ca;
|
color: var(--text-tertiary);
|
||||||
margin-bottom: 0.3rem;
|
margin-bottom: 0.3rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -67,9 +154,9 @@ label {
|
|||||||
}
|
}
|
||||||
|
|
||||||
input[type='text'] {
|
input[type='text'] {
|
||||||
background-color: #1b1b1f;
|
background-color: var(--bg-input);
|
||||||
border: 1px solid #3c3c44;
|
border: 1px solid var(--border-color);
|
||||||
color: #f9fafb;
|
color: var(--text-bright);
|
||||||
padding: 0.75rem;
|
padding: 0.75rem;
|
||||||
border-radius: 8px;
|
border-radius: 8px;
|
||||||
outline: none;
|
outline: none;
|
||||||
@ -79,7 +166,7 @@ input[type='text'] {
|
|||||||
}
|
}
|
||||||
|
|
||||||
input[type='text']:focus {
|
input[type='text']:focus {
|
||||||
border-color: #cecece;
|
border-color: var(--text-muted);
|
||||||
}
|
}
|
||||||
|
|
||||||
.error-message {
|
.error-message {
|
||||||
@ -90,8 +177,8 @@ input[type='text']:focus {
|
|||||||
height: 1rem;
|
height: 1rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Button */
|
/* Create Room Button */
|
||||||
button {
|
.btn-create {
|
||||||
background-color: #4caf50;
|
background-color: #4caf50;
|
||||||
color: white;
|
color: white;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
@ -103,28 +190,77 @@ button {
|
|||||||
transition: background-color 0.2s;
|
transition: background-color 0.2s;
|
||||||
}
|
}
|
||||||
|
|
||||||
button:hover:enabled {
|
.btn-create:hover:enabled {
|
||||||
background-color: #43a047;
|
background-color: #43a047;
|
||||||
}
|
}
|
||||||
|
|
||||||
button:disabled {
|
.btn-create:disabled {
|
||||||
opacity: 0.5;
|
opacity: 0.5;
|
||||||
cursor: not-allowed;
|
cursor: not-allowed;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Info Card */
|
||||||
|
.info-card {
|
||||||
|
background-color: var(--bg-card-secondary);
|
||||||
|
border: 1px solid var(--border-color);
|
||||||
|
border-radius: 12px;
|
||||||
|
padding: 1.5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.info-card h3 {
|
||||||
|
margin-top: 0;
|
||||||
|
margin-bottom: 0;
|
||||||
|
color: var(--text-warning);
|
||||||
|
font-size: 1.2rem;
|
||||||
|
font-weight: 600;
|
||||||
|
text-align: center;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
gap: 0.5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.info-list {
|
||||||
|
list-style: none;
|
||||||
|
padding: 0;
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.info-list li {
|
||||||
|
padding: 0.75rem 0;
|
||||||
|
border-bottom: 1px solid var(--border-separator);
|
||||||
|
line-height: 1.6;
|
||||||
|
font-size: 0.9rem;
|
||||||
|
color: var(--text-info);
|
||||||
|
}
|
||||||
|
|
||||||
|
.info-list li:last-child {
|
||||||
|
border-bottom: none;
|
||||||
|
padding-bottom: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.info-list li strong {
|
||||||
|
color: var(--text-bright);
|
||||||
|
font-weight: 600;
|
||||||
|
}
|
||||||
|
|
||||||
/* Footer */
|
/* Footer */
|
||||||
.footer {
|
.footer {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
margin-top: 2rem;
|
margin-top: 2rem;
|
||||||
color: #9ca3af;
|
color: var(--text-muted);
|
||||||
font-size: 0.8rem;
|
font-size: 0.8rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Responsive adjustments */
|
/* Responsive adjustments */
|
||||||
@media (max-width: 480px) {
|
@media (max-width: 767px) {
|
||||||
|
body {
|
||||||
|
padding: 1.5rem 0;
|
||||||
|
}
|
||||||
|
|
||||||
.container {
|
.container {
|
||||||
max-width: 90%;
|
max-width: 90%;
|
||||||
padding: 1.5rem;
|
padding: 0 1.5rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.subtitle {
|
.subtitle {
|
||||||
@ -135,11 +271,23 @@ button:disabled {
|
|||||||
padding: 1.5rem;
|
padding: 1.5rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.info-card {
|
||||||
|
padding: 1.25rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.info-card h3 {
|
||||||
|
font-size: 1rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.info-list li {
|
||||||
|
font-size: 0.85rem;
|
||||||
|
}
|
||||||
|
|
||||||
.logo {
|
.logo {
|
||||||
height: 100px;
|
height: 100px;
|
||||||
}
|
}
|
||||||
|
|
||||||
button {
|
.btn-create {
|
||||||
padding: 0.8rem;
|
padding: 0.8rem;
|
||||||
font-size: 0.95rem;
|
font-size: 0.95rem;
|
||||||
}
|
}
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 8.2 KiB After Width: | Height: | Size: 8.2 KiB |
BIN
meet-demo/static/images/meet_logo_light.png
Normal file
BIN
meet-demo/static/images/meet_logo_light.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 42 KiB |
@ -1,27 +1,52 @@
|
|||||||
<!DOCTYPE html>
|
<!doctype html>
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8" />
|
<meta charset="UTF-8" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
<title>OpenVidu Meet Demo</title>
|
<title>OpenVidu Meet Demo</title>
|
||||||
<link rel="shortcut icon" href="images/favicon.ico" type="image/x-icon" />
|
<link rel="shortcut icon" href="images/favicon.ico" type="image/x-icon" />
|
||||||
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css" />
|
||||||
<link rel="stylesheet" href="css/styles.css" />
|
<link rel="stylesheet" href="css/styles.css" />
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<header class="header">
|
<header class="header">
|
||||||
<img src="images/meet_logo.png" alt="OpenVidu Meet Logo" class="logo" />
|
<picture>
|
||||||
|
<source srcset="images/meet_logo_light.png" media="(prefers-color-scheme: light)" />
|
||||||
|
<img src="images/meet_logo_dark.png" alt="OpenVidu Meet Logo" class="logo" />
|
||||||
|
</picture>
|
||||||
<p class="subtitle">Create video-call rooms with a single click and test OpenVidu Meet features</p>
|
<p class="subtitle">Create video-call rooms with a single click and test OpenVidu Meet features</p>
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
<main class="card">
|
<main class="content-wrapper">
|
||||||
|
<section class="info-card">
|
||||||
|
<h3><i class="fa-solid fa-triangle-exclamation"></i> Demo Limitations</h3>
|
||||||
|
<ul class="info-list">
|
||||||
|
<li>
|
||||||
|
This demo provides access to the <strong>room view</strong> only, which includes the
|
||||||
|
<strong>meeting</strong> and <strong>its recordings</strong>. The administration console is
|
||||||
|
not available.
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
The <strong>room creator</strong> joins as a <strong>moderator</strong>. Other participants
|
||||||
|
join as <strong>speakers</strong>, but can be promoted to moderator during the meeting.
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
Rooms are <strong>automatically deleted 2 hours</strong> after creation, along with all
|
||||||
|
their <strong>recordings</strong>.
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<section class="card">
|
||||||
<h2>Create Room</h2>
|
<h2>Create Room</h2>
|
||||||
<form id="create-room-form" novalidate>
|
<form id="create-room-form" novalidate>
|
||||||
<label for="roomName">Room Name <span class="required">*</span></label>
|
<label for="roomName">Room Name <span class="required">*</span></label>
|
||||||
<input type="text" id="roomName" name="roomName" placeholder="Enter room name" required />
|
<input type="text" id="roomName" name="roomName" placeholder="Enter room name" required />
|
||||||
<p class="error-message" id="error-message" hidden></p>
|
<p class="error-message" id="error-message" hidden></p>
|
||||||
<button type="submit" id="createRoomBtn" disabled>+ Create Room</button>
|
<button type="submit" id="createRoomBtn" class="btn-create" disabled>+ Create Room</button>
|
||||||
</form>
|
</form>
|
||||||
|
</section>
|
||||||
</main>
|
</main>
|
||||||
|
|
||||||
<footer class="footer">
|
<footer class="footer">
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user