work on sell page - Follow Up Deployment
Browse files- index.html +19 -2
index.html
CHANGED
|
@@ -36,12 +36,15 @@
|
|
| 36 |
const landingPage = document.getElementById('landing-page');
|
| 37 |
const dealsPage = document.getElementById('deals-page');
|
| 38 |
const categoryPage = document.getElementById('category-page');
|
|
|
|
| 39 |
|
| 40 |
// Get navigation links
|
| 41 |
const dealsNavLink = document.getElementById('deals-nav-link');
|
| 42 |
const mobileDealsNavLink = document.getElementById('mobile-deals-nav-link');
|
| 43 |
const categoriesNavLinks = document.querySelectorAll('[data-nav="categories"]');
|
| 44 |
const mobileCategoriesNavLinks = document.querySelectorAll('[data-nav="mobile-categories"]');
|
|
|
|
|
|
|
| 45 |
|
| 46 |
function showPage(page) {
|
| 47 |
// Hide all pages
|
|
@@ -99,6 +102,20 @@
|
|
| 99 |
showPage('categories');
|
| 100 |
});
|
| 101 |
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 102 |
|
| 103 |
// Deal countdown timer
|
| 104 |
function updateDealCountdown() {
|
|
@@ -152,7 +169,7 @@
|
|
| 152 |
<a href="#" class="border-blue-500 text-gray-900 inline-flex items-center px-1 pt-1 border-b-2 text-sm font-medium">Home</a>
|
| 153 |
<a href="#" data-nav="categories" class="border-transparent text-gray-500 hover:border-gray-300 hover:text-gray-700 inline-flex items-center px-1 pt-1 border-b-2 text-sm font-medium">Categories</a>
|
| 154 |
<a href="#" id="deals-nav-link" class="border-transparent text-gray-500 hover:border-gray-300 hover:text-gray-700 inline-flex items-center px-1 pt-1 border-b-2 text-sm font-medium">Deals</a>
|
| 155 |
-
<a href="#" class="border-transparent text-gray-500 hover:border-gray-300 hover:text-gray-700 inline-flex items-center px-1 pt-1 border-b-2 text-sm font-medium">Sell</a>
|
| 156 |
</div>
|
| 157 |
</div>
|
| 158 |
<div class="hidden sm:ml-6 sm:flex sm:items-center">
|
|
@@ -198,7 +215,7 @@
|
|
| 198 |
<a href="#" class="bg-blue-50 border-blue-500 text-blue-700 block pl-3 pr-4 py-2 border-l-4 text-base font-medium">Home</a>
|
| 199 |
<a href="#" data-nav="mobile-categories" class="border-transparent text-gray-500 hover:bg-gray-50 hover:border-gray-300 hover:text-gray-700 block pl-3 pr-4 py-2 border-l-4 text-base font-medium">Categories</a>
|
| 200 |
<a href="#" id="mobile-deals-nav-link" class="border-transparent text-gray-500 hover:bg-gray-50 hover:border-gray-300 hover:text-gray-700 block pl-3 pr-4 py-2 border-l-4 text-base font-medium">Deals</a>
|
| 201 |
-
<a href="#" class="border-transparent text-gray-500 hover:bg-gray-50 hover:border-gray-300 hover:text-gray-700 block pl-3 pr-4 py-2 border-l-4 text-base font-medium">Sell</a>
|
| 202 |
</div>
|
| 203 |
<div class="pt-4 pb-3 border-t border-gray-200">
|
| 204 |
<div class="flex items-center px-4">
|
|
|
|
| 36 |
const landingPage = document.getElementById('landing-page');
|
| 37 |
const dealsPage = document.getElementById('deals-page');
|
| 38 |
const categoryPage = document.getElementById('category-page');
|
| 39 |
+
const createListingPage = document.getElementById('create-listing-page');
|
| 40 |
|
| 41 |
// Get navigation links
|
| 42 |
const dealsNavLink = document.getElementById('deals-nav-link');
|
| 43 |
const mobileDealsNavLink = document.getElementById('mobile-deals-nav-link');
|
| 44 |
const categoriesNavLinks = document.querySelectorAll('[data-nav="categories"]');
|
| 45 |
const mobileCategoriesNavLinks = document.querySelectorAll('[data-nav="mobile-categories"]');
|
| 46 |
+
const sellNavLinks = document.querySelectorAll('[data-nav="sell"]');
|
| 47 |
+
const mobileSellNavLinks = document.querySelectorAll('[data-nav="mobile-sell"]');
|
| 48 |
|
| 49 |
function showPage(page) {
|
| 50 |
// Hide all pages
|
|
|
|
| 102 |
showPage('categories');
|
| 103 |
});
|
| 104 |
});
|
| 105 |
+
|
| 106 |
+
sellNavLinks.forEach(link => {
|
| 107 |
+
link.addEventListener('click', function(e) {
|
| 108 |
+
e.preventDefault();
|
| 109 |
+
showPage('sell');
|
| 110 |
+
});
|
| 111 |
+
});
|
| 112 |
+
|
| 113 |
+
mobileSellNavLinks.forEach(link => {
|
| 114 |
+
link.addEventListener('click', function(e) {
|
| 115 |
+
e.preventDefault();
|
| 116 |
+
showPage('sell');
|
| 117 |
+
});
|
| 118 |
+
});
|
| 119 |
|
| 120 |
// Deal countdown timer
|
| 121 |
function updateDealCountdown() {
|
|
|
|
| 169 |
<a href="#" class="border-blue-500 text-gray-900 inline-flex items-center px-1 pt-1 border-b-2 text-sm font-medium">Home</a>
|
| 170 |
<a href="#" data-nav="categories" class="border-transparent text-gray-500 hover:border-gray-300 hover:text-gray-700 inline-flex items-center px-1 pt-1 border-b-2 text-sm font-medium">Categories</a>
|
| 171 |
<a href="#" id="deals-nav-link" class="border-transparent text-gray-500 hover:border-gray-300 hover:text-gray-700 inline-flex items-center px-1 pt-1 border-b-2 text-sm font-medium">Deals</a>
|
| 172 |
+
<a href="#" data-nav="sell" class="border-transparent text-gray-500 hover:border-gray-300 hover:text-gray-700 inline-flex items-center px-1 pt-1 border-b-2 text-sm font-medium">Sell</a>
|
| 173 |
</div>
|
| 174 |
</div>
|
| 175 |
<div class="hidden sm:ml-6 sm:flex sm:items-center">
|
|
|
|
| 215 |
<a href="#" class="bg-blue-50 border-blue-500 text-blue-700 block pl-3 pr-4 py-2 border-l-4 text-base font-medium">Home</a>
|
| 216 |
<a href="#" data-nav="mobile-categories" class="border-transparent text-gray-500 hover:bg-gray-50 hover:border-gray-300 hover:text-gray-700 block pl-3 pr-4 py-2 border-l-4 text-base font-medium">Categories</a>
|
| 217 |
<a href="#" id="mobile-deals-nav-link" class="border-transparent text-gray-500 hover:bg-gray-50 hover:border-gray-300 hover:text-gray-700 block pl-3 pr-4 py-2 border-l-4 text-base font-medium">Deals</a>
|
| 218 |
+
<a href="#" data-nav="mobile-sell" class="border-transparent text-gray-500 hover:bg-gray-50 hover:border-gray-300 hover:text-gray-700 block pl-3 pr-4 py-2 border-l-4 text-base font-medium">Sell</a>
|
| 219 |
</div>
|
| 220 |
<div class="pt-4 pb-3 border-t border-gray-200">
|
| 221 |
<div class="flex items-center px-4">
|