-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcatalogue.php
More file actions
278 lines (250 loc) · 12.1 KB
/
Copy pathcatalogue.php
File metadata and controls
278 lines (250 loc) · 12.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
<?php
session_start(); // Initializes the session to check if user is logged in
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Our Gallery | Pastimes®</title>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css" rel="stylesheet">
<style>
:root {
--midnight-navy: #2C3E50;
--studio-orange: #FF6E14;
--dark-bg: #111111;
}
body { font-family: 'Inter', sans-serif; background-color: #fff; overflow-x: hidden; }
/* --- NAVIGATION --- */
.navbar { background: #fff; border-bottom: 1px solid #eee; padding: 15px 0; }
.navbar-brand { font-weight: 800; font-size: 24px; color: #000 !important; letter-spacing: 1px; }
.nav-link { color: #111 !important; font-weight: 600; font-size: 14px; margin: 0 12px; text-transform: uppercase; }
.nav-link.active { color: var(--primary-blue) !important; }
.btn-signup {
background: #0678eb;
color: #fff !important;
padding: 8px 22px;
border-radius: 0px;
font-weight: 600;
text-transform: uppercase;
font-size: 12px;
border: 1px solid #0678eb;
transition: all 0.3s ease;
}
.btn-signup:hover {
background: #000 !important;
color: #fff !important;
border-color: #000;
}
/* Logout Link Style */
.logout-link {
font-size: 11px;
text-transform: uppercase;
font-weight: 700;
color: #ff4d4d !important;
text-decoration: none;
}
/* --- GALLERY HERO (Centered Fix) --- */
.gallery-hero {
background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('https://images.unsplash.com/photo-1516035069371-29a1b244cc32?q=80&w=2000');
height: 450px;
background-size: cover;
background-position: center;
display: flex;
align-items: center; /* Vertical Center */
justify-content: center; /* Horizontal Center */
color: white;
text-align: center;
}
/* Forces internal container to respect centering */
.gallery-hero .container {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
.gallery-hero h1 {
font-size: 60px;
font-weight: 900;
text-transform: uppercase;
letter-spacing: 4px;
margin-bottom: 10px;
}
.gallery-hero p {
font-size: 18px;
color: #ccc;
max-width: 700px;
font-weight: 300;
line-height: 1.5;
}
/* --- FILTER BAR --- */
.filter-bar { padding: 30px 0; border-bottom: 1px solid #eee; background: #fff; }
.search-box { position: relative; }
.search-box i { position: absolute; left: 15px; top: 15px; color: #aaa; }
.search-box input { padding-left: 45px; height: 48px; border-radius: 0px; border: 1px solid #ddd; }
.gallery-filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-btn {
border: 1px solid #ddd; background: none; padding: 10px 20px; border-radius: 0px;
font-weight: 700; font-size: 11px; transition: 0.3s; color: #333; text-decoration: none; text-transform: uppercase;
}
.filter-btn:hover, .filter-btn.active { background: #0678eb; color: white; border-color: #fff; }
/* --- GALLERY GRID (The Alignment Fix) --- */
.gallery-container { padding: 60px 0; }
.gallery-item { margin-bottom: 30px; position: relative; overflow: hidden; background: #f9f9f9; }
/* This fixed height and object-fit: cover ensures perfect alignment */
.gallery-item img {
width: 100%;
height: 450px;
object-fit: cover;
transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
cursor: pointer;
}
.gallery-item:hover img { transform: scale(1.1); }
.gallery-overlay {
position: absolute; bottom: 0; left: 0; right: 0;
background: linear-gradient(transparent, rgba(0,0,0,0.9));
padding: 25px; color: white; opacity: 0; transition: 0.4s;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay h6 { font-weight: 800; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 5px; }
/* --- FOOTER --- */
footer { background-color: #000; padding: 40px 0; color: #fff; border-top: 1px solid #222; }
footer h5 { letter-spacing: 4px; font-weight: 800; text-transform: uppercase; }
.social-icons a { color: #fff; font-size: 22px; margin: 0 15px; transition: 0.3s; text-decoration: none; }
.social-icons a:hover { color: var(--studio-orange); }
</style>
</head>
<body>
<nav class="navbar navbar-expand-lg sticky-top">
<div class="container">
<a class="navbar-brand" href="index.php">
Pastimes<i class="fa-solid fa-registered" style="font-size: 10px; vertical-align: top;"></i>
</a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarNav">
<ul class="navbar-nav mx-auto">
<li class="nav-item"><a class="nav-link" href="index.php">Home</a></li>
<li class="nav-item"><a class="nav-link active" href="listings.php">Shop</a></li>
<li class="nav-item"><a class="nav-link" href="about.php">About</a></li>
<li class="nav-item"><a class="nav-link" href="catalogue.php">Gallery</a></li>
<li class="nav-item"><a class="nav-link" href="contact.php">Contact</a></li>
</ul>
<div class="d-flex align-items-center gap-3">
<a href="cart.php" class="text-dark position-relative">
<i class="fa-solid fa-bag-shopping fs-5"></i>
<?php if(isset($_SESSION['cart']) && count($_SESSION['cart']) > 0): ?>
<span class="position-absolute top-0 start-100 translate-middle badge rounded-pill bg-danger" style="font-size: 10px;">
<?php echo count($_SESSION['cart']); ?>
</span>
<?php endif; ?>
</a>
<!-- DYNAMIC LOGIN/LOGOUT SECTION -->
<?php if(isset($_SESSION['user_id'])): ?>
<span class="small fw-bold text-uppercase" style="font-size: 11px;">
Hi, <?php echo explode(' ', $_SESSION['full_name'])[0]; ?>
</span>
<a href="logout.php" class="logout-link">Logout</a>
<?php else: ?>
<a href="authenticate.php" class="text-dark text-decoration-none small fw-bold text-uppercase">Sign In</a>
<a href="sign-up.php" class="btn btn-signup">Sign Up</a>
<?php endif; ?>
</div>
</div>
</div>
</nav>
<section class="gallery-hero">
<div class="container">
<h1>Our Gallery</h1>
<p>Capturing the premium oversized aesthetic and the vibrant street culture of Midrand.</p>
</div>
</section>
<section class="filter-bar">
<div class="container">
<div class="row align-items-center">
<div class="col-md-7">
<div class="gallery-filters">
<a href="#" class="filter-btn active">All Moments</a>
<a href="#" class="filter-btn">Street Style</a>
<a href="#" class="filter-btn">Lookbook</a>
<a href="#" class="filter-btn">Events</a>
<a href="#" class="filter-btn">Culture</a>
</div>
</div>
<div class="col-md-5 mt-3 mt-md-0">
<div class="search-box">
<i class="fa-solid fa-magnifying-glass"></i>
<input type="text" class="form-control" placeholder="Search the collection...">
</div>
</div>
</div>
</div>
</section>
<section class="container gallery-container">
<div class="row g-4"> <div class="col-md-4">
<div class="gallery-item">
<img src="https://images.unsplash.com/photo-1515886657613-9f3515b0c78f?q=80&w=1000" alt="Style 1">
<div class="gallery-overlay"><h6>Heritage Drop</h6><p class="small">Pastimes® Essentials.</p></div>
</div>
</div>
<div class="col-md-4">
<div class="gallery-item">
<img src="images/9.jpeg" alt="Style 2">
<div class="gallery-overlay"><h6>Midrand Shoot</h6><p class="small">Community fashion highlights.</p></div>
</div>
</div>
<div class="col-md-4">
<div class="gallery-item">
<img src="https://images.unsplash.com/photo-1539109136881-3be0616acf4b?q=80&w=1000" alt="Style 3">
<div class="gallery-overlay"><h6>The Runway</h6><p class="small">Showcasing the oversized aesthetic.</p></div>
</div>
</div>
<div class="col-md-4">
<div class="gallery-item">
<img src="https://images.unsplash.com/photo-1509631179647-0177331693ae?q=80&w=1000" alt="Style 4">
<div class="gallery-overlay"><h6>Culture & Art</h6><p class="small">Mural art meets modern threads.</p></div>
</div>
</div>
<div class="col-md-4">
<div class="gallery-item">
<img src="https://images.unsplash.com/photo-1490481651871-ab68de25d43d?q=80&w=1000" alt="Style 5">
<div class="gallery-overlay"><h6>Store Launch</h6><p class="small">Opening doors in Gauteng.</p></div>
</div>
</div>
<div class="col-md-4">
<div class="gallery-item">
<img src="https://images.unsplash.com/photo-1483985988355-763728e1935b?q=80&w=1000" alt="Style 6">
<div class="gallery-overlay"><h6>Night Vibes</h6><p class="small">Street light series.</p></div>
</div>
</div>
</div>
</section>
<footer>
<div class="container text-center">
<h5 class="mt-3 mb-1" style="letter-spacing: 2px;">PASTIMES</h5>
<p class="small mb-2" style="color: #bbb; font-size: 11px;">
© 2026 Pastimes® Collective. <br>
Headquartered in Midrand, South Africa.
</p>
<div class="social-icons mb-3">
<a href="#" style="margin: 0 10px;"><i class="fab fa-instagram"></i></a>
<a href="#" style="margin: 0 10px;"><i class="fab fa-tiktok"></i></a>
<a href="#" style="margin: 0 10px;"><i class="fab fa-facebook-f"></i></a>
</div>
<div class="pt-3" style="border-top: 1px solid #333; max-width: 340px; margin: 0 auto;">
<p class="mb-1" style="font-size: 9px; text-transform: uppercase; letter-spacing: 2px; color: #aaa;">
Digital Architecture & Direction
</p>
<p class="mb-0">
<a href="#" class="text-white text-decoration-none fw-bold" style="letter-spacing: 4px; font-size: 12px;">
Amo Matlhaga & Kea Masole
</a>
</p>
</div>
</div>
</footer>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
</body>
</html>