Spaces:
Running
Running
Monte com sidebar e essas cores:
Browse filescolors: {
primary: '#21223a',
secondary: '#ff580f',
}v
Monte uma aplicação onde terá um botão e o usuário irá clicar para iniciar um novo teste assim abrindo um modal para ele selecionar um emulador android rodando e enviar o aplicativo .apk
Faça de forma bonita e profissional a página e o modal.
Ao enviar o aplicativo e o emulador selecionado irá abrir um chatbot para o usuário testar o aplicativo usando linguagem natural. Adicione no chatbot os botões para as funcionalidades: Instalar aplicativo, rodar testes, abrir evidências, excluir mensagens e um botão de configuração.
Faça de forma simples sem simular o chatbot nem nada.
- README.md +7 -4
- components/sidebar.js +207 -0
- index.html +201 -19
- script.js +71 -0
- style.css +55 -18
README.md
CHANGED
|
@@ -1,10 +1,13 @@
|
|
| 1 |
---
|
| 2 |
-
title: Android Test Pilot
|
| 3 |
-
emoji: 😻
|
| 4 |
colorFrom: green
|
| 5 |
-
colorTo:
|
|
|
|
| 6 |
sdk: static
|
| 7 |
pinned: false
|
|
|
|
|
|
|
| 8 |
---
|
| 9 |
|
| 10 |
-
|
|
|
|
|
|
| 1 |
---
|
| 2 |
+
title: Android Test Pilot 🤖
|
|
|
|
| 3 |
colorFrom: green
|
| 4 |
+
colorTo: pink
|
| 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://deepsite.hf.co).
|
components/sidebar.js
ADDED
|
@@ -0,0 +1,207 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
| 1 |
+
class CustomSidebar extends HTMLElement {
|
| 2 |
+
connectedCallback() {
|
| 3 |
+
this.attachShadow({ mode: 'open' });
|
| 4 |
+
this.shadowRoot.innerHTML = `
|
| 5 |
+
<style>
|
| 6 |
+
:host {
|
| 7 |
+
display: block;
|
| 8 |
+
position: fixed;
|
| 9 |
+
left: 0;
|
| 10 |
+
top: 0;
|
| 11 |
+
height: 100vh;
|
| 12 |
+
width: 16rem;
|
| 13 |
+
background: #1a1e2e;
|
| 14 |
+
border-right: 1px solid #2d3748;
|
| 15 |
+
z-index: 40;
|
| 16 |
+
transition: transform 0.3s ease;
|
| 17 |
+
}
|
| 18 |
+
|
| 19 |
+
.sidebar-content {
|
| 20 |
+
padding: 1.5rem;
|
| 21 |
+
height: 100%;
|
| 22 |
+
display: flex;
|
| 23 |
+
flex-direction: column;
|
| 24 |
+
}
|
| 25 |
+
|
| 26 |
+
.logo {
|
| 27 |
+
display: flex;
|
| 28 |
+
align-items: center;
|
| 29 |
+
gap: 0.75rem;
|
| 30 |
+
margin-bottom: 2rem;
|
| 31 |
+
padding-bottom: 1rem;
|
| 32 |
+
border-bottom: 1px solid #2d3748;
|
| 33 |
+
}
|
| 34 |
+
|
| 35 |
+
.logo-icon {
|
| 36 |
+
width: 2rem;
|
| 37 |
+
height: 2rem;
|
| 38 |
+
background: linear-gradient(135deg, #ff580f 0%, #ff8c66 100%);
|
| 39 |
+
border-radius: 0.5rem;
|
| 40 |
+
display: flex;
|
| 41 |
+
align-items: center;
|
| 42 |
+
justify-content: center;
|
| 43 |
+
color: white;
|
| 44 |
+
}
|
| 45 |
+
|
| 46 |
+
.logo-text {
|
| 47 |
+
font-weight: 700;
|
| 48 |
+
font-size: 1.25rem;
|
| 49 |
+
background: linear-gradient(135deg, #ff580f 0%, #ff8c66 100%);
|
| 50 |
+
-webkit-background-clip: text;
|
| 51 |
+
-webkit-text-fill-color: transparent;
|
| 52 |
+
}
|
| 53 |
+
|
| 54 |
+
.nav-items {
|
| 55 |
+
display: flex;
|
| 56 |
+
flex-direction: column;
|
| 57 |
+
gap: 0.5rem;
|
| 58 |
+
flex: 1;
|
| 59 |
+
}
|
| 60 |
+
|
| 61 |
+
.nav-item {
|
| 62 |
+
display: flex;
|
| 63 |
+
align-items: center;
|
| 64 |
+
gap: 0.75rem;
|
| 65 |
+
padding: 0.75rem 1rem;
|
| 66 |
+
border-radius: 0.5rem;
|
| 67 |
+
color: #a0aec0;
|
| 68 |
+
text-decoration: none;
|
| 69 |
+
transition: all 0.2s ease;
|
| 70 |
+
}
|
| 71 |
+
|
| 72 |
+
.nav-item:hover {
|
| 73 |
+
background: #21223a;
|
| 74 |
+
color: white;
|
| 75 |
+
}
|
| 76 |
+
|
| 77 |
+
.nav-item.active {
|
| 78 |
+
background: #21223a;
|
| 79 |
+
color: #ff580f;
|
| 80 |
+
}
|
| 81 |
+
|
| 82 |
+
.nav-item i {
|
| 83 |
+
width: 1.25rem;
|
| 84 |
+
height: 1.25rem;
|
| 85 |
+
}
|
| 86 |
+
|
| 87 |
+
.sidebar-footer {
|
| 88 |
+
margin-top: auto;
|
| 89 |
+
padding-top: 1rem;
|
| 90 |
+
border-top: 1px solid #2d3748;
|
| 91 |
+
}
|
| 92 |
+
|
| 93 |
+
.user-profile {
|
| 94 |
+
display: flex;
|
| 95 |
+
align-items: center;
|
| 96 |
+
gap: 0.75rem;
|
| 97 |
+
padding: 0.75rem;
|
| 98 |
+
border-radius: 0.5rem;
|
| 99 |
+
transition: background 0.2s ease;
|
| 100 |
+
}
|
| 101 |
+
|
| 102 |
+
.user-profile:hover {
|
| 103 |
+
background: #21223a;
|
| 104 |
+
}
|
| 105 |
+
|
| 106 |
+
.user-avatar {
|
| 107 |
+
width: 2.5rem;
|
| 108 |
+
height: 2.5rem;
|
| 109 |
+
border-radius: 50%;
|
| 110 |
+
background: #2d3748;
|
| 111 |
+
display: flex;
|
| 112 |
+
align-items: center;
|
| 113 |
+
justify-content: center;
|
| 114 |
+
color: #ff580f;
|
| 115 |
+
}
|
| 116 |
+
|
| 117 |
+
.user-info {
|
| 118 |
+
flex: 1;
|
| 119 |
+
}
|
| 120 |
+
|
| 121 |
+
.user-name {
|
| 122 |
+
font-weight: 600;
|
| 123 |
+
font-size: 0.875rem;
|
| 124 |
+
color: white;
|
| 125 |
+
}
|
| 126 |
+
|
| 127 |
+
.user-role {
|
| 128 |
+
font-size: 0.75rem;
|
| 129 |
+
color: #a0aec0;
|
| 130 |
+
}
|
| 131 |
+
|
| 132 |
+
@media (max-width: 768px) {
|
| 133 |
+
:host {
|
| 134 |
+
transform: translateX(-100%);
|
| 135 |
+
}
|
| 136 |
+
|
| 137 |
+
:host(.open) {
|
| 138 |
+
transform: translateX(0);
|
| 139 |
+
}
|
| 140 |
+
}
|
| 141 |
+
</style>
|
| 142 |
+
|
| 143 |
+
<div class="sidebar-content">
|
| 144 |
+
<div class="logo">
|
| 145 |
+
<div class="logo-icon">
|
| 146 |
+
<i data-feather="smartphone"></i>
|
| 147 |
+
</div>
|
| 148 |
+
<div class="logo-text">Test Pilot</div>
|
| 149 |
+
</div>
|
| 150 |
+
|
| 151 |
+
<nav class="nav-items">
|
| 152 |
+
<a href="#" class="nav-item active">
|
| 153 |
+
<i data-feather="home"></i>
|
| 154 |
+
<span>Dashboard</span>
|
| 155 |
+
</a>
|
| 156 |
+
|
| 157 |
+
<a href="#" class="nav-item">
|
| 158 |
+
<i data-feather="play"></i>
|
| 159 |
+
<span>Testes Ativos</span>
|
| 160 |
+
</a>
|
| 161 |
+
|
| 162 |
+
<a href="#" class="nav-item">
|
| 163 |
+
<i data-feather="archive"></i>
|
| 164 |
+
<span>Histórico</span>
|
| 165 |
+
</a>
|
| 166 |
+
|
| 167 |
+
<a href="#" class="nav-item">
|
| 168 |
+
<i data-feather="bar-chart-2"></i>
|
| 169 |
+
<span>Relatórios</span>
|
| 170 |
+
</a>
|
| 171 |
+
|
| 172 |
+
<a href="#" class="nav-item">
|
| 173 |
+
<i data-feather="settings"></i>
|
| 174 |
+
<span>Configurações</span>
|
| 175 |
+
</a>
|
| 176 |
+
</nav>
|
| 177 |
+
|
| 178 |
+
<div class="sidebar-footer">
|
| 179 |
+
<div class="user-profile">
|
| 180 |
+
<div class="user-avatar">
|
| 181 |
+
<i data-feather="user"></i>
|
| 182 |
+
</div>
|
| 183 |
+
<div class="user-info">
|
| 184 |
+
<div class="user-name">Carlos Silva</div>
|
| 185 |
+
<div class="user-role">QA Engineer</div>
|
| 186 |
+
</div>
|
| 187 |
+
</div>
|
| 188 |
+
</div>
|
| 189 |
+
</div>
|
| 190 |
+
`;
|
| 191 |
+
|
| 192 |
+
// Inicializar feather icons no shadow DOM
|
| 193 |
+
setTimeout(() => {
|
| 194 |
+
const feather = document.createElement('script');
|
| 195 |
+
feather.src = 'https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js';
|
| 196 |
+
this.shadowRoot.appendChild(feather);
|
| 197 |
+
|
| 198 |
+
feather.onload = () => {
|
| 199 |
+
if (window.feather) {
|
| 200 |
+
window.feather.replace();
|
| 201 |
+
}
|
| 202 |
+
};
|
| 203 |
+
}, 100);
|
| 204 |
+
}
|
| 205 |
+
}
|
| 206 |
+
|
| 207 |
+
customElements.define('custom-sidebar', CustomSidebar);
|
index.html
CHANGED
|
@@ -1,19 +1,201 @@
|
|
| 1 |
-
<!
|
| 2 |
-
<html>
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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TF-8">
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
+
<title>Android Test Pilot - Plataforma de Testes</title>
|
| 7 |
+
<link rel="stylesheet" href="style.css">
|
| 8 |
+
<script src="https://cdn.tailwindcss.com"></script>
|
| 9 |
+
<script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
|
| 10 |
+
<script src="https://unpkg.com/feather-icons"></script>
|
| 11 |
+
<script>
|
| 12 |
+
tailwind.config = {
|
| 13 |
+
theme: {
|
| 14 |
+
extend: {
|
| 15 |
+
colors: {
|
| 16 |
+
primary: '#21223a',
|
| 17 |
+
secondary: '#ff580f',
|
| 18 |
+
}
|
| 19 |
+
}
|
| 20 |
+
}
|
| 21 |
+
}
|
| 22 |
+
</script>
|
| 23 |
+
</head>
|
| 24 |
+
<body class="bg-primary min-h-screen text-white">
|
| 25 |
+
<custom-sidebar></custom-sidebar>
|
| 26 |
+
|
| 27 |
+
<main class="ml-64 p-8">
|
| 28 |
+
<div class="max-w-6xl mx-auto">
|
| 29 |
+
<div class="bg-primary rounded-2xl border border-gray-700 p-8 shadow-2xl">
|
| 30 |
+
<div class="text-center mb-12">
|
| 31 |
+
<h1 class="text-4xl font-bold mb-4">Android Test Pilot</h1>
|
| 32 |
+
<p class="text-gray-300 text-lg">Teste seus aplicativos Android de forma intuitiva com IA</p>
|
| 33 |
+
</div>
|
| 34 |
+
|
| 35 |
+
<div class="grid md:grid-cols-2 gap-8 items-center">
|
| 36 |
+
<div>
|
| 37 |
+
<h2 class="text-2xl font-semibold mb-4">Inicie um novo teste</h2>
|
| 38 |
+
<p class="text-gray-300 mb-6">
|
| 39 |
+
Selecione um emulador Android, envie seu aplicativo .apk e comece a testar
|
| 40 |
+
usando linguagem natural através do nosso chatbot inteligente.
|
| 41 |
+
</p>
|
| 42 |
+
<button onclick="openTestModal()" class="bg-secondary hover:bg-orange-600 text-white font-bold py-3 px-8 rounded-full transition-all duration-300 transform hover:scale-105 flex items-center gap-2">
|
| 43 |
+
<i data-feather="play" class="w-5 h-5"></i>
|
| 44 |
+
Iniciar Novo Teste
|
| 45 |
+
</button>
|
| 46 |
+
</div>
|
| 47 |
+
|
| 48 |
+
<div class="hidden md:block">
|
| 49 |
+
<img src="http://static.photos/technology/640x360/1" alt="Android Testing" class="rounded-2xl shadow-xl">
|
| 50 |
+
</div>
|
| 51 |
+
</div>
|
| 52 |
+
</div>
|
| 53 |
+
|
| 54 |
+
<div class="grid md:grid-cols-3 gap-6 mt-12">
|
| 55 |
+
<div class="bg-gray-800 p-6 rounded-2xl border border-gray-700">
|
| 56 |
+
<div class="w-12 h-12 bg-secondary bg-opacity-20 rounded-full flex items-center justify-center mb-4">
|
| 57 |
+
<i data-feather="smartphone" class="text-secondary"></i>
|
| 58 |
+
</div>
|
| 59 |
+
<h3 class="text-xl font-semibold mb-2">Emuladores Android</h3>
|
| 60 |
+
<p class="text-gray-400">Acesse diversos emuladores Android configurados e prontos para uso.</p>
|
| 61 |
+
</div>
|
| 62 |
+
|
| 63 |
+
<div class="bg-gray-800 p-6 rounded-2xl border border-gray-700">
|
| 64 |
+
<div class="w-12 h-12 bg-secondary bg-opacity-20 rounded-full flex items-center justify-center mb-4">
|
| 65 |
+
<i data-feather="message-square" class="text-secondary"></i>
|
| 66 |
+
</div>
|
| 67 |
+
<h3 class="text-xl font-semibold mb-2">Chatbot Inteligente</h3>
|
| 68 |
+
<p class="text-gray-400">Teste seus aplicativos usando comandos em linguagem natural.</p>
|
| 69 |
+
</div>
|
| 70 |
+
|
| 71 |
+
<div class="bg-gray-800 p-6 rounded-2xl border border-gray-700">
|
| 72 |
+
<div class="w-12 h-12 bg-secondary bg-opacity-20 rounded-full flex items-center justify-center mb-4">
|
| 73 |
+
<i data-feather="bar-chart-2" class="text-secondary"></i>
|
| 74 |
+
</div>
|
| 75 |
+
<h3 class="text-xl font-semibold mb-2">Relatórios Detalhados</h3>
|
| 76 |
+
<p class="text-gray-400">Obtenha insights valiosos sobre o desempenho do seu aplicativo.</p>
|
| 77 |
+
</div>
|
| 78 |
+
</div>
|
| 79 |
+
</div>
|
| 80 |
+
</main>
|
| 81 |
+
|
| 82 |
+
<!-- Modal de Início de Teste -->
|
| 83 |
+
<div id="testModal" class="fixed inset-0 bg-black bg-opacity-75 hidden flex items-center justify-center z-50 p-4">
|
| 84 |
+
<div class="bg-primary rounded-2xl border border-gray-700 w-full max-w-2xl">
|
| 85 |
+
<div class="p-6 border-b border-gray-700 flex justify-between items-center">
|
| 86 |
+
<h3 class="text-xl font-semibold">Iniciar Novo Teste</h3>
|
| 87 |
+
<button onclick="closeTestModal()" class="text-gray-400 hover:text-white">
|
| 88 |
+
<i data-feather="x"></i>
|
| 89 |
+
</button>
|
| 90 |
+
</div>
|
| 91 |
+
|
| 92 |
+
<div class="p-6">
|
| 93 |
+
<div class="mb-6">
|
| 94 |
+
<label class="block text-sm font-medium mb-2">Selecione o Emulador Android</label>
|
| 95 |
+
<select class="w-full bg-gray-800 border border-gray-700 rounded-lg px-4 py-3 text-white focus:border-secondary focus:ring-2 focus:ring-secondary focus:ring-opacity-50">
|
| 96 |
+
<option>Android 13 - Pixel 6 Pro</option>
|
| 97 |
+
<option>Android 12 - Pixel 5</option>
|
| 98 |
+
<option>Android 11 - Pixel 4</option>
|
| 99 |
+
<option>Android 10 - Pixel 3</option>
|
| 100 |
+
</select>
|
| 101 |
+
</div>
|
| 102 |
+
|
| 103 |
+
<div class="mb-6">
|
| 104 |
+
<label class="block text-sm font-medium mb-2">Upload do Aplicativo (.apk)</label>
|
| 105 |
+
<div class="border-2 border-dashed border-gray-700 rounded-lg p-8 text-center hover:border-secondary transition-colors duration-300">
|
| 106 |
+
<i data-feather="upload-cloud" class="w-12 h-12 text-gray-500 mx-auto mb-4"></i>
|
| 107 |
+
<p class="text-gray-400 mb-2">Arraste o arquivo .apk ou clique para selecionar</p>
|
| 108 |
+
<p class="text-sm text-gray-500">Tamanho máximo: 100MB</p>
|
| 109 |
+
<input type="file" class="hidden" id="apkUpload" accept=".apk">
|
| 110 |
+
<button onclick="document.getElementById('apkUpload').click()" class="bg-secondary hover:bg-orange-600 text-white px-4 py-2 rounded-lg mt-4">
|
| 111 |
+
Selecionar Arquivo
|
| 112 |
+
</button>
|
| 113 |
+
</div>
|
| 114 |
+
</div>
|
| 115 |
+
|
| 116 |
+
<div class="flex justify-end gap-3">
|
| 117 |
+
<button onclick="closeTestModal()" class="px-4 py-2 text-gray-300 hover:text-white transition-colors">
|
| 118 |
+
Cancelar
|
| 119 |
+
</button>
|
| 120 |
+
<button onclick="startChatbot()" class="bg-secondary hover:bg-orange-600 text-white px-6 py-2 rounded-lg transition-colors duration-300 flex items-center gap-2">
|
| 121 |
+
<i data-feather="play" class="w-4 h-4"></i>
|
| 122 |
+
Iniciar Teste
|
| 123 |
+
</button>
|
| 124 |
+
</div>
|
| 125 |
+
</div>
|
| 126 |
+
</div>
|
| 127 |
+
</div>
|
| 128 |
+
|
| 129 |
+
<!-- Modal do Chatbot -->
|
| 130 |
+
<div id="chatbotModal" class="fixed inset-0 bg-black bg-opacity-75 hidden flex items-center justify-center z-50 p-4">
|
| 131 |
+
<div class="bg-primary rounded-2xl border border-gray-700 w-full max-w-4xl h-5/6 flex flex-col">
|
| 132 |
+
<div class="p-4 border-b border-gray-700 flex justify-between items-center">
|
| 133 |
+
<h3 class="text-lg font-semibold">Chatbot de Testes - Android Emulator</h3>
|
| 134 |
+
<button onclick="closeChatbot()" class="text-gray-400 hover:text-white">
|
| 135 |
+
<i data-feather="x"></i>
|
| 136 |
+
</button>
|
| 137 |
+
</div>
|
| 138 |
+
|
| 139 |
+
<div class="flex-1 p-4 overflow-y-auto bg-gray-900 rounded-lg m-4">
|
| 140 |
+
<div class="text-center text-gray-400 py-8">
|
| 141 |
+
<i data-feather="message-square" class="w-12 h-12 mx-auto mb-4"></i>
|
| 142 |
+
<p>Chatbot iniciado. Digite comandos em linguagem natural para testar seu aplicativo.</p>
|
| 143 |
+
</div>
|
| 144 |
+
</div>
|
| 145 |
+
|
| 146 |
+
<div class="p-4 border-t border-gray-700">
|
| 147 |
+
<div class="flex gap-2 justify-center flex-wrap">
|
| 148 |
+
<button class="bg-secondary bg-opacity-20 hover:bg-opacity-30 text-secondary px-4 py-2 rounded-lg flex items-center gap-2 transition-all">
|
| 149 |
+
<i data-feather="download" class="w-4 h-4"></i>
|
| 150 |
+
Instalar Aplicativo
|
| 151 |
+
</button>
|
| 152 |
+
<button class="bg-secondary bg-opacity-20 hover:bg-opacity-30 text-secondary px-4 py-2 rounded-lg flex items-center gap-2 transition-all">
|
| 153 |
+
<i data-feather="play" class="w-4 h-4"></i>
|
| 154 |
+
Rodar Testes
|
| 155 |
+
</button>
|
| 156 |
+
<button class="bg-secondary bg-opacity-20 hover:bg-opacity-30 text-secondary px-4 py-2 rounded-lg flex items-center gap-2 transition-all">
|
| 157 |
+
<i data-feather="image" class="w-4 h-4"></i>
|
| 158 |
+
Abrir Evidências
|
| 159 |
+
</button>
|
| 160 |
+
<button class="bg-secondary bg-opacity-20 hover:bg-opacity-30 text-secondary px-4 py-2 rounded-lg flex items-center gap-2 transition-all">
|
| 161 |
+
<i data-feather="trash-2" class="w-4 h-4"></i>
|
| 162 |
+
Excluir Mensagens
|
| 163 |
+
</button>
|
| 164 |
+
<button class="bg-secondary bg-opacity-20 hover:bg-opacity-30 text-secondary px-4 py-2 rounded-lg flex items-center gap-2 transition-all">
|
| 165 |
+
<i data-feather="settings" class="w-4 h-4"></i>
|
| 166 |
+
Configuração
|
| 167 |
+
</button>
|
| 168 |
+
</div>
|
| 169 |
+
</div>
|
| 170 |
+
</div>
|
| 171 |
+
</div>
|
| 172 |
+
|
| 173 |
+
<script src="components/sidebar.js"></script>
|
| 174 |
+
<script src="script.js"></script>
|
| 175 |
+
<script>
|
| 176 |
+
feather.replace();
|
| 177 |
+
|
| 178 |
+
function openTestModal() {
|
| 179 |
+
document.getElementById('testModal').classList.remove('hidden');
|
| 180 |
+
document.getElementById('testModal').classList.add('flex');
|
| 181 |
+
}
|
| 182 |
+
|
| 183 |
+
function closeTestModal() {
|
| 184 |
+
document.getElementById('testModal').classList.add('hidden');
|
| 185 |
+
document.getElementById('testModal').classList.remove('flex');
|
| 186 |
+
}
|
| 187 |
+
|
| 188 |
+
function startChatbot() {
|
| 189 |
+
closeTestModal();
|
| 190 |
+
document.getElementById('chatbotModal').classList.remove('hidden');
|
| 191 |
+
document.getElementById('chatbotModal').classList.add('flex');
|
| 192 |
+
}
|
| 193 |
+
|
| 194 |
+
function closeChatbot() {
|
| 195 |
+
document.getElementById('chatbotModal').classList.add('hidden');
|
| 196 |
+
document.getElementById('chatbotModal').classList.remove('flex');
|
| 197 |
+
}
|
| 198 |
+
</script>
|
| 199 |
+
<script src="https://deepsite.hf.co/deepsite-badge.js"></script>
|
| 200 |
+
</body>
|
| 201 |
+
</html>
|
script.js
ADDED
|
@@ -0,0 +1,71 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
// Shared JavaScript across all pages
|
| 2 |
+
console.log('Android Test Pilot loaded');
|
| 3 |
+
|
| 4 |
+
// Funções globais para manipulação de modais
|
| 5 |
+
window.openTestModal = function() {
|
| 6 |
+
document.getElementById('testModal').classList.remove('hidden');
|
| 7 |
+
document.getElementById('testModal').classList.add('flex');
|
| 8 |
+
}
|
| 9 |
+
|
| 10 |
+
window.closeTestModal = function() {
|
| 11 |
+
document.getElementById('testModal').classList.add('hidden');
|
| 12 |
+
document.getElementById('testModal').classList.remove('flex');
|
| 13 |
+
}
|
| 14 |
+
|
| 15 |
+
window.startChatbot = function() {
|
| 16 |
+
const fileInput = document.getElementById('apkUpload');
|
| 17 |
+
if (fileInput.files.length === 0) {
|
| 18 |
+
alert('Por favor, selecione um arquivo .apk para continuar.');
|
| 19 |
+
return;
|
| 20 |
+
}
|
| 21 |
+
|
| 22 |
+
closeTestModal();
|
| 23 |
+
document.getElementById('chatbotModal').classList.remove('hidden');
|
| 24 |
+
document.getElementById('chatbotModal').classList.add('flex');
|
| 25 |
+
}
|
| 26 |
+
|
| 27 |
+
window.closeChatbot = function() {
|
| 28 |
+
document.getElementById('chatbotModal').classList.add('hidden');
|
| 29 |
+
document.getElementById('chatbotModal').classList.remove('flex');
|
| 30 |
+
}
|
| 31 |
+
|
| 32 |
+
// Drag and drop para upload de arquivo
|
| 33 |
+
document.addEventListener('DOMContentLoaded', function() {
|
| 34 |
+
const dropZone = document.querySelector('[class*="border-dashed"]');
|
| 35 |
+
const fileInput = document.getElementById('apkUpload');
|
| 36 |
+
|
| 37 |
+
if (dropZone && fileInput) {
|
| 38 |
+
['dragenter', 'dragover', 'dragleave', 'drop'].forEach(eventName => {
|
| 39 |
+
dropZone.addEventListener(eventName, preventDefaults, false);
|
| 40 |
+
});
|
| 41 |
+
|
| 42 |
+
function preventDefaults(e) {
|
| 43 |
+
e.preventDefault();
|
| 44 |
+
e.stopPropagation();
|
| 45 |
+
}
|
| 46 |
+
|
| 47 |
+
['dragenter', 'dragover'].forEach(eventName => {
|
| 48 |
+
dropZone.addEventListener(eventName, highlight, false);
|
| 49 |
+
});
|
| 50 |
+
|
| 51 |
+
['dragleave', 'drop'].forEach(eventName => {
|
| 52 |
+
dropZone.addEventListener(eventName, unhighlight, false);
|
| 53 |
+
});
|
| 54 |
+
|
| 55 |
+
function highlight() {
|
| 56 |
+
dropZone.classList.add('border-secondary');
|
| 57 |
+
}
|
| 58 |
+
|
| 59 |
+
function unhighlight() {
|
| 60 |
+
dropZone.classList.remove('border-secondary');
|
| 61 |
+
}
|
| 62 |
+
|
| 63 |
+
dropZone.addEventListener('drop', handleDrop, false);
|
| 64 |
+
|
| 65 |
+
function handleDrop(e) {
|
| 66 |
+
const dt = e.dataTransfer;
|
| 67 |
+
const files = dt.files;
|
| 68 |
+
fileInput.files = files;
|
| 69 |
+
}
|
| 70 |
+
}
|
| 71 |
+
});
|
style.css
CHANGED
|
@@ -1,28 +1,65 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
body {
|
| 2 |
-
|
| 3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 4 |
}
|
| 5 |
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
margin-top: 0;
|
| 9 |
}
|
| 10 |
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 16 |
}
|
| 17 |
|
| 18 |
-
.
|
| 19 |
-
|
| 20 |
-
margin: 0 auto;
|
| 21 |
-
padding: 16px;
|
| 22 |
-
border: 1px solid lightgray;
|
| 23 |
-
border-radius: 16px;
|
| 24 |
}
|
| 25 |
|
| 26 |
-
|
| 27 |
-
|
|
|
|
| 28 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/* Shared styles across all pages */
|
| 2 |
+
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
|
| 3 |
+
|
| 4 |
+
* {
|
| 5 |
+
margin: 0;
|
| 6 |
+
padding: 0;
|
| 7 |
+
box-sizing: border-box;
|
| 8 |
+
}
|
| 9 |
+
|
| 10 |
body {
|
| 11 |
+
font-family: 'Inter', sans-serif;
|
| 12 |
+
transition: margin-left 0.3s ease;
|
| 13 |
+
}
|
| 14 |
+
|
| 15 |
+
/* Scrollbar personalizado */
|
| 16 |
+
::-webkit-scrollbar {
|
| 17 |
+
width: 8px;
|
| 18 |
+
}
|
| 19 |
+
|
| 20 |
+
::-webkit-scrollbar-track {
|
| 21 |
+
background: #2d3748;
|
| 22 |
+
}
|
| 23 |
+
|
| 24 |
+
::-webkit-scrollbar-thumb {
|
| 25 |
+
background: #4a5568;
|
| 26 |
+
border-radius: 4px;
|
| 27 |
}
|
| 28 |
|
| 29 |
+
::-webkit-scrollbar-thumb:hover {
|
| 30 |
+
background: #718096;
|
|
|
|
| 31 |
}
|
| 32 |
|
| 33 |
+
/* Animações */
|
| 34 |
+
@keyframes fadeIn {
|
| 35 |
+
from {
|
| 36 |
+
opacity: 0;
|
| 37 |
+
transform: translateY(20px);
|
| 38 |
+
}
|
| 39 |
+
to {
|
| 40 |
+
opacity: 1;
|
| 41 |
+
transform: translateY(0);
|
| 42 |
+
}
|
| 43 |
}
|
| 44 |
|
| 45 |
+
.animate-fade-in {
|
| 46 |
+
animation: fadeIn 0.5s ease-out;
|
|
|
|
|
|
|
|
|
|
|
|
|
| 47 |
}
|
| 48 |
|
| 49 |
+
/* Efeitos de hover para cards */
|
| 50 |
+
.hover-lift {
|
| 51 |
+
transition: transform 0.3s ease, box-shadow 0.3s ease;
|
| 52 |
}
|
| 53 |
+
|
| 54 |
+
.hover-lift:hover {
|
| 55 |
+
transform: translateY(-4px);
|
| 56 |
+
box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
|
| 57 |
+
}
|
| 58 |
+
|
| 59 |
+
/* Responsividade */
|
| 60 |
+
@media (max-width: 768px) {
|
| 61 |
+
main {
|
| 62 |
+
margin-left: 0 !important;
|
| 63 |
+
padding: 1rem !important;
|
| 64 |
+
}
|
| 65 |
+
}
|