File size: 16,396 Bytes
c5d74e8 b7be497 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>HedgeGuard - Commodity Hedge Details</title>
<script src="https://cdn.tailwindcss.com"></script>
<script src="https://unpkg.com/feather-icons"></script>
<script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
<script>
tailwind.config = {
theme: {
extend: {
colors: {
primary: '#3B82F6',
secondary: '#10B981',
dark: '#1E293B',
light: '#F8FAFC'
}
}
}
}
</script>
</head>
<body class="bg-gray-50">
<!-- Navigation -->
<nav class="bg-white shadow-sm">
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
<div class="flex justify-between h-16">
<div class="flex items-center">
<i data-feather="shield" class="text-primary h-6 w-6 mr-2"></i>
<span class="text-xl font-semibold text-gray-900">HedgeGuard</span>
</div>
<div class="flex items-center space-x-4">
<button class="p-2 rounded-full hover:bg-gray-100">
<i data-feather="bell" class="text-gray-600"></i>
</button>
<div class="flex items-center">
<div class="h-8 w-8 rounded-full bg-primary flex items-center justify-center text-white">
JD
</div>
</div>
</div>
</div>
</div>
</nav>
<!-- Main Content -->
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-8">
<div class="flex justify-between items-center mb-8">
<div>
<h1 class="text-2xl font-bold text-gray-900">Hedge Financeiro - Soja</h1>
<p class="text-gray-600">Detalhes da solicitação #HF-2023-0452</p>
</div>
<div class="flex space-x-3">
<button class="px-4 py-2 border border-gray-300 rounded-md text-gray-700 bg-white hover:bg-gray-50">
<i data-feather="printer" class="inline mr-2 h-4 w-4"></i> Imprimir
</button>
<button class="px-4 py-2 border border-transparent rounded-md shadow-sm text-white bg-primary hover:bg-blue-700">
<i data-feather="download" class="inline mr-2 h-4 w-4"></i> Exportar
</button>
</div>
</div>
<div class="grid grid-cols-1 md:grid-cols-3 gap-6 mb-8">
<!-- Status Card -->
<div class="bg-white p-6 rounded-lg shadow-sm border border-gray-100">
<div class="flex items-center justify-between mb-4">
<h3 class="text-lg font-medium text-gray-900">Status</h3>
<span class="px-2 py-1 text-xs font-semibold rounded-full bg-green-100 text-green-800">
Aprovado
</span>
</div>
<div class="space-y-3">
<div class="flex justify-between">
<span class="text-sm text-gray-500">Criado em</span>
<span class="text-sm font-medium">15/05/2023</span>
</div>
<div class="flex justify-between">
<span class="text-sm text-gray-500">Aprovado em</span>
<span class="text-sm font-medium">17/05/2023</span>
</div>
<div class="flex justify-between">
<span class="text-sm text-gray-500">Válido até</span>
<span class="text-sm font-medium">15/11/2023</span>
</div>
</div>
</div>
<!-- Volume Card -->
<div class="bg-white p-6 rounded-lg shadow-sm border border-gray-100">
<div class="flex items-center justify-between mb-4">
<h3 class="text-lg font-medium text-gray-900">Volume</h3>
<i data-feather="box" class="text-gray-400"></i>
</div>
<div class="space-y-3">
<div class="flex justify-between">
<span class="text-sm text-gray-500">Quantidade</span>
<span class="text-sm font-medium">5,000 toneladas</span>
</div>
<div class="flex justify-between">
<span class="text-sm text-gray-500">Preço Unitário</span>
<span class="text-sm font-medium">R$ 180.50</span>
</div>
<div class="flex justify-between">
<span class="text-sm text-gray-500">Valor Total</span>
<span class="text-sm font-medium text-primary">R$ 902,500.00</span>
</div>
</div>
</div>
<!-- Counterparty Card -->
<div class="bg-white p-6 rounded-lg shadow-sm border border-gray-100">
<div class="flex items-center justify-between mb-4">
<h3 class="text-lg font-medium text-gray-900">Contraparte</h3>
<i data-feather="briefcase" class="text-gray-400"></i>
</div>
<div class="space-y-3">
<div class="flex justify-between">
<span class="text-sm text-gray-500">Instituição</span>
<span class="text-sm font-medium">Banco ABC</span>
</div>
<div class="flex justify-between">
<span class="text-sm text-gray-500">Contato</span>
<span class="text-sm font-medium">Maria Silva</span>
</div>
<div class="flex justify-between">
<span class="text-sm text-gray-500">Instrumento</span>
<span class="text-sm font-medium">Futuro BM&F</span>
</div>
</div>
</div>
</div>
<!-- Price Chart -->
<div class="bg-white p-6 rounded-lg shadow-sm border border-gray-100 mb-8">
<div class="flex items-center justify-between mb-6">
<h3 class="text-lg font-medium text-gray-900">Histórico de Preços</h3>
<div class="flex space-x-2">
<button class="px-3 py-1 text-sm border border-gray-300 rounded-md text-gray-700 bg-white hover:bg-gray-50">
1M
</button>
<button class="px-3 py-1 text-sm border border-transparent rounded-md shadow-sm text-white bg-primary hover:bg-blue-700">
6M
</button>
<button class="px-3 py-1 text-sm border border-gray-300 rounded-md text-gray-700 bg-white hover:bg-gray-50">
1Y
</button>
</div>
</div>
<div class="h-64">
<canvas id="priceChart"></canvas>
</div>
</div>
<!-- Documents & Timeline -->
<div class="grid grid-cols-1 md:grid-cols-2 gap-6">
<!-- Documents -->
<div class="bg-white p-6 rounded-lg shadow-sm border border-gray-100">
<h3 class="text-lg font-medium text-gray-900 mb-4">Documentos</h3>
<div class="space-y-3">
<div class="flex items-center justify-between p-3 hover:bg-gray-50 rounded">
<div class="flex items-center">
<i data-feather="file-text" class="text-gray-400 mr-3"></i>
<span class="text-sm font-medium">Contrato HF-2023-0452.pdf</span>
</div>
<button class="text-primary hover:text-blue-700">
<i data-feather="download" class="h-4 w-4"></i>
</button>
</div>
<div class="flex items-center justify-between p-3 hover:bg-gray-50 rounded">
<div class="flex items-center">
<i data-feather="file-text" class="text-gray-400 mr-3"></i>
<span class="text-sm font-medium">Termos e Condições.pdf</span>
</div>
<button class="text-primary hover:text-blue-700">
<i data-feather="download" class="h-4 w-4"></i>
</button>
</div>
<div class="flex items-center justify-between p-3 hover:bg-gray-50 rounded">
<div class="flex items-center">
<i data-feather="file-text" class="text-gray-400 mr-3"></i>
<span class="text-sm font-medium">Aprovação Financeira.pdf</span>
</div>
<button class="text-primary hover:text-blue-700">
<i data-feather="download" class="h-4 w-4"></i>
</button>
</div>
</div>
</div>
<!-- Timeline -->
<div class="bg-white p-6 rounded-lg shadow-sm border border-gray-100">
<h3 class="text-lg font-medium text-gray-900 mb-4">Histórico</h3>
<div class="space-y-4">
<div class="flex">
<div class="flex flex-col items-center mr-4">
<div class="w-2 h-2 rounded-full bg-primary mt-1.5"></div>
<div class="w-px h-full bg-gray-300"></div>
</div>
<div class="pb-4">
<p class="text-sm font-medium text-gray-900">Solicitação criada</p>
<p class="text-xs text-gray-500">15/05/2023 - 09:30 por João Dias</p>
</div>
</div>
<div class="flex">
<div class="flex flex-col items-center mr-4">
<div class="w-2 h-2 rounded-full bg-primary mt-1.5"></div>
<div class="w-px h-full bg-gray-300"></div>
</div>
<div class="pb-4">
<p class="text-sm font-medium text-gray-900">Análise de risco</p>
<p class="text-xs text-gray-500">16/05/2023 - 14:15 por Ana Costa</p>
</div>
</div>
<div class="flex">
<div class="flex flex-col items-center mr-4">
<div class="w-2 h-2 rounded-full bg-primary mt-1.5"></div>
<div class="w-px h-full bg-gray-300"></div>
</div>
<div class="pb-4">
<p class="text-sm font-medium text-gray-900">Aprovação financeira</p>
<p class="text-xs text-gray-500">17/05/2023 - 11:00 por Carlos Mendes</p>
</div>
</div>
<div class="flex">
<div class="flex flex-col items-center mr-4">
<div class="w-2 h-2 rounded-full bg-green-500 mt-1.5"></div>
</div>
<div>
<p class="text-sm font-medium text-gray-900">Contrato assinado</p>
<p class="text-xs text-gray-500">18/05/2023 - 16:45 por João Dias</p>
</div>
</div>
</div>
</div>
</div>
<!-- Risk Analysis Section -->
<div class="bg-white p-6 rounded-lg shadow-sm border border-gray-100 mt-6">
<h3 class="text-lg font-medium text-gray-900 mb-4">Análise de Risco</h3>
<div class="grid grid-cols-1 md:grid-cols-2 gap-4">
<div class="p-4 bg-blue-50 rounded-lg">
<div class="flex items-center justify-between mb-2">
<span class="text-sm font-medium text-blue-800">Exposição ao Mercado</span>
<span class="text-xs px-2 py-1 rounded-full bg-blue-100 text-blue-800">Moderado</span>
</div>
<div class="h-2 w-full bg-blue-200 rounded-full overflow-hidden">
<div class="h-full bg-blue-500 rounded-full" style="width: 60%"></div>
</div>
</div>
<div class="p-4 bg-yellow-50 rounded-lg">
<div class="flex items-center justify-between mb-2">
<span class="text-sm font-medium text-yellow-800">Volatilidade</span>
<span class="text-xs px-2 py-1 rounded-full bg-yellow-100 text-yellow-800">Alto</span>
</div>
<div class="h-2 w-full bg-yellow-200 rounded-full overflow-hidden">
<div class="h-full bg-yellow-500 rounded-full" style="width: 75%"></div>
</div>
</div>
<div class="p-4 bg-green-50 rounded-lg">
<div class="flex items-center justify-between mb-2">
<span class="text-sm font-medium text-green-800">Liquidez</span>
<span class="text-xs px-2 py-1 rounded-full bg-green-100 text-green-800">Alto</span>
</div>
<div class="h-2 w-full bg-green-200 rounded-full overflow-hidden">
<div class="h-full bg-green-500 rounded-full" style="width: 85%"></div>
</div>
</div>
<div class="p-4 bg-red-50 rounded-lg">
<div class="flex items-center justify-between mb-2">
<span class="text-sm font-medium text-red-800">Risco Contraparte</span>
<span class="text-xs px-2 py-1 rounded-full bg-red-100 text-red-800">Baixo</span>
</div>
<div class="h-2 w-full bg-red-200 rounded-full overflow-hidden">
<div class="h-full bg-red-500 rounded-full" style="width: 30%"></div>
</div>
</div>
</div>
</div>
</div>
<script>
feather.replace();
// Price Chart
const ctx = document.getElementById('priceChart').getContext('2d');
const priceChart = new Chart(ctx, {
type: 'line',
data: {
labels: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'],
datasets: [{
label: 'Preço da Soja (R$/ton)',
data: [165, 168, 172, 175, 178, 180, 182, 181, 179, 177, 175, 173],
borderColor: '#3B82F6',
backgroundColor: 'rgba(59, 130, 246, 0.05)',
borderWidth: 2,
fill: true,
tension: 0.4
}]
},
options: {
responsive: true,
maintainAspectRatio: false,
plugins: {
legend: {
position: 'top',
},
tooltip: {
mode: 'index',
intersect: false,
}
},
scales: {
y: {
beginAtZero: false,
ticks: {
callback: function(value) {
return 'R$ ' + value;
}
}
}
}
}
});
</script>
</body>
</html>
|