Compare commits

...

1 Commits

Author SHA1 Message Date
Flatlogic Bot
461944de4e Binomo prediction app 2025-11-06 17:28:27 +00:00
3 changed files with 245 additions and 146 deletions

107
assets/css/custom.css Normal file
View File

@ -0,0 +1,107 @@
body {
font-family: 'Roboto', -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
background-color: #121212;
color: #FFFFFF;
}
.navbar {
background-color: #1E1E1E;
border-bottom: 1px solid #333;
}
.trade-dashboard {
padding-top: 2rem;
}
.chart-container {
background-color: #1E1E1E;
border-radius: 0.5rem;
padding: 1rem;
height: 500px;
display: flex;
align-items: center;
justify-content: center;
color: #ADB5BD;
}
.signal-panel {
background-color: #1E1E1E;
border-radius: 0.5rem;
padding: 2rem;
height: 100%;
}
.signal-title {
font-size: 1.5rem;
font-weight: bold;
margin-bottom: 1.5rem;
}
.signal-info .info-item {
margin-bottom: 1rem;
}
.signal-info .info-label {
color: #ADB5BD;
font-size: 0.9rem;
}
.signal-info .info-value {
font-size: 1.2rem;
font-weight: 500;
}
.confidence-meter {
height: 10px;
background-color: #333;
border-radius: 5px;
overflow: hidden;
}
.confidence-bar {
height: 100%;
background-color: #28A745;
}
.action-buttons .btn {
font-size: 1.5rem;
font-weight: bold;
padding: 1rem;
border-radius: 0.5rem;
transition: all 0.2s ease;
}
.btn-call {
background: linear-gradient(145deg, #28a745, #218838);
border: none;
color: white;
}
.btn-call:hover {
background: linear-gradient(145deg, #2dbc4e, #28a745);
box-shadow: 0 0 15px rgba(40, 167, 69, 0.5);
}
.btn-put {
background: linear-gradient(145deg, #dc3545, #c82333);
border: none;
color: white;
}
.btn-put:hover {
background: linear-gradient(145deg, #e74c3c, #dc3545);
box-shadow: 0 0 15px rgba(220, 53, 69, 0.5);
}
.btn:disabled {
opacity: 0.5;
cursor: not-allowed;
}
.toast-container {
position: fixed;
bottom: 1rem;
right: 1rem;
z-index: 1050;
}

52
assets/js/main.js Normal file
View File

@ -0,0 +1,52 @@
document.addEventListener('DOMContentLoaded', function () {
const callButton = document.getElementById('call-btn');
const putButton = document.getElementById('put-btn');
function handleTradeAction(action) {
// Disable buttons
callButton.disabled = true;
putButton.disabled = true;
// Show toast notification
const asset = document.querySelector('.info-value').textContent;
showToast(`${action.toUpperCase()} trade placed for ${asset}.`);
// Re-enable buttons after a delay (e.g., 1 minute for expiry)
setTimeout(() => {
callButton.disabled = false;
putButton.disabled = false;
}, 5000); // 5 second demo timeout
}
callButton.addEventListener('click', () => handleTradeAction('call'));
putButton.addEventListener('click', () => handleTradeAction('put'));
});
function showToast(message) {
const toastContainer = document.getElementById('toast-container');
const toast = document.createElement('div');
toast.className = 'toast show';
toast.setAttribute('role', 'alert');
toast.setAttribute('aria-live', 'assertive');
toast.setAttribute('aria-atomic', 'true');
toast.innerHTML = `
<div class="toast-header">
<strong class="me-auto">Trade Alert</strong>
<button type="button" class="btn-close" data-bs-dismiss="toast" aria-label="Close"></button>
</div>
<div class="toast-body">
${message}
</div>
`;
toastContainer.appendChild(toast);
const bsToast = new bootstrap.Toast(toast);
bsToast.show();
toast.addEventListener('hidden.bs.toast', () => {
toast.remove();
});
}

232
index.php
View File

@ -1,150 +1,90 @@
<?php
declare(strict_types=1);
@ini_set('display_errors', '1');
@error_reporting(E_ALL);
@date_default_timezone_set('UTC');
$phpVersion = PHP_VERSION;
$now = date('Y-m-d H:i:s');
?>
<!doctype html>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>New Style</title>
<?php
// Read project preview data from environment
$projectDescription = $_SERVER['PROJECT_DESCRIPTION'] ?? '';
$projectImageUrl = $_SERVER['PROJECT_IMAGE_URL'] ?? '';
?>
<?php if ($projectDescription): ?>
<!-- Meta description -->
<meta name="description" content='<?= htmlspecialchars($projectDescription) ?>' />
<!-- Open Graph meta tags -->
<meta property="og:description" content="<?= htmlspecialchars($projectDescription) ?>" />
<!-- Twitter meta tags -->
<meta property="twitter:description" content="<?= htmlspecialchars($projectDescription) ?>" />
<?php endif; ?>
<?php if ($projectImageUrl): ?>
<!-- Open Graph image -->
<meta property="og:image" content="<?= htmlspecialchars($projectImageUrl) ?>" />
<!-- Twitter image -->
<meta property="twitter:image" content="<?= htmlspecialchars($projectImageUrl) ?>" />
<?php endif; ?>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;700&display=swap" rel="stylesheet">
<style>
:root {
--bg-color-start: #6a11cb;
--bg-color-end: #2575fc;
--text-color: #ffffff;
--card-bg-color: rgba(255, 255, 255, 0.01);
--card-border-color: rgba(255, 255, 255, 0.1);
}
body {
margin: 0;
font-family: 'Inter', sans-serif;
background: linear-gradient(45deg, var(--bg-color-start), var(--bg-color-end));
color: var(--text-color);
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
text-align: center;
overflow: hidden;
position: relative;
}
body::before {
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><path d="M-10 10L110 10M10 -10L10 110" stroke-width="1" stroke="rgba(255,255,255,0.05)"/></svg>');
animation: bg-pan 20s linear infinite;
z-index: -1;
}
@keyframes bg-pan {
0% { background-position: 0% 0%; }
100% { background-position: 100% 100%; }
}
main {
padding: 2rem;
}
.card {
background: var(--card-bg-color);
border: 1px solid var(--card-border-color);
border-radius: 16px;
padding: 2rem;
backdrop-filter: blur(20px);
-webkit-backdrop-filter: blur(20px);
box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
}
.loader {
margin: 1.25rem auto 1.25rem;
width: 48px;
height: 48px;
border: 3px solid rgba(255, 255, 255, 0.25);
border-top-color: #fff;
border-radius: 50%;
animation: spin 1s linear infinite;
}
@keyframes spin {
from { transform: rotate(0deg); }
to { transform: rotate(360deg); }
}
.hint {
opacity: 0.9;
}
.sr-only {
position: absolute;
width: 1px; height: 1px;
padding: 0; margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
white-space: nowrap; border: 0;
}
h1 {
font-size: 3rem;
font-weight: 700;
margin: 0 0 1rem;
letter-spacing: -1px;
}
p {
margin: 0.5rem 0;
font-size: 1.1rem;
}
code {
background: rgba(0,0,0,0.2);
padding: 2px 6px;
border-radius: 4px;
font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
footer {
position: absolute;
bottom: 1rem;
font-size: 0.8rem;
opacity: 0.7;
}
</style>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Binomo prediction app</title>
<meta name="description" content="Real-time trading signal web app for Binomo/FTT/crypto. Built with Flatlogic Generator.">
<meta name="keywords" content="trading signals, binomo signals, FTT trading, crypto signals, call put options, trading app, financial signals, stock market, forex trading, real-time signals, trading analysis, Flatlogic">
<meta property="og:title" content="Binomo prediction app">
<meta property="og:description" content="Real-time trading signal web app for Binomo/FTT/crypto. Built with Flatlogic Generator.">
<meta property="og:image" content="">
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:image" content="">
<!-- Bootstrap 5 CSS -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet">
<!-- Google Fonts (Roboto) -->
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap" rel="stylesheet">
<!-- Custom CSS -->
<link rel="stylesheet" href="assets/css/custom.css?v=<?php echo time(); ?>">
</head>
<body>
<main>
<div class="card">
<h1>Analyzing your requirements and generating your website…</h1>
<div class="loader" role="status" aria-live="polite" aria-label="Applying initial changes">
<span class="sr-only">Loading…</span>
</div>
<p class="hint"><?= ($_SERVER['HTTP_HOST'] ?? '') === 'appwizzy.com' ? 'AppWizzy' : 'Flatlogic' ?> AI is collecting your requirements and applying the first changes.</p>
<p class="hint">This page will update automatically as the plan is implemented.</p>
<p>Runtime: PHP <code><?= htmlspecialchars($phpVersion) ?></code> — UTC <code><?= htmlspecialchars($now) ?></code></p>
</div>
</main>
<footer>
Page updated: <?= htmlspecialchars($now) ?> (UTC)
</footer>
<body class="bg-dark text-white">
<nav class="navbar navbar-expand-lg navbar-dark">
<div class="container">
<a class="navbar-brand fw-bold" href="#">Trading Signal</a>
</div>
</nav>
<main class="container trade-dashboard">
<div class="row g-4">
<!-- Chart Area -->
<div class="col-lg-8">
<div class="chart-container">
<p class="h5">TradingView Chart Widget Placeholder</p>
</div>
</div>
<!-- Signal Panel -->
<div class="col-lg-4">
<div class="signal-panel d-flex flex-column">
<h2 class="signal-title text-center">Live Signal</h2>
<div class="signal-info flex-grow-1">
<div class="info-item text-center">
<div class="info-label">ASSET</div>
<div class="info-value">EUR/USD</div>
</div>
<div class="info-item text-center">
<div class="info-label">CONFIDENCE</div>
<div class="info-value">95%</div>
<div class="confidence-meter mt-2">
<div class="confidence-bar" style="width: 95%;"></div>
</div>
</div>
<div class="info-item text-center">
<div class="info-label">EXPIRY</div>
<div class="info-value">1 Minute</div>
</div>
</div>
<div class="action-buttons d-grid gap-3">
<button id="call-btn" class="btn btn-call d-flex align-items-center justify-content-center gap-2">
<i data-feather="arrow-up"></i> CALL
</button>
<button id="put-btn" class="btn btn-put d-flex align-items-center justify-content-center gap-2">
<i data-feather="arrow-down"></i> PUT
</button>
</div>
</div>
</div>
</div>
</main>
<!-- Toast Container -->
<div id="toast-container" class="toast-container"></div>
<!-- Bootstrap 5 JS Bundle -->
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js"></script>
<!-- Feather Icons -->
<script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
<script>
feather.replace();
</script>
<!-- Custom JS -->
<script src="assets/js/main.js?v=<?php echo time(); ?>"></script>
</body>
</html>
</html>