Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions views/js/evently/src/CommunityPage.css
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
@media screen and (max-width: 1200px) {
.event-card {
width: calc(50% - 10px);

}

.date-time-container {
Expand Down Expand Up @@ -50,6 +51,7 @@
margin: 0 auto;
border-radius: 5px;
transition: transform 0.2s ease-in-out;

}

.event-card-community:hover {
Expand Down Expand Up @@ -81,6 +83,7 @@
flex-wrap: wrap;
gap: 20px;
padding: 20px;

}

.events-row {
Expand Down
2 changes: 1 addition & 1 deletion views/js/evently/src/CommunityPage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ function CommunityPage() {
if(
searchCategory && searchCategory !== "All"
){
filtered = filtered.filter(item => item.event_type === searchCategory.toLowerCase())
filtered = filtered.filter(item => item.event_type.toLowerCase() === searchCategory.toLowerCase())
}
filtered = filtered.filter((item) =>
item.title.toLowerCase().includes(searchTerm.toLowerCase())
Expand Down
4 changes: 2 additions & 2 deletions views/js/evently/src/CreateEvent.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ function CreateEvent() {
description: DescriptionForm,
contact_info: ContactForm,
public_private: "public",
event_type:EventType,
max_attendees: parseInt(AttendeesForm),
event_type: EventType,
max_attendees: parseInt(AttendeesForm),
image_url: imageUrl,
}),
});
Expand Down
5 changes: 4 additions & 1 deletion views/js/evently/src/SearchBar.css
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
box-sizing: border-box;
display: flex;
height: 5.5vh;
z-index: 9999;
}


Expand All @@ -37,6 +38,7 @@
background-color: var(--purple);
box-shadow: var(--shadow);
cursor: pointer;

}

.dropdown-text {
Expand All @@ -61,7 +63,7 @@
list-style: none;
padding: 0;
margin: 0;
z-index: 1000;

max-height: 200px; /* Limit height for scrolling */
overflow-y: auto; /* Enable scroll for overflow */
transition: all 0.3s ease; /* Smooth opening animation */
Expand All @@ -76,6 +78,7 @@
text-align: left;
border-radius: 10px; /* Rounded corners for items */
transition: background-color 0.2s ease, transform 0.2s ease; /* Add hover effects */

}

.dropdown-list-item:hover {
Expand Down
2 changes: 1 addition & 1 deletion views/js/evently/src/SearchBar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const SearchBar = ({ onSearch }) => {
<li className="dropdown-list-item" onClick={() => selectCategory("Social")}> Social </li>
<li className="dropdown-list-item" onClick={() => selectCategory("Business")}> Business </li>
<li className="dropdown-list-item" onClick={() => selectCategory("Education")}> Education </li>
<li className="dropdown-list-item" onClick={() => selectCategory("Recreation")}> Recreation </li>
<li className="dropdown-list-item" onClick={() => selectCategory("Arts & Recreation")}> Arts & Recreation </li>
</ul>
)}
</div>
Expand Down