84 lines
4.0 KiB
PHP
84 lines
4.0 KiB
PHP
<?php session_start(); ?>
|
|
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>MusicMood</title>
|
|
<meta name="description" content="Built with Flatlogic Generator">
|
|
<meta name="keywords" content="music suggestion, youtube music, mood music, music recommender, happy music, sad music, energetic music, calm music, music discovery, playlist generator, Built with Flatlogic Generator">
|
|
<meta property="og:title" content="MusicMood">
|
|
<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 CSS -->
|
|
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet">
|
|
<!-- Google Fonts -->
|
|
<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">
|
|
<!-- Custom CSS -->
|
|
<link rel="stylesheet" href="assets/css/custom.css?v=<?php echo time(); ?>">
|
|
</head>
|
|
<body data-logged-in="<?php echo isset($_SESSION['user_id']) ? 'true' : 'false'; ?>">
|
|
|
|
<nav class="navbar navbar-expand-lg navbar-dark">
|
|
<div class="container">
|
|
<a class="navbar-brand" href="#">MusicMood</a>
|
|
<div>
|
|
<?php if (isset($_SESSION['user_id'])): ?>
|
|
<a href="favorites.php" class="btn btn-outline-light me-2">My Favorites</a>
|
|
<a href="logout.php" class="btn btn-outline-light">Logout</a>
|
|
<?php else: ?>
|
|
<a href="login.php" class="btn btn-outline-light me-2">Login</a>
|
|
<a href="register.php" class="btn btn-light">Register</a>
|
|
<?php endif; ?>
|
|
</div>
|
|
</div>
|
|
</nav>
|
|
|
|
<main class="container my-5">
|
|
<div class="hero text-center">
|
|
<h1 class="display-4">Music for Every Mood</h1>
|
|
<p class="lead">Select how you're feeling today, and we'll curate the perfect playlist for you.</p>
|
|
</div>
|
|
|
|
<section id="mood-selector" class="my-5">
|
|
<h2 class="text-center mb-4">How are you feeling?</h2>
|
|
<div class="d-grid gap-3 d-md-flex justify-content-center">
|
|
<button class="btn btn-mood" data-mood="happy">😊 Happy</button>
|
|
<button class="btn btn-mood" data-mood="sad">😢 Sad</button>
|
|
<button class="btn btn-mood" data-mood="energetic">⚡️ Energetic</button>
|
|
<button class="btn btn-mood" data-mood="calm">🧘 Calm</button>
|
|
<button class="btn btn-mood" data-mood="upbeat">🔥 Upbeat</button>
|
|
</div>
|
|
|
|
<div class="text-center mt-4">
|
|
<p>Or, tell me how you feel:</p>
|
|
<div class="input-group mb-3 mx-auto" style="max-width: 500px;">
|
|
<input type="text" id="mood-text" class="form-control btn-mood" placeholder="e.g., 'I had a great day!'">
|
|
<button class="btn btn-mood" type="button" id="suggest-by-text">Suggest</button>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
|
|
<section id="results" class="mt-5" style="display: none;">
|
|
<h2 id="results-title" class="text-center mb-4"></h2>
|
|
<div id="video-grid" class="row">
|
|
<!-- YouTube videos will be injected here -->
|
|
</div>
|
|
</section>
|
|
</main>
|
|
|
|
<footer class="text-center py-4 mt-5">
|
|
<p>© <?php echo date("Y"); ?> MusicMood. Built with Flatlogic.</p>
|
|
</footer>
|
|
|
|
<!-- Bootstrap JS -->
|
|
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js"></script>
|
|
<!-- Custom JS -->
|
|
<script src="assets/js/main.js?v=<?php echo time(); ?>"></script>
|
|
</body>
|
|
</html>
|