File size: 13,977 Bytes
d259c1a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <title>{% block title %}Ace Hardware{% endblock %} | Ace Hardware</title>
  <link rel="icon" href="/static/img/favicon.svg" type="image/svg+xml">
  <link rel="stylesheet" href="/static/css/site.css?v=ace-current-42">
</head>
<body data-page="{% block page_id %}page{% endblock %}">
<a class="skip-link" href="#main">Skip to main content</a>

<header class="site-header">
  <div class="utility-bar">
    <div class="shell utility-row">
      <div class="utility-left"></div>
      <div class="utility-right utility-links">
        <a href="/ace-rewards">Ace Rewards</a>
        <a href="/b2b-home">Business Accounts</a>
        <a href="/local-ad">Local Ad</a>
        <a href="/store-locator">Store Locator</a>
      </div>
      </div>
    </div>
  </div>

  <div class="account-bar">
    <div class="shell account-bar-row">
      <a href="/store-locator" id="store-flag" class="store-control">
        <span class="pin-icon" aria-hidden="true">&#9679;</span>
        <span>{% if selected_store %}<small>My Store</small>{{ selected_store.name }}{% elif request.url.path == '/' or request.url.path.endswith('/4826053') or request.url.path == '/departments/plumbing/plumbing-tools' %}<span class="store-primary"><strong>Local Ace Hardware</strong> - Main St</span><span class="store-secondary"><strong>Open</strong> until 5 PM</span>{% elif request.url.path.startswith('/myaccount') %}<span class="store-primary"><strong>Downtown</strong> - Main Market St</span><span class="store-secondary"><strong>Opens today</strong> at 8 AM</span>{% else %}<strong>Find your local store</strong>{% endif %}</span>
      </a>
      <nav class="header-actions" aria-label="Account and cart">
        {% if account %}
          <a class="header-action account-action" href="/myaccount"><img class="user-circle-icon" src="/static/icons/user-circle.svg" alt="" width="24" height="24"><span class="action-text">Hi, {{ account.display_name.split(' ')[0] }}<br><strong>My Account</strong></span></a>
        {% else %}
          <button class="header-action account-action" id="account-panel-btn" type="button" aria-label="Open account menu" aria-expanded="false" aria-controls="account-panel"><img class="user-circle-icon" src="/static/icons/user-circle.svg" alt="" width="24" height="24"><span class="action-text">Hi there!<br><strong>Sign In or Join</strong></span></button>
        {% endif %}
        <a class="header-action cart-action" href="/cart" id="cart-link" aria-label="Cart with {{ cart_count }} items"><span class="action-icon cart-icon" aria-hidden="true"><span class="cart-count {{ 'cart-count-empty' if not cart_count }}" id="cart-count">{{ cart_count }}</span></span><span class="action-text"><strong>Cart</strong></span></a>
      </nav>
    </div>
  </div>

  <div class="main-bar">
    <div class="shell main-bar-row">
      <button class="hamburger" id="nav-toggle" aria-label="Open menu" aria-expanded="false">
        <img src="/static/icons/hamburger.svg" alt="" width="22" height="20">
      </button>
      <a class="logo" href="/" aria-label="Ace Hardware home">
        <img src="/static/brand/ace-logo.svg" alt="Ace Hardware" width="75" height="36">
      </a>
      <nav class="dept-bar" aria-label="Departments">
        <div class="dept-row" id="dept-row">
      <div class="dept-item dept-shop has-menu">
        <button class="dept-link" id="shop-menu-btn" aria-expanded="false">Shop <span class="caret">&#9662;</span></button>
        <div class="mega-menu" id="shop-menu" hidden>
          <div class="mega-cols">
            {% for dept_id, dept in DEPARTMENTS.items() %}
              <div class="mega-col">
                <a class="mega-head" href="/departments/{{ dept_id }}">{{ dept.name }}</a>
                <ul>
                  {% for cat_id, cat in dept.categories.items() %}
                    <li><a href="/departments/{{ dept_id }}/{{ cat_id }}">{{ cat.name }}</a></li>
                  {% endfor %}
                </ul>
              </div>
            {% endfor %}
          </div>
        </div>
      </div>
      <div class="dept-item dept-services has-menu">
        <button class="dept-link" id="services-menu-btn" type="button" data-menu-target="services-menu" aria-expanded="false">Services <span class="caret">&#9662;</span></button>
        <div class="nav-menu" id="services-menu" hidden>
          <a href="/customer-service">Store Services</a>
          <a href="/customer-service?page=shipping">Home Services - Heating &amp; Cooling</a>
          <a href="/customer-service?page=help">Home Services - Plumbing</a>
          <a href="/customer-service?page=help">Home Services - Electrical</a>
          <a href="/customer-service?page=help">Ace Handyman Services</a>
          <a href="/customer-service?page=help">Ace Painting Services</a>
        </div>
      </div>
      <div class="dept-item dept-savings has-menu">
        <button class="dept-link" id="savings-menu-btn" type="button" data-menu-target="savings-menu" aria-expanded="false">Savings <span class="caret">&#9662;</span></button>
        <div class="nav-menu" id="savings-menu" hidden>
          <a href="/sales-specials">Top Sales &amp; Specials</a>
          <a href="/sales-specials?offer=clearance">Clearance</a>
          <a href="/local-ad">Local Ad</a>
          <a href="/customer-service">Rebate Center</a>
        </div>
      </div>
      <div class="dept-item dept-projects has-menu">
        <button class="dept-link" id="projects-menu-btn" type="button" data-menu-target="projects-menu" aria-expanded="false">Projects &amp; Tips <span class="caret">&#9662;</span></button>
        <div class="nav-menu" id="projects-menu" hidden>
          <a href="/departments/lawn-and-garden">Seasonal Projects</a>
          <a href="/departments/paint-and-supplies">The Paint Studio</a>
          <a href="/customer-service">Tips &amp; Advice</a>
        </div>
      </div>
        </div>
      </nav>
      <form class="search" action="/search" method="get" role="search" autocomplete="off">
        <input id="search-input" name="query" type="search" placeholder="{{ 'Search' if request.url.path == '/' or request.url.path.endswith('/4826053') or request.url.path == '/departments/plumbing/plumbing-tools' else 'What can we help you find?' }}" value="{{ query or request.query_params.get('query', '') }}" aria-label="Search products">
        <button type="submit" class="search-btn">Search</button>
        <div class="typeahead" id="typeahead" hidden></div>
      </form>
    </div>
  </div>

  <div class="mobile-drawer" id="mobile-drawer" hidden>
    <div class="drawer-panel">
      <button class="drawer-close" id="drawer-close" aria-label="Close menu">&times;</button>
      <p class="drawer-title">Departments</p>
      <ul class="drawer-list">
        {% for dept_id, dept in DEPARTMENTS.items() %}
          <li><a href="/departments/{{ dept_id }}">{{ dept.name }}</a></li>
        {% endfor %}
        <li><a class="sale-link" href="/sales-specials">Sales &amp; Specials</a></li>
      </ul>
      <p class="drawer-title">Account</p>
      <ul class="drawer-list">
        {% if account %}
          <li><a href="/myaccount">My Account</a></li>
          <li><a href="/myaccount/orders">Orders</a></li>
          <li><a href="/myaccount/saved">Saved items</a></li>
          <li><a href="/myaccount/profile">Profile</a></li>
          <li><a href="/myaccount/addresses">Address book</a></li>
          <li><a href="/myaccount/payment-methods">Payment methods</a></li>
          <li><a href="/myaccount/notifications">Communication preferences</a></li>
          <li><a href="/myaccount/security">Security</a></li>
          <li><a href="/myaccount/rewards">Rewards</a></li>
          <li><a href="/myaccount/privacy">Privacy</a></li>
          <li><form action="/user/logout" method="post">
            <button class="drawer-link-button" type="submit">Sign Out</button>
          </form></li>
        {% else %}
          <li><a href="/user/login">Sign In</a></li>
          <li><a href="/user/register">Create Account</a></li>
        {% endif %}
        <li><a href="/store-locator">Store Locator</a></li>
        <li><a href="/customer-service">Help</a></li>
      </ul>
    </div>
    <div class="drawer-backdrop" id="drawer-backdrop"></div>
  </div>

  {% if not account %}
  <div class="account-panel-shell" id="account-panel" hidden>
    <aside class="account-panel" role="dialog" aria-modal="true" aria-labelledby="account-panel-title">
      <button class="account-panel-close" id="account-panel-close" type="button" aria-label="Close account panel">&times;</button>
      <p class="account-panel-title" id="account-panel-title" role="heading" aria-level="2">Hi there!</p>
      <a class="btn btn-red btn-block" href="/user/login">Sign In</a>
      <a class="btn btn-outline btn-block" href="/user/register">Create Account</a>
      <nav aria-label="Account shortcuts">
        <a href="/myaccount/purchase-history">Purchase History</a>
        <a href="/track-order">Order Status</a>
        <a href="/myaccount/saved">Lists</a>
        <a href="/ace-rewards">Ace Rewards Overview</a>
      </nav>
    </aside>
    <button class="account-panel-backdrop" id="account-panel-backdrop" type="button" aria-label="Close account panel"></button>
  </div>
  {% endif %}
