-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathheader.php
More file actions
52 lines (51 loc) · 3.43 KB
/
Copy pathheader.php
File metadata and controls
52 lines (51 loc) · 3.43 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
<?php session_start(); ?>
<!DOCTYPE html>
<html lang="id" class="scroll-smooth">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Mode Centre | Your Fashion, Our Passion</title>
<script src="https://cdn.tailwindcss.com"></script>
<link rel="stylesheet" href="https://unpkg.com/swiper/swiper-bundle.min.css" />
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap" rel="stylesheet">
<style>
body { font-family: 'Poppins', sans-serif; background-color: #FFFFFF; color: #1F2937; }
.text-brand { color: #D32F2F; }
.bg-brand { background-color: #D32F2F; }
.bg-brand-hover:hover { background-color: #B71C1C; }
.border-brand { border-color: #D32F2F; }
.swiper-button-next, .swiper-button-prev { color: #D32F2F; }
.swiper-pagination-bullet-active { background-color: #D32F2F; }
.pagination a.disabled { pointer-events: none; opacity: 0.5; }
.category-filter a.active { background-color: #D32F2F; color: white; border-color: #D32F2F; }
</style>
</head>
<body class="antialiased pb-24 md:pb-0">
<!-- Header -->
<header class="bg-white shadow-md sticky top-0 z-30">
<div class="container mx-auto px-4">
<div class="flex justify-between items-center py-2">
<div class="flex items-center space-x-4">
<a href="index.php">
<img src="/logo.png" alt="Mode Centre Logo" class="h-24 w-auto max-w-full object-contain">
</a>
</div>
<div class="hidden lg:flex flex-grow max-w-xl mx-8">
<div class="relative w-full">
<input type="search" placeholder="Cari produk..." class="w-full py-2.5 pl-4 pr-12 text-sm border border-gray-300 rounded-full focus:outline-none focus:ring-2 focus:ring-brand/50">
<button class="absolute inset-y-0 right-0 flex items-center justify-center w-12 h-full text-gray-500 hover:text-brand rounded-r-full">
<svg class="w-5 h-5" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"></path></svg>
</button>
</div>
</div>
<div class="flex items-center space-x-4 md:space-x-5">
<a href="api_wishlist.php" class="text-gray-600 hover:text-brand transition-colors">
<svg class="w-7 h-7" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M4.318 6.318a4.5 4.5 0 000 6.364L12 20.364l7.682-7.682a4.5 4.5 0 00-6.364-6.364L12 7.636l-1.318-1.318a4.5 4.5 0 00-6.364 0z"></path></svg>
</a>
<a href="<?= isset($_SESSION['role']) ? ($_SESSION['role'] === 'admin' ? 'admin_panel.php' : 'akun.php') : 'login.php' ?>" class="text-gray-600 hover:text-brand transition-colors">
<svg class="w-7 h-7" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M16 7a4 4 0 11-8 0 4 4 0 018 0zM12 14a7 7 0 00-7 7h14a7 7 0 00-7-7z"></path></svg>
</a>
</div>
</div>
</div>
</header>