Skip to content

Commit 1578d18

Browse files
committed
Successfully added the nav bar & button to the People's page
1 parent 9d55544 commit 1578d18

File tree

2 files changed

+68
-22
lines changed

2 files changed

+68
-22
lines changed

views/js/evently/src/HostList.css

Lines changed: 57 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -16,20 +16,22 @@ body {
1616
}
1717

1818
.host-button {
19-
display: inline-block; /* Ensures it doesn't stretch */
20-
margin: 0 auto; /* Centers it if the parent has a fixed width */
21-
text-align: center;
22-
background-color: #0047ff;
23-
color: #fff;
24-
padding: 10px 20px;
25-
font-size: 1rem;
19+
background-color: #007bff; /* Button background color */
20+
color: #fff; /* Button text color */
21+
border: none; /* Remove border */
22+
padding: 0.75rem 1rem; /* Adjust padding as needed */
2623
border: none;
27-
border-radius: 5px;
24+
border-radius: 5rem; /* Optional: Rounds the button edges */
25+
font-size: 1.2rem;
26+
outline: none;
27+
margin: 2rem;
28+
cursor: pointer; /* Pointer cursor on hover */
29+
transition: background 0.25s;
2830
text-decoration: none;
2931
}
3032

3133
.host-button:hover {
32-
background-color: #0036cc;
34+
background-color: #0056b3; /* Darker shade on hover */
3335
}
3436

3537
table {
@@ -63,7 +65,7 @@ table th, table td {
6365
max-width: 1200px;
6466
margin: 20px auto; /* Centers the grid */
6567
background-color: #d9d9d9;
66-
padding: 30px 10px 140px 20px;
68+
background-attachment: fixed;
6769
}
6870

6971
.accountContainer {
@@ -101,3 +103,48 @@ table th, table td {
101103
}
102104

103105

106+
.nav-bar-container {
107+
display: flex;
108+
justify-content: center;
109+
align-items: center;
110+
width: 100%; /* Full width */
111+
background: #fff; /* Optional: Background color */
112+
margin: 0; /* Remove default body margin if needed */
113+
}
114+
115+
116+
.account-search-bar {
117+
--padding: 14px;
118+
119+
width: max-content;
120+
display: flex;
121+
align-items: center; /* Align items in the navbar vertically */
122+
gap: 8px; /* Optional: Adds spacing between the button and the navbar content */
123+
padding: var(--padding);
124+
border-radius: 28px;
125+
background: #f6f6f6;
126+
transition: background 0.25s;
127+
}
128+
129+
.account-search-bar:focus-within {
130+
background: #f1f1f1;
131+
}
132+
133+
.account-search-bar input {
134+
font-size: 16px;
135+
font-family: 'Lexend', sans-serif;
136+
color: #333333;
137+
margin-left: var(--padding);
138+
outline: none;
139+
border: none;
140+
background: transparent;
141+
flex: 1;
142+
width: 300px;
143+
padding: 0;
144+
margin-bottom: 0;
145+
}
146+
147+
.account-search-input::placeholder {
148+
color: rgba(0, 0, 0, 0.2)
149+
}
150+

views/js/evently/src/HostList.jsx

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,6 @@ function HostList() {
3232
<div className="header">
3333
<h1>Discover New People</h1>
3434
</div>
35-
<Link to="/create-host" className="host-button">
36-
Join now
37-
</Link>
3835

3936
{/* <table>
4037
<thead>
@@ -74,10 +71,14 @@ function HostList() {
7471
*/}
7572

7673

77-
<div className="search-bar">
78-
<button className="search-btn"> 🔍 </button>
79-
<input type="text" placeholder="Start Your Search Here!" />
74+
75+
<div class="nav-bar-container">
76+
<Link to="/create-host" className="host-button">Join now</Link>
77+
<div class="account-search-bar">
78+
<span class="account-search-btn"> 🔍</span>
79+
<input class="account-search-input" type="text" placeholder="Start Your Search Here!" />
8080
</div>
81+
</div>
8182

8283

8384
<div class="peopleSection">
@@ -87,10 +88,10 @@ function HostList() {
8788
<div class="accountInfo">
8889
<img src={profileImage1} alt="Profile picture" className="profile-image" />
8990
</div>
90-
<p>John Doe</p>
91+
<p>Attendee</p>
92+
<h2>John Doe</h2>
93+
9194
</div>
92-
93-
9495

9596
<div class="accountContainer">
9697
<div class="accountInfo">
@@ -113,9 +114,6 @@ function HostList() {
113114
<p>John Doe</p>
114115
</div>
115116

116-
117-
118-
119117
<div class="accountContainer">
120118
<div class="accountInfo">
121119
<img src={profileImage1} alt="Profile picture" className="profile-image" />
@@ -128,6 +126,7 @@ function HostList() {
128126
<img src={profileImage1} alt="Profile picture" className="profile-image" />
129127
</div>
130128
<p>John Doe</p>
129+
131130
</div>
132131

133132
<div class="accountContainer">

0 commit comments

Comments
 (0)