feat: habilitar provisionamento desktop e rotas CORS

This commit is contained in:
Esdras Renan 2025-10-08 23:07:49 -03:00
parent 7569986ffc
commit 152550a9a0
19 changed files with 1806 additions and 211 deletions

View file

@ -1,116 +1,235 @@
.logo.vite:hover {
filter: drop-shadow(0 0 2em #747bff);
}
.logo.typescript:hover {
filter: drop-shadow(0 0 2em #2d79c7);
}
:root {
font-family: Inter, Avenir, Helvetica, Arial, sans-serif;
color-scheme: light dark;
font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
font-size: 16px;
line-height: 24px;
font-weight: 400;
color: #0f0f0f;
background-color: #f6f6f6;
font-synthesis: none;
text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
-webkit-text-size-adjust: 100%;
}
.container {
line-height: 1.5;
background-color: #f1f5f9;
color: #0f172a;
margin: 0;
padding-top: 10vh;
display: flex;
flex-direction: column;
justify-content: center;
text-align: center;
}
.logo {
height: 6em;
padding: 1.5em;
will-change: filter;
transition: 0.75s;
body {
margin: 0;
}
.logo.tauri:hover {
filter: drop-shadow(0 0 2em #24c8db);
.app-root {
min-height: 100vh;
display: grid;
place-items: center;
padding: 24px;
background: radial-gradient(circle at top, rgba(59, 130, 246, 0.12), transparent 60%),
radial-gradient(circle at bottom, rgba(16, 185, 129, 0.12), transparent 55%);
}
.row {
display: flex;
justify-content: center;
.card {
width: min(440px, 100%);
background-color: rgba(255, 255, 255, 0.85);
border-radius: 16px;
box-shadow: 0 16px 60px rgba(15, 23, 42, 0.16);
padding: 28px;
backdrop-filter: blur(12px);
}
a {
.card header h1 {
margin: 0;
font-size: 1.75rem;
}
.subtitle {
margin: 4px 0 0;
color: #475569;
font-size: 0.95rem;
}
.alert {
margin-top: 16px;
font-size: 0.95rem;
color: #0f172a;
background-color: #e0f2fe;
border-radius: 12px;
padding: 12px 14px;
display: none;
}
.alert.visible {
display: block;
}
.alert.error {
background-color: #fee2e2;
color: #b91c1c;
}
.alert.success {
background-color: #dcfce7;
color: #166534;
}
form {
display: grid;
gap: 12px;
margin-top: 18px;
}
label {
display: grid;
gap: 6px;
font-weight: 500;
color: #646cff;
text-decoration: inherit;
color: #0f172a;
}
a:hover {
color: #535bf2;
}
h1 {
text-align: center;
label span.optional {
font-weight: 400;
color: #64748b;
font-size: 0.85rem;
}
input,
button {
border-radius: 8px;
border: 1px solid transparent;
padding: 0.6em 1.2em;
font-size: 1em;
font-weight: 500;
font-family: inherit;
color: #0f0f0f;
background-color: #ffffff;
transition: border-color 0.25s;
box-shadow: 0 2px 2px rgba(0, 0, 0, 0.2);
select {
padding: 10px 12px;
border-radius: 10px;
border: 1px solid rgba(148, 163, 184, 0.6);
font-size: 1rem;
background-color: rgba(241, 245, 249, 0.8);
color: inherit;
transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
button {
cursor: pointer;
}
button:hover {
border-color: #396cd8;
}
button:active {
border-color: #396cd8;
background-color: #e8e8e8;
}
input,
button {
input:focus,
select:focus {
outline: none;
border-color: #2563eb;
box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.25);
}
#greet-input {
margin-right: 5px;
button {
padding: 12px 16px;
border-radius: 12px;
border: none;
background-color: #2563eb;
color: #ffffff;
font-weight: 600;
font-size: 1rem;
cursor: pointer;
transition: background-color 0.2s ease, transform 0.2s ease;
}
button.secondary {
background: none;
color: #2563eb;
}
button:disabled {
opacity: 0.6;
cursor: not-allowed;
}
button:hover:not(:disabled) {
background-color: #1d4ed8;
transform: translateY(-1px);
}
.machine-summary {
margin-top: 18px;
padding: 14px;
border-radius: 12px;
background-color: rgba(15, 23, 42, 0.05);
display: grid;
gap: 8px;
font-size: 0.95rem;
}
.machine-summary strong {
font-weight: 600;
}
.actions {
display: flex;
justify-content: space-between;
align-items: center;
gap: 12px;
margin-top: 20px;
}
.actions button {
flex: 1;
}
.status-text {
margin-top: 16px;
font-size: 0.95rem;
color: #334155;
}
.spinner {
width: 18px;
height: 18px;
border-radius: 50%;
border: 3px solid rgba(37, 99, 235, 0.14);
border-top-color: #2563eb;
animation: spin 0.8s linear infinite;
display: inline-block;
vertical-align: middle;
}
@keyframes spin {
to {
transform: rotate(360deg);
}
}
@media (prefers-color-scheme: dark) {
:root {
color: #f6f6f6;
background-color: #2f2f2f;
background-color: #0f172a;
color: #e2e8f0;
}
a:hover {
color: #24c8db;
.card {
background-color: rgba(15, 23, 42, 0.75);
color: #e2e8f0;
box-shadow: 0 12px 32px rgba(15, 23, 42, 0.4);
}
.subtitle {
color: #94a3b8;
}
.alert {
background-color: rgba(37, 99, 235, 0.16);
color: #bfdbfe;
}
.alert.error {
background-color: rgba(248, 113, 113, 0.2);
color: #fecaca;
}
.alert.success {
background-color: rgba(34, 197, 94, 0.18);
color: #bbf7d0;
}
input,
button {
color: #ffffff;
background-color: #0f0f0f98;
select {
background-color: rgba(15, 23, 42, 0.5);
border-color: rgba(148, 163, 184, 0.35);
}
button:active {
background-color: #0f0f0f69;
input:focus,
select:focus {
border-color: #60a5fa;
box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.32);
}
button.secondary {
color: #93c5fd;
}
.machine-summary {
background-color: rgba(148, 163, 184, 0.12);
}
.status-text {
color: #cbd5f5;
}
}