This commit is contained in:
Flatlogic Bot 2026-02-28 18:34:31 +00:00
parent ffcaed889a
commit a67fbbdaf5
9 changed files with 38 additions and 24 deletions

View File

@ -126,8 +126,8 @@ function number_get_formatted($num) {
<?php else: ?>
<a href="startups.php">Browse Startups</a>
<a href="portfolio.php">Portfolio</a>
<a href="discover.php">Discovery Hub</a>
<?php endif; ?>
<a href="discover.php">Discovery Hub</a>
<a href="messages.php">Messages</a>
</nav>
<div style="display: flex; align-items: center; gap: 15px;">
@ -304,4 +304,4 @@ function number_get_formatted($num) {
</main>
</body>
</html>
</html>

View File

@ -11,6 +11,10 @@ $user = $stmt->fetch();
if (!$user) { header('Location: login.php'); exit; }
$user_role = $user['role'];
if ($user_role === 'founder') {
header('Location: dashboard.php');
exit;
}
$platformName = defined('PLATFORM_NAME') ? PLATFORM_NAME : 'Gatsby';
// Leaderboard: Most Followed
@ -100,8 +104,8 @@ $browseStartups = $stmt->fetchAll();
<?php else: ?>
<a href="startups.php">Browse Startups</a>
<a href="portfolio.php">Portfolio</a>
<a href="discover.php" class="active">Discovery Hub</a>
<?php endif; ?>
<a href="discover.php" class="active">Discovery Hub</a>
<a href="messages.php">Messages</a>
</nav>
<div style="display: flex; align-items: center; gap: 15px;">
@ -203,4 +207,4 @@ $browseStartups = $stmt->fetchAll();
<script src="assets/js/main.js"></script>
</body>
</html>
</html>

View File

@ -80,8 +80,8 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
<?php else: ?>
<a href="startups.php">Browse Startups</a>
<a href="portfolio.php">Portfolio</a>
<a href="discover.php">Discovery Hub</a>
<?php endif; ?>
<a href="discover.php">Discovery Hub</a>
<a href="messages.php">Messages</a>
</nav>
<div style="display: flex; align-items: center; gap: 15px;">
@ -161,4 +161,4 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
<script src="assets/js/main.js"></script>
</body>
</html>
</html>

View File

@ -125,8 +125,8 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST' && isset($_POST['content']) && $active
<?php else: ?>
<a href="startups.php">Browse Startups</a>
<a href="portfolio.php">Portfolio</a>
<a href="discover.php">Discovery Hub</a>
<?php endif; ?>
<a href="discover.php">Discovery Hub</a>
<a href="messages.php" class="active">Messages</a>
</nav>
<div style="display: flex; align-items: center; gap: 15px;">
@ -255,4 +255,4 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST' && isset($_POST['content']) && $active
</script>
</body>
</html>
</html>

View File

@ -48,8 +48,8 @@ $notifications = $stmt->fetchAll();
<?php else: ?>
<a href="startups.php">Browse Startups</a>
<a href="portfolio.php">Portfolio</a>
<a href="discover.php">Discovery Hub</a>
<?php endif; ?>
<a href="discover.php">Discovery Hub</a>
<a href="messages.php">Messages</a>
</nav>
<div style="display: flex; align-items: center; gap: 15px;">
@ -129,4 +129,4 @@ $notifications = $stmt->fetchAll();
<script src="assets/js/main.js"></script>
</body>
</html>
</html>

View File

@ -119,9 +119,14 @@ if (!$search) { usort($browseCandidates, function($a, $b) { return $b['score'] <
<span class="logo-text"><?= htmlspecialchars($platformName) ?></span>
</a>
<nav class="nav-links">
<a href="startups.php">My Startups</a>
<a href="partners.php" class="active">Find Partners</a>
<a href="discover.php">Discovery Hub</a>
<?php if ($user['role'] === 'founder'): ?>
<a href="startups.php">My Startups</a>
<a href="partners.php" class="active">Find Partners</a>
<?php else: ?>
<a href="startups.php">Browse Startups</a>
<a href="portfolio.php">Portfolio</a>
<a href="discover.php">Discovery Hub</a>
<?php endif; ?>
<a href="messages.php">Messages</a>
</nav>
<div style="display: flex; align-items: center; gap: 15px;">
@ -265,4 +270,4 @@ if (!$search) { usort($browseCandidates, function($a, $b) { return $b['score'] <
}
</script>
</body>
</html>
</html>

View File

@ -52,9 +52,14 @@ foreach ($myInvestments as $inv) {
<span class="logo-text"><?= htmlspecialchars($platformName) ?></span>
</a>
<nav class="nav-links">
<a href="startups.php">Browse Startups</a>
<a href="portfolio.php" class="active">Portfolio</a>
<a href="discover.php">Discovery Hub</a>
<?php if ($user['role'] === 'founder'): ?>
<a href="startups.php">My Startups</a>
<a href="partners.php">Find Partners</a>
<?php else: ?>
<a href="startups.php">Browse Startups</a>
<a href="portfolio.php" class="active">Portfolio</a>
<a href="discover.php">Discovery Hub</a>
<?php endif; ?>
<a href="messages.php">Messages</a>
</nav>
<div style="display: flex; align-items: center; gap: 15px;">
@ -100,8 +105,8 @@ foreach ($myInvestments as $inv) {
<div class="card" style="text-align: center; padding: 80px 20px; border: 1px dashed var(--border-color);">
<i class="fas fa-chart-line" style="font-size: 64px; color: var(--accent-blue); opacity: 0.2; margin-bottom: 30px;"></i>
<h3>No investments yet</h3>
<p style="color: var(--text-secondary);">Start building your portfolio by discovering promising startups.</p>
<a href="discover.php" class="btn btn-primary" style="margin-top: 25px;">Discover Startups</a>
<p style="color: var(--text-secondary);">Start your journey by backing the next generation of founders.</p>
<a href="discover.php" class="btn btn-primary" style="margin-top: 25px;">Go to Discovery Hub</a>
</div>
<?php else: ?>
<?php foreach ($myInvestments as $inv): ?>
@ -147,4 +152,4 @@ foreach ($myInvestments as $inv) {
<script src="assets/js/main.js"></script>
</body>
</html>
</html>

View File

@ -135,8 +135,8 @@ if ($canSeeHistory) {
<?php else: ?>
<a href="startups.php">Browse Startups</a>
<a href="portfolio.php">Portfolio</a>
<a href="discover.php">Discovery Hub</a>
<?php endif; ?>
<a href="discover.php">Discovery Hub</a>
<a href="messages.php">Messages</a>
</nav>
<div style="display: flex; align-items: center; gap: 15px;">
@ -368,4 +368,4 @@ if ($canSeeHistory) {
<script src="assets/js/main.js"></script>
</body>
</html>
</html>

View File

@ -97,8 +97,8 @@ if ($user['role'] === 'founder') {
<?php else: ?>
<a href="startups.php" class="active">Browse Startups</a>
<a href="portfolio.php">Portfolio</a>
<a href="discover.php">Discovery Hub</a>
<?php endif; ?>
<a href="discover.php">Discovery Hub</a>
<a href="messages.php">Messages</a>
</nav>
<div style="display: flex; align-items: center; gap: 15px;">
@ -199,4 +199,4 @@ if ($user['role'] === 'founder') {
<script src="assets/js/main.js"></script>
</body>
</html>
</html>