Skip to content

Commit 3bdd25f

Browse files
authored
ListView - new Look (#132)
* fixed summation after long fight with git :! * sorting kinda works - some problems exist * fixed search + filter interaction * sorting is better now / Metallic Materials are the only issue * asc/desc have correct icon now * added favicon * fixed the website name in index.html * ArrowLeft closes the CoursePopup * popup variables moved to the model * popup variables moved to the model * bug fix * prefix matching is preffered in search function * git stash fight * searchbar escape char bug fix * added srot by rating * small design fix - ListView list * small design fix - ListView looks cleaner now --------- Co-authored-by: Kacper Lisik <lisik@kth.se>
1 parent b2f48c2 commit 3bdd25f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

my-app/src/views/ListView.jsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ function ListView(props) {
109109
}
110110

111111
return (
112-
<div className="relative bg-white text-black p-2 flex flex-col gap-3 h-screen">
112+
<div className="relative bg-gray-100 text-black p-2 flex flex-col gap-3 h-screen">
113113
{isLoading ? (
114114
<div className="flex justify-center items-center h-full">
115115
<Quantum size="400" speed="10" color="#000061" />
@@ -129,7 +129,7 @@ function ListView(props) {
129129
<select
130130
value={props.sortBy}
131131
onChange={(e) => props.setSortBy(e.target.value)}
132-
className="bg-white border-2 border-[#000061] text-[#000061] font-semibold py-2 px-4 rounded-lg cursor-pointer hover:bg-blue-50 transition-colors duration-200"
132+
className="bg-white shadow-md text-[#000061] font-semibold py-2 px-4 rounded-lg cursor-pointer hover:bg-blue-50 transition-colors duration-200"
133133
>
134134
<option value="relevance">Sort by Relevance</option>
135135
<option value="name">Sort by Name</option>
@@ -141,7 +141,7 @@ function ListView(props) {
141141

142142
<button
143143
onClick={() => props.setSortDirection(prev => prev === 'asc' ? 'desc' : 'asc')}
144-
className="bg-white border-2 border-[#000061] text-[#000061] font-semibold p-2 rounded-lg cursor-pointer hover:bg-blue-50 transition-colors duration-200"
144+
className="bg-white shadow-md text-[#000061] font-semibold p-2 rounded-lg cursor-pointer hover:bg-blue-50 transition-colors duration-200"
145145
aria-label={`Sort ${props.sortDirection === 'asc' ? 'ascending' : 'descending'}`}
146146
>
147147
{props.sortDirection === 'desc' ? (
@@ -179,7 +179,7 @@ function ListView(props) {
179179
window.history.pushState({}, '', '/' + course.code);
180180
}}
181181
key={course.code}
182-
className="p-5 mb-3 hover:bg-blue-100 flex items-center border border-b-black border-solid w-full rounded-lg cursor-pointer"
182+
className="p-5 mb-3 hover:bg-blue-100 flex items-center bg-white w-full rounded-lg cursor-pointer shadow-md hover:shadow-lg transition-shadow duration-300"
183183
>
184184
<div>
185185
<div className="codeNameContainer" style={{ display: 'flex' }}>

0 commit comments

Comments
 (0)