feat: redesign gallery page with grid layout and enhance ownership checks
- Changed gallery from carousel to responsive grid layout (similar to about page) - Shows album cover images with titles, creator info, and photo count - Improved visual design with hover effects and better spacing - Edit buttons now only visible to album owners (uses current_user_id variable) - Added proper ownership verification in all album edit/delete operations - Enhanced styling for mobile/tablet/desktop responsiveness - Simplified layout makes it easier to browse multiple albums at once
This commit is contained in:
@@ -82,7 +82,7 @@ $conn->close();
|
||||
.album-header {
|
||||
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
||||
color: white;
|
||||
padding: 40px 0;
|
||||
padding: 20px 20px;
|
||||
margin-bottom: 40px;
|
||||
border-radius: 10px;
|
||||
}
|
||||
@@ -268,7 +268,7 @@ require_once($rootPath . '/components/banner.php');
|
||||
</a>
|
||||
|
||||
<div class="album-header">
|
||||
<div class="album-header-content">
|
||||
<div class="album-header-content px-2">
|
||||
<div style="flex: 1;">
|
||||
<h2 style="margin: 0; margin-bottom: 10px;"><?php echo htmlspecialchars($album['title']); ?></h2>
|
||||
<?php if ($album['description']): ?>
|
||||
|
||||
Reference in New Issue
Block a user