Spaces:
Running
Faça uma tela padrão com header e faça uma tela bonita com essas cores. A aplicação será uma tela de cadastro de dados como endereço, email etc.:
Browse filescolors: {
primary: '#21223a',
secondary: '#ff580f',
}
Exemplo do que terá na tela:
AS00M010
--------------------------------------------------------------------------------
FUNCOES QUE ABREM ESTE MAPA:
>AS00P010
--------------------------------------------------------------------------------
A ADMINISTRACAO INTEGRADA DE SEGUROS 01/01/000B
AS00M010 V.1 C 0000000D
E
OP EMPRESA NOME
F G H
F G H
F G H
F G H
F G H
F G H
F G H
F G H
F G H
F G H
F G H
F G H
F G H
F G H
F G H
I
J
F1 - AJUDA F2 - F3 - SAIDA F4 - F5 - F6 -
F7 - RETORNA F8 - AVANCA F9 - F10- F11- F12- CANCELA
--------------------------------------------------------------------------------
- README.md +7 -4
- components/navbar.js +75 -0
- index.html +100 -19
- script.js +18 -0
- style.css +31 -18
|
@@ -1,10 +1,13 @@
|
|
| 1 |
---
|
| 2 |
-
title:
|
| 3 |
-
|
| 4 |
-
colorFrom: green
|
| 5 |
colorTo: blue
|
|
|
|
| 6 |
sdk: static
|
| 7 |
pinned: false
|
|
|
|
|
|
|
| 8 |
---
|
| 9 |
|
| 10 |
-
|
|
|
|
|
|
| 1 |
---
|
| 2 |
+
title: SegurosMaster Pro 🛡️
|
| 3 |
+
colorFrom: red
|
|
|
|
| 4 |
colorTo: blue
|
| 5 |
+
emoji: 🐳
|
| 6 |
sdk: static
|
| 7 |
pinned: false
|
| 8 |
+
tags:
|
| 9 |
+
- deepsite-v3
|
| 10 |
---
|
| 11 |
|
| 12 |
+
# Welcome to your new DeepSite project!
|
| 13 |
+
This project was created with [DeepSite](https://huggingface.co/deepsite).
|
|
@@ -0,0 +1,75 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
class CustomNavbar extends HTMLElement {
|
| 2 |
+
connectedCallback() {
|
| 3 |
+
this.attachShadow({ mode: 'open' });
|
| 4 |
+
this.shadowRoot.innerHTML = `
|
| 5 |
+
<style>
|
| 6 |
+
nav {
|
| 7 |
+
background-color: #21223a;
|
| 8 |
+
color: white;
|
| 9 |
+
padding: 1rem 2rem;
|
| 10 |
+
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
|
| 11 |
+
}
|
| 12 |
+
.container {
|
| 13 |
+
max-width: 1200px;
|
| 14 |
+
margin: 0 auto;
|
| 15 |
+
display: flex;
|
| 16 |
+
justify-content: space-between;
|
| 17 |
+
align-items: center;
|
| 18 |
+
}
|
| 19 |
+
.logo {
|
| 20 |
+
font-weight: bold;
|
| 21 |
+
font-size: 1.25rem;
|
| 22 |
+
color: white;
|
| 23 |
+
display: flex;
|
| 24 |
+
align-items: center;
|
| 25 |
+
gap: 0.5rem;
|
| 26 |
+
}
|
| 27 |
+
.nav-links {
|
| 28 |
+
display: flex;
|
| 29 |
+
gap: 1.5rem;
|
| 30 |
+
}
|
| 31 |
+
.nav-link {
|
| 32 |
+
color: rgba(255, 255, 255, 0.8);
|
| 33 |
+
text-decoration: none;
|
| 34 |
+
transition: color 0.3s ease;
|
| 35 |
+
font-size: 0.95rem;
|
| 36 |
+
display: flex;
|
| 37 |
+
align-items: center;
|
| 38 |
+
gap: 0.3rem;
|
| 39 |
+
}
|
| 40 |
+
.nav-link:hover {
|
| 41 |
+
color: #ff580f;
|
| 42 |
+
}
|
| 43 |
+
.icon {
|
| 44 |
+
width: 18px;
|
| 45 |
+
height: 18px;
|
| 46 |
+
stroke: currentColor;
|
| 47 |
+
}
|
| 48 |
+
</style>
|
| 49 |
+
<nav>
|
| 50 |
+
<div class="container">
|
| 51 |
+
<a href="/" class="logo">
|
| 52 |
+
<i data-feather="shield" class="icon"></i>
|
| 53 |
+
SegurosMaster Pro
|
| 54 |
+
</a>
|
| 55 |
+
<div class="nav-links">
|
| 56 |
+
<a href="#" class="nav-link">
|
| 57 |
+
<i data-feather="home" class="icon"></i>
|
| 58 |
+
Início
|
| 59 |
+
</a>
|
| 60 |
+
<a href="#" class="nav-link">
|
| 61 |
+
<i data-feather="user" class="icon"></i>
|
| 62 |
+
Perfil
|
| 63 |
+
</a>
|
| 64 |
+
<a href="#" class="nav-link">
|
| 65 |
+
<i data-feather="settings" class="icon"></i>
|
| 66 |
+
Configurações
|
| 67 |
+
</a>
|
| 68 |
+
</div>
|
| 69 |
+
</div>
|
| 70 |
+
</nav>
|
| 71 |
+
`;
|
| 72 |
+
}
|
| 73 |
+
}
|
| 74 |
+
|
| 75 |
+
customElements.define('custom-navbar', CustomNavbar);
|
|
@@ -1,19 +1,100 @@
|
|
| 1 |
-
<!
|
| 2 |
-
<html>
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
</
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!DOCTYPE html>
|
| 2 |
+
<html lang="pt-BR">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="UTF-8">
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
+
<title>SegurosMaster Pro - Cadastro</title>
|
| 7 |
+
<script src="https://cdn.tailwindcss.com"></script>
|
| 8 |
+
<script>
|
| 9 |
+
tailwind.config = {
|
| 10 |
+
theme: {
|
| 11 |
+
extend: {
|
| 12 |
+
colors: {
|
| 13 |
+
primary: '#21223a',
|
| 14 |
+
secondary: '#ff580f',
|
| 15 |
+
}
|
| 16 |
+
}
|
| 17 |
+
}
|
| 18 |
+
}
|
| 19 |
+
</script>
|
| 20 |
+
<script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
|
| 21 |
+
<script src="https://unpkg.com/feather-icons"></script>
|
| 22 |
+
<link rel="stylesheet" href="style.css">
|
| 23 |
+
<script src="components/navbar.js"></script>
|
| 24 |
+
</head>
|
| 25 |
+
<body class="bg-gray-50">
|
| 26 |
+
<custom-navbar></custom-navbar>
|
| 27 |
+
|
| 28 |
+
<main class="container mx-auto px-4 py-8">
|
| 29 |
+
<div class="bg-white rounded-lg shadow-lg overflow-hidden max-w-4xl mx-auto">
|
| 30 |
+
<!-- Header Section -->
|
| 31 |
+
<div class="bg-primary text-white px-6 py-4 border-b-4 border-secondary">
|
| 32 |
+
<div class="flex justify-between items-center">
|
| 33 |
+
<h1 class="text-xl font-bold">AS00M010</h1>
|
| 34 |
+
<span class="text-sm">01/01/2023</span>
|
| 35 |
+
</div>
|
| 36 |
+
<p class="mt-1 text-sm opacity-90">A ADMINISTRAÇÃO INTEGRADA DE SEGUROS</p>
|
| 37 |
+
</div>
|
| 38 |
+
|
| 39 |
+
<!-- Content Section -->
|
| 40 |
+
<div class="p-6">
|
| 41 |
+
<div class="mb-6 text-center text-primary text-sm">
|
| 42 |
+
<p>V.1 | C | 0000000D</p>
|
| 43 |
+
<p class="mt-2">OP EMPRESA NOME</p>
|
| 44 |
+
</div>
|
| 45 |
+
|
| 46 |
+
<!-- Form Fields -->
|
| 47 |
+
<div class="grid grid-cols-1 md:grid-cols-2 gap-6 mb-8">
|
| 48 |
+
<div class="space-y-4">
|
| 49 |
+
<div class="form-field">
|
| 50 |
+
<label class="block text-primary font-medium mb-1">Código (F)</label>
|
| 51 |
+
<input type="text" class="w-full px-4 py-2 border rounded-lg focus:ring-2 focus:ring-secondary focus:border-secondary">
|
| 52 |
+
</div>
|
| 53 |
+
|
| 54 |
+
<div class="form-field">
|
| 55 |
+
<label class="block text-primary font-medium mb-1">Empresa (G)</label>
|
| 56 |
+
<select class="w-full px-4 py-2 border rounded-lg focus:ring-2 focus:ring-secondary focus:border-secondary">
|
| 57 |
+
<option>Selecione uma empresa</option>
|
| 58 |
+
</select>
|
| 59 |
+
</div>
|
| 60 |
+
|
| 61 |
+
<div class="form-field">
|
| 62 |
+
<label class="block text-primary font-medium mb-1">Nome (H)</label>
|
| 63 |
+
<input type="text" class="w-full px-4 py-2 border rounded-lg focus:ring-2 focus:ring-secondary focus:border-secondary">
|
| 64 |
+
</div>
|
| 65 |
+
</div>
|
| 66 |
+
|
| 67 |
+
<div class="space-y-4">
|
| 68 |
+
<div class="form-field">
|
| 69 |
+
<label class="block text-primary font-medium mb-1">Endereço (I)</label>
|
| 70 |
+
<textarea class="w-full px-4 py-2 border rounded-lg focus:ring-2 focus:ring-secondary focus:border-secondary" rows="3"></textarea>
|
| 71 |
+
</div>
|
| 72 |
+
|
| 73 |
+
<div class="form-field">
|
| 74 |
+
<label class="block text-primary font-medium mb-1">Email (J)</label>
|
| 75 |
+
<input type="email" class="w-full px-4 py-2 border rounded-lg focus:ring-2 focus:ring-secondary focus:border-secondary">
|
| 76 |
+
</div>
|
| 77 |
+
</div>
|
| 78 |
+
</div>
|
| 79 |
+
</div>
|
| 80 |
+
|
| 81 |
+
<!-- Footer Buttons -->
|
| 82 |
+
<div class="bg-gray-100 px-6 py-4 border-t-2 border-gray-200">
|
| 83 |
+
<div class="flex flex-wrap justify-between items-center">
|
| 84 |
+
<button class="btn bg-gray-300 hover:bg-gray-400">F1 - AJUDA</button>
|
| 85 |
+
<button class="btn bg-gray-300 hover:bg-gray-400">F3 - SAIDA</button>
|
| 86 |
+
<button class="btn bg-gray-300 hover:bg-gray-400">F7 - RETORNA</button>
|
| 87 |
+
<button class="btn bg-gray-300 hover:bg-gray-400">F8 - AVANCA</button>
|
| 88 |
+
<button class="btn bg-secondary hover:bg-orange-600 text-white">F12- CANCELA</button>
|
| 89 |
+
</div>
|
| 90 |
+
</div>
|
| 91 |
+
</div>
|
| 92 |
+
</main>
|
| 93 |
+
|
| 94 |
+
<script>
|
| 95 |
+
feather.replace();
|
| 96 |
+
</script>
|
| 97 |
+
<script src="script.js"></script>
|
| 98 |
+
<script src="https://huggingface.co/deepsite/deepsite-badge.js"></script>
|
| 99 |
+
</body>
|
| 100 |
+
</html>
|
|
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
document.addEventListener('DOMContentLoaded', function() {
|
| 2 |
+
// Add any interactive functionality here
|
| 3 |
+
const formFields = document.querySelectorAll('.form-field input, .form-field select, .form-field textarea');
|
| 4 |
+
|
| 5 |
+
formFields.forEach(field => {
|
| 6 |
+
field.addEventListener('focus', function() {
|
| 7 |
+
this.parentElement.classList.add('field-active');
|
| 8 |
+
});
|
| 9 |
+
|
| 10 |
+
field.addEventListener('blur', function() {
|
| 11 |
+
this.parentElement.classList.remove('field-active');
|
| 12 |
+
});
|
| 13 |
+
});
|
| 14 |
+
|
| 15 |
+
// Simulate the load of a function that opens this screen
|
| 16 |
+
console.log('FUNÇÕES QUE ABREM ESTE MAPA:');
|
| 17 |
+
console.log('> AS00P010');
|
| 18 |
+
});
|
|
@@ -1,28 +1,41 @@
|
|
|
|
|
|
|
|
| 1 |
body {
|
| 2 |
-
|
| 3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 4 |
}
|
| 5 |
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
|
|
|
| 9 |
}
|
| 10 |
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
}
|
| 17 |
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
border: 1px solid lightgray;
|
| 23 |
-
border-radius: 16px;
|
| 24 |
}
|
| 25 |
|
| 26 |
-
.
|
| 27 |
-
|
| 28 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');
|
| 2 |
+
|
| 3 |
body {
|
| 4 |
+
font-family: 'Roboto', sans-serif;
|
| 5 |
+
}
|
| 6 |
+
|
| 7 |
+
.form-field input,
|
| 8 |
+
.form-field select,
|
| 9 |
+
.form-field textarea {
|
| 10 |
+
transition: all 0.3s ease;
|
| 11 |
+
border: 1px solid #d1d5db;
|
| 12 |
}
|
| 13 |
|
| 14 |
+
.form-field input:focus,
|
| 15 |
+
.form-field select:focus,
|
| 16 |
+
.form-field textarea:focus {
|
| 17 |
+
outline: none;
|
| 18 |
}
|
| 19 |
|
| 20 |
+
.btn {
|
| 21 |
+
@apply px-4 py-2 rounded-md font-medium text-sm transition-all duration-200;
|
| 22 |
+
min-width: 120px;
|
| 23 |
+
text-align: center;
|
| 24 |
+
margin: 0.25rem 0;
|
| 25 |
}
|
| 26 |
|
| 27 |
+
/* Animation for form fields */
|
| 28 |
+
@keyframes fadeIn {
|
| 29 |
+
from { opacity: 0; transform: translateY(10px); }
|
| 30 |
+
to { opacity: 1; transform: translateY(0); }
|
|
|
|
|
|
|
| 31 |
}
|
| 32 |
|
| 33 |
+
.form-field {
|
| 34 |
+
animation: fadeIn 0.5s ease-out forwards;
|
| 35 |
}
|
| 36 |
+
|
| 37 |
+
.form-field:nth-child(1) { animation-delay: 0.1s; }
|
| 38 |
+
.form-field:nth-child(2) { animation-delay: 0.2s; }
|
| 39 |
+
.form-field:nth-child(3) { animation-delay: 0.3s; }
|
| 40 |
+
.form-field:nth-child(4) { animation-delay: 0.4s; }
|
| 41 |
+
.form-field:nth-child(5) { animation-delay: 0.5s; }
|