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>
|
||||
<meta charset="UTF-8">
|
||||
<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="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:image" content="">
|
||||
<meta name="twitter:card" content="summary_large_image">
|
||||
@ -26,7 +26,7 @@
|
||||
|
||||
<nav class="navbar navbar-expand-lg navbar-dark">
|
||||
<div class="container">
|
||||
<a class="navbar-brand" href="#">musicbox</a>
|
||||
<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>
|
||||
@ -58,8 +58,8 @@
|
||||
<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" placeholder="e.g., 'I had a great day!'">
|
||||
<button class="btn btn-primary" type="button" id="suggest-by-text">Suggest</button>
|
||||
<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>
|
||||
@ -73,7 +73,7 @@
|
||||
</main>
|
||||
|
||||
<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>
|
||||
|
||||
<!-- Bootstrap JS -->
|
||||
|
||||
55
login.php
55
login.php
@ -46,48 +46,57 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<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 rel="stylesheet" href="assets/css/custom.css?v=<?php echo time(); ?>">
|
||||
</head>
|
||||
<body>
|
||||
<header class="app-header">
|
||||
<div class="logo">
|
||||
<h1><a href="index.php">MusicBox</a></h1>
|
||||
<nav class="navbar navbar-expand-lg navbar-dark">
|
||||
<div class="container">
|
||||
<a class="navbar-brand" href="index.php">MusicMood</a>
|
||||
<div>
|
||||
<a href="register.php" class="btn btn-light">Register</a>
|
||||
</div>
|
||||
</div>
|
||||
<nav>
|
||||
<a href="register.php" class="btn">Register</a>
|
||||
</nav>
|
||||
</header>
|
||||
|
||||
<main class="container">
|
||||
<section class="auth-form">
|
||||
<h2>Login</h2>
|
||||
<main class="container my-5">
|
||||
<div class="row justify-content-center">
|
||||
<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">
|
||||
<?php foreach ($errors as $error): ?>
|
||||
<?php foreach ($errors as $error) : ?>
|
||||
<p><?php echo htmlspecialchars($error); ?></p>
|
||||
<?php endforeach; ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<form action="login.php" method="POST">
|
||||
<div class="form-group">
|
||||
<label for="email">Email</label>
|
||||
<input type="email" id="email" name="email" required>
|
||||
<form action="login.php" method="POST" class="mt-4">
|
||||
<div class="mb-3">
|
||||
<label for="email" class="form-label">Email</label>
|
||||
<input type="email" id="email" name="email" class="form-control" required>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="password">Password</label>
|
||||
<input type="password" id="password" name="password" required>
|
||||
<div class="mb-3">
|
||||
<label for="password" class="form-label">Password</label>
|
||||
<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>
|
||||
<button type="submit" class="btn btn-primary">Login</button>
|
||||
</form>
|
||||
</section>
|
||||
</div>
|
||||
</div>
|
||||
</main>
|
||||
|
||||
<footer class="app-footer">
|
||||
<p>© <?php echo date('Y'); ?> MusicBox. All rights reserved.</p>
|
||||
<footer class="text-center py-4 mt-5">
|
||||
<p>© <?php echo date("Y"); ?> MusicMood. Built with Flatlogic.</p>
|
||||
</footer>
|
||||
|
||||
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
65
register.php
65
register.php
@ -45,58 +45,67 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<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 rel="stylesheet" href="assets/css/custom.css?v=<?php echo time(); ?>">
|
||||
</head>
|
||||
<body>
|
||||
<header class="app-header">
|
||||
<div class="logo">
|
||||
<h1><a href="index.php">MusicBox</a></h1>
|
||||
<nav class="navbar navbar-expand-lg navbar-dark">
|
||||
<div class="container">
|
||||
<a class="navbar-brand" href="index.php">MusicMood</a>
|
||||
<div>
|
||||
<a href="login.php" class="btn btn-outline-light">Login</a>
|
||||
</div>
|
||||
</div>
|
||||
<nav>
|
||||
<a href="login.php" class="btn">Login</a>
|
||||
</nav>
|
||||
</header>
|
||||
|
||||
<main class="container">
|
||||
<section class="auth-form">
|
||||
<h2>Create an Account</h2>
|
||||
<main class="container my-5">
|
||||
<div class="row justify-content-center">
|
||||
<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">
|
||||
<?php foreach ($errors as $error): ?>
|
||||
<?php foreach ($errors as $error) : ?>
|
||||
<p><?php echo htmlspecialchars($error); ?></p>
|
||||
<?php endforeach; ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($success): ?>
|
||||
<?php if ($success) : ?>
|
||||
<div class="alert alert-success">
|
||||
<p>Registration successful! You can now <a href="login.php">login</a>.</p>
|
||||
</div>
|
||||
<?php else: ?>
|
||||
<form action="register.php" method="POST">
|
||||
<div class="form-group">
|
||||
<label for="username">Username</label>
|
||||
<input type="text" id="username" name="username" required>
|
||||
<?php else : ?>
|
||||
<form action="register.php" method="POST" class="mt-4">
|
||||
<div class="mb-3">
|
||||
<label for="username" class="form-label">Username</label>
|
||||
<input type="text" id="username" name="username" class="form-control" required>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="email">Email</label>
|
||||
<input type="email" id="email" name="email" required>
|
||||
<div class="mb-3">
|
||||
<label for="email" class="form-label">Email</label>
|
||||
<input type="email" id="email" name="email" class="form-control" required>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="password">Password</label>
|
||||
<input type="password" id="password" name="password" minlength="8" required>
|
||||
<div class="mb-3">
|
||||
<label for="password" class="form-label">Password</label>
|
||||
<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>
|
||||
<button type="submit" class="btn btn-primary">Register</button>
|
||||
</form>
|
||||
<?php endif; ?>
|
||||
</section>
|
||||
</div>
|
||||
</div>
|
||||
</main>
|
||||
|
||||
<footer class="app-footer">
|
||||
<p>© <?php echo date('Y'); ?> MusicBox. All rights reserved.</p>
|
||||
<footer class="text-center py-4 mt-5">
|
||||
<p>© <?php echo date("Y"); ?> MusicMood. Built with Flatlogic.</p>
|
||||
</footer>
|
||||
|
||||
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
Loading…
x
Reference in New Issue
Block a user