-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathheader.php
88 lines (86 loc) · 3.04 KB
/
header.php
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
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css">
<style>
.header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 10px 20px;
background: linear-gradient(to bottom, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0));
backdrop-filter: blur(10px);
}
.logo {
text-decoration: none;
color: #2874f0; /* Flipkart's blue color */
font-weight: bold;
font-size: 24px;
display: flex;
align-items: center;
}
.logo img {
margin-right: 10px;
}
.icons {
margin-right: 5px;
}
.nav-bar {
background: linear-gradient(90deg, #9bf1fd00, #ffc10700);
backdrop-filter: blur(10px);
padding: 10px 15px;
display: flex;
align-items: center;
justify-content: space-between;
}
.user-card {
background: linear-gradient(45deg, #17a2b885, #ffc10782);
backdrop-filter: blur(10px);
border-radius: 10px;
padding: 10px 15px;
display: flex;
align-items: flex-end;
}
.user-card a {
color: white;
text-decoration: none;
margin-right: 10px;
transition: color 0.3s;
}
.user-card a:hover {
color: #f1c40f;
}
.about-dev-btn {
color: #333;
text-decoration: none;
padding: 0px 7px;
background-color: #f2f2f257;
border: 1px solid #000;
border-radius: 4px;
margin-left: 0px;
font-weight: bold;
}
.about-dev-btn:hover {
background-color: #ddd; /* Button background color on hover */
}
</style>
<header>
<div class="header">
<a href="index.php" class="logo">
<img src="res/logo.png" alt="Logo" width="80" height="80">
WatchKart
</a>
<div class="nav-bar">
<div class="user-card">
<?php
if (!isset($_SESSION["loggedin"]) || $_SESSION["loggedin"] !== true) {
echo '<a href="login.html"><span class="icons"><i class="fas fa-sign-in-alt"></i></span> Log In</a>';
} else {
echo '<a href="user.php"><span class="icons"><i class="fas fa-user"></i></span> '. $_SESSION["first_name"] .' ' . $_SESSION["last_name"].'</a>';
echo '<a href="logout.php"><span class="icons"><i class="fas fa-door-open"></i></span> Log Out</a>';
}
echo '<a href="cart.php"><span class="icons"><i class="fas fa-shopping-cart"></i></span> Cart</a>';
// Adding "About the Developer" button with icon
echo '<a href="https://www.neelanjanchakraborty.tech/" class="about-dev-btn"><span class="icons"><i class="fas fa-info-circle"></i></span> About the Developer</a>';
?>
</div>
</div>
</div>
</header>