35835-vm/index.php
Flatlogic Bot 470453f568 1.0.1
2025-11-18 19:02:04 +00:00

183 lines
10 KiB
PHP

<?php
// Mock data for news articles
$articles = [
[
"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"];
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>News Aggregator</title>
<meta name="description" content="Built with Flatlogic Generator">
<meta name="keywords" content="news aggregator, client intelligence, account management, financial news, tech news, business insights, market updates, competitive analysis, Built with Flatlogic Generator">
<meta property="og:title" content="News Aggregator">
<meta property="og:description" content="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">
<!-- Bootstrap Icons -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.1/font/bootstrap-icons.css">
<!-- Google Fonts (Inter) -->
<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;500;600&display=swap" rel="stylesheet">
<!-- Custom CSS -->
<link rel="stylesheet" href="assets/css/custom.css?v=<?php echo time(); ?>">
</head>
<body>
<header class="navbar navbar-dark sticky-top bg-dark flex-md-nowrap p-0 shadow">
<a class="navbar-brand col-md-3 col-lg-2 me-0 px-3" href="#">Client News Hub</a>
<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="navbar-toggler-icon"></span>
</button>
<input class="form-control form-control-dark w-100" type="text" placeholder="Search articles..." aria-label="Search">
<div class="navbar-nav">
<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>
<!-- Bootstrap 5 JS Bundle -->
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js"></script>
<!-- Custom JS -->
<script src="assets/js/main.js?v=<?php echo time(); ?>"></script>
</body>
</html>