Álvaro Valenzuela Valdes commited on
Commit
05e0832
·
1 Parent(s): 4c7260e

Simplify search form and remove duplicate keyword field

Browse files
frontend/components/TenderSearch.tsx CHANGED
@@ -178,23 +178,11 @@ export default function TenderSearch({ tenders, onSearch, onAnalyze, forceShowFo
178
  {!forceShowFollowed && (
179
  <form onSubmit={handleSearch} className="relative z-10 space-y-4 animate-in slide-in-from-top-4 duration-500">
180
  <div className="grid grid-cols-1 md:grid-cols-2 xl:grid-cols-3 gap-6">
181
- <div className="space-y-2">
182
- <label className="text-[10px] uppercase tracking-wider text-slate-500 font-bold px-1">Keyword</label>
183
- <input
184
- type="text"
185
- name="keyword"
186
- autoComplete="off"
187
- placeholder="e.g. Software, Cloud..."
188
- className="w-full bg-white/5 border border-white/10 rounded-xl px-4 py-3 text-white placeholder:text-slate-600 focus:outline-none focus:ring-2 focus:ring-purple-500/40 transition-all"
189
- value={keyword}
190
- onChange={(e) => setKeyword(e.target.value)}
191
- />
192
- </div>
193
- <div className="space-y-2">
194
  <label className="text-[10px] uppercase tracking-wider text-slate-500 font-bold px-1">Keyword / Tender Code</label>
195
  <input
196
  type="text"
197
- name="code"
198
  autoComplete="off"
199
  placeholder="e.g. Software or 1509-5-L114"
200
  className="w-full bg-white/5 border border-white/10 rounded-xl px-4 py-3 text-white placeholder:text-slate-600 focus:outline-none focus:ring-2 focus:ring-purple-500/40 transition-all"
 
178
  {!forceShowFollowed && (
179
  <form onSubmit={handleSearch} className="relative z-10 space-y-4 animate-in slide-in-from-top-4 duration-500">
180
  <div className="grid grid-cols-1 md:grid-cols-2 xl:grid-cols-3 gap-6">
181
+ <div className="space-y-2 xl:col-span-2">
 
 
 
 
 
 
 
 
 
 
 
 
182
  <label className="text-[10px] uppercase tracking-wider text-slate-500 font-bold px-1">Keyword / Tender Code</label>
183
  <input
184
  type="text"
185
+ name="keyword"
186
  autoComplete="off"
187
  placeholder="e.g. Software or 1509-5-L114"
188
  className="w-full bg-white/5 border border-white/10 rounded-xl px-4 py-3 text-white placeholder:text-slate-600 focus:outline-none focus:ring-2 focus:ring-purple-500/40 transition-all"