ntl69 commited on
Commit
cc76f6c
·
verified ·
1 Parent(s): 1e0d1ff

add a searching bar

Browse files
Files changed (2) hide show
  1. articles.html +5 -1
  2. index.html +5 -1
articles.html CHANGED
@@ -38,8 +38,12 @@
38
  <a href="/articles" class="text-white hover:text-white transition">Articles</a>
39
  <a href="/categories" class="text-gray-300 hover:text-white transition">Categories</a>
40
  <a href="/about" class="text-gray-300 hover:text-white transition">About</a>
 
 
 
 
41
  </div>
42
- <div class="flex items-center space-x-4">
43
  <button class="md:hidden text-gray-300 focus:outline-none">
44
  <i data-feather="menu"></i>
45
  </button>
 
38
  <a href="/articles" class="text-white hover:text-white transition">Articles</a>
39
  <a href="/categories" class="text-gray-300 hover:text-white transition">Categories</a>
40
  <a href="/about" class="text-gray-300 hover:text-white transition">About</a>
41
+ <div class="relative">
42
+ <input type="text" placeholder="Search..." class="bg-gray-700 text-white px-4 py-2 rounded-full w-64 focus:outline-none focus:ring-2 focus:ring-gray-600">
43
+ <i data-feather="search" class="absolute right-3 top-2.5 text-gray-400"></i>
44
+ </div>
45
  </div>
46
+ <div class="flex items-center space-x-4">
47
  <button class="md:hidden text-gray-300 focus:outline-none">
48
  <i data-feather="menu"></i>
49
  </button>
index.html CHANGED
@@ -40,8 +40,12 @@ NoCap Nation
40
  <a href="#" class="text-gray-300 hover:text-white transition">Articles</a>
41
  <a href="#" class="text-gray-300 hover:text-white transition">Categories</a>
42
  <a href="#" class="text-gray-300 hover:text-white transition">About</a>
 
 
 
 
43
  </div>
44
- <div class="flex items-center space-x-4">
45
  <button class="md:hidden text-gray-300 focus:outline-none" id="mobile-menu-button">
46
  <i data-feather="menu"></i>
47
  </button>
 
40
  <a href="#" class="text-gray-300 hover:text-white transition">Articles</a>
41
  <a href="#" class="text-gray-300 hover:text-white transition">Categories</a>
42
  <a href="#" class="text-gray-300 hover:text-white transition">About</a>
43
+ <div class="relative">
44
+ <input type="text" placeholder="Search..." class="bg-gray-700 text-white px-4 py-2 rounded-full w-64 focus:outline-none focus:ring-2 focus:ring-gray-600">
45
+ <i data-feather="search" class="absolute right-3 top-2.5 text-gray-400"></i>
46
+ </div>
47
  </div>
48
+ <div class="flex items-center space-x-4">
49
  <button class="md:hidden text-gray-300 focus:outline-none" id="mobile-menu-button">
50
  <i data-feather="menu"></i>
51
  </button>