Skip to content

Commit 3c1ff79

Browse files
committed
feat: ✨ new toolbar and searching on repository list
1 parent 6acfdbb commit 3c1ff79

2 files changed

Lines changed: 269 additions & 74 deletions

File tree

Containers/RepoList/RepoList.module.css

Lines changed: 74 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,6 @@
8686
flex-direction: column;
8787
width: 90%;
8888
margin: 5px auto;
89-
padding: 15px;
9089
}
9190

9291
.unfoldButton {
@@ -123,3 +122,77 @@
123122
display: none;
124123
}
125124
}
125+
126+
/* Toolbar */
127+
128+
.toolbar {
129+
display: flex;
130+
justify-content: space-between;
131+
align-items: center;
132+
width: 90%;
133+
margin: 20px auto 10px;
134+
flex-wrap: wrap;
135+
gap: 10px;
136+
}
137+
138+
.searchInput {
139+
padding: 10px 15px;
140+
border: 1px solid #ccc;
141+
border-radius: 8px;
142+
font-size: 14px;
143+
width: 100%;
144+
max-width: 300px;
145+
}
146+
147+
.sortIcons {
148+
display: flex;
149+
gap: 10px;
150+
align-items: center;
151+
}
152+
153+
.icon {
154+
cursor: pointer;
155+
color: #a6a6b8;
156+
transition: transform 0.2s ease;
157+
}
158+
159+
.icon:hover {
160+
transform: scale(1.1);
161+
color: #6d4aff;
162+
}
163+
164+
.iconActive {
165+
color: #6d4aff;
166+
transform: scale(1.2);
167+
}
168+
169+
.searchContainer {
170+
position: relative;
171+
display: flex;
172+
align-items: center;
173+
width: 100%;
174+
max-width: 300px;
175+
}
176+
177+
.searchInput {
178+
width: 100%;
179+
padding: 8px 32px 8px 12px;
180+
border-radius: 8px;
181+
border: 1px solid #ccc;
182+
font-size: 14px;
183+
outline: none;
184+
background-color: white;
185+
}
186+
187+
.clearButton {
188+
position: absolute;
189+
right: 8px;
190+
background: transparent;
191+
border: none;
192+
cursor: pointer;
193+
color: #999;
194+
}
195+
196+
.clearButton:hover {
197+
color: #333;
198+
}

0 commit comments

Comments
 (0)