diff --git a/startup_details.php b/startup_details.php index 46355d9..402bb53 100644 --- a/startup_details.php +++ b/startup_details.php @@ -40,6 +40,11 @@ if (!$isFounder && $startup['status'] === 'private' && !$isInvestor) { die("You do not have permission to view this profile."); } +// Check if following +$stmt = db()->prepare("SELECT 1 FROM startup_followers WHERE user_id = ? AND startup_id = ?"); +$stmt->execute([$user_id, $startupId]); +$isFollowing = (bool)$stmt->fetch(); + // Fetch funding history $canSeeHistory = $isFounder || $isInvestor; $fundingHistory = []; @@ -236,6 +241,33 @@ function getNextDividendInfo($createdAt) { background-color: rgba(0,0,0,0.9); backdrop-filter: blur(4px); } + + .follow-btn { + padding: 16px 24px; + border-radius: 999px; + font-weight: 800; + text-transform: uppercase; + font-size: 14px; + letter-spacing: 0.5px; + cursor: pointer; + transition: all 0.3s; + display: inline-flex; + align-items: center; + gap: 10px; + border: 1px solid var(--accent-primary); + } + .follow-btn.following { + background: var(--accent-primary); + color: #000; + } + .follow-btn.not-following { + background: transparent; + color: var(--accent-primary); + } + .follow-btn:hover { + transform: translateY(-2px); + box-shadow: 0 4px 15px rgba(0, 255, 128, 0.2); + }
@@ -293,6 +325,9 @@ function getNextDividendInfo($createdAt) { = htmlspecialchars($startup['country']) ?> + + = number_format($startup['followers_count']) ?> Followers +