CenaForge: primeira versão pública
Gerador de vídeos narrativos (Godot + FFmpeg), painel Next.js, serviço de voz, Clipador de lives e Publicador para YouTube, TikTok e Instagram. Inclui a leitura das visualizações dos posts para o Dashboard e o botão "Publicar no <rede>" nos cartões das publicações. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,383 @@
|
||||
/* A camada do @xyflow/react (editor de fluxo) fica ABAIXO das do Tailwind: utilitários e tokens vencem. */
|
||||
@layer xyflow, theme, base, components, utilities;
|
||||
@import "tailwindcss";
|
||||
|
||||
/*
|
||||
* Design system do painel CenaForge — "estúdio à noite".
|
||||
* Tema escuro por padrão (uso prolongado, vídeo em destaque). As páginas usam estes tokens
|
||||
* (bg-surface, text-fg-muted, border-line, bg-accent...) e nunca cores soltas.
|
||||
* Contrastes contra bg-surface (#111114): fg 17:1, fg-muted 8:1, fg-subtle 5,2:1, accent 7:1 (WCAG AA).
|
||||
*/
|
||||
@theme {
|
||||
/* Superfícies, da mais funda para a mais alta */
|
||||
--color-sunken: #060608;
|
||||
--color-canvas: #0a0a0c;
|
||||
--color-surface: #111114;
|
||||
--color-raised: #18181d;
|
||||
--color-overlay: #222229;
|
||||
|
||||
/* Bordas */
|
||||
--color-line: #1f1f26;
|
||||
--color-line-strong: #2f2f39;
|
||||
|
||||
/* Texto */
|
||||
--color-fg: #f4f4f6;
|
||||
--color-fg-muted: #a9a9b4;
|
||||
--color-fg-subtle: #858591;
|
||||
|
||||
/* Destaque da marca: brasa da forja (laranja) com a chama (rosa) para o que é IA */
|
||||
--color-accent: #ff7a1a;
|
||||
--color-accent-hover: #ff9142;
|
||||
--color-accent-fg: #1c0a00;
|
||||
--color-accent-soft: #2a1407;
|
||||
--color-flame: #ff4d7d;
|
||||
--color-glow: #ffb547;
|
||||
|
||||
/* Opção B da votação (A usa o destaque) */
|
||||
--color-option-b: #2dd4e8;
|
||||
--color-option-b-soft: #062a31;
|
||||
/* Opções C e D (histórias com 3 ou 4 vertentes por decisão) */
|
||||
--color-option-c: #b19bff;
|
||||
--color-option-c-soft: #1f1a3d;
|
||||
--color-option-d: #a3e05a;
|
||||
--color-option-d-soft: #18280b;
|
||||
|
||||
/* Estados */
|
||||
--color-success: #3ddc84;
|
||||
--color-success-soft: #0b2a1a;
|
||||
--color-warning: #fbbf24;
|
||||
--color-warning-soft: #2e2208;
|
||||
--color-danger: #ff6b6b;
|
||||
--color-danger-hover: #ff9a9a;
|
||||
--color-danger-soft: #34121a;
|
||||
--color-info: #5cbcff;
|
||||
--color-info-soft: #0b2236;
|
||||
--color-violet: #b19bff;
|
||||
--color-violet-soft: #1f1a3d;
|
||||
|
||||
/* Editor de cortes (/clipper/edit): tema de editor de vídeo, neutro e denso. Valores do tema "darkest" do
|
||||
FilmCraft (MIT/Apache-2.0), que por sua vez mede o padrão dos editores profissionais: fundo preto entre os
|
||||
painéis, painel cinza-chumbo, texto cinza claro, azul só para foco, tempo e valores editáveis. */
|
||||
--color-nle-app: #000000;
|
||||
--color-nle-panel: #1d1d1d;
|
||||
--color-nle-well: #0e0e0e;
|
||||
--color-nle-row: #232323;
|
||||
--color-nle-hover: #2c2c2c;
|
||||
--color-nle-pressed: #3a3a3a;
|
||||
--color-nle-line: #303030;
|
||||
--color-nle-text: #d1d1d1;
|
||||
--color-nle-dim: #b0b0b0;
|
||||
--color-nle-faint: #6e6e6e;
|
||||
--color-nle-accent: #2f6bdf;
|
||||
--color-nle-hot: #4096f3;
|
||||
--color-nle-focus: #5794ec;
|
||||
--color-nle-danger: #dc513d;
|
||||
|
||||
/* Raios */
|
||||
--radius-control: 0.625rem;
|
||||
--radius-card: 1rem;
|
||||
--radius-panel: 1.375rem;
|
||||
|
||||
/* Sombras */
|
||||
--shadow-card: 0 1px 0 0 rgb(255 255 255 / 0.04) inset, 0 1px 2px rgb(0 0 0 / 0.4), 0 12px 32px -16px rgb(0 0 0 / 0.7);
|
||||
--shadow-pop: 0 24px 64px -12px rgb(0 0 0 / 0.85), 0 0 0 1px rgb(255 255 255 / 0.05);
|
||||
--shadow-glow: 0 0 0 1px rgb(255 122 26 / 0.35), 0 10px 30px -10px rgb(255 122 26 / 0.55);
|
||||
|
||||
/* Escala tipográfica: display (título da página), title (seção), lead (texto de abertura) */
|
||||
--text-display: 2.75rem;
|
||||
--text-display--line-height: 1.05;
|
||||
--text-display--letter-spacing: -0.035em;
|
||||
--text-display--font-weight: 650;
|
||||
--text-title: 1.25rem;
|
||||
--text-title--line-height: 1.3;
|
||||
--text-title--letter-spacing: -0.015em;
|
||||
--text-title--font-weight: 600;
|
||||
--text-lead: 1.0625rem;
|
||||
--text-lead--line-height: 1.6;
|
||||
--text-eyebrow: 0.6875rem;
|
||||
--text-eyebrow--line-height: 1;
|
||||
--text-eyebrow--letter-spacing: 0.16em;
|
||||
|
||||
/* Fontes locais (o painel funciona offline). Segoe UI Variable tem cortes Display e Text no Windows 11. */
|
||||
--font-sans: "Segoe UI Variable Text", "Segoe UI Variable", ui-sans-serif, system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
|
||||
--font-display: "Segoe UI Variable Display", "Segoe UI Variable", ui-sans-serif, system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
|
||||
--font-mono: ui-monospace, "Cascadia Code", "Cascadia Mono", "SF Mono", Consolas, "Liberation Mono", monospace;
|
||||
|
||||
/* Largura da barra lateral */
|
||||
--spacing-rail: 4.5rem;
|
||||
--spacing-rail-open: 15.5rem;
|
||||
}
|
||||
|
||||
@layer base {
|
||||
:root {
|
||||
color-scheme: dark;
|
||||
}
|
||||
|
||||
html {
|
||||
scrollbar-color: var(--color-line-strong) transparent;
|
||||
scrollbar-gutter: stable;
|
||||
}
|
||||
|
||||
body {
|
||||
background-color: var(--color-canvas);
|
||||
/* Luz quente vinda do alto, como um set iluminado: dá profundidade sem competir com o conteúdo. */
|
||||
background-image:
|
||||
radial-gradient(60rem 28rem at 70% -12rem, rgb(255 122 26 / 0.07), transparent 70%),
|
||||
radial-gradient(40rem 24rem at 15% -10rem, rgb(255 77 125 / 0.04), transparent 70%);
|
||||
background-repeat: no-repeat;
|
||||
color: var(--color-fg);
|
||||
font-family: var(--font-sans);
|
||||
font-feature-settings: "ss01", "cv11";
|
||||
}
|
||||
|
||||
h1, h2, h3 {
|
||||
font-family: var(--font-display);
|
||||
text-wrap: balance;
|
||||
}
|
||||
|
||||
p {
|
||||
text-wrap: pretty;
|
||||
}
|
||||
|
||||
::selection {
|
||||
background: var(--color-accent);
|
||||
color: var(--color-accent-fg);
|
||||
}
|
||||
|
||||
/* Foco visível em todo elemento interativo */
|
||||
:focus-visible {
|
||||
outline: 2px solid var(--color-accent);
|
||||
outline-offset: 2px;
|
||||
}
|
||||
|
||||
code {
|
||||
font-family: var(--font-mono);
|
||||
font-size: 0.85em;
|
||||
background: var(--color-raised);
|
||||
border: 1px solid var(--color-line);
|
||||
border-radius: 0.375rem;
|
||||
padding: 0.05em 0.35em;
|
||||
color: var(--color-fg);
|
||||
}
|
||||
|
||||
pre code {
|
||||
background: none;
|
||||
border: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
/* Select com seta própria (a nativa some no tema escuro do Windows) */
|
||||
select:not([multiple]) {
|
||||
appearance: none;
|
||||
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a9a9b4' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
|
||||
background-repeat: no-repeat;
|
||||
background-position: right 0.7rem center;
|
||||
background-size: 1rem;
|
||||
padding-right: 2.25rem;
|
||||
}
|
||||
|
||||
select option {
|
||||
background: var(--color-raised);
|
||||
color: var(--color-fg);
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* Barra lateral: recolhida (só ícones) e expandida POR CIMA do conteúdo ao passar o mouse ou ao
|
||||
* focar pelo teclado (:focus-visible — um clique do mouse não a deixa presa aberta).
|
||||
*/
|
||||
@layer components {
|
||||
.rail {
|
||||
width: var(--spacing-rail);
|
||||
background-color: rgb(10 10 12 / 0.92);
|
||||
backdrop-filter: blur(20px);
|
||||
transition: width 220ms cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 220ms ease, background-color 220ms ease;
|
||||
}
|
||||
|
||||
.rail:hover,
|
||||
.rail:has(:focus-visible) {
|
||||
width: var(--spacing-rail-open);
|
||||
background-color: var(--color-surface);
|
||||
box-shadow: 24px 0 64px -16px rgb(0 0 0 / 0.85), 1px 0 0 0 var(--color-line-strong);
|
||||
}
|
||||
|
||||
/* Pequena intenção antes de abrir: passar o mouse de raspão não abre a barra. */
|
||||
.rail:hover {
|
||||
transition-delay: 90ms;
|
||||
}
|
||||
|
||||
.rail-label {
|
||||
opacity: 0;
|
||||
transform: translateX(-6px);
|
||||
transition: opacity 160ms ease, transform 200ms ease;
|
||||
}
|
||||
|
||||
.rail:hover .rail-label,
|
||||
.rail:has(:focus-visible) .rail-label {
|
||||
opacity: 1;
|
||||
transform: none;
|
||||
transition-delay: 110ms;
|
||||
}
|
||||
|
||||
/* Texto com o degradê da chama, para o que é feito pela IA */
|
||||
.text-flame {
|
||||
background: linear-gradient(95deg, var(--color-glow), var(--color-accent) 45%, var(--color-flame));
|
||||
-webkit-background-clip: text;
|
||||
background-clip: text;
|
||||
color: transparent;
|
||||
}
|
||||
|
||||
/* Borda em degradê para o painel de destaque */
|
||||
.flame-frame {
|
||||
position: relative;
|
||||
isolation: isolate;
|
||||
}
|
||||
|
||||
.flame-frame::before {
|
||||
content: "";
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
z-index: -1;
|
||||
padding: 1px;
|
||||
border-radius: inherit;
|
||||
background: linear-gradient(135deg, rgb(255 181 71 / 0.7), rgb(255 122 26 / 0.35) 35%, rgb(255 77 125 / 0.25) 70%, rgb(255 255 255 / 0.04));
|
||||
-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
|
||||
-webkit-mask-composite: xor;
|
||||
mask-composite: exclude;
|
||||
pointer-events: none;
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* Editor de fluxo (@xyflow/react): as variáveis da biblioteca apontam para os tokens do tema,
|
||||
* para o canvas, os controles e o minimapa conversarem com o resto do painel.
|
||||
*/
|
||||
.react-flow.cf-flow {
|
||||
--xy-background-color: transparent;
|
||||
--xy-background-pattern-dots-color: var(--color-line-strong);
|
||||
--xy-edge-stroke: var(--color-line-strong);
|
||||
--xy-minimap-background-color: var(--color-sunken);
|
||||
--xy-minimap-mask-background-color: rgb(10 10 12 / 0.7);
|
||||
--xy-minimap-mask-stroke-color: var(--color-line-strong);
|
||||
--xy-minimap-node-background-color: var(--color-overlay);
|
||||
--xy-controls-button-background-color: var(--color-raised);
|
||||
--xy-controls-button-background-color-hover: var(--color-overlay);
|
||||
--xy-controls-button-color: var(--color-fg-muted);
|
||||
--xy-controls-button-color-hover: var(--color-fg);
|
||||
--xy-controls-button-border-color: var(--color-line-strong);
|
||||
--xy-controls-box-shadow: 0 1px 2px rgb(0 0 0 / 0.5);
|
||||
--xy-attribution-background-color: transparent;
|
||||
--xy-node-border-radius: var(--radius-card);
|
||||
font-family: var(--font-sans);
|
||||
}
|
||||
|
||||
.cf-flow .react-flow__controls {
|
||||
overflow: hidden;
|
||||
border: 1px solid var(--color-line-strong);
|
||||
border-radius: var(--radius-control);
|
||||
}
|
||||
|
||||
.cf-flow .react-flow__controls-button {
|
||||
width: 30px;
|
||||
height: 30px;
|
||||
}
|
||||
|
||||
.cf-flow .react-flow__controls-button:focus-visible,
|
||||
.cf-flow .react-flow__minimap:focus-visible {
|
||||
outline: 2px solid var(--color-accent);
|
||||
outline-offset: -2px;
|
||||
}
|
||||
|
||||
.cf-flow .react-flow__minimap {
|
||||
overflow: hidden;
|
||||
border: 1px solid var(--color-line-strong);
|
||||
border-radius: var(--radius-control);
|
||||
}
|
||||
|
||||
/* Nós customizados: sem moldura da biblioteca (o cartão é nosso) e alças invisíveis (não há ligação manual). */
|
||||
.cf-flow .react-flow__node {
|
||||
border: 0;
|
||||
background: transparent;
|
||||
padding: 0;
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
.cf-flow .react-flow__handle {
|
||||
opacity: 0;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.cf-flow .react-flow__attribution {
|
||||
color: var(--color-fg-subtle);
|
||||
}
|
||||
|
||||
.cf-flow .react-flow__attribution a {
|
||||
color: inherit;
|
||||
}
|
||||
|
||||
/* ---------- Editor de cortes ---------- */
|
||||
.nle {
|
||||
font-size: 12px;
|
||||
line-height: 1.35;
|
||||
color: var(--color-nle-text);
|
||||
scrollbar-color: #4b4b4b transparent;
|
||||
scrollbar-width: thin;
|
||||
}
|
||||
.nle ::selection {
|
||||
background: rgb(47 107 223 / 0.55);
|
||||
}
|
||||
/* Controle deslizante fino, no padrão dos painéis de efeito. */
|
||||
.nle input[type="range"] {
|
||||
appearance: none;
|
||||
height: 14px;
|
||||
background: transparent;
|
||||
cursor: pointer;
|
||||
}
|
||||
.nle input[type="range"]::-webkit-slider-runnable-track {
|
||||
height: 2px;
|
||||
border-radius: 1px;
|
||||
background: #4a4a4a;
|
||||
}
|
||||
.nle input[type="range"]::-webkit-slider-thumb {
|
||||
appearance: none;
|
||||
width: 11px;
|
||||
height: 11px;
|
||||
margin-top: -4.5px;
|
||||
border-radius: 50%;
|
||||
border: 1.5px solid #d1d1d1;
|
||||
background: var(--color-nle-panel);
|
||||
}
|
||||
.nle input[type="range"]:hover::-webkit-slider-thumb {
|
||||
background: #d1d1d1;
|
||||
}
|
||||
.nle input[type="range"]::-moz-range-track {
|
||||
height: 2px;
|
||||
background: #4a4a4a;
|
||||
}
|
||||
.nle input[type="range"]::-moz-range-thumb {
|
||||
width: 9px;
|
||||
height: 9px;
|
||||
border-radius: 50%;
|
||||
border: 1.5px solid #d1d1d1;
|
||||
background: var(--color-nle-panel);
|
||||
}
|
||||
.nle input[type="range"]:focus-visible {
|
||||
outline: 1px solid var(--color-nle-focus);
|
||||
outline-offset: 2px;
|
||||
}
|
||||
.nle dialog::backdrop {
|
||||
background: rgb(0 0 0 / 0.72);
|
||||
}
|
||||
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
*,
|
||||
*::before,
|
||||
*::after {
|
||||
animation-duration: 0.01ms !important;
|
||||
animation-iteration-count: 1 !important;
|
||||
transition-duration: 0.01ms !important;
|
||||
transition-delay: 0ms !important;
|
||||
scroll-behavior: auto !important;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user