122 lines
4.9 KiB
PHP
122 lines
4.9 KiB
PHP
<?php
|
|
// Placeholder data for the video feed
|
|
$videos = [
|
|
[
|
|
"video_url" => "https://media.w3.org/2010/05/sintel/trailer.mp4",
|
|
"username" => "@coolcreator",
|
|
"caption" => "This is an amazing video! #epic #awesome",
|
|
"likes" => "1.2M",
|
|
"comments" => "4,521",
|
|
"shares" => "2,310"
|
|
],
|
|
[
|
|
"video_url" => "https://www.w3schools.com/html/mov_bbb.mp4",
|
|
"username" => "@anotherstar",
|
|
"caption" => "Just having fun with this app!",
|
|
"likes" => "892K",
|
|
"comments" => "1,123",
|
|
"shares" => "987"
|
|
],
|
|
[
|
|
"video_url" => "https://media.w3.org/2010/05/bunny/movie.mp4",
|
|
"username" => "@bunnylover",
|
|
"caption" => "Check out this cute bunny! ❤️ #cute #animals",
|
|
"likes" => "2.5M",
|
|
"comments" => "10.1K",
|
|
"shares" => "5,432"
|
|
]
|
|
];
|
|
?>
|
|
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
|
|
<!-- SEO and Meta Tags -->
|
|
<title>Kannadigas</title>
|
|
<meta name="description" content="A TikTok-style web app built with Flatlogic Generator.">
|
|
<meta name="keywords" content="video sharing, social media, creator content, vertical video, mobile entertainment, Kannadigas, Built with Flatlogic Generator">
|
|
|
|
<!-- Open Graph / Facebook -->
|
|
<meta property="og:type" content="website">
|
|
<meta property="og:title" content="Kannadigas">
|
|
<meta property="og:description" content="A TikTok-style web app built with Flatlogic Generator.">
|
|
<meta property="og:image" content="<?php echo htmlspecialchars($_SERVER['PROJECT_IMAGE_URL'] ?? ''); ?>">
|
|
|
|
<!-- Twitter -->
|
|
<meta name="twitter:card" content="summary_large_image">
|
|
<meta name="twitter:title" content="Kannadigas">
|
|
<meta name="twitter:description" content="A TikTok-style web app built with Flatlogic Generator.">
|
|
<meta name="twitter:image" content="<?php echo htmlspecialchars($_SERVER['PROJECT_IMAGE_URL'] ?? ''); ?>">
|
|
|
|
<!-- Stylesheets -->
|
|
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet">
|
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css">
|
|
<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;600;700&display=swap" rel="stylesheet">
|
|
<link rel="stylesheet" href="assets/css/custom.css?v=<?php echo time(); ?>">
|
|
</head>
|
|
<body>
|
|
|
|
<div class="app-container">
|
|
<!-- Main Video Feed -->
|
|
<div class="video-feed">
|
|
<?php foreach ($videos as $video): ?>
|
|
<div class="video-slide">
|
|
<video src="<?php echo htmlspecialchars($video['video_url']); ?>" loop muted playsinline></video>
|
|
|
|
<div class="video-overlay">
|
|
<div class="username"><?php echo htmlspecialchars($video['username']); ?></div>
|
|
<div class="caption"><?php echo htmlspecialchars($video['caption']); ?></div>
|
|
</div>
|
|
|
|
<div class="video-actions">
|
|
<a href="#" class="action-btn">
|
|
<i class="bi bi-heart-fill"></i>
|
|
<span><?php echo htmlspecialchars($video['likes']); ?></span>
|
|
</a>
|
|
<a href="#" class="action-btn">
|
|
<i class="bi bi-chat-dots"></i>
|
|
<span><?php echo htmlspecialchars($video['comments']); ?></span>
|
|
</a>
|
|
<a href="#" class="action-btn">
|
|
<i class="bi bi-send"></i>
|
|
<span><?php echo htmlspecialchars($video['shares']); ?></span>
|
|
</a>
|
|
</div>
|
|
</div>
|
|
<?php endforeach; ?>
|
|
</div>
|
|
|
|
<!-- Bottom Navigation -->
|
|
<div class="bottom-nav">
|
|
<a href="#" class="nav-item active">
|
|
<i class="bi bi-house-door-fill"></i>
|
|
<span>Home</span>
|
|
</a>
|
|
<a href="#" class="nav-item">
|
|
<i class="bi bi-compass"></i>
|
|
<span>Discover</span>
|
|
</a>
|
|
<a href="#" class="nav-item upload-btn">
|
|
<i class="bi bi-plus-square-fill"></i>
|
|
</a>
|
|
<a href="#" class="nav-item">
|
|
<i class="bi bi-inbox"></i>
|
|
<span>Inbox</span>
|
|
</a>
|
|
<a href="#" class="nav-item">
|
|
<i class="bi bi-person-circle"></i>
|
|
<span>Profile</span>
|
|
</a>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- JavaScript -->
|
|
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js"></script>
|
|
<script src="assets/js/main.js?v=<?php echo time(); ?>"></script>
|
|
|
|
</body>
|
|
</html>
|