Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
470453f568 |
86
assets/css/custom.css
Normal file
86
assets/css/custom.css
Normal file
@ -0,0 +1,86 @@
|
|||||||
|
/* assets/css/custom.css */
|
||||||
|
body {
|
||||||
|
font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
|
||||||
|
background-color: #F8F9FA;
|
||||||
|
}
|
||||||
|
|
||||||
|
.sidebar {
|
||||||
|
position: fixed;
|
||||||
|
top: 0;
|
||||||
|
left: 0;
|
||||||
|
bottom: 0;
|
||||||
|
z-index: 100;
|
||||||
|
padding: 56px 0 0; /* Height of navbar */
|
||||||
|
box-shadow: inset -1px 0 0 rgba(0, 0, 0, .1);
|
||||||
|
background-color: #FFFFFF;
|
||||||
|
}
|
||||||
|
|
||||||
|
.sidebar-sticky {
|
||||||
|
position: relative;
|
||||||
|
top: 0;
|
||||||
|
height: calc(100vh - 56px);
|
||||||
|
padding-top: .5rem;
|
||||||
|
overflow-x: hidden;
|
||||||
|
overflow-y: auto; /* Scrollable contents if viewport is shorter than content. */
|
||||||
|
}
|
||||||
|
|
||||||
|
.main-content {
|
||||||
|
margin-left: 240px; /* Same as sidebar width */
|
||||||
|
padding-top: 70px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.navbar {
|
||||||
|
background: linear-gradient(90deg, #0A68FF 0%, #0052CC 100%);
|
||||||
|
}
|
||||||
|
|
||||||
|
.navbar-brand {
|
||||||
|
font-weight: 600;
|
||||||
|
}
|
||||||
|
|
||||||
|
.form-control-dark {
|
||||||
|
color: #fff;
|
||||||
|
background-color: rgba(255, 255, 255, .1);
|
||||||
|
border-color: rgba(255, 255, 255, .1);
|
||||||
|
}
|
||||||
|
|
||||||
|
.form-control-dark:focus {
|
||||||
|
border-color: transparent;
|
||||||
|
box-shadow: 0 0 0 3px rgba(255, 255, 255, .25);
|
||||||
|
}
|
||||||
|
|
||||||
|
.news-card {
|
||||||
|
border-radius: 0.5rem;
|
||||||
|
border: 1px solid #e9ecef;
|
||||||
|
transition: box-shadow 0.2s ease-in-out;
|
||||||
|
}
|
||||||
|
|
||||||
|
.news-card:hover {
|
||||||
|
box-shadow: 0 .5rem 1rem rgba(0,0,0,.15)!important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.news-card .card-title {
|
||||||
|
font-weight: 600;
|
||||||
|
color: #212529;
|
||||||
|
}
|
||||||
|
|
||||||
|
.news-card .card-subtitle {
|
||||||
|
font-size: 0.875rem;
|
||||||
|
color: #6c757d;
|
||||||
|
}
|
||||||
|
|
||||||
|
.news-card .card-text {
|
||||||
|
color: #495057;
|
||||||
|
}
|
||||||
|
|
||||||
|
.news-card .btn-outline-secondary {
|
||||||
|
border-radius: 0.25rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.filter-group .form-check-label {
|
||||||
|
font-size: 0.9rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.filter-group h6 {
|
||||||
|
font-weight: 600;
|
||||||
|
color: #0A68FF;
|
||||||
|
}
|
||||||
3
assets/js/main.js
Normal file
3
assets/js/main.js
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
// assets/js/main.js
|
||||||
|
// Future JavaScript for interactivity can be added here.
|
||||||
|
console.log("main.js loaded");
|
||||||
315
index.php
315
index.php
@ -1,150 +1,183 @@
|
|||||||
<?php
|
<?php
|
||||||
declare(strict_types=1);
|
// Mock data for news articles
|
||||||
@ini_set('display_errors', '1');
|
$articles = [
|
||||||
@error_reporting(E_ALL);
|
[
|
||||||
@date_default_timezone_set('UTC');
|
"title" => "TechFin Innovators Secure $50M Series B for AI-Powered Analytics Platform",
|
||||||
|
"summary" => "TechFin, a leader in financial technology, has closed a major funding round. The investment will be used to expand their engineering team and accelerate the development of their predictive analytics engine for institutional investors.",
|
||||||
|
"source" => "TechCrunch",
|
||||||
|
"date" => "2025-11-18",
|
||||||
|
"client_tags" => ["Major Bank Inc.", "Global Investment Co."]
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"title" => "Retail Giant 'ShopSphere' Launches Same-Day Drone Delivery in 5 Major Cities",
|
||||||
|
"summary" => "ShopSphere is revolutionizing e-commerce logistics with its new drone delivery service. The move is expected to significantly disrupt the last-mile delivery market and puts pressure on competitors to innovate.",
|
||||||
|
"source" => "Bloomberg",
|
||||||
|
"date" => "2025-11-18",
|
||||||
|
"client_tags" => ["ShopSphere", "Logistics Corp"]
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"title" => "Regulatory Changes in Renewable Energy Sector to Impact BioFuel Corp",
|
||||||
|
"summary" => "New government regulations are set to create new opportunities and challenges for companies in the renewable energy space. BioFuel Corp's stock saw a slight dip following the announcement as investors weigh the potential impact.",
|
||||||
|
"source" => "Reuters",
|
||||||
|
"date" => "2025-11-17",
|
||||||
|
"client_tags" => ["BioFuel Corp"]
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"title" => "The Future of SaaS: An Interview with Visionary CEO of CloudWorks",
|
||||||
|
"summary" => "Wired sits down with the CEO of CloudWorks to discuss the future of the Software-as-a-Service industry, touching on topics like vertical SaaS, AI integration, and the importance of customer success.",
|
||||||
|
"source" => "Wired",
|
||||||
|
"date" => "2025-11-17",
|
||||||
|
"client_tags" => ["CloudWorks", "SaaSY"]
|
||||||
|
],
|
||||||
|
];
|
||||||
|
|
||||||
|
// Mock data for filters
|
||||||
|
$clients = ["Major Bank Inc.", "Global Investment Co.", "ShopSphere", "BioFuel Corp", "CloudWorks"];
|
||||||
|
$industries = ["Fintech", "SaaS", "Retail", "Energy"];
|
||||||
|
$keywords = ["Innovation", "M&A", "Regulatory", "Leadership"];
|
||||||
|
|
||||||
$phpVersion = PHP_VERSION;
|
|
||||||
$now = date('Y-m-d H:i:s');
|
|
||||||
?>
|
?>
|
||||||
<!doctype html>
|
<!DOCTYPE html>
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8" />
|
<meta charset="UTF-8">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<title>New Style</title>
|
<title>News Aggregator</title>
|
||||||
<?php
|
<meta name="description" content="Built with Flatlogic Generator">
|
||||||
// Read project preview data from environment
|
<meta name="keywords" content="news aggregator, client intelligence, account management, financial news, tech news, business insights, market updates, competitive analysis, Built with Flatlogic Generator">
|
||||||
$projectDescription = $_SERVER['PROJECT_DESCRIPTION'] ?? '';
|
<meta property="og:title" content="News Aggregator">
|
||||||
$projectImageUrl = $_SERVER['PROJECT_IMAGE_URL'] ?? '';
|
<meta property="og:description" content="Built with Flatlogic Generator">
|
||||||
?>
|
<meta property="og:image" content="">
|
||||||
<?php if ($projectDescription): ?>
|
<meta name="twitter:card" content="summary_large_image">
|
||||||
<!-- Meta description -->
|
<meta name="twitter:image" content="">
|
||||||
<meta name="description" content='<?= htmlspecialchars($projectDescription) ?>' />
|
|
||||||
<!-- Open Graph meta tags -->
|
<!-- Bootstrap 5 CSS -->
|
||||||
<meta property="og:description" content="<?= htmlspecialchars($projectDescription) ?>" />
|
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet">
|
||||||
<!-- Twitter meta tags -->
|
<!-- Bootstrap Icons -->
|
||||||
<meta property="twitter:description" content="<?= htmlspecialchars($projectDescription) ?>" />
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.1/font/bootstrap-icons.css">
|
||||||
<?php endif; ?>
|
<!-- Google Fonts (Inter) -->
|
||||||
<?php if ($projectImageUrl): ?>
|
<link rel="preconnect" href="https://fonts.googleapis.com">
|
||||||
<!-- Open Graph image -->
|
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
||||||
<meta property="og:image" content="<?= htmlspecialchars($projectImageUrl) ?>" />
|
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap" rel="stylesheet">
|
||||||
<!-- Twitter image -->
|
<!-- Custom CSS -->
|
||||||
<meta property="twitter:image" content="<?= htmlspecialchars($projectImageUrl) ?>" />
|
<link rel="stylesheet" href="assets/css/custom.css?v=<?php echo time(); ?>">
|
||||||
<?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>
|
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<main>
|
|
||||||
<div class="card">
|
<header class="navbar navbar-dark sticky-top bg-dark flex-md-nowrap p-0 shadow">
|
||||||
<h1>Analyzing your requirements and generating your website…</h1>
|
<a class="navbar-brand col-md-3 col-lg-2 me-0 px-3" href="#">Client News Hub</a>
|
||||||
<div class="loader" role="status" aria-live="polite" aria-label="Applying initial changes">
|
<button class="navbar-toggler position-absolute d-md-none collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#sidebarMenu" aria-controls="sidebarMenu" aria-expanded="false" aria-label="Toggle navigation">
|
||||||
<span class="sr-only">Loading…</span>
|
<span class="navbar-toggler-icon"></span>
|
||||||
</div>
|
</button>
|
||||||
<p class="hint"><?= ($_SERVER['HTTP_HOST'] ?? '') === 'appwizzy.com' ? 'AppWizzy' : 'Flatlogic' ?> AI is collecting your requirements and applying the first changes.</p>
|
<input class="form-control form-control-dark w-100" type="text" placeholder="Search articles..." aria-label="Search">
|
||||||
<p class="hint">This page will update automatically as the plan is implemented.</p>
|
<div class="navbar-nav">
|
||||||
<p>Runtime: PHP <code><?= htmlspecialchars($phpVersion) ?></code> — UTC <code><?= htmlspecialchars($now) ?></code></p>
|
<div class="nav-item text-nowrap d-flex align-items-center">
|
||||||
|
<div class="dropdown">
|
||||||
|
<a href="#" class="d-block link-light text-decoration-none dropdown-toggle me-3" id="dropdownUser" data-bs-toggle="dropdown" aria-expanded="false">
|
||||||
|
<img src="https://i.pravatar.cc/40?u=account.lead" alt="mdo" width="32" height="32" class="rounded-circle">
|
||||||
|
</a>
|
||||||
|
<ul class="dropdown-menu dropdown-menu-end text-small" aria-labelledby="dropdownUser">
|
||||||
|
<li><a class="dropdown-item" href="#">Settings</a></li>
|
||||||
|
<li><a class="dropdown-item" href="#">Profile</a></li>
|
||||||
|
<li><hr class="dropdown-divider"></li>
|
||||||
|
<li><a class="dropdown-item" href="#">Sign out</a></li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</header>
|
||||||
|
|
||||||
|
<div class="container-fluid">
|
||||||
|
<div class="row">
|
||||||
|
<nav id="sidebarMenu" class="col-md-3 col-lg-2 d-md-block sidebar collapse">
|
||||||
|
<div class="sidebar-sticky pt-3">
|
||||||
|
<div class="filter-group px-3 mb-4">
|
||||||
|
<h6 class="sidebar-heading d-flex justify-content-between align-items-center px-1 mt-4 mb-2">
|
||||||
|
<span>Clients</span>
|
||||||
|
</h6>
|
||||||
|
<?php foreach ($clients as $client): ?>
|
||||||
|
<div class="form-check">
|
||||||
|
<input class="form-check-input" type="checkbox" value="" id="client_<?php echo str_replace(' ', '_', $client); ?>">
|
||||||
|
<label class="form-check-label" for="client_<?php echo str_replace(' ', '_', $client); ?>">
|
||||||
|
<?php echo htmlspecialchars($client); ?>
|
||||||
|
</label>
|
||||||
|
</div>
|
||||||
|
<?php endforeach; ?>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="filter-group px-3 mb-4">
|
||||||
|
<h6 class="sidebar-heading d-flex justify-content-between align-items-center px-1 mt-4 mb-2">
|
||||||
|
<span>Industries</span>
|
||||||
|
</h6>
|
||||||
|
<?php foreach ($industries as $industry): ?>
|
||||||
|
<div class="form-check">
|
||||||
|
<input class="form-check-input" type="checkbox" value="" id="industry_<?php echo str_replace(' ', '_', $industry); ?>">
|
||||||
|
<label class="form-check-label" for="industry_<?php echo str_replace(' ', '_', $industry); ?>">
|
||||||
|
<?php echo htmlspecialchars($industry); ?>
|
||||||
|
</label>
|
||||||
|
</div>
|
||||||
|
<?php endforeach; ?>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="filter-group px-3 mb-4">
|
||||||
|
<h6 class="sidebar-heading d-flex justify-content-between align-items-center px-1 mt-4 mb-2">
|
||||||
|
<span>Keywords</span>
|
||||||
|
</h6>
|
||||||
|
<?php foreach ($keywords as $keyword): ?>
|
||||||
|
<div class="form-check">
|
||||||
|
<input class="form-check-input" type="checkbox" value="" id="keyword_<?php echo str_replace(' ', '_', $keyword); ?>">
|
||||||
|
<label class="form-check-label" for="keyword_<?php echo str_replace(' ', '_', $keyword); ?>">
|
||||||
|
<?php echo htmlspecialchars($keyword); ?>
|
||||||
|
</label>
|
||||||
|
</div>
|
||||||
|
<?php endforeach; ?>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</nav>
|
||||||
|
|
||||||
|
<main class="col-md-9 ms-sm-auto col-lg-10 px-md-4 main-content">
|
||||||
|
<div class="d-flex justify-content-between flex-wrap flex-md-nowrap align-items-center pt-3 pb-2 mb-3 border-bottom">
|
||||||
|
<h1 class="h2">Daily News Feed</h1>
|
||||||
|
<div class="btn-toolbar mb-2 mb-md-0">
|
||||||
|
<div class="btn-group me-2">
|
||||||
|
<button type="button" class="btn btn-sm btn-outline-secondary">Share</button>
|
||||||
|
<button type="button" class="btn btn-sm btn-outline-secondary">Export</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="news-list">
|
||||||
|
<?php foreach ($articles as $article): ?>
|
||||||
|
<div class="card news-card mb-3">
|
||||||
|
<div class="card-body">
|
||||||
|
<h5 class="card-title"><?php echo htmlspecialchars($article['title']); ?></h5>
|
||||||
|
<h6 class="card-subtitle mb-2 text-muted">
|
||||||
|
<span class="fw-bold"><?php echo htmlspecialchars($article['source']); ?></span> -
|
||||||
|
<span><?php echo date("M j, Y", strtotime($article['date'])); ?></span>
|
||||||
|
</h6>
|
||||||
|
<p class="card-text"><?php echo htmlspecialchars($article['summary']); ?></p>
|
||||||
|
<div class="d-flex justify-content-between align-items-center">
|
||||||
|
<div>
|
||||||
|
<?php foreach ($article['client_tags'] as $tag): ?>
|
||||||
|
<span class="badge bg-primary bg-opacity-10 text-primary me-1"><?php echo htmlspecialchars($tag); ?></span>
|
||||||
|
<?php endforeach; ?>
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
<a href="#" class="btn btn-sm btn-outline-secondary me-1" title="Bookmark"><i class="bi bi-bookmark"></i></a>
|
||||||
|
<a href="#" class="btn btn-sm btn-outline-secondary" title="Share"><i class="bi bi-share"></i></a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<?php endforeach; ?>
|
||||||
|
</div>
|
||||||
|
</main>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</main>
|
|
||||||
<footer>
|
<!-- Bootstrap 5 JS Bundle -->
|
||||||
Page updated: <?= htmlspecialchars($now) ?> (UTC)
|
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js"></script>
|
||||||
</footer>
|
<!-- Custom JS -->
|
||||||
|
<script src="assets/js/main.js?v=<?php echo time(); ?>"></script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
Loading…
x
Reference in New Issue
Block a user