Auto commit: 2025-11-13T13:20:55.432Z
This commit is contained in:
parent
dd83710108
commit
470b33e7fa
12
index.php
12
index.php
@ -4,10 +4,10 @@
|
|||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<title>musicbox</title>
|
<title>MusicMood</title>
|
||||||
<meta name="description" content="Built with Flatlogic Generator">
|
<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 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="musicbox">
|
<meta property="og:title" content="MusicMood">
|
||||||
<meta property="og:description" content="Built with Flatlogic Generator">
|
<meta property="og:description" content="Built with Flatlogic Generator">
|
||||||
<meta property="og:image" content="">
|
<meta property="og:image" content="">
|
||||||
<meta name="twitter:card" content="summary_large_image">
|
<meta name="twitter:card" content="summary_large_image">
|
||||||
@ -26,7 +26,7 @@
|
|||||||
|
|
||||||
<nav class="navbar navbar-expand-lg navbar-dark">
|
<nav class="navbar navbar-expand-lg navbar-dark">
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<a class="navbar-brand" href="#">musicbox</a>
|
<a class="navbar-brand" href="#">MusicMood</a>
|
||||||
<div>
|
<div>
|
||||||
<?php if (isset($_SESSION['user_id'])): ?>
|
<?php if (isset($_SESSION['user_id'])): ?>
|
||||||
<a href="favorites.php" class="btn btn-outline-light me-2">My Favorites</a>
|
<a href="favorites.php" class="btn btn-outline-light me-2">My Favorites</a>
|
||||||
@ -58,8 +58,8 @@
|
|||||||
<div class="text-center mt-4">
|
<div class="text-center mt-4">
|
||||||
<p>Or, tell me how you feel:</p>
|
<p>Or, tell me how you feel:</p>
|
||||||
<div class="input-group mb-3 mx-auto" style="max-width: 500px;">
|
<div class="input-group mb-3 mx-auto" style="max-width: 500px;">
|
||||||
<input type="text" id="mood-text" class="form-control" placeholder="e.g., 'I had a great day!'">
|
<input type="text" id="mood-text" class="form-control btn-mood" placeholder="e.g., 'I had a great day!'">
|
||||||
<button class="btn btn-primary" type="button" id="suggest-by-text">Suggest</button>
|
<button class="btn btn-mood" type="button" id="suggest-by-text">Suggest</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
@ -73,7 +73,7 @@
|
|||||||
</main>
|
</main>
|
||||||
|
|
||||||
<footer class="text-center py-4 mt-5">
|
<footer class="text-center py-4 mt-5">
|
||||||
<p>© <?php echo date("Y"); ?> musicbox. Built with Flatlogic.</p>
|
<p>© <?php echo date("Y"); ?> MusicMood. Built with Flatlogic.</p>
|
||||||
</footer>
|
</footer>
|
||||||
|
|
||||||
<!-- Bootstrap JS -->
|
<!-- Bootstrap JS -->
|
||||||
|
|||||||
55
login.php
55
login.php
@ -46,48 +46,57 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
|
|||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<title>Login - MusicBox</title>
|
<title>Login - MusicMood</title>
|
||||||
|
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet">
|
||||||
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;700&display=swap" rel="stylesheet">
|
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;700&display=swap" rel="stylesheet">
|
||||||
<link rel="stylesheet" href="assets/css/custom.css?v=<?php echo time(); ?>">
|
<link rel="stylesheet" href="assets/css/custom.css?v=<?php echo time(); ?>">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<header class="app-header">
|
<nav class="navbar navbar-expand-lg navbar-dark">
|
||||||
<div class="logo">
|
<div class="container">
|
||||||
<h1><a href="index.php">MusicBox</a></h1>
|
<a class="navbar-brand" href="index.php">MusicMood</a>
|
||||||
|
<div>
|
||||||
|
<a href="register.php" class="btn btn-light">Register</a>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<nav>
|
|
||||||
<a href="register.php" class="btn">Register</a>
|
|
||||||
</nav>
|
</nav>
|
||||||
</header>
|
|
||||||
|
|
||||||
<main class="container">
|
<main class="container my-5">
|
||||||
<section class="auth-form">
|
<div class="row justify-content-center">
|
||||||
<h2>Login</h2>
|
<div class="col-md-6">
|
||||||
|
<div class="hero text-center">
|
||||||
|
<h1 class="display-4">Login</h1>
|
||||||
|
</div>
|
||||||
|
|
||||||
<?php if (!empty($errors)): ?>
|
<?php if (!empty($errors)) : ?>
|
||||||
<div class="alert alert-danger">
|
<div class="alert alert-danger">
|
||||||
<?php foreach ($errors as $error): ?>
|
<?php foreach ($errors as $error) : ?>
|
||||||
<p><?php echo htmlspecialchars($error); ?></p>
|
<p><?php echo htmlspecialchars($error); ?></p>
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
</div>
|
</div>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
||||||
<form action="login.php" method="POST">
|
<form action="login.php" method="POST" class="mt-4">
|
||||||
<div class="form-group">
|
<div class="mb-3">
|
||||||
<label for="email">Email</label>
|
<label for="email" class="form-label">Email</label>
|
||||||
<input type="email" id="email" name="email" required>
|
<input type="email" id="email" name="email" class="form-control" required>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="mb-3">
|
||||||
<label for="password">Password</label>
|
<label for="password" class="form-label">Password</label>
|
||||||
<input type="password" id="password" name="password" required>
|
<input type="password" id="password" name="password" class="form-control" required>
|
||||||
|
</div>
|
||||||
|
<div class="d-grid">
|
||||||
|
<button type="submit" class="btn btn-mood">Login</button>
|
||||||
</div>
|
</div>
|
||||||
<button type="submit" class="btn btn-primary">Login</button>
|
|
||||||
</form>
|
</form>
|
||||||
</section>
|
</div>
|
||||||
|
</div>
|
||||||
</main>
|
</main>
|
||||||
|
|
||||||
<footer class="app-footer">
|
<footer class="text-center py-4 mt-5">
|
||||||
<p>© <?php echo date('Y'); ?> MusicBox. All rights reserved.</p>
|
<p>© <?php echo date("Y"); ?> MusicMood. Built with Flatlogic.</p>
|
||||||
</footer>
|
</footer>
|
||||||
|
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js"></script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
65
register.php
65
register.php
@ -45,58 +45,67 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
|
|||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<title>Register - MusicBox</title>
|
<title>Register - MusicMood</title>
|
||||||
|
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet">
|
||||||
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;700&display=swap" rel="stylesheet">
|
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;700&display=swap" rel="stylesheet">
|
||||||
<link rel="stylesheet" href="assets/css/custom.css?v=<?php echo time(); ?>">
|
<link rel="stylesheet" href="assets/css/custom.css?v=<?php echo time(); ?>">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<header class="app-header">
|
<nav class="navbar navbar-expand-lg navbar-dark">
|
||||||
<div class="logo">
|
<div class="container">
|
||||||
<h1><a href="index.php">MusicBox</a></h1>
|
<a class="navbar-brand" href="index.php">MusicMood</a>
|
||||||
|
<div>
|
||||||
|
<a href="login.php" class="btn btn-outline-light">Login</a>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<nav>
|
|
||||||
<a href="login.php" class="btn">Login</a>
|
|
||||||
</nav>
|
</nav>
|
||||||
</header>
|
|
||||||
|
|
||||||
<main class="container">
|
<main class="container my-5">
|
||||||
<section class="auth-form">
|
<div class="row justify-content-center">
|
||||||
<h2>Create an Account</h2>
|
<div class="col-md-6">
|
||||||
|
<div class="hero text-center">
|
||||||
|
<h1 class="display-4">Create an Account</h1>
|
||||||
|
</div>
|
||||||
|
|
||||||
<?php if (!empty($errors)): ?>
|
<?php if (!empty($errors)) : ?>
|
||||||
<div class="alert alert-danger">
|
<div class="alert alert-danger">
|
||||||
<?php foreach ($errors as $error): ?>
|
<?php foreach ($errors as $error) : ?>
|
||||||
<p><?php echo htmlspecialchars($error); ?></p>
|
<p><?php echo htmlspecialchars($error); ?></p>
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
</div>
|
</div>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
||||||
<?php if ($success): ?>
|
<?php if ($success) : ?>
|
||||||
<div class="alert alert-success">
|
<div class="alert alert-success">
|
||||||
<p>Registration successful! You can now <a href="login.php">login</a>.</p>
|
<p>Registration successful! You can now <a href="login.php">login</a>.</p>
|
||||||
</div>
|
</div>
|
||||||
<?php else: ?>
|
<?php else : ?>
|
||||||
<form action="register.php" method="POST">
|
<form action="register.php" method="POST" class="mt-4">
|
||||||
<div class="form-group">
|
<div class="mb-3">
|
||||||
<label for="username">Username</label>
|
<label for="username" class="form-label">Username</label>
|
||||||
<input type="text" id="username" name="username" required>
|
<input type="text" id="username" name="username" class="form-control" required>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="mb-3">
|
||||||
<label for="email">Email</label>
|
<label for="email" class="form-label">Email</label>
|
||||||
<input type="email" id="email" name="email" required>
|
<input type="email" id="email" name="email" class="form-control" required>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="mb-3">
|
||||||
<label for="password">Password</label>
|
<label for="password" class="form-label">Password</label>
|
||||||
<input type="password" id="password" name="password" minlength="8" required>
|
<input type="password" id="password" name="password" class="form-control" minlength="8" required>
|
||||||
|
</div>
|
||||||
|
<div class="d-grid">
|
||||||
|
<button type="submit" class="btn btn-mood">Register</button>
|
||||||
</div>
|
</div>
|
||||||
<button type="submit" class="btn btn-primary">Register</button>
|
|
||||||
</form>
|
</form>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</section>
|
</div>
|
||||||
|
</div>
|
||||||
</main>
|
</main>
|
||||||
|
|
||||||
<footer class="app-footer">
|
<footer class="text-center py-4 mt-5">
|
||||||
<p>© <?php echo date('Y'); ?> MusicBox. All rights reserved.</p>
|
<p>© <?php echo date("Y"); ?> MusicMood. Built with Flatlogic.</p>
|
||||||
</footer>
|
</footer>
|
||||||
|
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js"></script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
Loading…
x
Reference in New Issue
Block a user