</header>

{% if notice %}<div class="flash flash-notice shell" role="status">{{ notice }}</div>{% endif %}
{% if error %}<div class="flash flash-error shell" role="alert">{{ error }}</div>{% endif %}

<main id="main">
  {% block content %}{% endblock %}
</main>

<footer class="site-footer">
  <div class="shell footer-grid">
    <div>
      <p class="footer-head">Customer Service</p>
      <ul>
        <li><a href="/customer-service?page=contact-us">Contact Us</a></li>
        <li><a href="/track-order">Track Your Order</a></li>
        <li><a href="/customer-service?page=easy-returns">Easy Returns</a></li>
        <li><a href="/customer-service?page=shipping">Shipping, Delivery &amp; Pickup</a></li>
        <li><a href="/customer-service">FAQ</a></li>
        <li><a href="/customer-service?page=contact-us">Product Support</a></li>
      </ul>
    </div>
    <div>
      <p class="footer-head">Shopping</p>
      <ul>
        <li><a href="/store-locator">Store Locator</a></li>
        <li><a href="/local-ad">Local Ad</a></li>
        <li><a href="/brands">Shop by Brand</a></li>
        <li><a href="/gift-cards">Gift Cards</a></li>
        <li><a href="/sales-specials">Sales &amp; Specials</a></li>
        <li><a href="/departments/tools">Shop Tools</a></li>
      </ul>
    </div>
    <div>
      <p class="footer-head">Ace Rewards</p>
      <ul>
        <li><a href="/ace-rewards">Join Ace Rewards</a></li>
        <li><a href="/myaccount/rewards">My Rewards</a></li>
        <li><a href="/sales-specials">Sales &amp; Specials</a></li>
        <li><a href="/myaccount/offers">Your Offers</a></li>
        <li><a href="/myaccount/profile">Member Profile</a></li>
      </ul>
    </div>
    <div>
      <p class="footer-head">About Ace</p>
      <ul>
        <li><a href="/customer-service?page=about">About Us</a></li>
        <li><a href="/b2b-home">Business Accounts</a></li>
        <li><a href="/brands">Our Brands</a></li>
        <li><a href="/store-locator">Local Ace Stores</a></li>
        <li><a href="/local-ad">Local Advertising</a></li>
      </ul>
    </div>
    <div class="footer-signup">
      <p class="footer-head">Get deals in your inbox</p>
      <form action="/myaccount/notifications" method="get">
        <label class="visually-hidden" for="footer-email">Email address</label>
        <input id="footer-email" name="email" type="email" placeholder="Email address" aria-label="Email address" required>
        <button type="submit" class="btn btn-outline-light">JOIN</button>
      </form>
      <p class="footer-fine">Offline demonstration clone. No real email is sent.</p>
    </div>
  </div>
  <div class="shell footer-community">
    <div><strong>Helpful advice, exclusive offers and local inspiration.</strong><p>Connect with your neighborhood Ace.</p></div>
    <div class="footer-social"><a href="/customer-service?page=social">Facebook</a><a href="/customer-service?page=social">Instagram</a><a href="/customer-service?page=social">YouTube</a></div>
  </div>
  <div class="shell footer-legal">
    <nav><a href="/myaccount/privacy">Privacy Policy</a><a href="/customer-service?page=terms">Terms of Use</a><a href="/customer-service?page=accessibility">Accessibility</a></nav>
    <p>&copy; 2026 Ace Hardware. Offline demonstration clone; runs entirely on 127.0.0.1 with no external requests.</p>
  </div>
</footer>

{% if store_prompt %}
<div class="store-modal" id="store-modal">
  <div class="store-modal-card" role="dialog" aria-label="Choose your local store">
    <button class="modal-close" id="store-modal-close" aria-label="Close">&times;</button>
    <h2>Pick up in store today</h2>
    <p>Choose your local Ace to see pickup availability and local pricing.</p>
    <form action="/store-locator" method="get" class="modal-zip-form">
      <label class="visually-hidden" for="modal-zip">ZIP code</label>
      <input id="modal-zip" name="zip" inputmode="numeric" placeholder="ZIP code" maxlength="5">
      <button class="btn btn-red" type="submit">Find Stores</button>
    </form>
    <form action="/store-selection" method="post" class="modal-default-form">
      <input type="hidden" name="store_id" value="6001">
      <input type="hidden" name="next" value="{{ request.url.path }}">
      <button class="btn btn-link" type="submit">Use Loop Ace Hardware (Chicago, 60601)</button>
    </form>
  </div>
  <div class="store-modal-backdrop" id="store-modal-backdrop"></div>
</div>
{% endif %}

<script src="/static/js/site.js?v=ace-current-8" defer></script>
</body>
</html>