-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathheder2.php
141 lines (136 loc) · 4.6 KB
/
heder2.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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Infinity Games - User Header</title>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css">
<style>
/* Custom styles for the header */
body {
background: linear-gradient(to right, #141E30, #243B55);
font-family: 'Poppins', sans-serif;
color: #ffffff;
margin: 0;
}
.header-bar {
background-color: #2c3e50; /* Dark background color */
color: #ffffff; /* White text color */
padding: 10px 0;
position: relative;
}
.header-bar .container {
display: flex;
justify-content: space-between;
align-items: center;
}
.header-bar .site-name {
font-size: 1.5rem;
font-weight: bold;
}
.header-bar .user-profile {
display: flex;
align-items: center;
gap: 10px;
font-size: 1rem;
}
.header-bar .user-profile .username {
display: inline-block;
margin-right: 10px;
font-weight: bold;
}
.header-bar .dropdown-menu {
position: absolute;
top: 100%;
right: 0;
background-color: #2c3e50;
border: 1px solid #ffffff;
padding: 10px;
display: none;
z-index: 1000;
width: 160px; /* Adjust the width of the dropdown menu */
}
.header-bar .dropdown-menu a {
display: block;
color: #ffffff;
text-decoration: none;
margin-bottom: 5px;
}
.header-bar .dropdown-menu a:hover {
text-decoration: underline;
}
.header-bar .my-profile {
position: relative;
}
.header-bar .my-profile .profile-icon {
border-radius: 50%;
background-color: #3498db; /* Profile icon background color */
color: #ffffff; /* Icon color */
width: 40px;
height: 40px;
display: flex;
justify-content: center;
align-items: center;
cursor: pointer;
}
.header-bar .my-profile .profile-icon i {
font-size: 1.2rem;
}
.header-bar .my-profile .dropdown-menu {
position: absolute;
top: 50px; /* Adjust the dropdown position relative to profile icon */
right: 0;
}
.header-bar .my-profile.active .dropdown-menu {
display: block;
}
@media (max-width: 768px) {
.header-bar .container {
flex-direction: column;
align-items: stretch;
}
.header-bar .user-profile {
margin-top: 10px;
justify-content: center;
}
.header-bar .site-name {
margin-bottom: 10px;
}
}
</style>
</head>
<body>
<div class="header-bar">
<div class="container">
<div class="site-name">iGames.com</div>
<div class="user-profile">
<div class="my-profile">
<div class="profile-icon" onclick="toggleDropdown()">
<i class="fa fa-user" aria-hidden="true"></i>
</div>
<div class="dropdown-menu" id="dropdownMenu">
<a href="index.php">Home</a>
<a href="userGame.php">History</a>
<a href="userProfile.php">Account</a>
<a href="#">Help</a>
<a href="logout.php" ">Sign Out</a>
</div>
</div>
<button class="btn btn-primary" role="button" onclick="window.location='useGame.php'">My Games</button>
</div>
</div>
</div>
<!-- Your content here -->
<script>
function toggleDropdown() {
var dropdownMenu = document.getElementById('dropdownMenu');
var profile = document.querySelector('.my-profile');
profile.classList.toggle('active');
}
function signOut() {
console.log('Signing out...');
}
</script>
</body>
</html>