Add files using upload-large-folder tool
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- tasks/warbyparker/solution/site/README.md +4 -0
- tasks/warbyparker/solution/site/implementation/Dockerfile +7 -0
- tasks/warbyparker/solution/site/implementation/README.md +5 -0
- tasks/warbyparker/solution/site/implementation/backend/model.json +435 -0
- tasks/warbyparker/solution/site/implementation/backend/runtime.json +74 -0
- tasks/warbyparker/solution/site/implementation/clone/app.py +1647 -0
- tasks/warbyparker/solution/site/implementation/clone/backend/site_backend_integration.py +112 -0
- tasks/warbyparker/solution/site/implementation/clone/data/catalog.py +342 -0
- tasks/warbyparker/solution/site/implementation/clone/data/collections.json +460 -0
- tasks/warbyparker/solution/site/implementation/clone/data/contacts-facets.json +216 -0
- tasks/warbyparker/solution/site/implementation/clone/data/content.json +359 -0
- tasks/warbyparker/solution/site/implementation/clone/data/facets.json +1026 -0
- tasks/warbyparker/solution/site/implementation/clone/data/footer.json +156 -0
- tasks/warbyparker/solution/site/implementation/clone/data/frame-details.json +0 -0
- tasks/warbyparker/solution/site/implementation/clone/data/frames-eyeglasses.json +0 -0
- tasks/warbyparker/solution/site/implementation/clone/data/frames-sunglasses.json +0 -0
- tasks/warbyparker/solution/site/implementation/clone/data/home.json +369 -0
- tasks/warbyparker/solution/site/implementation/clone/data/image-manifest.json +0 -0
- tasks/warbyparker/solution/site/implementation/clone/data/nav.json +522 -0
- tasks/warbyparker/solution/site/implementation/clone/data/pages.json +2132 -0
- tasks/warbyparker/solution/site/implementation/clone/data/prose-pages.json +0 -0
- tasks/warbyparker/solution/site/implementation/clone/data/stores.py +59 -0
- tasks/warbyparker/solution/site/implementation/clone/data/variant-widths.json +456 -0
- tasks/warbyparker/solution/site/implementation/clone/requirements.txt +4 -0
- tasks/warbyparker/solution/site/implementation/clone/static/css/wp.css +928 -0
- tasks/warbyparker/solution/site/implementation/clone/static/img/page/00f5212e17294014.jpg +3 -0
- tasks/warbyparker/solution/site/implementation/clone/static/img/page/03c493b664b23a34.jpg +3 -0
- tasks/warbyparker/solution/site/implementation/clone/static/img/page/0a1ff81012998f24.jpg +3 -0
- tasks/warbyparker/solution/site/implementation/clone/static/img/page/0d2458a37de1b188.jpg +3 -0
- tasks/warbyparker/solution/site/implementation/clone/static/img/page/0e919a21d055366d.jpg +3 -0
- tasks/warbyparker/solution/site/implementation/clone/static/img/page/0f2d1befad146c34.jpg +3 -0
- tasks/warbyparker/solution/site/implementation/clone/static/img/page/137cdc48bb33016a.jpg +3 -0
- tasks/warbyparker/solution/site/implementation/clone/static/img/page/17ee572fd9a0ec1c.jpg +3 -0
- tasks/warbyparker/solution/site/implementation/clone/static/img/page/1f8d29e55d4ff0f7.jpg +3 -0
- tasks/warbyparker/solution/site/implementation/clone/static/img/page/2264bb68084eb9c2.jpg +3 -0
- tasks/warbyparker/solution/site/implementation/clone/static/img/page/24191782bba84e64.jpg +3 -0
- tasks/warbyparker/solution/site/implementation/clone/static/img/page/24be94ae357f3f96.jpg +3 -0
- tasks/warbyparker/solution/site/implementation/clone/static/img/page/2cbfc48dfd7bac62.jpg +3 -0
- tasks/warbyparker/solution/site/implementation/clone/static/img/page/2e385c7e61b53627.jpg +3 -0
- tasks/warbyparker/solution/site/implementation/clone/static/img/page/314ab478fd4d32b6.jpg +3 -0
- tasks/warbyparker/solution/site/implementation/clone/static/img/page/31d04461e4702452.jpg +3 -0
- tasks/warbyparker/solution/site/implementation/clone/static/img/page/38a718a50f83c81d.jpg +3 -0
- tasks/warbyparker/solution/site/implementation/clone/static/img/page/38c947c45e3a5005.jpg +3 -0
- tasks/warbyparker/solution/site/implementation/clone/static/img/page/3f713cc725e1ffd2.jpg +3 -0
- tasks/warbyparker/solution/site/implementation/clone/static/img/page/3ffdb63f8e702dbf.jpg +3 -0
- tasks/warbyparker/solution/site/implementation/clone/static/img/page/46016b129a15d711.jpg +3 -0
- tasks/warbyparker/solution/site/implementation/clone/static/img/page/46b03b6dceec3ab2.jpg +3 -0
- tasks/warbyparker/solution/site/implementation/clone/static/img/page/4ada5031fc130956.jpg +3 -0
- tasks/warbyparker/solution/site/implementation/clone/static/img/page/4e02c93a4586b326.jpg +3 -0
- tasks/warbyparker/solution/site/implementation/clone/static/img/page/5b88094433f8355a.jpg +3 -0
tasks/warbyparker/solution/site/README.md
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Oracle support
|
| 2 |
+
|
| 3 |
+
The materializer assembles the frozen clone, backend, and reference adapter as
|
| 4 |
+
the private implementation. No additional oracle-only behavior is required.
|
tasks/warbyparker/solution/site/implementation/Dockerfile
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
FROM python:3.12-slim
|
| 2 |
+
WORKDIR /srv/reference
|
| 3 |
+
COPY . .
|
| 4 |
+
ENV HOST=0.0.0.0 PORT=8080 DATA_DIR=/tmp/websitebench-warbyparker-reference-data SEED=0 TZ=UTC
|
| 5 |
+
RUN ./compile.sh
|
| 6 |
+
HEALTHCHECK --interval=2s --timeout=3s --retries=30 CMD python3 -c "import urllib.request; urllib.request.urlopen('http://127.0.0.1:8080/healthz', timeout=2)"
|
| 7 |
+
CMD ["./executable"]
|
tasks/warbyparker/solution/site/implementation/README.md
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Direct reference adapter
|
| 2 |
+
|
| 3 |
+
The materializer overlays these ABI files on the frozen Warby Parker clone and
|
| 4 |
+
backend. The same assembled bytes form the private oracle implementation; the
|
| 5 |
+
clone and backend are not duplicated in this authoring directory.
|
tasks/warbyparker/solution/site/implementation/backend/model.json
ADDED
|
@@ -0,0 +1,435 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"schema_version": "offline-clone.backend-model.v1",
|
| 3 |
+
"site_id": "warbyparker",
|
| 4 |
+
"status": "draft",
|
| 5 |
+
"profile": "offline-benchmark",
|
| 6 |
+
"database": {
|
| 7 |
+
"engine": "sqlite",
|
| 8 |
+
"location_policy": "runtime-data-outside-candidate",
|
| 9 |
+
"concurrency_model": "wal-transactional-single-writer",
|
| 10 |
+
"migration_strategy": "versioned-forward-migrations",
|
| 11 |
+
"deterministic_reset": true,
|
| 12 |
+
"restart_persistence": true,
|
| 13 |
+
"site_isolation": "one-database-per-site",
|
| 14 |
+
"proofs": [
|
| 15 |
+
{
|
| 16 |
+
"obligation": "data-location",
|
| 17 |
+
"status": "planned",
|
| 18 |
+
"evidence": []
|
| 19 |
+
},
|
| 20 |
+
{
|
| 21 |
+
"obligation": "schema-migration",
|
| 22 |
+
"status": "planned",
|
| 23 |
+
"evidence": []
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"obligation": "deterministic-reset",
|
| 27 |
+
"status": "planned",
|
| 28 |
+
"evidence": []
|
| 29 |
+
},
|
| 30 |
+
{
|
| 31 |
+
"obligation": "restart-persistence",
|
| 32 |
+
"status": "planned",
|
| 33 |
+
"evidence": []
|
| 34 |
+
},
|
| 35 |
+
{
|
| 36 |
+
"obligation": "backup-restore",
|
| 37 |
+
"status": "planned",
|
| 38 |
+
"evidence": []
|
| 39 |
+
},
|
| 40 |
+
{
|
| 41 |
+
"obligation": "concurrency",
|
| 42 |
+
"status": "planned",
|
| 43 |
+
"evidence": []
|
| 44 |
+
}
|
| 45 |
+
]
|
| 46 |
+
},
|
| 47 |
+
"auth_semantics": {
|
| 48 |
+
"account_database_scope": "site-isolated",
|
| 49 |
+
"credential_storage": "salted-scrypt-hash",
|
| 50 |
+
"session_storage": "opaque-cookie-digest-at-rest",
|
| 51 |
+
"registration_account_creation": "after-email-verification",
|
| 52 |
+
"verification_challenge_storage": "salted-hash",
|
| 53 |
+
"password_reset_enumeration": "indistinguishable-public-response",
|
| 54 |
+
"mail_default": "LOCAL_ONLY",
|
| 55 |
+
"mail_statuses": [
|
| 56 |
+
"LOCAL_ONLY",
|
| 57 |
+
"SMTP_PENDING",
|
| 58 |
+
"SMTP_SENT",
|
| 59 |
+
"SMTP_FAILED"
|
| 60 |
+
],
|
| 61 |
+
"smtp_activation": "explicit-complete-config-only",
|
| 62 |
+
"smtp_delivery_ceiling": 3,
|
| 63 |
+
"rejected_secret_journaling": "forbidden",
|
| 64 |
+
"legacy_write_policy": "read-compatible-write-rejected"
|
| 65 |
+
},
|
| 66 |
+
"common_capabilities": {
|
| 67 |
+
"account_registration": "account-registration",
|
| 68 |
+
"account_sign_in": "account-sign-in",
|
| 69 |
+
"session_lifecycle": "session-lifecycle",
|
| 70 |
+
"password_recovery": "password-recovery",
|
| 71 |
+
"email_delivery": "email-delivery"
|
| 72 |
+
},
|
| 73 |
+
"capabilities": [
|
| 74 |
+
{
|
| 75 |
+
"id": "account-registration",
|
| 76 |
+
"label": "Verified local account registration",
|
| 77 |
+
"priority": "p0",
|
| 78 |
+
"category": "authentication",
|
| 79 |
+
"implementation_status": "planned",
|
| 80 |
+
"entities": [
|
| 81 |
+
{
|
| 82 |
+
"name": "pending-registration",
|
| 83 |
+
"identity": "opaque pending id bound to one browser session",
|
| 84 |
+
"owner_scope": "session",
|
| 85 |
+
"persistence": "durable"
|
| 86 |
+
},
|
| 87 |
+
{
|
| 88 |
+
"name": "local-account",
|
| 89 |
+
"identity": "site-local account id and unique normalized email",
|
| 90 |
+
"owner_scope": "account",
|
| 91 |
+
"persistence": "durable"
|
| 92 |
+
}
|
| 93 |
+
],
|
| 94 |
+
"state_machine": {
|
| 95 |
+
"kind": "challenge-lifecycle",
|
| 96 |
+
"states": [
|
| 97 |
+
"collecting",
|
| 98 |
+
"pending-verification",
|
| 99 |
+
"verified",
|
| 100 |
+
"account-created",
|
| 101 |
+
"expired",
|
| 102 |
+
"locked"
|
| 103 |
+
],
|
| 104 |
+
"transitions": [
|
| 105 |
+
{
|
| 106 |
+
"from": "collecting",
|
| 107 |
+
"to": "pending-verification",
|
| 108 |
+
"trigger": "validated registration request"
|
| 109 |
+
},
|
| 110 |
+
{
|
| 111 |
+
"from": "pending-verification",
|
| 112 |
+
"to": "verified",
|
| 113 |
+
"trigger": "correct unexpired code within attempt budget"
|
| 114 |
+
},
|
| 115 |
+
{
|
| 116 |
+
"from": "verified",
|
| 117 |
+
"to": "account-created",
|
| 118 |
+
"trigger": "transactional account creation and session rotation"
|
| 119 |
+
},
|
| 120 |
+
{
|
| 121 |
+
"from": "pending-verification",
|
| 122 |
+
"to": "expired",
|
| 123 |
+
"trigger": "challenge expiry"
|
| 124 |
+
},
|
| 125 |
+
{
|
| 126 |
+
"from": "pending-verification",
|
| 127 |
+
"to": "locked",
|
| 128 |
+
"trigger": "verification attempt budget exhausted"
|
| 129 |
+
}
|
| 130 |
+
]
|
| 131 |
+
},
|
| 132 |
+
"server_authorities": [
|
| 133 |
+
"The server normalizes identity and hashes password and code.",
|
| 134 |
+
"An account is created only after successful verification.",
|
| 135 |
+
"Duplicate normalized email creation is rejected transactionally."
|
| 136 |
+
],
|
| 137 |
+
"external_effect": "none",
|
| 138 |
+
"journey_ids": [],
|
| 139 |
+
"invariant_ids": [],
|
| 140 |
+
"proofs": {
|
| 141 |
+
"evidence": {},
|
| 142 |
+
"planned": [
|
| 143 |
+
"valid",
|
| 144 |
+
"invalid",
|
| 145 |
+
"duplicate",
|
| 146 |
+
"stale",
|
| 147 |
+
"foreign-owner",
|
| 148 |
+
"unauthorized-role",
|
| 149 |
+
"restart",
|
| 150 |
+
"migration",
|
| 151 |
+
"concurrency"
|
| 152 |
+
],
|
| 153 |
+
"not_applicable": []
|
| 154 |
+
}
|
| 155 |
+
},
|
| 156 |
+
{
|
| 157 |
+
"id": "account-sign-in",
|
| 158 |
+
"label": "Password-based local account sign-in",
|
| 159 |
+
"priority": "p0",
|
| 160 |
+
"category": "authentication",
|
| 161 |
+
"implementation_status": "planned",
|
| 162 |
+
"entities": [
|
| 163 |
+
{
|
| 164 |
+
"name": "local-account",
|
| 165 |
+
"identity": "site-local account id and normalized email",
|
| 166 |
+
"owner_scope": "account",
|
| 167 |
+
"persistence": "durable"
|
| 168 |
+
}
|
| 169 |
+
],
|
| 170 |
+
"state_machine": {
|
| 171 |
+
"kind": "entity-lifecycle",
|
| 172 |
+
"states": [
|
| 173 |
+
"signed-out",
|
| 174 |
+
"identified",
|
| 175 |
+
"authenticated",
|
| 176 |
+
"rejected"
|
| 177 |
+
],
|
| 178 |
+
"transitions": [
|
| 179 |
+
{
|
| 180 |
+
"from": "signed-out",
|
| 181 |
+
"to": "identified",
|
| 182 |
+
"trigger": "normalized email submitted"
|
| 183 |
+
},
|
| 184 |
+
{
|
| 185 |
+
"from": "identified",
|
| 186 |
+
"to": "authenticated",
|
| 187 |
+
"trigger": "constant-time password verification succeeds"
|
| 188 |
+
},
|
| 189 |
+
{
|
| 190 |
+
"from": "identified",
|
| 191 |
+
"to": "rejected",
|
| 192 |
+
"trigger": "credentials are invalid"
|
| 193 |
+
}
|
| 194 |
+
]
|
| 195 |
+
},
|
| 196 |
+
"server_authorities": [
|
| 197 |
+
"The server verifies salted password hashes.",
|
| 198 |
+
"The server rotates the authenticated session.",
|
| 199 |
+
"Client-selected fixture identity is not authentication."
|
| 200 |
+
],
|
| 201 |
+
"external_effect": "none",
|
| 202 |
+
"journey_ids": [],
|
| 203 |
+
"invariant_ids": [],
|
| 204 |
+
"proofs": {
|
| 205 |
+
"evidence": {},
|
| 206 |
+
"planned": [
|
| 207 |
+
"valid",
|
| 208 |
+
"invalid",
|
| 209 |
+
"duplicate",
|
| 210 |
+
"stale",
|
| 211 |
+
"foreign-owner",
|
| 212 |
+
"unauthorized-role",
|
| 213 |
+
"restart",
|
| 214 |
+
"migration",
|
| 215 |
+
"concurrency"
|
| 216 |
+
],
|
| 217 |
+
"not_applicable": []
|
| 218 |
+
}
|
| 219 |
+
},
|
| 220 |
+
{
|
| 221 |
+
"id": "session-lifecycle",
|
| 222 |
+
"label": "Anonymous and authenticated browser sessions",
|
| 223 |
+
"priority": "p0",
|
| 224 |
+
"category": "authentication",
|
| 225 |
+
"implementation_status": "planned",
|
| 226 |
+
"entities": [
|
| 227 |
+
{
|
| 228 |
+
"name": "browser-session",
|
| 229 |
+
"identity": "opaque cookie token with digest persisted at rest",
|
| 230 |
+
"owner_scope": "session",
|
| 231 |
+
"persistence": "durable"
|
| 232 |
+
}
|
| 233 |
+
],
|
| 234 |
+
"state_machine": {
|
| 235 |
+
"kind": "session-lifecycle",
|
| 236 |
+
"states": [
|
| 237 |
+
"anonymous",
|
| 238 |
+
"authenticated",
|
| 239 |
+
"revoked",
|
| 240 |
+
"expired"
|
| 241 |
+
],
|
| 242 |
+
"transitions": [
|
| 243 |
+
{
|
| 244 |
+
"from": "anonymous",
|
| 245 |
+
"to": "authenticated",
|
| 246 |
+
"trigger": "successful sign-in or registration rotates session"
|
| 247 |
+
},
|
| 248 |
+
{
|
| 249 |
+
"from": "authenticated",
|
| 250 |
+
"to": "revoked",
|
| 251 |
+
"trigger": "sign-out or security reset"
|
| 252 |
+
},
|
| 253 |
+
{
|
| 254 |
+
"from": "anonymous",
|
| 255 |
+
"to": "expired",
|
| 256 |
+
"trigger": "session expiry"
|
| 257 |
+
},
|
| 258 |
+
{
|
| 259 |
+
"from": "authenticated",
|
| 260 |
+
"to": "expired",
|
| 261 |
+
"trigger": "session expiry"
|
| 262 |
+
}
|
| 263 |
+
]
|
| 264 |
+
},
|
| 265 |
+
"server_authorities": [
|
| 266 |
+
"Raw session tokens are never stored in the database.",
|
| 267 |
+
"Ownership is resolved from the server-side session record.",
|
| 268 |
+
"Sign-out revokes server-side authority before deleting the cookie."
|
| 269 |
+
],
|
| 270 |
+
"external_effect": "none",
|
| 271 |
+
"journey_ids": [],
|
| 272 |
+
"invariant_ids": [],
|
| 273 |
+
"proofs": {
|
| 274 |
+
"evidence": {},
|
| 275 |
+
"planned": [
|
| 276 |
+
"valid",
|
| 277 |
+
"invalid",
|
| 278 |
+
"duplicate",
|
| 279 |
+
"stale",
|
| 280 |
+
"foreign-owner",
|
| 281 |
+
"unauthorized-role",
|
| 282 |
+
"restart",
|
| 283 |
+
"migration",
|
| 284 |
+
"concurrency"
|
| 285 |
+
],
|
| 286 |
+
"not_applicable": []
|
| 287 |
+
}
|
| 288 |
+
},
|
| 289 |
+
{
|
| 290 |
+
"id": "password-recovery",
|
| 291 |
+
"label": "Enumeration-resistant local password recovery",
|
| 292 |
+
"priority": "p0",
|
| 293 |
+
"category": "authentication",
|
| 294 |
+
"implementation_status": "planned",
|
| 295 |
+
"entities": [
|
| 296 |
+
{
|
| 297 |
+
"name": "password-reset-challenge",
|
| 298 |
+
"identity": "opaque reset id bound to one browser session",
|
| 299 |
+
"owner_scope": "session",
|
| 300 |
+
"persistence": "durable"
|
| 301 |
+
},
|
| 302 |
+
{
|
| 303 |
+
"name": "local-account",
|
| 304 |
+
"identity": "nullable concealed account binding",
|
| 305 |
+
"owner_scope": "account",
|
| 306 |
+
"persistence": "durable"
|
| 307 |
+
}
|
| 308 |
+
],
|
| 309 |
+
"state_machine": {
|
| 310 |
+
"kind": "challenge-lifecycle",
|
| 311 |
+
"states": [
|
| 312 |
+
"requested",
|
| 313 |
+
"verified",
|
| 314 |
+
"consumed",
|
| 315 |
+
"expired",
|
| 316 |
+
"locked"
|
| 317 |
+
],
|
| 318 |
+
"transitions": [
|
| 319 |
+
{
|
| 320 |
+
"from": "requested",
|
| 321 |
+
"to": "verified",
|
| 322 |
+
"trigger": "correct unexpired code within attempt budget"
|
| 323 |
+
},
|
| 324 |
+
{
|
| 325 |
+
"from": "verified",
|
| 326 |
+
"to": "consumed",
|
| 327 |
+
"trigger": "password is replaced and sessions are revoked"
|
| 328 |
+
},
|
| 329 |
+
{
|
| 330 |
+
"from": "requested",
|
| 331 |
+
"to": "expired",
|
| 332 |
+
"trigger": "challenge expiry"
|
| 333 |
+
},
|
| 334 |
+
{
|
| 335 |
+
"from": "requested",
|
| 336 |
+
"to": "locked",
|
| 337 |
+
"trigger": "verification attempt budget exhausted"
|
| 338 |
+
}
|
| 339 |
+
]
|
| 340 |
+
},
|
| 341 |
+
"server_authorities": [
|
| 342 |
+
"Known and unknown emails receive indistinguishable public responses.",
|
| 343 |
+
"Only the server binds a reset flow to an account.",
|
| 344 |
+
"Password replacement revokes prior authenticated sessions."
|
| 345 |
+
],
|
| 346 |
+
"external_effect": "local-only",
|
| 347 |
+
"journey_ids": [],
|
| 348 |
+
"invariant_ids": [],
|
| 349 |
+
"proofs": {
|
| 350 |
+
"evidence": {},
|
| 351 |
+
"planned": [
|
| 352 |
+
"valid",
|
| 353 |
+
"invalid",
|
| 354 |
+
"duplicate",
|
| 355 |
+
"stale",
|
| 356 |
+
"foreign-owner",
|
| 357 |
+
"unauthorized-role",
|
| 358 |
+
"restart",
|
| 359 |
+
"migration",
|
| 360 |
+
"concurrency"
|
| 361 |
+
],
|
| 362 |
+
"not_applicable": []
|
| 363 |
+
}
|
| 364 |
+
},
|
| 365 |
+
{
|
| 366 |
+
"id": "email-delivery",
|
| 367 |
+
"label": "Truthful local verification and recovery mail outbox",
|
| 368 |
+
"priority": "p0",
|
| 369 |
+
"category": "communication",
|
| 370 |
+
"implementation_status": "planned",
|
| 371 |
+
"entities": [
|
| 372 |
+
{
|
| 373 |
+
"name": "mail-outbox-entry",
|
| 374 |
+
"identity": "site-local outbox id and purpose-bound flow id",
|
| 375 |
+
"owner_scope": "system",
|
| 376 |
+
"persistence": "durable"
|
| 377 |
+
}
|
| 378 |
+
],
|
| 379 |
+
"state_machine": {
|
| 380 |
+
"kind": "delivery-lifecycle",
|
| 381 |
+
"states": [
|
| 382 |
+
"local-only",
|
| 383 |
+
"smtp-pending",
|
| 384 |
+
"smtp-sent",
|
| 385 |
+
"smtp-failed"
|
| 386 |
+
],
|
| 387 |
+
"transitions": [
|
| 388 |
+
{
|
| 389 |
+
"from": "local-only",
|
| 390 |
+
"to": "smtp-pending",
|
| 391 |
+
"trigger": "operator enables complete explicit SMTP configuration"
|
| 392 |
+
},
|
| 393 |
+
{
|
| 394 |
+
"from": "smtp-pending",
|
| 395 |
+
"to": "smtp-sent",
|
| 396 |
+
"trigger": "SMTP transport confirms delivery handoff"
|
| 397 |
+
},
|
| 398 |
+
{
|
| 399 |
+
"from": "smtp-pending",
|
| 400 |
+
"to": "smtp-failed",
|
| 401 |
+
"trigger": "delivery attempt fails or ceiling is reached"
|
| 402 |
+
},
|
| 403 |
+
{
|
| 404 |
+
"from": "smtp-failed",
|
| 405 |
+
"to": "smtp-pending",
|
| 406 |
+
"trigger": "bounded idempotent retry below the delivery ceiling"
|
| 407 |
+
}
|
| 408 |
+
]
|
| 409 |
+
},
|
| 410 |
+
"server_authorities": [
|
| 411 |
+
"Offline mode records LOCAL_ONLY and never claims external delivery.",
|
| 412 |
+
"SMTP is disabled unless every required setting is present.",
|
| 413 |
+
"Claim, retry, and startup replay share one delivery ceiling."
|
| 414 |
+
],
|
| 415 |
+
"external_effect": "local-only",
|
| 416 |
+
"journey_ids": [],
|
| 417 |
+
"invariant_ids": [],
|
| 418 |
+
"proofs": {
|
| 419 |
+
"evidence": {},
|
| 420 |
+
"planned": [
|
| 421 |
+
"valid",
|
| 422 |
+
"invalid",
|
| 423 |
+
"duplicate",
|
| 424 |
+
"stale",
|
| 425 |
+
"foreign-owner",
|
| 426 |
+
"unauthorized-role",
|
| 427 |
+
"restart",
|
| 428 |
+
"migration",
|
| 429 |
+
"concurrency"
|
| 430 |
+
],
|
| 431 |
+
"not_applicable": []
|
| 432 |
+
}
|
| 433 |
+
}
|
| 434 |
+
]
|
| 435 |
+
}
|
tasks/warbyparker/solution/site/implementation/backend/runtime.json
ADDED
|
@@ -0,0 +1,74 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"database": {
|
| 3 |
+
"data_dir": "data",
|
| 4 |
+
"engine": "sqlite",
|
| 5 |
+
"filename": "warbyparker.sqlite3",
|
| 6 |
+
"legacy_unbound_migration": false,
|
| 7 |
+
"migration_hook": null,
|
| 8 |
+
"seed_hook": null,
|
| 9 |
+
"volume_identity": "websitebench-warbyparker-data"
|
| 10 |
+
},
|
| 11 |
+
"deployment": {
|
| 12 |
+
"profiles": {
|
| 13 |
+
"cloudflare-review": {
|
| 14 |
+
"mail_adapter": "redis-resend",
|
| 15 |
+
"payment_adapter": "local-sandbox",
|
| 16 |
+
"persistence": "ephemeral-reset"
|
| 17 |
+
},
|
| 18 |
+
"docker-volume": {
|
| 19 |
+
"mail_adapter": "effects-gateway",
|
| 20 |
+
"payment_adapter": "local-sandbox",
|
| 21 |
+
"persistence": "persistent-volume"
|
| 22 |
+
},
|
| 23 |
+
"offline-harbor": {
|
| 24 |
+
"mail_adapter": "local-outbox",
|
| 25 |
+
"payment_adapter": "local-sandbox",
|
| 26 |
+
"persistence": "persistent"
|
| 27 |
+
}
|
| 28 |
+
}
|
| 29 |
+
},
|
| 30 |
+
"mail": {
|
| 31 |
+
"enabled": false,
|
| 32 |
+
"purposes": {},
|
| 33 |
+
"sender": {
|
| 34 |
+
"address_env": "RESEND_FROM_EMAIL",
|
| 35 |
+
"display_name": "Warby Parker"
|
| 36 |
+
}
|
| 37 |
+
},
|
| 38 |
+
"payments": {
|
| 39 |
+
"currency": "USD",
|
| 40 |
+
"default_adapter": "local-sandbox",
|
| 41 |
+
"local_sandbox": {
|
| 42 |
+
"scenarios": [
|
| 43 |
+
{
|
| 44 |
+
"display_label": "Simulated approval",
|
| 45 |
+
"id": "sandbox-approved",
|
| 46 |
+
"outcome": "approved"
|
| 47 |
+
},
|
| 48 |
+
{
|
| 49 |
+
"display_label": "Simulated decline",
|
| 50 |
+
"id": "sandbox-declined",
|
| 51 |
+
"outcome": "declined"
|
| 52 |
+
},
|
| 53 |
+
{
|
| 54 |
+
"display_label": "Simulated retry",
|
| 55 |
+
"id": "sandbox-retry",
|
| 56 |
+
"outcome": "retryable"
|
| 57 |
+
}
|
| 58 |
+
]
|
| 59 |
+
},
|
| 60 |
+
"stripe_test": null
|
| 61 |
+
},
|
| 62 |
+
"schema_version": "websitebench.site-backend-runtime.v1",
|
| 63 |
+
"session": {
|
| 64 |
+
"host_only": true,
|
| 65 |
+
"http_only": true,
|
| 66 |
+
"same_site": "Lax",
|
| 67 |
+
"secure": true
|
| 68 |
+
},
|
| 69 |
+
"site": {
|
| 70 |
+
"id": "warbyparker",
|
| 71 |
+
"label": "Warby Parker",
|
| 72 |
+
"public_origin": "https://warbyparker.offline.invalid"
|
| 73 |
+
}
|
| 74 |
+
}
|
tasks/warbyparker/solution/site/implementation/clone/app.py
ADDED
|
@@ -0,0 +1,1647 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""WebsiteBench offline clone — warbyparker.
|
| 2 |
+
|
| 3 |
+
Every surface here is backed by the local deterministic SQLite backend supplied by
|
| 4 |
+
`websitebench.site_backend` + `websitebench.local_clone_auth`. No source API, no
|
| 5 |
+
iframe, no hotlinked asset, no inert control.
|
| 6 |
+
"""
|
| 7 |
+
from __future__ import annotations
|
| 8 |
+
|
| 9 |
+
import json
|
| 10 |
+
import os
|
| 11 |
+
import re
|
| 12 |
+
import secrets
|
| 13 |
+
import sqlite3
|
| 14 |
+
import sys
|
| 15 |
+
from datetime import date, datetime, timedelta, timezone
|
| 16 |
+
from pathlib import Path
|
| 17 |
+
from urllib.parse import parse_qsl, urlencode, urlparse
|
| 18 |
+
|
| 19 |
+
from fastapi import FastAPI, Form, Request
|
| 20 |
+
from fastapi.responses import HTMLResponse, RedirectResponse
|
| 21 |
+
from fastapi.staticfiles import StaticFiles
|
| 22 |
+
from fastapi.templating import Jinja2Templates
|
| 23 |
+
|
| 24 |
+
ROOT = Path(__file__).resolve().parent
|
| 25 |
+
sys.path.insert(0, str(ROOT / "data"))
|
| 26 |
+
import catalog # noqa: E402
|
| 27 |
+
import stores as store_data # noqa: E402
|
| 28 |
+
|
| 29 |
+
# The diagnostics sandbox mounts clone/ read-only and grants one writable
|
| 30 |
+
# WEBSITEBENCH_DATA_DIR. Bind the site database there when it is present so the
|
| 31 |
+
# same candidate runs both from a developer checkout and inside isolation.
|
| 32 |
+
_sandbox_data = os.environ.get("WEBSITEBENCH_DATA_DIR")
|
| 33 |
+
if _sandbox_data and not os.environ.get("WEBSITEBENCH_SITE_BACKEND_DATABASE"):
|
| 34 |
+
_runtime = json.loads(
|
| 35 |
+
(ROOT.parent / "backend" / "runtime.json").read_text(encoding="utf-8"))
|
| 36 |
+
_db_dir = Path(_sandbox_data) / "site-backend"
|
| 37 |
+
_db_dir.mkdir(parents=True, exist_ok=True)
|
| 38 |
+
os.environ["WEBSITEBENCH_SITE_BACKEND_DATABASE"] = str(
|
| 39 |
+
_db_dir / _runtime["database"]["filename"])
|
| 40 |
+
|
| 41 |
+
from backend.site_backend_integration import open_site_services # noqa: E402
|
| 42 |
+
|
| 43 |
+
SITE_ID = "warbyparker"
|
| 44 |
+
DISPLAY_NAME = "Warby Parker"
|
| 45 |
+
PAGE_SIZE = 10 # source-observed: 10 new frames per ?page=N batch
|
| 46 |
+
|
| 47 |
+
app = FastAPI(title=DISPLAY_NAME)
|
| 48 |
+
app.mount("/static", StaticFiles(directory=ROOT / "static"), name="static")
|
| 49 |
+
templates = Jinja2Templates(directory=str(ROOT / "templates"))
|
| 50 |
+
|
| 51 |
+
BACKEND, AUTH = open_site_services()
|
| 52 |
+
AUTH.ensure_schema()
|
| 53 |
+
COOKIE = BACKEND.session_cookie
|
| 54 |
+
COOKIE_NAME = COOKIE.get("name", "wb_session")
|
| 55 |
+
# The contract names the cookie with a __Host- prefix, which browsers only accept
|
| 56 |
+
# when Secure, Path=/ and no Domain are all present. Honour the declared options
|
| 57 |
+
# rather than hand-rolling them: dropping Secure made every browser silently
|
| 58 |
+
# discard the session, so nothing persisted outside the test client.
|
| 59 |
+
COOKIE_OPTS = {
|
| 60 |
+
"httponly": bool(COOKIE.get("httponly", True)),
|
| 61 |
+
"secure": bool(COOKIE.get("secure", True)),
|
| 62 |
+
"samesite": str(COOKIE.get("samesite", "Lax")).lower(),
|
| 63 |
+
"path": COOKIE.get("path", "/"),
|
| 64 |
+
}
|
| 65 |
+
|
| 66 |
+
|
| 67 |
+
def _set_session(response, token: str):
|
| 68 |
+
response.set_cookie(COOKIE_NAME, token, **COOKIE_OPTS)
|
| 69 |
+
return response
|
| 70 |
+
|
| 71 |
+
DEMO_EMAIL = "shopper@warbyparker.offline.invalid"
|
| 72 |
+
DEMO_PASSWORD = "OfflineClone!2026"
|
| 73 |
+
DEMO_NAME = "Alex"
|
| 74 |
+
|
| 75 |
+
|
| 76 |
+
# --------------------------------------------------------------------------- db
|
| 77 |
+
def _conn() -> sqlite3.Connection:
|
| 78 |
+
c = AUTH.connect()
|
| 79 |
+
c.row_factory = sqlite3.Row
|
| 80 |
+
return c
|
| 81 |
+
|
| 82 |
+
|
| 83 |
+
SCHEMA = """
|
| 84 |
+
CREATE TABLE IF NOT EXISTS cart_item(
|
| 85 |
+
id INTEGER PRIMARY KEY AUTOINCREMENT,
|
| 86 |
+
owner TEXT NOT NULL, category TEXT NOT NULL DEFAULT 'sunglasses',
|
| 87 |
+
model TEXT NOT NULL, color TEXT NOT NULL,
|
| 88 |
+
width TEXT NOT NULL, prescription TEXT NOT NULL, lens_color TEXT NOT NULL,
|
| 89 |
+
addon TEXT, qty INTEGER NOT NULL DEFAULT 1, unit_cents INTEGER NOT NULL,
|
| 90 |
+
created_at TEXT NOT NULL);
|
| 91 |
+
CREATE TABLE IF NOT EXISTS favorite(
|
| 92 |
+
owner TEXT NOT NULL, category TEXT NOT NULL DEFAULT 'sunglasses',
|
| 93 |
+
model TEXT NOT NULL, color TEXT NOT NULL,
|
| 94 |
+
created_at TEXT NOT NULL, PRIMARY KEY(owner, category, model, color));
|
| 95 |
+
CREATE TABLE IF NOT EXISTS wb_order(
|
| 96 |
+
id TEXT PRIMARY KEY, owner TEXT NOT NULL, placed_at TEXT NOT NULL,
|
| 97 |
+
status TEXT NOT NULL, subtotal_cents INTEGER NOT NULL,
|
| 98 |
+
shipping_cents INTEGER NOT NULL, total_cents INTEGER NOT NULL,
|
| 99 |
+
ship_to TEXT NOT NULL, payment_ref TEXT NOT NULL);
|
| 100 |
+
CREATE TABLE IF NOT EXISTS wb_order_line(
|
| 101 |
+
order_id TEXT NOT NULL, category TEXT NOT NULL DEFAULT 'sunglasses',
|
| 102 |
+
model TEXT NOT NULL, color TEXT NOT NULL,
|
| 103 |
+
width TEXT NOT NULL, prescription TEXT NOT NULL, lens_color TEXT NOT NULL,
|
| 104 |
+
addon TEXT, qty INTEGER NOT NULL, unit_cents INTEGER NOT NULL);
|
| 105 |
+
CREATE TABLE IF NOT EXISTS address(
|
| 106 |
+
id INTEGER PRIMARY KEY AUTOINCREMENT, owner TEXT NOT NULL, label TEXT NOT NULL,
|
| 107 |
+
name TEXT NOT NULL, line1 TEXT NOT NULL, city TEXT NOT NULL, state TEXT NOT NULL,
|
| 108 |
+
zip TEXT NOT NULL, is_default INTEGER NOT NULL DEFAULT 0);
|
| 109 |
+
CREATE TABLE IF NOT EXISTS prescription(
|
| 110 |
+
id INTEGER PRIMARY KEY AUTOINCREMENT, owner TEXT NOT NULL, label TEXT NOT NULL,
|
| 111 |
+
issued_on TEXT NOT NULL, expires_on TEXT NOT NULL, od TEXT NOT NULL,
|
| 112 |
+
os TEXT NOT NULL, pd TEXT NOT NULL);
|
| 113 |
+
CREATE TABLE IF NOT EXISTS appointment(
|
| 114 |
+
id TEXT PRIMARY KEY, owner TEXT NOT NULL,
|
| 115 |
+
exam TEXT NOT NULL DEFAULT 'glasses', store TEXT NOT NULL, day TEXT NOT NULL,
|
| 116 |
+
slot TEXT NOT NULL, name TEXT NOT NULL, email TEXT NOT NULL, created_at TEXT NOT NULL);
|
| 117 |
+
CREATE TABLE IF NOT EXISTS newsletter_signup(
|
| 118 |
+
id INTEGER PRIMARY KEY AUTOINCREMENT, email TEXT NOT NULL, topic TEXT NOT NULL,
|
| 119 |
+
created_at TEXT NOT NULL);
|
| 120 |
+
CREATE TABLE IF NOT EXISTS atc_draft(
|
| 121 |
+
owner TEXT NOT NULL, model TEXT NOT NULL, color TEXT NOT NULL,
|
| 122 |
+
width TEXT, prescription TEXT, lens_color TEXT, rx_handy TEXT,
|
| 123 |
+
PRIMARY KEY(owner, model, color));
|
| 124 |
+
"""
|
| 125 |
+
|
| 126 |
+
|
| 127 |
+
def _ensure_schema() -> None:
|
| 128 |
+
c = _conn()
|
| 129 |
+
try:
|
| 130 |
+
c.executescript(SCHEMA)
|
| 131 |
+
# forward migration: model names repeat across categories (percey, esme,
|
| 132 |
+
# zoya...), so a frame reference is only unambiguous with its category.
|
| 133 |
+
cols = {row[1] for row in c.execute("PRAGMA table_info(appointment)")}
|
| 134 |
+
if "exam" not in cols:
|
| 135 |
+
c.execute("ALTER TABLE appointment ADD COLUMN exam TEXT "
|
| 136 |
+
"NOT NULL DEFAULT 'glasses'")
|
| 137 |
+
for table in ("cart_item", "favorite", "wb_order_line"):
|
| 138 |
+
cols = {row[1] for row in c.execute(f"PRAGMA table_info({table})")}
|
| 139 |
+
if "category" not in cols:
|
| 140 |
+
c.execute(f"ALTER TABLE {table} ADD COLUMN category TEXT "
|
| 141 |
+
"NOT NULL DEFAULT 'sunglasses'")
|
| 142 |
+
c.commit()
|
| 143 |
+
_seed(c)
|
| 144 |
+
finally:
|
| 145 |
+
c.close()
|
| 146 |
+
|
| 147 |
+
|
| 148 |
+
def _seed(c: sqlite3.Connection) -> None:
|
| 149 |
+
"""Deterministic demo data for the signed-in shopper. Idempotent."""
|
| 150 |
+
owner = "account:" + DEMO_EMAIL
|
| 151 |
+
if c.execute("SELECT 1 FROM address WHERE owner=?", (owner,)).fetchone():
|
| 152 |
+
return
|
| 153 |
+
c.execute("INSERT INTO address(owner,label,name,line1,city,state,zip,is_default)"
|
| 154 |
+
" VALUES(?,?,?,?,?,?,?,1)",
|
| 155 |
+
(owner, "Home", "Alex Rivera", "1435 Sunset Terrace",
|
| 156 |
+
"Los Angeles", "CA", "90026"))
|
| 157 |
+
c.execute("INSERT INTO address(owner,label,name,line1,city,state,zip,is_default)"
|
| 158 |
+
" VALUES(?,?,?,?,?,?,?,0)",
|
| 159 |
+
(owner, "Work", "Alex Rivera", "620 S Broadway, Suite 4",
|
| 160 |
+
"Los Angeles", "CA", "90014"))
|
| 161 |
+
c.execute("INSERT INTO prescription(owner,label,issued_on,expires_on,od,os,pd)"
|
| 162 |
+
" VALUES(?,?,?,?,?,?,?)",
|
| 163 |
+
(owner, "Distance — Dr. M. Okafor", "2025-11-04", "2027-11-04",
|
| 164 |
+
"-2.25 / -0.50 x 180", "-2.00 / -0.75 x 175", "63"))
|
| 165 |
+
# two historical orders so /my-account/orders is populated, not empty
|
| 166 |
+
seedset = [
|
| 167 |
+
("WP-4820193", "2026-06-12", "Delivered",
|
| 168 |
+
[("sunglasses", "esme", "sesame-tortoise", "medium", "single-vision",
|
| 169 |
+
"included", None, 1, 19500)]),
|
| 170 |
+
("WP-4913774", "2026-08-02", "In transit",
|
| 171 |
+
[("sunglasses", "arlo", "polished-gold", "medium", "non-prescription",
|
| 172 |
+
"customize", None, 1, 19500),
|
| 173 |
+
("sunglasses", "bix", "umber-crystal", "medium", "non-prescription",
|
| 174 |
+
"included", "clean-my-lenses-kit", 1, 11500)]),
|
| 175 |
+
]
|
| 176 |
+
for oid, day, status, lines in seedset:
|
| 177 |
+
sub = sum(q * u for *_r, q, u in lines)
|
| 178 |
+
c.execute("INSERT INTO wb_order(id,owner,placed_at,status,subtotal_cents,"
|
| 179 |
+
"shipping_cents,total_cents,ship_to,payment_ref) VALUES(?,?,?,?,?,?,?,?,?)",
|
| 180 |
+
(oid, owner, day, status, sub, 0, sub,
|
| 181 |
+
"1435 Sunset Terrace, Los Angeles, CA 90026", "sandbox-approved"))
|
| 182 |
+
for ln in lines:
|
| 183 |
+
c.execute("INSERT INTO wb_order_line(order_id,category,model,color,width,"
|
| 184 |
+
"prescription,lens_color,addon,qty,unit_cents)"
|
| 185 |
+
" VALUES(?,?,?,?,?,?,?,?,?,?)", (oid, *ln))
|
| 186 |
+
for cat, m, col in (("sunglasses", "barkley", "azure-crystal"),
|
| 187 |
+
("sunglasses", "zoya", "lilypad-tortoise")):
|
| 188 |
+
c.execute("INSERT OR IGNORE INTO favorite(owner,category,model,color,created_at)"
|
| 189 |
+
" VALUES(?,?,?,?,?)", (owner, cat, m, col, "2026-08-01"))
|
| 190 |
+
c.commit()
|
| 191 |
+
|
| 192 |
+
|
| 193 |
+
try:
|
| 194 |
+
AUTH.seed_account(subject_id="warbyparker-shopper", email=DEMO_EMAIL,
|
| 195 |
+
display_name=DEMO_NAME, password=DEMO_PASSWORD,
|
| 196 |
+
email_verified=True)
|
| 197 |
+
except Exception:
|
| 198 |
+
pass
|
| 199 |
+
_ensure_schema()
|
| 200 |
+
|
| 201 |
+
|
| 202 |
+
# ------------------------------------------------------------------- session
|
| 203 |
+
def _account_view(account: dict | None) -> dict:
|
| 204 |
+
"""The auth store exposes `email_normalized` / `display_name`; templates use
|
| 205 |
+
`email` and `name`."""
|
| 206 |
+
if not account:
|
| 207 |
+
return {}
|
| 208 |
+
return {"email": account.get("email_normalized"),
|
| 209 |
+
"name": account.get("display_name") or DEMO_NAME,
|
| 210 |
+
"account_id": account.get("account_id")}
|
| 211 |
+
|
| 212 |
+
|
| 213 |
+
def _session(request: Request) -> tuple[str, dict, str]:
|
| 214 |
+
token = request.cookies.get(COOKIE_NAME)
|
| 215 |
+
token, info = AUTH.ensure_session(token)
|
| 216 |
+
account = _account_view((info or {}).get("account"))
|
| 217 |
+
owner = ("account:" + account["email"]) if account.get("email") \
|
| 218 |
+
else "session:" + AUTH.session_owner_digest(token)
|
| 219 |
+
return token, account, owner
|
| 220 |
+
|
| 221 |
+
|
| 222 |
+
def _render(request: Request, template: str, ctx: dict, token: str,
|
| 223 |
+
status: int = 200) -> HTMLResponse:
|
| 224 |
+
ctx.setdefault("request", request)
|
| 225 |
+
ctx.setdefault("display_name", DISPLAY_NAME)
|
| 226 |
+
resp = templates.TemplateResponse(request, template, ctx, status_code=status)
|
| 227 |
+
_set_session(resp, token)
|
| 228 |
+
return resp
|
| 229 |
+
|
| 230 |
+
|
| 231 |
+
def _source_page(request: Request, path: str, token: str, account: dict, owner: str):
|
| 232 |
+
"""Render an information page from the source's own captured copy."""
|
| 233 |
+
page = SOURCE_PAGES.get(path)
|
| 234 |
+
if page:
|
| 235 |
+
ctx = _base(request, account, owner)
|
| 236 |
+
ctx.update(page=page, title=page.get("title") or path.strip("/").title())
|
| 237 |
+
return _render(request, "source_page.html", ctx, token)
|
| 238 |
+
prose = PROSE_PAGES.get(path)
|
| 239 |
+
if prose:
|
| 240 |
+
ctx = _base(request, account, owner)
|
| 241 |
+
ctx.update(page=prose, title=prose.get("title") or path.strip("/").title())
|
| 242 |
+
return _render(request, "prose_page.html", ctx, token)
|
| 243 |
+
return None
|
| 244 |
+
|
| 245 |
+
|
| 246 |
+
def _money(cents: int) -> str:
|
| 247 |
+
return f"${cents / 100:,.2f}"
|
| 248 |
+
|
| 249 |
+
|
| 250 |
+
def _cart_rows(owner: str) -> list[dict]:
|
| 251 |
+
c = _conn()
|
| 252 |
+
try:
|
| 253 |
+
rows = c.execute("SELECT * FROM cart_item WHERE owner=? ORDER BY id", (owner,)).fetchall()
|
| 254 |
+
finally:
|
| 255 |
+
c.close()
|
| 256 |
+
out = []
|
| 257 |
+
for r in rows:
|
| 258 |
+
f, v = catalog.variant(r["model"], r["color"], r["category"])
|
| 259 |
+
if not f or not v:
|
| 260 |
+
continue
|
| 261 |
+
out.append({**dict(r), "frame": f, "variant": v,
|
| 262 |
+
"line_cents": r["unit_cents"] * r["qty"]})
|
| 263 |
+
return out
|
| 264 |
+
|
| 265 |
+
|
| 266 |
+
def _cart_count(owner: str) -> int:
|
| 267 |
+
c = _conn()
|
| 268 |
+
try:
|
| 269 |
+
n = c.execute("SELECT COALESCE(SUM(qty),0) n FROM cart_item WHERE owner=?",
|
| 270 |
+
(owner,)).fetchone()["n"]
|
| 271 |
+
finally:
|
| 272 |
+
c.close()
|
| 273 |
+
return int(n or 0)
|
| 274 |
+
|
| 275 |
+
|
| 276 |
+
def _base(request: Request, account: dict, owner: str) -> dict:
|
| 277 |
+
return {"account": account, "cart_count": _cart_count(owner),
|
| 278 |
+
"path": request.url.path, "money": _money, "nav": NAV, "footer": FOOTER,
|
| 279 |
+
"rich": _rich, "plain": _plain}
|
| 280 |
+
|
| 281 |
+
|
| 282 |
+
# ---------------------------------------------------------------- navigation
|
| 283 |
+
# transcribed verbatim from the source mega menus (see evidence/source/capture-log.md)
|
| 284 |
+
NAV = json.loads((ROOT / "data" / "nav.json").read_text())
|
| 285 |
+
FOOTER = json.loads((ROOT / "data" / "footer.json").read_text())
|
| 286 |
+
|
| 287 |
+
|
| 288 |
+
# ------------------------------------------------------------------ faceting
|
| 289 |
+
# The facet vocabulary, option copy and query parameters all come from the
|
| 290 |
+
# source's own collection payload (catalog.FACETS / catalog.facet_groups).
|
| 291 |
+
PATH_FACETS = {
|
| 292 |
+
"women": ("gender", "F"), "men": ("gender", "M"),
|
| 293 |
+
"square": ("shapes", "Square"), "rectangle": ("shapes", "Rectangle"),
|
| 294 |
+
"round": ("shapes", "Round"), "oval": ("shapes", "Oval"),
|
| 295 |
+
"cat-eye": ("shapes", "Cat-eye"), "geometric": ("shapes", "Geometric"),
|
| 296 |
+
"aviators": ("shapes", "Aviator"), "aviator": ("shapes", "Aviator"),
|
| 297 |
+
"low-bridge": ("bridgeFit", "lowBridge"),
|
| 298 |
+
}
|
| 299 |
+
# Lens-type routes are catalog-wide landing pages on the source, not facets.
|
| 300 |
+
LENS_ROUTES = {"non-prescription", "prescription", "progressive", "progressives",
|
| 301 |
+
"single-vision", "readers", "blue-light", "anti-fatigue",
|
| 302 |
+
"light-responsive", "tinted", "polarized"}
|
| 303 |
+
|
| 304 |
+
|
| 305 |
+
def _qs(request: Request, **over) -> str:
|
| 306 |
+
q = []
|
| 307 |
+
for k, v in request.query_params.multi_items():
|
| 308 |
+
if k in over or k == "page":
|
| 309 |
+
continue
|
| 310 |
+
q.append((k, v))
|
| 311 |
+
for k, v in over.items():
|
| 312 |
+
if v not in ("", None):
|
| 313 |
+
q.append((k, str(v)))
|
| 314 |
+
return ("?" + urlencode(q)) if q else ""
|
| 315 |
+
|
| 316 |
+
|
| 317 |
+
def _toggle(request: Request, facet: str, value: str) -> str:
|
| 318 |
+
"""Source facets are checkboxes: clicking an active option removes it."""
|
| 319 |
+
q = [(k, v) for k, v in request.query_params.multi_items() if k != "page"]
|
| 320 |
+
if (facet, value) in q:
|
| 321 |
+
q = [kv for kv in q if kv != (facet, value)]
|
| 322 |
+
else:
|
| 323 |
+
q.append((facet, value))
|
| 324 |
+
return ("?" + urlencode(q)) if q else "?"
|
| 325 |
+
|
| 326 |
+
|
| 327 |
+
def _active(request: Request, facet: str, value: str) -> bool:
|
| 328 |
+
return value in request.query_params.getlist(facet)
|
| 329 |
+
|
| 330 |
+
|
| 331 |
+
# ---------------------------------------------------------------------- home
|
| 332 |
+
@app.get("/healthz")
|
| 333 |
+
def healthz():
|
| 334 |
+
return {"ok": True, "site_id": SITE_ID}
|
| 335 |
+
|
| 336 |
+
|
| 337 |
+
# The home page's module list, headings, imagery and CTAs as the source ships
|
| 338 |
+
# them; the frame carousels are filled from the local catalog.
|
| 339 |
+
HOME = json.loads((ROOT / "data" / "home.json").read_text(encoding="utf-8"))
|
| 340 |
+
# The source writes its own copy with a little markup. Keep exactly the tags it
|
| 341 |
+
# uses for structure and emphasis; escape everything else, so captured copy can
|
| 342 |
+
# never inject anything into the clone.
|
| 343 |
+
_ALLOWED = re.compile(
|
| 344 |
+
r"</?(?:br|i|b|em|strong|u|sup|sub|ul|ol|li|p|span|div|h[34])\s*/?>"
|
| 345 |
+
r"|<a href=\"(/[^\"<>]*)\">|</a>", re.I)
|
| 346 |
+
_ENTITIES = {" ": " ", "&": "&", """: '"', "'": "'",
|
| 347 |
+
"'": "'", "’": "\u2019", "‘": "\u2018",
|
| 348 |
+
"—": "\u2014", "–": "\u2013", "…": "\u2026",
|
| 349 |
+
"<": "<", ">": ">"}
|
| 350 |
+
|
| 351 |
+
|
| 352 |
+
def _entities(text: str) -> str:
|
| 353 |
+
for name, char in _ENTITIES.items():
|
| 354 |
+
text = text.replace(name, char)
|
| 355 |
+
return text
|
| 356 |
+
|
| 357 |
+
|
| 358 |
+
def _rich(text: str | None) -> str:
|
| 359 |
+
"""Keep the source's own markup for structure and emphasis, escape the rest."""
|
| 360 |
+
if not text:
|
| 361 |
+
return ""
|
| 362 |
+
kept: list[str] = []
|
| 363 |
+
|
| 364 |
+
def stash(m: re.Match) -> str:
|
| 365 |
+
tag = m.group(0)
|
| 366 |
+
if m.group(1): # only first-party relative links
|
| 367 |
+
tag = f'<a href="{m.group(1)}">'
|
| 368 |
+
kept.append(tag)
|
| 369 |
+
return f"\x00{len(kept) - 1}\x00"
|
| 370 |
+
|
| 371 |
+
staged = _ALLOWED.sub(stash, _entities(text))
|
| 372 |
+
staged = (staged.replace("&", "&").replace("<", "<")
|
| 373 |
+
.replace(">", ">").replace('"', """))
|
| 374 |
+
for i, tag in enumerate(kept):
|
| 375 |
+
staged = staged.replace(f"\x00{i}\x00", tag)
|
| 376 |
+
return staged
|
| 377 |
+
|
| 378 |
+
|
| 379 |
+
def _plain(text: str | None) -> str:
|
| 380 |
+
"""Headings carry no markup on the source's rendered page."""
|
| 381 |
+
if not text:
|
| 382 |
+
return ""
|
| 383 |
+
return re.sub(r"\s+", " ", re.sub(r"<[^>]+>", " ", _entities(text))).strip()
|
| 384 |
+
|
| 385 |
+
|
| 386 |
+
def _carousel_frames(query: str | None, limit: int = 8) -> list[dict]:
|
| 387 |
+
"""Fill a home carousel from the parts of the source's own service query this
|
| 388 |
+
catalog can honour (frame kind and price). Merchandising predicates the
|
| 389 |
+
payload carries no field for (merch=new-arrival, rxNeeds=...) are recorded as
|
| 390 |
+
unavailable in scope/claims.jsonl rather than faked."""
|
| 391 |
+
kinds, prices = set(), set()
|
| 392 |
+
for key, value in parse_qsl(urlparse(query or "").query):
|
| 393 |
+
if key == "kind":
|
| 394 |
+
kinds.add({"eyeGlasses": "eyeglasses",
|
| 395 |
+
"sunGlasses": "sunglasses"}.get(value, value))
|
| 396 |
+
elif key == "prices" and value.isdigit():
|
| 397 |
+
prices.add(int(value))
|
| 398 |
+
picked = [f for f in catalog.FRAMES
|
| 399 |
+
if (not kinds or f["category"] in kinds)
|
| 400 |
+
and (not prices or f["price"] in prices)]
|
| 401 |
+
return picked[:limit]
|
| 402 |
+
|
| 403 |
+
|
| 404 |
+
@app.get("/", response_class=HTMLResponse)
|
| 405 |
+
def home(request: Request):
|
| 406 |
+
token, account, owner = _session(request)
|
| 407 |
+
ctx = _base(request, account, owner)
|
| 408 |
+
ctx.update(modules=HOME, carousel_frames=_carousel_frames,
|
| 409 |
+
signed_up=request.query_params.get("signup") == "1")
|
| 410 |
+
return _render(request, "home.html", ctx, token)
|
| 411 |
+
|
| 412 |
+
|
| 413 |
+
# ---------------------------------------------------------------- collection
|
| 414 |
+
def _collection(request: Request, category: str, facet: str | None,
|
| 415 |
+
page: int, sort: str):
|
| 416 |
+
token, account, owner = _session(request)
|
| 417 |
+
frames = [f for f in catalog.FRAMES if f["category"] == category]
|
| 418 |
+
landing = None
|
| 419 |
+
if facet:
|
| 420 |
+
if facet in catalog.__dict__ and False: # pragma: no cover
|
| 421 |
+
pass
|
| 422 |
+
if facet in PATH_FACETS:
|
| 423 |
+
key, value = PATH_FACETS[facet]
|
| 424 |
+
frames = [f for f in frames
|
| 425 |
+
if catalog.matches(f, _Single(key, value))]
|
| 426 |
+
landing = facet
|
| 427 |
+
elif facet in LENS_ROUTES:
|
| 428 |
+
landing = facet # catalog-wide lens landing
|
| 429 |
+
else:
|
| 430 |
+
return _not_found(request, token, account, owner)
|
| 431 |
+
|
| 432 |
+
params = request.query_params
|
| 433 |
+
frames = [f for f in frames if catalog.matches(f, params)]
|
| 434 |
+
frames = catalog.sorted_frames(frames, sort)
|
| 435 |
+
|
| 436 |
+
total = len(frames)
|
| 437 |
+
pages = max(1, (total + PAGE_SIZE - 1) // PAGE_SIZE)
|
| 438 |
+
page = max(1, min(page, pages))
|
| 439 |
+
shown = frames[: page * PAGE_SIZE] # source behaviour: ?page=N is cumulative
|
| 440 |
+
|
| 441 |
+
# Facet counts are computed against the whole category so an option never
|
| 442 |
+
# disappears just because another facet is active; an option that can never
|
| 443 |
+
# match anything in this catalog is dropped rather than shipped inert.
|
| 444 |
+
universe = [f for f in catalog.FRAMES if f["category"] == category]
|
| 445 |
+
if landing and landing in PATH_FACETS:
|
| 446 |
+
key, value = PATH_FACETS[landing]
|
| 447 |
+
universe = [f for f in universe if catalog.matches(f, _Single(key, value))]
|
| 448 |
+
groups = []
|
| 449 |
+
for g in catalog.facet_groups(category):
|
| 450 |
+
items = []
|
| 451 |
+
for it in g["items"]:
|
| 452 |
+
on = _active(request, it["facet"], it["value"])
|
| 453 |
+
hits = sum(1 for f in universe
|
| 454 |
+
if catalog.matches(f, _Single(it["facet"], it["value"])))
|
| 455 |
+
if not hits and not on:
|
| 456 |
+
continue
|
| 457 |
+
items.append({**it, "count": hits,
|
| 458 |
+
"label": (it["text"] or "").replace("$$", "$"),
|
| 459 |
+
"href": _toggle(request, it["facet"], it["value"]),
|
| 460 |
+
"on": on})
|
| 461 |
+
if items:
|
| 462 |
+
groups.append({**g, "items": items})
|
| 463 |
+
|
| 464 |
+
ctx = _base(request, account, owner)
|
| 465 |
+
ctx.update(category=category, frames=shown, total=total, page=page, pages=pages,
|
| 466 |
+
sort=sort, sorts=catalog.SORTS, facet_groups=groups, landing=landing,
|
| 467 |
+
qs=_qs, source_total=catalog.SOURCE_TOTALS.get(category),
|
| 468 |
+
has_filters=any(k != "page" and k != "sort"
|
| 469 |
+
for k in request.query_params.keys()),
|
| 470 |
+
title=f"{category.title()}")
|
| 471 |
+
return _render(request, "collection.html", ctx, token)
|
| 472 |
+
|
| 473 |
+
|
| 474 |
+
class _Single:
|
| 475 |
+
"""Minimal multi-dict shim so one (facet, value) pair can reuse catalog.matches."""
|
| 476 |
+
|
| 477 |
+
def __init__(self, key: str, value: str) -> None:
|
| 478 |
+
self._key, self._value = key, value
|
| 479 |
+
|
| 480 |
+
def getlist(self, key: str) -> list[str]:
|
| 481 |
+
return [self._value] if key == self._key else []
|
| 482 |
+
|
| 483 |
+
|
| 484 |
+
@app.get("/sunglasses", response_class=HTMLResponse)
|
| 485 |
+
def sunglasses(request: Request, page: int = 1, sort: str = "featured"):
|
| 486 |
+
return _collection(request, "sunglasses", None, page, sort)
|
| 487 |
+
|
| 488 |
+
|
| 489 |
+
@app.get("/eyeglasses", response_class=HTMLResponse)
|
| 490 |
+
def eyeglasses(request: Request, page: int = 1, sort: str = "featured"):
|
| 491 |
+
return _collection(request, "eyeglasses", None, page, sort)
|
| 492 |
+
|
| 493 |
+
|
| 494 |
+
@app.get("/sunglasses/{facet}", response_class=HTMLResponse)
|
| 495 |
+
def sunglasses_facet(request: Request, facet: str, page: int = 1,
|
| 496 |
+
sort: str = "featured"):
|
| 497 |
+
if facet == "lenses":
|
| 498 |
+
return _lens_guide(request, "sunglasses")
|
| 499 |
+
return _collection(request, "sunglasses", facet, page, sort)
|
| 500 |
+
|
| 501 |
+
|
| 502 |
+
@app.get("/eyeglasses/{facet}", response_class=HTMLResponse)
|
| 503 |
+
def eyeglasses_facet(request: Request, facet: str, page: int = 1,
|
| 504 |
+
sort: str = "featured"):
|
| 505 |
+
if facet == "lenses":
|
| 506 |
+
return _lens_guide(request, "eyeglasses")
|
| 507 |
+
return _collection(request, "eyeglasses", facet, page, sort)
|
| 508 |
+
|
| 509 |
+
|
| 510 |
+
def _lens_guide(request: Request, category: str):
|
| 511 |
+
token, account, owner = _session(request)
|
| 512 |
+
captured = _source_page(request, f"/{category}/lenses", token, account, owner)
|
| 513 |
+
if captured is not None:
|
| 514 |
+
return captured
|
| 515 |
+
ctx = _base(request, account, owner)
|
| 516 |
+
ctx.update(category=category, tiers=catalog.PRESCRIPTIONS,
|
| 517 |
+
lens_colors=catalog.LENS_COLORS,
|
| 518 |
+
title=f"{category.title()} lens guide")
|
| 519 |
+
return _render(request, "lens_guide.html", ctx, token)
|
| 520 |
+
|
| 521 |
+
|
| 522 |
+
# ----------------------------------------------------------------------- pdp
|
| 523 |
+
@app.get("/{category}/{model}/{color}", response_class=HTMLResponse)
|
| 524 |
+
def pdp(request: Request, category: str, model: str, color: str,
|
| 525 |
+
w: str | None = None):
|
| 526 |
+
token, account, owner = _session(request)
|
| 527 |
+
if category not in ("sunglasses", "eyeglasses"):
|
| 528 |
+
return _not_found(request, token, account, owner)
|
| 529 |
+
frame, var = catalog.variant(model, color, category)
|
| 530 |
+
if not frame or not var:
|
| 531 |
+
return _not_found(request, token, account, owner)
|
| 532 |
+
widths = var["widths"] or frame["widths"]
|
| 533 |
+
# Dimensions were captured from each model's default-colour PDP, so a width
|
| 534 |
+
# only another colour offers may have none. Default to a width we can fully
|
| 535 |
+
# describe; the measurement block is simply omitted for the others.
|
| 536 |
+
measured = [x for x in widths if x in frame["measurements"]]
|
| 537 |
+
# the source lands on Medium where the colour offers it
|
| 538 |
+
preferred = next((x for x in ("medium", *measured, *widths) if x in widths
|
| 539 |
+
and (x in frame["measurements"] or not measured)), widths[0])
|
| 540 |
+
width = w if w in widths else preferred
|
| 541 |
+
c = _conn()
|
| 542 |
+
try:
|
| 543 |
+
fav = c.execute("SELECT 1 FROM favorite WHERE owner=? AND category=? "
|
| 544 |
+
"AND model=? AND color=?",
|
| 545 |
+
(owner, category, model, color)).fetchone() is not None
|
| 546 |
+
finally:
|
| 547 |
+
c.close()
|
| 548 |
+
same_cat = [f for f in catalog.FRAMES
|
| 549 |
+
if f["category"] == category and f["model"] != model]
|
| 550 |
+
similar = [f for f in same_cat if f["shape"] == frame["shape"]][:6] or same_cat[:6]
|
| 551 |
+
ctx = _base(request, account, owner)
|
| 552 |
+
ctx.update(frame=frame, variant=var, width=width, widths=widths,
|
| 553 |
+
is_fav=fav, similar=similar, width_label=catalog.WIDTH_LABEL,
|
| 554 |
+
material_name=catalog.MATERIAL_NAME.get(frame["material"], "Acetate"),
|
| 555 |
+
bridge_label=catalog.BRIDGE_LABEL.get(frame["bridge"], "Standard bridge"),
|
| 556 |
+
gender_label=catalog.GENDER_LABEL.get(frame["gender"], "Unisex"),
|
| 557 |
+
measurements=frame["measurements"].get(width),
|
| 558 |
+
measure_labels=catalog.MEASURE_LABELS,
|
| 559 |
+
tiers=catalog.PRESCRIPTIONS,
|
| 560 |
+
title=f"{frame['name']} {category.title()} in {var['name']} — "
|
| 561 |
+
f"{catalog.WIDTH_LABEL[width]}")
|
| 562 |
+
return _render(request, "pdp.html", ctx, token)
|
| 563 |
+
|
| 564 |
+
|
| 565 |
+
# -------------------------------------------------------------- atc wizard
|
| 566 |
+
# Sunglasses start at the width step; eyeglasses are asked about a prescription
|
| 567 |
+
# first, as the source does.
|
| 568 |
+
ATC_STEPS_SUN = ["width", "prescription", "lens-color", "upsell"]
|
| 569 |
+
ATC_STEPS_OPT = ["rx-handy"] + ATC_STEPS_SUN
|
| 570 |
+
|
| 571 |
+
|
| 572 |
+
def _atc_steps(category: str) -> list[str]:
|
| 573 |
+
return ATC_STEPS_OPT if category == "eyeglasses" else ATC_STEPS_SUN
|
| 574 |
+
|
| 575 |
+
|
| 576 |
+
def _draft(owner: str, model: str, color: str) -> dict:
|
| 577 |
+
c = _conn()
|
| 578 |
+
try:
|
| 579 |
+
r = c.execute("SELECT * FROM atc_draft WHERE owner=? AND model=? AND color=?",
|
| 580 |
+
(owner, model, color)).fetchone()
|
| 581 |
+
if not r:
|
| 582 |
+
c.execute("INSERT INTO atc_draft(owner,model,color) VALUES(?,?,?)",
|
| 583 |
+
(owner, model, color))
|
| 584 |
+
c.commit()
|
| 585 |
+
return {"width": None, "prescription": None, "lens_color": None,
|
| 586 |
+
"rx_handy": None}
|
| 587 |
+
return {"width": r["width"], "prescription": r["prescription"],
|
| 588 |
+
"lens_color": r["lens_color"],
|
| 589 |
+
"rx_handy": r["rx_handy"] if "rx_handy" in r.keys() else None}
|
| 590 |
+
finally:
|
| 591 |
+
c.close()
|
| 592 |
+
|
| 593 |
+
|
| 594 |
+
def _draft_set(owner: str, model: str, color: str, **kw) -> None:
|
| 595 |
+
c = _conn()
|
| 596 |
+
try:
|
| 597 |
+
for k, v in kw.items():
|
| 598 |
+
c.execute(f"UPDATE atc_draft SET {k}=? WHERE owner=? AND model=? AND color=?",
|
| 599 |
+
(v, owner, model, color))
|
| 600 |
+
c.commit()
|
| 601 |
+
finally:
|
| 602 |
+
c.close()
|
| 603 |
+
|
| 604 |
+
|
| 605 |
+
def _draft_price(frame: dict, d: dict) -> int:
|
| 606 |
+
cents = 0
|
| 607 |
+
if d.get("prescription"):
|
| 608 |
+
tier = next((t for t in catalog.PRESCRIPTIONS if t[0] == d["prescription"]), None)
|
| 609 |
+
cents = (tier[2] if tier else frame["price"]) * 100
|
| 610 |
+
else:
|
| 611 |
+
cents = frame["price"] * 100
|
| 612 |
+
if d.get("lens_color") == "customize":
|
| 613 |
+
cents += 50 * 100
|
| 614 |
+
return cents
|
| 615 |
+
|
| 616 |
+
|
| 617 |
+
@app.get("/{category}/{model}/{color}/atc", response_class=HTMLResponse)
|
| 618 |
+
def atc(request: Request, category: str, model: str, color: str,
|
| 619 |
+
step: str = ""):
|
| 620 |
+
token, account, owner = _session(request)
|
| 621 |
+
frame, var = catalog.variant(model, color, category)
|
| 622 |
+
if not frame or not var:
|
| 623 |
+
return _not_found(request, token, account, owner)
|
| 624 |
+
d = _draft(owner, model, color)
|
| 625 |
+
steps = _atc_steps(category)
|
| 626 |
+
if step not in steps:
|
| 627 |
+
step = steps[0]
|
| 628 |
+
ctx = _base(request, account, owner)
|
| 629 |
+
ctx.update(frame=frame, variant=var, step=step, draft=d, steps=steps,
|
| 630 |
+
rx_handy=catalog.RX_HANDY,
|
| 631 |
+
rx_label={v: (t if not sub else f"{t} — {sub}")
|
| 632 |
+
for v, t, sub, _ in catalog.RX_HANDY},
|
| 633 |
+
widths=[w for w in catalog.WIDTHS],
|
| 634 |
+
frame_widths=frame["widths"],
|
| 635 |
+
width_label=catalog.WIDTH_LABEL, width_blurb=catalog.WIDTH_BLURB,
|
| 636 |
+
tiers=catalog.PRESCRIPTIONS, lens_colors=catalog.LENS_COLORS,
|
| 637 |
+
upsell=catalog.UPSELL, subtotal=_draft_price(frame, d),
|
| 638 |
+
title=f"{frame['name']} {category.title()} in {var['name']}")
|
| 639 |
+
return _render(request, "atc.html", ctx, token)
|
| 640 |
+
|
| 641 |
+
|
| 642 |
+
@app.post("/{category}/{model}/{color}/atc")
|
| 643 |
+
def atc_post(request: Request, category: str, model: str, color: str,
|
| 644 |
+
step: str = Form(...), value: str = Form(...)):
|
| 645 |
+
token, account, owner = _session(request)
|
| 646 |
+
frame, var = catalog.variant(model, color, category)
|
| 647 |
+
if not frame or not var:
|
| 648 |
+
return RedirectResponse("/", status_code=303)
|
| 649 |
+
steps = _atc_steps(category)
|
| 650 |
+
nxt = steps[0]
|
| 651 |
+
if step == "rx-handy":
|
| 652 |
+
_draft_set(owner, model, color, rx_handy=value)
|
| 653 |
+
nxt = "width"
|
| 654 |
+
elif step == "width":
|
| 655 |
+
_draft_set(owner, model, color, width=value)
|
| 656 |
+
nxt = "prescription"
|
| 657 |
+
elif step == "prescription":
|
| 658 |
+
_draft_set(owner, model, color, prescription=value)
|
| 659 |
+
nxt = "lens-color"
|
| 660 |
+
elif step == "lens-color":
|
| 661 |
+
_draft_set(owner, model, color, lens_color=value)
|
| 662 |
+
nxt = "upsell"
|
| 663 |
+
elif step == "upsell":
|
| 664 |
+
d = _draft(owner, model, color)
|
| 665 |
+
addon = catalog.UPSELL[0] if value == "yes" else None
|
| 666 |
+
unit = _draft_price(frame, d) + (catalog.UPSELL[2] * 100 if addon else 0)
|
| 667 |
+
c = _conn()
|
| 668 |
+
try:
|
| 669 |
+
c.execute("INSERT INTO cart_item(owner,category,model,color,width,"
|
| 670 |
+
"prescription,lens_color,addon,qty,unit_cents,created_at)"
|
| 671 |
+
" VALUES(?,?,?,?,?,?,?,?,1,?,?)",
|
| 672 |
+
(owner, category, model, color,
|
| 673 |
+
d["width"] or frame["widths"][0],
|
| 674 |
+
d["prescription"] or "non-prescription",
|
| 675 |
+
d["lens_color"] or "included", addon, unit,
|
| 676 |
+
datetime.now(timezone.utc).isoformat()))
|
| 677 |
+
c.execute("DELETE FROM atc_draft WHERE owner=? AND model=? AND color=?",
|
| 678 |
+
(owner, model, color))
|
| 679 |
+
c.commit()
|
| 680 |
+
finally:
|
| 681 |
+
c.close()
|
| 682 |
+
r = RedirectResponse(f"/cart?productNameAdded={frame['name']}", status_code=303)
|
| 683 |
+
_set_session(r, token)
|
| 684 |
+
return r
|
| 685 |
+
r = RedirectResponse(
|
| 686 |
+
f"/{category}/{model}/{color}/atc?step={nxt}", status_code=303)
|
| 687 |
+
_set_session(r, token)
|
| 688 |
+
return r
|
| 689 |
+
|
| 690 |
+
|
| 691 |
+
# ---------------------------------------------------------------------- cart
|
| 692 |
+
@app.get("/cart", response_class=HTMLResponse)
|
| 693 |
+
def cart(request: Request, productNameAdded: str | None = None):
|
| 694 |
+
token, account, owner = _session(request)
|
| 695 |
+
rows = _cart_rows(owner)
|
| 696 |
+
sub = sum(r["line_cents"] for r in rows)
|
| 697 |
+
ctx = _base(request, account, owner)
|
| 698 |
+
ctx.update(rows=rows, subtotal=sub, shipping=0, added=productNameAdded,
|
| 699 |
+
suggestions=catalog.CART_SUGGESTIONS,
|
| 700 |
+
tier_label={t[0]: t[1] for t in catalog.PRESCRIPTIONS},
|
| 701 |
+
tier_price={t[0]: t[2] for t in catalog.PRESCRIPTIONS},
|
| 702 |
+
width_label=catalog.WIDTH_LABEL, title="Cart")
|
| 703 |
+
return _render(request, "cart.html", ctx, token)
|
| 704 |
+
|
| 705 |
+
|
| 706 |
+
@app.post("/cart/qty")
|
| 707 |
+
def cart_qty(request: Request, item_id: int = Form(...), qty: int = Form(...)):
|
| 708 |
+
token, account, owner = _session(request)
|
| 709 |
+
qty = max(1, min(10, qty))
|
| 710 |
+
c = _conn()
|
| 711 |
+
try:
|
| 712 |
+
c.execute("UPDATE cart_item SET qty=? WHERE id=? AND owner=?",
|
| 713 |
+
(qty, item_id, owner))
|
| 714 |
+
c.commit()
|
| 715 |
+
finally:
|
| 716 |
+
c.close()
|
| 717 |
+
r = RedirectResponse("/cart", status_code=303)
|
| 718 |
+
_set_session(r, token)
|
| 719 |
+
return r
|
| 720 |
+
|
| 721 |
+
|
| 722 |
+
@app.post("/cart/remove")
|
| 723 |
+
def cart_remove(request: Request, item_id: int = Form(...)):
|
| 724 |
+
token, account, owner = _session(request)
|
| 725 |
+
c = _conn()
|
| 726 |
+
try:
|
| 727 |
+
c.execute("DELETE FROM cart_item WHERE id=? AND owner=?", (item_id, owner))
|
| 728 |
+
c.commit()
|
| 729 |
+
finally:
|
| 730 |
+
c.close()
|
| 731 |
+
r = RedirectResponse("/cart", status_code=303)
|
| 732 |
+
_set_session(r, token)
|
| 733 |
+
return r
|
| 734 |
+
|
| 735 |
+
|
| 736 |
+
# ------------------------------------------------------------------ checkout
|
| 737 |
+
CHECKOUT_STEPS = [("shipping-address", "Shipping Address"),
|
| 738 |
+
("delivery-method", "Delivery Method"),
|
| 739 |
+
("payment", "Payment"),
|
| 740 |
+
("review", "Review")]
|
| 741 |
+
US_STATES = [
|
| 742 |
+
"Alabama", "Alaska", "American Samoa", "Arizona", "Arkansas", "California",
|
| 743 |
+
"Colorado", "Connecticut", "Delaware", "District Of Columbia",
|
| 744 |
+
"Federated States Of Micronesia", "Florida", "Georgia", "Guam", "Hawaii",
|
| 745 |
+
"Idaho", "Illinois", "Indiana", "Iowa", "Kansas", "Kentucky", "Louisiana",
|
| 746 |
+
"Maine", "Marshall Islands", "Maryland", "Massachusetts", "Michigan",
|
| 747 |
+
"Minnesota", "Mississippi", "Missouri", "Montana", "Nebraska", "Nevada",
|
| 748 |
+
"New Hampshire", "New Jersey", "New Mexico", "New York", "North Carolina",
|
| 749 |
+
"North Dakota", "Northern Mariana Islands", "Ohio", "Oklahoma", "Oregon",
|
| 750 |
+
"Palau", "Pennsylvania", "Puerto Rico", "Rhode Island", "South Carolina",
|
| 751 |
+
"South Dakota", "Tennessee", "Texas", "Utah", "Vermont", "Virgin Islands",
|
| 752 |
+
"Virginia", "Washington", "West Virginia", "Wisconsin", "Wyoming",
|
| 753 |
+
]
|
| 754 |
+
|
| 755 |
+
|
| 756 |
+
@app.get("/checkout/shipping-address", response_class=HTMLResponse)
|
| 757 |
+
def checkout_shipping(request: Request):
|
| 758 |
+
"""Source-observed step: a 656px column, no site chrome, floating labels."""
|
| 759 |
+
token, account, owner = _session(request)
|
| 760 |
+
rows = _cart_rows(owner)
|
| 761 |
+
if not rows:
|
| 762 |
+
r = RedirectResponse("/cart", status_code=303)
|
| 763 |
+
return _set_session(r, token)
|
| 764 |
+
c = _conn()
|
| 765 |
+
try:
|
| 766 |
+
saved = c.execute("SELECT * FROM address WHERE owner=? ORDER BY is_default DESC,"
|
| 767 |
+
" id LIMIT 1", (owner,)).fetchone()
|
| 768 |
+
finally:
|
| 769 |
+
c.close()
|
| 770 |
+
ctx = _base(request, account, owner)
|
| 771 |
+
ctx.update(states=US_STATES, errors={}, chrome=False,
|
| 772 |
+
form={"fullName": saved["name"] if saved else "",
|
| 773 |
+
"streetAddress": saved["line1"] if saved else "",
|
| 774 |
+
"extendedAddress": "",
|
| 775 |
+
"postalCode": saved["zip"] if saved else "",
|
| 776 |
+
"locality": saved["city"] if saved else "",
|
| 777 |
+
"region": "California" if saved else ""},
|
| 778 |
+
title="Shipping Address")
|
| 779 |
+
return _render(request, "checkout_shipping.html", ctx, token)
|
| 780 |
+
|
| 781 |
+
|
| 782 |
+
@app.post("/checkout/shipping-address", response_class=HTMLResponse)
|
| 783 |
+
def checkout_shipping_post(request: Request, fullName: str = Form(""),
|
| 784 |
+
streetAddress: str = Form(""),
|
| 785 |
+
extendedAddress: str = Form(""),
|
| 786 |
+
postalCode: str = Form(""), locality: str = Form(""),
|
| 787 |
+
region: str = Form("")):
|
| 788 |
+
token, account, owner = _session(request)
|
| 789 |
+
form = {"fullName": fullName, "streetAddress": streetAddress,
|
| 790 |
+
"extendedAddress": extendedAddress, "postalCode": postalCode,
|
| 791 |
+
"locality": locality, "region": region}
|
| 792 |
+
errors = {}
|
| 793 |
+
for key, label in (("fullName", "First and last name"),
|
| 794 |
+
("streetAddress", "Street address"),
|
| 795 |
+
("postalCode", "Zip code"), ("locality", "City"),
|
| 796 |
+
("region", "State")):
|
| 797 |
+
if not form[key].strip():
|
| 798 |
+
errors[key] = f"{label} is required."
|
| 799 |
+
if postalCode.strip() and not (postalCode.strip().isdigit()
|
| 800 |
+
and len(postalCode.strip()) == 5):
|
| 801 |
+
errors["postalCode"] = "Enter a 5-digit Zip code."
|
| 802 |
+
if errors:
|
| 803 |
+
ctx = _base(request, account, owner)
|
| 804 |
+
ctx.update(states=US_STATES, errors=errors, form=form, chrome=False,
|
| 805 |
+
title="Shipping Address")
|
| 806 |
+
return _render(request, "checkout_shipping.html", ctx, token, status=400)
|
| 807 |
+
r = RedirectResponse("/checkout?" + urlencode(form), status_code=303)
|
| 808 |
+
return _set_session(r, token)
|
| 809 |
+
|
| 810 |
+
|
| 811 |
+
@app.get("/checkout", response_class=HTMLResponse)
|
| 812 |
+
def checkout(request: Request):
|
| 813 |
+
token, account, owner = _session(request)
|
| 814 |
+
rows = _cart_rows(owner)
|
| 815 |
+
if not rows:
|
| 816 |
+
r = RedirectResponse("/cart", status_code=303)
|
| 817 |
+
_set_session(r, token)
|
| 818 |
+
return r
|
| 819 |
+
c = _conn()
|
| 820 |
+
try:
|
| 821 |
+
addrs = [dict(a) for a in c.execute(
|
| 822 |
+
"SELECT * FROM address WHERE owner=? ORDER BY is_default DESC, id",
|
| 823 |
+
(owner,)).fetchall()]
|
| 824 |
+
finally:
|
| 825 |
+
c.close()
|
| 826 |
+
sub = sum(r["line_cents"] for r in rows)
|
| 827 |
+
ctx = _base(request, account, owner)
|
| 828 |
+
ctx.update(rows=rows, subtotal=sub, addresses=addrs, errors={}, form={},
|
| 829 |
+
scenarios=BACKEND.config.raw.get("payments", {})
|
| 830 |
+
.get("local_sandbox", {}).get("scenarios", []),
|
| 831 |
+
title="Checkout")
|
| 832 |
+
return _render(request, "checkout.html", ctx, token)
|
| 833 |
+
|
| 834 |
+
|
| 835 |
+
@app.post("/checkout", response_class=HTMLResponse)
|
| 836 |
+
def checkout_post(request: Request, name: str = Form(""), line1: str = Form(""),
|
| 837 |
+
city: str = Form(""), state: str = Form(""), zipcode: str = Form(""),
|
| 838 |
+
scenario: str = Form("sandbox-approved")):
|
| 839 |
+
token, account, owner = _session(request)
|
| 840 |
+
rows = _cart_rows(owner)
|
| 841 |
+
if not rows:
|
| 842 |
+
return RedirectResponse("/cart", status_code=303)
|
| 843 |
+
errors = {}
|
| 844 |
+
for key, val, label in (("name", name, "Full name"), ("line1", line1, "Address"),
|
| 845 |
+
("city", city, "City"), ("state", state, "State"),
|
| 846 |
+
("zipcode", zipcode, "ZIP code")):
|
| 847 |
+
if not val.strip():
|
| 848 |
+
errors[key] = f"{label} is required."
|
| 849 |
+
if zipcode.strip() and not (zipcode.strip().isdigit() and len(zipcode.strip()) == 5):
|
| 850 |
+
errors["zipcode"] = "Enter a 5-digit ZIP code."
|
| 851 |
+
sub = sum(r["line_cents"] for r in rows)
|
| 852 |
+
if errors or scenario != "sandbox-approved":
|
| 853 |
+
if scenario == "sandbox-declined":
|
| 854 |
+
errors["scenario"] = "Your payment was declined by the local sandbox."
|
| 855 |
+
elif scenario == "sandbox-retry":
|
| 856 |
+
errors["scenario"] = "The local sandbox asked you to retry this payment."
|
| 857 |
+
c = _conn()
|
| 858 |
+
try:
|
| 859 |
+
addrs = [dict(a) for a in c.execute(
|
| 860 |
+
"SELECT * FROM address WHERE owner=? ORDER BY is_default DESC, id",
|
| 861 |
+
(owner,)).fetchall()]
|
| 862 |
+
finally:
|
| 863 |
+
c.close()
|
| 864 |
+
ctx = _base(request, account, owner)
|
| 865 |
+
ctx.update(rows=rows, subtotal=sub, addresses=addrs, errors=errors,
|
| 866 |
+
form={"name": name, "line1": line1, "city": city,
|
| 867 |
+
"state": state, "zipcode": zipcode, "scenario": scenario},
|
| 868 |
+
scenarios=BACKEND.config.raw.get("payments", {})
|
| 869 |
+
.get("local_sandbox", {}).get("scenarios", []),
|
| 870 |
+
title="Checkout")
|
| 871 |
+
return _render(request, "checkout.html", ctx, token, status=400)
|
| 872 |
+
oid = "WP-" + str(secrets.randbelow(9_000_000) + 1_000_000)
|
| 873 |
+
ship = f"{line1.strip()}, {city.strip()}, {state.strip().upper()} {zipcode.strip()}"
|
| 874 |
+
c = _conn()
|
| 875 |
+
try:
|
| 876 |
+
c.execute("INSERT INTO wb_order(id,owner,placed_at,status,subtotal_cents,"
|
| 877 |
+
"shipping_cents,total_cents,ship_to,payment_ref)"
|
| 878 |
+
" VALUES(?,?,?,?,?,?,?,?,?)",
|
| 879 |
+
(oid, owner, date.today().isoformat(), "Processing", sub, 0, sub,
|
| 880 |
+
ship, scenario))
|
| 881 |
+
for r in rows:
|
| 882 |
+
c.execute("INSERT INTO wb_order_line(order_id,category,model,color,"
|
| 883 |
+
"width,prescription,lens_color,addon,qty,unit_cents)"
|
| 884 |
+
" VALUES(?,?,?,?,?,?,?,?,?,?)",
|
| 885 |
+
(oid, r["category"], r["model"], r["color"], r["width"],
|
| 886 |
+
r["prescription"], r["lens_color"], r["addon"], r["qty"],
|
| 887 |
+
r["unit_cents"]))
|
| 888 |
+
c.execute("DELETE FROM cart_item WHERE owner=?", (owner,))
|
| 889 |
+
c.commit()
|
| 890 |
+
finally:
|
| 891 |
+
c.close()
|
| 892 |
+
r = RedirectResponse(f"/my-account/orders/{oid}?placed=1", status_code=303)
|
| 893 |
+
_set_session(r, token)
|
| 894 |
+
return r
|
| 895 |
+
|
| 896 |
+
|
| 897 |
+
# ---------------------------------------------------------------------- auth
|
| 898 |
+
@app.get("/signin", response_class=HTMLResponse)
|
| 899 |
+
def signin(request: Request, next: str = "/my-account"):
|
| 900 |
+
token, account, owner = _session(request)
|
| 901 |
+
if account.get("email"):
|
| 902 |
+
r = RedirectResponse(next, status_code=303)
|
| 903 |
+
_set_session(r, token)
|
| 904 |
+
return r
|
| 905 |
+
ctx = _base(request, account, owner)
|
| 906 |
+
ctx.update(error=None, next=next, demo_email=DEMO_EMAIL,
|
| 907 |
+
demo_password=DEMO_PASSWORD, title="Sign in")
|
| 908 |
+
return _render(request, "signin.html", ctx, token)
|
| 909 |
+
|
| 910 |
+
|
| 911 |
+
@app.post("/signin", response_class=HTMLResponse)
|
| 912 |
+
def signin_post(request: Request, email: str = Form(""), password: str = Form(""),
|
| 913 |
+
next: str = Form("/my-account")):
|
| 914 |
+
token, account, owner = _session(request)
|
| 915 |
+
try:
|
| 916 |
+
result = AUTH.sign_in(token, email=email, password=password)
|
| 917 |
+
token = result["session_token"]
|
| 918 |
+
except Exception:
|
| 919 |
+
ctx = _base(request, account, owner)
|
| 920 |
+
ctx.update(error="That email and password combination is not recognized.",
|
| 921 |
+
next=next, demo_email=DEMO_EMAIL, demo_password=DEMO_PASSWORD,
|
| 922 |
+
title="Sign in")
|
| 923 |
+
return _render(request, "signin.html", ctx, token, status=401)
|
| 924 |
+
old_owner = owner
|
| 925 |
+
_, _, new_owner = _session_from_token(token)
|
| 926 |
+
_migrate_cart(old_owner, new_owner)
|
| 927 |
+
r = RedirectResponse(next, status_code=303)
|
| 928 |
+
_set_session(r, token)
|
| 929 |
+
return r
|
| 930 |
+
|
| 931 |
+
|
| 932 |
+
def _session_from_token(token: str):
|
| 933 |
+
info = AUTH.resolve_session(token) or {}
|
| 934 |
+
account = _account_view(info.get("account"))
|
| 935 |
+
owner = ("account:" + account["email"]) if account.get("email") \
|
| 936 |
+
else "session:" + AUTH.session_owner_digest(token)
|
| 937 |
+
return token, account, owner
|
| 938 |
+
|
| 939 |
+
|
| 940 |
+
def _migrate_cart(old: str, new: str) -> None:
|
| 941 |
+
if old == new:
|
| 942 |
+
return
|
| 943 |
+
c = _conn()
|
| 944 |
+
try:
|
| 945 |
+
c.execute("UPDATE cart_item SET owner=? WHERE owner=?", (new, old))
|
| 946 |
+
c.execute("UPDATE OR IGNORE favorite SET owner=? WHERE owner=?", (new, old))
|
| 947 |
+
c.commit()
|
| 948 |
+
finally:
|
| 949 |
+
c.close()
|
| 950 |
+
|
| 951 |
+
|
| 952 |
+
@app.post("/signout")
|
| 953 |
+
def signout(request: Request):
|
| 954 |
+
token = request.cookies.get(COOKIE_NAME)
|
| 955 |
+
try:
|
| 956 |
+
AUTH.sign_out(token)
|
| 957 |
+
except Exception:
|
| 958 |
+
pass
|
| 959 |
+
r = RedirectResponse("/", status_code=303)
|
| 960 |
+
r.delete_cookie(COOKIE_NAME, path=COOKIE_OPTS["path"], secure=COOKIE_OPTS["secure"],
|
| 961 |
+
httponly=COOKIE_OPTS["httponly"], samesite=COOKIE_OPTS["samesite"])
|
| 962 |
+
return r
|
| 963 |
+
|
| 964 |
+
|
| 965 |
+
# ------------------------------------------------------------------- account
|
| 966 |
+
# The source shows seven tabs; the profile is reached from the "View and edit
|
| 967 |
+
# your profile" link beside the greeting, not from the tab bar.
|
| 968 |
+
ACCOUNT_NAV = [("", "Home"), ("orders", "Orders"), ("prescriptions", "Prescriptions"),
|
| 969 |
+
("addresses", "Addresses"), ("payments", "Payments"),
|
| 970 |
+
("favorites", "Favorites"), ("frame-profile", "Frame profile")]
|
| 971 |
+
ACCOUNT_SECTIONS = {slug for slug, _ in ACCOUNT_NAV if slug} | {"profile"}
|
| 972 |
+
|
| 973 |
+
|
| 974 |
+
def _require_account(request: Request, token: str, account: dict, nxt: str):
|
| 975 |
+
if account.get("email"):
|
| 976 |
+
return None
|
| 977 |
+
r = RedirectResponse(f"/signin?next={nxt}", status_code=303)
|
| 978 |
+
_set_session(r, token)
|
| 979 |
+
return r
|
| 980 |
+
|
| 981 |
+
|
| 982 |
+
@app.get("/my-account", response_class=HTMLResponse)
|
| 983 |
+
def account_home(request: Request):
|
| 984 |
+
token, account, owner = _session(request)
|
| 985 |
+
guard = _require_account(request, token, account, "/my-account")
|
| 986 |
+
if guard:
|
| 987 |
+
return guard
|
| 988 |
+
c = _conn()
|
| 989 |
+
try:
|
| 990 |
+
orders = c.execute("SELECT COUNT(*) n FROM wb_order WHERE owner=?",
|
| 991 |
+
(owner,)).fetchone()["n"]
|
| 992 |
+
rx = c.execute("SELECT COUNT(*) n FROM prescription WHERE owner=?",
|
| 993 |
+
(owner,)).fetchone()["n"]
|
| 994 |
+
finally:
|
| 995 |
+
c.close()
|
| 996 |
+
ctx = _base(request, account, owner)
|
| 997 |
+
ctx.update(section="", acct_nav=ACCOUNT_NAV,
|
| 998 |
+
first_name=account.get("name", DEMO_NAME),
|
| 999 |
+
order_count=orders, rx_count=rx, stores=store_data.STORES[:5],
|
| 1000 |
+
title="Account")
|
| 1001 |
+
return _render(request, "account_home.html", ctx, token)
|
| 1002 |
+
|
| 1003 |
+
|
| 1004 |
+
@app.get("/my-account/orders", response_class=HTMLResponse)
|
| 1005 |
+
def account_orders(request: Request):
|
| 1006 |
+
token, account, owner = _session(request)
|
| 1007 |
+
guard = _require_account(request, token, account, "/my-account/orders")
|
| 1008 |
+
if guard:
|
| 1009 |
+
return guard
|
| 1010 |
+
c = _conn()
|
| 1011 |
+
try:
|
| 1012 |
+
orders = [dict(o) for o in c.execute(
|
| 1013 |
+
"SELECT * FROM wb_order WHERE owner=? ORDER BY placed_at DESC",
|
| 1014 |
+
(owner,)).fetchall()]
|
| 1015 |
+
for o in orders:
|
| 1016 |
+
o["lines"] = [dict(ln) for ln in c.execute(
|
| 1017 |
+
"SELECT * FROM wb_order_line WHERE order_id=?", (o["id"],)).fetchall()]
|
| 1018 |
+
finally:
|
| 1019 |
+
c.close()
|
| 1020 |
+
ctx = _base(request, account, owner)
|
| 1021 |
+
ctx.update(section="orders", acct_nav=ACCOUNT_NAV, orders=orders, title="Orders")
|
| 1022 |
+
return _render(request, "account_orders.html", ctx, token)
|
| 1023 |
+
|
| 1024 |
+
|
| 1025 |
+
@app.get("/my-account/orders/{order_id}", response_class=HTMLResponse)
|
| 1026 |
+
def account_order(request: Request, order_id: str, placed: int = 0):
|
| 1027 |
+
token, account, owner = _session(request)
|
| 1028 |
+
guard = _require_account(request, token, account, f"/my-account/orders/{order_id}")
|
| 1029 |
+
if guard:
|
| 1030 |
+
return guard
|
| 1031 |
+
c = _conn()
|
| 1032 |
+
try:
|
| 1033 |
+
o = c.execute("SELECT * FROM wb_order WHERE id=? AND owner=?",
|
| 1034 |
+
(order_id, owner)).fetchone()
|
| 1035 |
+
lines = [dict(ln) for ln in c.execute(
|
| 1036 |
+
"SELECT * FROM wb_order_line WHERE order_id=?", (order_id,)).fetchall()]
|
| 1037 |
+
finally:
|
| 1038 |
+
c.close()
|
| 1039 |
+
if not o:
|
| 1040 |
+
return _not_found(request, token, account, owner)
|
| 1041 |
+
for ln in lines:
|
| 1042 |
+
f, v = catalog.variant(ln["model"], ln["color"], ln["category"])
|
| 1043 |
+
ln["frame"], ln["variant"] = f, v
|
| 1044 |
+
ctx = _base(request, account, owner)
|
| 1045 |
+
ctx.update(section="orders", acct_nav=ACCOUNT_NAV, order=dict(o), lines=lines,
|
| 1046 |
+
placed=bool(placed), width_label=catalog.WIDTH_LABEL,
|
| 1047 |
+
tier_label={t[0]: t[1] for t in catalog.PRESCRIPTIONS},
|
| 1048 |
+
title=f"Order {order_id}")
|
| 1049 |
+
return _render(request, "account_order.html", ctx, token)
|
| 1050 |
+
|
| 1051 |
+
|
| 1052 |
+
@app.get("/my-account/{section}", response_class=HTMLResponse)
|
| 1053 |
+
def account_section(request: Request, section: str):
|
| 1054 |
+
token, account, owner = _session(request)
|
| 1055 |
+
if section not in ACCOUNT_SECTIONS:
|
| 1056 |
+
return _not_found(request, token, account, owner)
|
| 1057 |
+
guard = _require_account(request, token, account, f"/my-account/{section}")
|
| 1058 |
+
if guard:
|
| 1059 |
+
return guard
|
| 1060 |
+
c = _conn()
|
| 1061 |
+
try:
|
| 1062 |
+
addrs = [dict(a) for a in c.execute(
|
| 1063 |
+
"SELECT * FROM address WHERE owner=? ORDER BY is_default DESC, id",
|
| 1064 |
+
(owner,)).fetchall()]
|
| 1065 |
+
rx = [dict(p) for p in c.execute(
|
| 1066 |
+
"SELECT * FROM prescription WHERE owner=? ORDER BY id", (owner,)).fetchall()]
|
| 1067 |
+
favs = [dict(f) for f in c.execute(
|
| 1068 |
+
"SELECT * FROM favorite WHERE owner=? ORDER BY created_at DESC",
|
| 1069 |
+
(owner,)).fetchall()]
|
| 1070 |
+
finally:
|
| 1071 |
+
c.close()
|
| 1072 |
+
for f in favs:
|
| 1073 |
+
fr, v = catalog.variant(f["model"], f["color"], f["category"])
|
| 1074 |
+
f["frame"], f["variant"] = fr, v
|
| 1075 |
+
favs = [f for f in favs if f["frame"] and f["variant"]]
|
| 1076 |
+
ctx = _base(request, account, owner)
|
| 1077 |
+
ctx.update(section=section, acct_nav=ACCOUNT_NAV, addresses=addrs,
|
| 1078 |
+
prescriptions=rx, favorites=favs,
|
| 1079 |
+
first_name=account.get("name", DEMO_NAME),
|
| 1080 |
+
email=account.get("email", ""),
|
| 1081 |
+
widths=catalog.WIDTHS, width_label=catalog.WIDTH_LABEL,
|
| 1082 |
+
title=dict(ACCOUNT_NAV).get(section, section.title()))
|
| 1083 |
+
return _render(request, f"account_{section.replace('-', '_')}.html", ctx, token)
|
| 1084 |
+
|
| 1085 |
+
|
| 1086 |
+
# ----------------------------------------------------- favorites and search
|
| 1087 |
+
@app.post("/favorites/toggle")
|
| 1088 |
+
def fav_toggle(request: Request, model: str = Form(...), color: str = Form(...),
|
| 1089 |
+
category: str = Form("sunglasses"), back: str = Form("/")):
|
| 1090 |
+
token, account, owner = _session(request)
|
| 1091 |
+
if category not in ("sunglasses", "eyeglasses"):
|
| 1092 |
+
category = "sunglasses"
|
| 1093 |
+
c = _conn()
|
| 1094 |
+
try:
|
| 1095 |
+
hit = c.execute("SELECT 1 FROM favorite WHERE owner=? AND category=? "
|
| 1096 |
+
"AND model=? AND color=?",
|
| 1097 |
+
(owner, category, model, color)).fetchone()
|
| 1098 |
+
if hit:
|
| 1099 |
+
c.execute("DELETE FROM favorite WHERE owner=? AND category=? "
|
| 1100 |
+
"AND model=? AND color=?", (owner, category, model, color))
|
| 1101 |
+
else:
|
| 1102 |
+
c.execute("INSERT INTO favorite(owner,category,model,color,created_at)"
|
| 1103 |
+
" VALUES(?,?,?,?,?)",
|
| 1104 |
+
(owner, category, model, color, date.today().isoformat()))
|
| 1105 |
+
c.commit()
|
| 1106 |
+
finally:
|
| 1107 |
+
c.close()
|
| 1108 |
+
r = RedirectResponse(back, status_code=303)
|
| 1109 |
+
_set_session(r, token)
|
| 1110 |
+
return r
|
| 1111 |
+
|
| 1112 |
+
|
| 1113 |
+
@app.get("/favorites", response_class=HTMLResponse)
|
| 1114 |
+
def favorites(request: Request):
|
| 1115 |
+
token, account, owner = _session(request)
|
| 1116 |
+
c = _conn()
|
| 1117 |
+
try:
|
| 1118 |
+
favs = [dict(f) for f in c.execute(
|
| 1119 |
+
"SELECT * FROM favorite WHERE owner=? ORDER BY created_at DESC",
|
| 1120 |
+
(owner,)).fetchall()]
|
| 1121 |
+
finally:
|
| 1122 |
+
c.close()
|
| 1123 |
+
items = []
|
| 1124 |
+
for f in favs:
|
| 1125 |
+
fr, v = catalog.variant(f["model"], f["color"], f["category"])
|
| 1126 |
+
if fr and v:
|
| 1127 |
+
items.append({"frame": fr, "variant": v})
|
| 1128 |
+
ctx = _base(request, account, owner)
|
| 1129 |
+
ctx.update(items=items, title="Favorites")
|
| 1130 |
+
return _render(request, "favorites.html", ctx, token)
|
| 1131 |
+
|
| 1132 |
+
|
| 1133 |
+
@app.get("/search", response_class=HTMLResponse)
|
| 1134 |
+
def search(request: Request, q: str = ""):
|
| 1135 |
+
token, account, owner = _session(request)
|
| 1136 |
+
needle = q.strip().lower()
|
| 1137 |
+
hits = []
|
| 1138 |
+
if needle:
|
| 1139 |
+
for f in catalog.FRAMES:
|
| 1140 |
+
hay = " ".join([f["model"], f["shape"], f["material"], f["gender"]] +
|
| 1141 |
+
[v["slug"] for v in f["variants"]]).lower()
|
| 1142 |
+
if needle in hay:
|
| 1143 |
+
hits.append(f)
|
| 1144 |
+
ctx = _base(request, account, owner)
|
| 1145 |
+
ctx.update(q=q, hits=hits, searched=bool(needle), title="Search")
|
| 1146 |
+
return _render(request, "search.html", ctx, token)
|
| 1147 |
+
|
| 1148 |
+
|
| 1149 |
+
# ------------------------------------------------------- retail and booking
|
| 1150 |
+
@app.get("/retail", response_class=HTMLResponse)
|
| 1151 |
+
def retail(request: Request, q: str = ""):
|
| 1152 |
+
token, account, owner = _session(request)
|
| 1153 |
+
ctx = _base(request, account, owner)
|
| 1154 |
+
ctx.update(q=q, stores=store_data.search(q), searched=bool(q.strip()),
|
| 1155 |
+
title="Retail Locations")
|
| 1156 |
+
return _render(request, "retail.html", ctx, token)
|
| 1157 |
+
|
| 1158 |
+
|
| 1159 |
+
@app.get("/retail/{slug}", response_class=HTMLResponse)
|
| 1160 |
+
def retail_store(request: Request, slug: str):
|
| 1161 |
+
token, account, owner = _session(request)
|
| 1162 |
+
s = store_data.BY_SLUG.get(slug)
|
| 1163 |
+
if not s:
|
| 1164 |
+
return _not_found(request, token, account, owner)
|
| 1165 |
+
ctx = _base(request, account, owner)
|
| 1166 |
+
ctx.update(store=s, slots=store_data.SLOTS, title=s["name"])
|
| 1167 |
+
return _render(request, "retail_store.html", ctx, token)
|
| 1168 |
+
|
| 1169 |
+
|
| 1170 |
+
STORE_CODES = {s["code"]: s["slug"] for s in store_data.STORES if s.get("code")}
|
| 1171 |
+
|
| 1172 |
+
|
| 1173 |
+
def _days(n: int = 7):
|
| 1174 |
+
today = date.today()
|
| 1175 |
+
return [(today + timedelta(days=i)).isoformat() for i in range(n)]
|
| 1176 |
+
|
| 1177 |
+
|
| 1178 |
+
@app.get("/appointments/eye-exams/booking/{code}", response_class=HTMLResponse)
|
| 1179 |
+
def booking_for_store(request: Request, code: str):
|
| 1180 |
+
"""The source deep-links a store by its retail code, e.g. .../booking/RVAN."""
|
| 1181 |
+
slug = STORE_CODES.get(code.upper())
|
| 1182 |
+
target = f"/appointments/eye-exams/booking?store={slug}" if slug \
|
| 1183 |
+
else "/appointments/eye-exams/booking"
|
| 1184 |
+
token, _, _ = _session(request)
|
| 1185 |
+
r = RedirectResponse(target, status_code=303)
|
| 1186 |
+
_set_session(r, token)
|
| 1187 |
+
return r
|
| 1188 |
+
|
| 1189 |
+
|
| 1190 |
+
@app.get("/appointments/eye-exams/booking", response_class=HTMLResponse)
|
| 1191 |
+
def booking(request: Request, exam: str = "", store: str = "", day: str = "",
|
| 1192 |
+
slot: str = ""):
|
| 1193 |
+
"""The source opens with an exam-type choice before store, date and time."""
|
| 1194 |
+
token, account, owner = _session(request)
|
| 1195 |
+
ctx = _base(request, account, owner)
|
| 1196 |
+
ctx.update(stores=store_data.STORES, days=_days(), slots=store_data.SLOTS,
|
| 1197 |
+
exam_types=store_data.EXAM_TYPES, exam_note=store_data.EXAM_NOTE,
|
| 1198 |
+
exam=exam if exam in store_data.EXAM_BY_SLUG else "",
|
| 1199 |
+
exam_detail=store_data.EXAM_BY_SLUG.get(exam),
|
| 1200 |
+
store=store, day=day, slot=slot, errors={}, form={},
|
| 1201 |
+
confirmed=None, title="Book an eye exam")
|
| 1202 |
+
return _render(request, "booking.html", ctx, token)
|
| 1203 |
+
|
| 1204 |
+
|
| 1205 |
+
@app.post("/appointments/eye-exams/booking", response_class=HTMLResponse)
|
| 1206 |
+
def booking_post(request: Request, exam: str = Form(""), store: str = Form(""),
|
| 1207 |
+
day: str = Form(""), slot: str = Form(""), name: str = Form(""),
|
| 1208 |
+
email: str = Form("")):
|
| 1209 |
+
token, account, owner = _session(request)
|
| 1210 |
+
errors = {}
|
| 1211 |
+
if exam not in store_data.EXAM_BY_SLUG:
|
| 1212 |
+
errors["exam"] = "Choose an exam type."
|
| 1213 |
+
if store not in store_data.BY_SLUG:
|
| 1214 |
+
errors["store"] = "Choose a store."
|
| 1215 |
+
if day not in _days():
|
| 1216 |
+
errors["day"] = "Choose a date."
|
| 1217 |
+
if slot not in store_data.SLOTS:
|
| 1218 |
+
errors["slot"] = "Choose a time."
|
| 1219 |
+
if not name.strip():
|
| 1220 |
+
errors["name"] = "Full name is required."
|
| 1221 |
+
if "@" not in email:
|
| 1222 |
+
errors["email"] = "Enter a valid email address."
|
| 1223 |
+
ctx = _base(request, account, owner)
|
| 1224 |
+
if errors:
|
| 1225 |
+
ctx.update(stores=store_data.STORES, days=_days(), slots=store_data.SLOTS,
|
| 1226 |
+
exam_types=store_data.EXAM_TYPES, exam_note=store_data.EXAM_NOTE,
|
| 1227 |
+
exam=exam if exam in store_data.EXAM_BY_SLUG else "",
|
| 1228 |
+
exam_detail=store_data.EXAM_BY_SLUG.get(exam),
|
| 1229 |
+
store=store, day=day, slot=slot, errors=errors,
|
| 1230 |
+
form={"name": name, "email": email}, confirmed=None,
|
| 1231 |
+
title="Book an eye exam")
|
| 1232 |
+
return _render(request, "booking.html", ctx, token, status=400)
|
| 1233 |
+
aid = "APT-" + str(secrets.randbelow(900000) + 100000)
|
| 1234 |
+
c = _conn()
|
| 1235 |
+
try:
|
| 1236 |
+
c.execute("INSERT INTO appointment(id,owner,exam,store,day,slot,name,email,"
|
| 1237 |
+
"created_at) VALUES(?,?,?,?,?,?,?,?,?)",
|
| 1238 |
+
(aid, owner, exam, store, day, slot, name.strip(), email.strip(),
|
| 1239 |
+
datetime.now(timezone.utc).isoformat()))
|
| 1240 |
+
c.commit()
|
| 1241 |
+
finally:
|
| 1242 |
+
c.close()
|
| 1243 |
+
# local sandbox only: a confirmation is written to the backend outbox, never sent
|
| 1244 |
+
ctx.update(stores=store_data.STORES, days=_days(), slots=store_data.SLOTS,
|
| 1245 |
+
exam_types=store_data.EXAM_TYPES, exam_note=store_data.EXAM_NOTE,
|
| 1246 |
+
exam=exam, exam_detail=store_data.EXAM_BY_SLUG.get(exam),
|
| 1247 |
+
store=store, day=day, slot=slot, errors={}, form={},
|
| 1248 |
+
confirmed={"id": aid, "exam": store_data.EXAM_BY_SLUG.get(exam),
|
| 1249 |
+
"store": store_data.BY_SLUG[store], "day": day,
|
| 1250 |
+
"slot": slot, "name": name.strip(), "email": email.strip()},
|
| 1251 |
+
title="Booking confirmed")
|
| 1252 |
+
return _render(request, "booking.html", ctx, token)
|
| 1253 |
+
|
| 1254 |
+
|
| 1255 |
+
# --------------------------------------------------- contacts / accessories
|
| 1256 |
+
# Brand, lens-type and manufacturer taxonomies are the source's own facet
|
| 1257 |
+
# definitions. The individual boxes are local deterministic seed data: the
|
| 1258 |
+
# source loads its contact-lens products from a separate service that the page
|
| 1259 |
+
# payload does not carry (recorded as `inferred` in scope/claims.jsonl).
|
| 1260 |
+
CONTACT_FACETS = json.loads(
|
| 1261 |
+
(ROOT / "data" / "contacts-facets.json").read_text(encoding="utf-8"))
|
| 1262 |
+
_CF = {g["name"]: g["items"] for g in CONTACT_FACETS}
|
| 1263 |
+
|
| 1264 |
+
|
| 1265 |
+
def _slugify(value: str) -> str:
|
| 1266 |
+
return re.sub(r"[^a-z0-9]+", "-", (value or "").lower()).strip("-")
|
| 1267 |
+
|
| 1268 |
+
|
| 1269 |
+
CONTACT_BRANDS = {(i["redirect"] or "").rsplit("/", 1)[-1]: i["text"]
|
| 1270 |
+
for i in _CF.get("All brands", []) if i.get("redirect")}
|
| 1271 |
+
CONTACT_TYPES = {(i["redirect"] or "").rsplit("/", 1)[-1]: i["text"]
|
| 1272 |
+
for i in _CF.get("Lens types", []) if i.get("redirect")}
|
| 1273 |
+
MANUFACTURERS = {(i["redirect"] or "").rsplit("/", 1)[-1]: i["text"]
|
| 1274 |
+
for i in _CF.get("Manufacturer", []) if i.get("redirect")}
|
| 1275 |
+
|
| 1276 |
+
# which house makes which brand, as the source's own brand pages group them
|
| 1277 |
+
_BRAND_MAKER = {
|
| 1278 |
+
"acuvue": "johnson-and-johnson-vision", "infuse": "johnson-and-johnson-vision",
|
| 1279 |
+
"air-optix": "alcon", "dailies": "alcon", "precision1": "alcon",
|
| 1280 |
+
"total-30": "alcon", "precision7": "alcon",
|
| 1281 |
+
"biofinity": "coopervision", "clariti": "coopervision",
|
| 1282 |
+
"myday": "coopervision", "proclear": "coopervision",
|
| 1283 |
+
"biotrue": "bausch-lomb", "ultra": "bausch-lomb",
|
| 1284 |
+
"miru": "menicon", "scout": "warby-parker",
|
| 1285 |
+
}
|
| 1286 |
+
|
| 1287 |
+
|
| 1288 |
+
def _contact_products():
|
| 1289 |
+
out = []
|
| 1290 |
+
for brand, label in CONTACT_BRANDS.items():
|
| 1291 |
+
maker = _BRAND_MAKER.get(brand, "alcon")
|
| 1292 |
+
for i, (tslug, tlabel) in enumerate(list(CONTACT_TYPES.items())[:3]):
|
| 1293 |
+
out.append({
|
| 1294 |
+
"slug": f"{brand}-{tslug}", "brand": brand, "brand_label": label,
|
| 1295 |
+
"maker": maker, "type": tslug, "type_label": tlabel,
|
| 1296 |
+
"name": f"{label} {tlabel}",
|
| 1297 |
+
"price": 32 + (len(brand) + i * 7) % 40,
|
| 1298 |
+
"per_box": 30 if "daily" in tslug else 6})
|
| 1299 |
+
return out
|
| 1300 |
+
|
| 1301 |
+
|
| 1302 |
+
CONTACTS = _contact_products()
|
| 1303 |
+
BY_CONTACT = {p["slug"]: p for p in CONTACTS}
|
| 1304 |
+
|
| 1305 |
+
ACCESSORIES = [
|
| 1306 |
+
{"slug": "parker-pouch-single", "name": "Parker Pouch - Single", "price": 20},
|
| 1307 |
+
{"slug": "parker-case", "name": "Parker Case", "price": 20},
|
| 1308 |
+
{"slug": "clean-my-lenses-kit-anti-fog",
|
| 1309 |
+
"name": "Clean My Lenses Kit with Anti-Fog Spray", "price": 20},
|
| 1310 |
+
{"slug": "geometric-case-cornflower", "name": "Geometric Case — Cornflower", "price": 25},
|
| 1311 |
+
{"slug": "geometric-case-ivy", "name": "Geometric Case — Ivy", "price": 25},
|
| 1312 |
+
{"slug": "geometric-case-midnight", "name": "Geometric Case — Midnight", "price": 25},
|
| 1313 |
+
{"slug": "geometric-case-walnut", "name": "Geometric Case — Walnut", "price": 25},
|
| 1314 |
+
{"slug": "geometric-case-primrose", "name": "Geometric Case — Primrose", "price": 25},
|
| 1315 |
+
]
|
| 1316 |
+
|
| 1317 |
+
|
| 1318 |
+
@app.get("/contacts", response_class=HTMLResponse)
|
| 1319 |
+
def contacts(request: Request):
|
| 1320 |
+
token, account, owner = _session(request)
|
| 1321 |
+
ctx = _base(request, account, owner)
|
| 1322 |
+
ctx.update(products=CONTACTS, brands=CONTACT_BRANDS, types=CONTACT_TYPES,
|
| 1323 |
+
makers=MANUFACTURERS, facet=None, title="Contacts")
|
| 1324 |
+
return _render(request, "contacts.html", ctx, token)
|
| 1325 |
+
|
| 1326 |
+
|
| 1327 |
+
@app.get("/contacts/{facet}", response_class=HTMLResponse)
|
| 1328 |
+
def contacts_facet(request: Request, facet: str):
|
| 1329 |
+
token, account, owner = _session(request)
|
| 1330 |
+
if facet in CONTACT_BRANDS:
|
| 1331 |
+
items = [p for p in CONTACTS if p["brand"] == facet]
|
| 1332 |
+
label = CONTACT_BRANDS[facet]
|
| 1333 |
+
elif facet in CONTACT_TYPES:
|
| 1334 |
+
items = [p for p in CONTACTS if p["type"] == facet]
|
| 1335 |
+
label = CONTACT_TYPES[facet]
|
| 1336 |
+
elif facet in MANUFACTURERS:
|
| 1337 |
+
items = [p for p in CONTACTS if p["maker"] == facet]
|
| 1338 |
+
label = MANUFACTURERS[facet]
|
| 1339 |
+
else:
|
| 1340 |
+
return _not_found(request, token, account, owner)
|
| 1341 |
+
ctx = _base(request, account, owner)
|
| 1342 |
+
ctx.update(products=items, brands=CONTACT_BRANDS, types=CONTACT_TYPES,
|
| 1343 |
+
makers=MANUFACTURERS, facet=label, title=label)
|
| 1344 |
+
return _render(request, "contacts.html", ctx, token)
|
| 1345 |
+
|
| 1346 |
+
|
| 1347 |
+
@app.get("/accessories", response_class=HTMLResponse)
|
| 1348 |
+
def accessories(request: Request):
|
| 1349 |
+
token, account, owner = _session(request)
|
| 1350 |
+
ctx = _base(request, account, owner)
|
| 1351 |
+
ctx.update(items=ACCESSORIES, title="Accessories")
|
| 1352 |
+
return _render(request, "accessories.html", ctx, token)
|
| 1353 |
+
|
| 1354 |
+
|
| 1355 |
+
# ----------------------------------------------------------------- the quiz
|
| 1356 |
+
# The quiz reuses the source's own facet vocabulary so its answers filter the
|
| 1357 |
+
# real catalog rather than a parallel one.
|
| 1358 |
+
QUIZ = [
|
| 1359 |
+
("shapes", "Which frame shape are you drawn to?",
|
| 1360 |
+
[("Square", "Square"), ("Round", "Round"), ("Cat-eye", "Cat-eye"),
|
| 1361 |
+
("Aviator", "Aviator"), ("Rectangle", "Rectangle")]),
|
| 1362 |
+
("materials", "Pick a material.",
|
| 1363 |
+
[("Acetate", "Acetate"), ("Metal", "Metal"), ("Nylon", "Nylon")]),
|
| 1364 |
+
("prices", "What feels right to spend?",
|
| 1365 |
+
[("95", "$95"), ("125", "$125"), ("145", "$145"), ("175", "$175"),
|
| 1366 |
+
("195", "$195")]),
|
| 1367 |
+
]
|
| 1368 |
+
|
| 1369 |
+
|
| 1370 |
+
class _Picks:
|
| 1371 |
+
"""Multi-dict shim over the quiz answers, so catalog.matches can score them."""
|
| 1372 |
+
|
| 1373 |
+
def __init__(self, picks: dict[str, str]) -> None:
|
| 1374 |
+
self._picks = {k: v for k, v in picks.items() if v}
|
| 1375 |
+
|
| 1376 |
+
def getlist(self, key: str) -> list[str]:
|
| 1377 |
+
value = self._picks.get(key)
|
| 1378 |
+
return [value] if value else []
|
| 1379 |
+
|
| 1380 |
+
|
| 1381 |
+
@app.get("/quiz/frames", response_class=HTMLResponse)
|
| 1382 |
+
def quiz(request: Request, step: int = 0, shapes: str = "", materials: str = "",
|
| 1383 |
+
prices: str = ""):
|
| 1384 |
+
token, account, owner = _session(request)
|
| 1385 |
+
picks = {"shapes": shapes, "materials": materials, "prices": prices}
|
| 1386 |
+
ctx = _base(request, account, owner)
|
| 1387 |
+
if step >= len(QUIZ):
|
| 1388 |
+
probe = _Picks(picks)
|
| 1389 |
+
res = [f for f in catalog.FRAMES if catalog.matches(f, probe)]
|
| 1390 |
+
ctx.update(step=step, quiz=QUIZ, picks=picks, results=res[:12],
|
| 1391 |
+
result_total=len(res), title="Your frame matches")
|
| 1392 |
+
else:
|
| 1393 |
+
ctx.update(step=step, quiz=QUIZ, picks=picks, results=None,
|
| 1394 |
+
result_total=None, title="Style quiz")
|
| 1395 |
+
return _render(request, "quiz.html", ctx, token)
|
| 1396 |
+
|
| 1397 |
+
|
| 1398 |
+
# ---------------------------------------------------- collections + content
|
| 1399 |
+
# The source's real collection pages: title and frame membership as captured.
|
| 1400 |
+
_COLLECTIONS = json.loads(
|
| 1401 |
+
(ROOT / "data" / "collections.json").read_text(encoding="utf-8"))
|
| 1402 |
+
|
| 1403 |
+
|
| 1404 |
+
def _collection_name(title: str | None, slug: str) -> str:
|
| 1405 |
+
if not title:
|
| 1406 |
+
return slug.replace("-", " ").title()
|
| 1407 |
+
name = title.split("|")[0].strip()
|
| 1408 |
+
name = name.replace("'", "\u2019").replace("&", "&")
|
| 1409 |
+
return name or slug.replace("-", " ").title()
|
| 1410 |
+
|
| 1411 |
+
|
| 1412 |
+
COLLECTIONS = []
|
| 1413 |
+
COLLECTION_SKUS: dict[str, list[str]] = {}
|
| 1414 |
+
for _path, _meta in _COLLECTIONS.items():
|
| 1415 |
+
if not _path.startswith("/collections/") or not _meta.get("skus"):
|
| 1416 |
+
continue
|
| 1417 |
+
_slug = _path.rsplit("/", 1)[-1]
|
| 1418 |
+
COLLECTIONS.append((_slug, _collection_name(_meta.get("title"), _slug),
|
| 1419 |
+
len(_meta["skus"])))
|
| 1420 |
+
COLLECTION_SKUS[_slug] = _meta["skus"]
|
| 1421 |
+
COLLECTIONS.sort(key=lambda c: -c[2])
|
| 1422 |
+
|
| 1423 |
+
|
| 1424 |
+
def _frames_for(slug: str) -> list[dict]:
|
| 1425 |
+
wanted = set(COLLECTION_SKUS.get(slug, ()))
|
| 1426 |
+
out, seen = [], set()
|
| 1427 |
+
for frame in catalog.FRAMES:
|
| 1428 |
+
if frame["model"] in seen:
|
| 1429 |
+
continue
|
| 1430 |
+
if any(v["sku"] in wanted for v in frame["variants"]):
|
| 1431 |
+
out.append(frame)
|
| 1432 |
+
seen.add(frame["model"])
|
| 1433 |
+
return out
|
| 1434 |
+
|
| 1435 |
+
|
| 1436 |
+
@app.get("/collections", response_class=HTMLResponse)
|
| 1437 |
+
def collections(request: Request):
|
| 1438 |
+
token, account, owner = _session(request)
|
| 1439 |
+
captured = _source_page(request, "/collections", token, account, owner)
|
| 1440 |
+
if captured is not None:
|
| 1441 |
+
return captured
|
| 1442 |
+
ctx = _base(request, account, owner)
|
| 1443 |
+
ctx.update(collections=COLLECTIONS, title="New collections")
|
| 1444 |
+
return _render(request, "collections.html", ctx, token)
|
| 1445 |
+
|
| 1446 |
+
|
| 1447 |
+
@app.get("/collections/{slug}", response_class=HTMLResponse)
|
| 1448 |
+
def collection_detail(request: Request, slug: str):
|
| 1449 |
+
token, account, owner = _session(request)
|
| 1450 |
+
if slug not in COLLECTION_SKUS:
|
| 1451 |
+
return _not_found(request, token, account, owner)
|
| 1452 |
+
name = next(n for s, n, _ in COLLECTIONS if s == slug)
|
| 1453 |
+
frames = _frames_for(slug)
|
| 1454 |
+
ctx = _base(request, account, owner)
|
| 1455 |
+
ctx.update(coll=(slug, name, ""), frames=frames, title=name)
|
| 1456 |
+
return _render(request, "collection_detail.html", ctx, token)
|
| 1457 |
+
|
| 1458 |
+
|
| 1459 |
+
@app.get("/lenses/{slug}", response_class=HTMLResponse)
|
| 1460 |
+
def lenses_alias(request: Request, slug: str):
|
| 1461 |
+
"""The source 302s /lenses/tinted to /sunglasses/tinted."""
|
| 1462 |
+
token, _, _ = _session(request)
|
| 1463 |
+
r = RedirectResponse(f"/sunglasses/{slug}", status_code=302)
|
| 1464 |
+
_set_session(r, token)
|
| 1465 |
+
return r
|
| 1466 |
+
|
| 1467 |
+
|
| 1468 |
+
@app.get("/pd/webcam", response_class=HTMLResponse)
|
| 1469 |
+
def pd_webcam(request: Request):
|
| 1470 |
+
"""The source measures PD from the webcam. Camera capture is out of scope, so
|
| 1471 |
+
this surface persists a manually entered PD to the signed-in frame profile
|
| 1472 |
+
instead of pretending to measure one."""
|
| 1473 |
+
token, account, owner = _session(request)
|
| 1474 |
+
guard = _require_account(request, token, account, "/pd/webcam")
|
| 1475 |
+
if guard:
|
| 1476 |
+
return guard
|
| 1477 |
+
c = _conn()
|
| 1478 |
+
try:
|
| 1479 |
+
row = c.execute("SELECT pd FROM prescription WHERE owner=? ORDER BY id LIMIT 1",
|
| 1480 |
+
(owner,)).fetchone()
|
| 1481 |
+
finally:
|
| 1482 |
+
c.close()
|
| 1483 |
+
ctx = _base(request, account, owner)
|
| 1484 |
+
ctx.update(pd=row["pd"] if row else "", saved=False, error=None,
|
| 1485 |
+
title="PD Webcam")
|
| 1486 |
+
return _render(request, "pd_webcam.html", ctx, token)
|
| 1487 |
+
|
| 1488 |
+
|
| 1489 |
+
@app.post("/pd/webcam", response_class=HTMLResponse)
|
| 1490 |
+
def pd_webcam_post(request: Request, pd: str = Form("")):
|
| 1491 |
+
token, account, owner = _session(request)
|
| 1492 |
+
guard = _require_account(request, token, account, "/pd/webcam")
|
| 1493 |
+
if guard:
|
| 1494 |
+
return guard
|
| 1495 |
+
value = pd.strip()
|
| 1496 |
+
error = None
|
| 1497 |
+
if not value.replace(".", "", 1).isdigit() or not (50 <= float(value or 0) <= 80):
|
| 1498 |
+
error = "Enter a pupillary distance between 50 and 80 millimetres."
|
| 1499 |
+
else:
|
| 1500 |
+
c = _conn()
|
| 1501 |
+
try:
|
| 1502 |
+
c.execute("UPDATE prescription SET pd=? WHERE owner=?", (value, owner))
|
| 1503 |
+
c.commit()
|
| 1504 |
+
finally:
|
| 1505 |
+
c.close()
|
| 1506 |
+
ctx = _base(request, account, owner)
|
| 1507 |
+
ctx.update(pd=value, saved=error is None, error=error, title="PD Webcam")
|
| 1508 |
+
return _render(request, "pd_webcam.html", ctx, token,
|
| 1509 |
+
status=400 if error else 200)
|
| 1510 |
+
|
| 1511 |
+
|
| 1512 |
+
@app.get("/login", response_class=HTMLResponse)
|
| 1513 |
+
def login_alias(request: Request, next: str = "/my-account"):
|
| 1514 |
+
token, _, _ = _session(request)
|
| 1515 |
+
r = RedirectResponse(f"/signin?next={next}", status_code=302)
|
| 1516 |
+
_set_session(r, token)
|
| 1517 |
+
return r
|
| 1518 |
+
|
| 1519 |
+
|
| 1520 |
+
CONTENT = json.loads((ROOT / "data" / "content.json").read_text())
|
| 1521 |
+
# The source's own copy for its information pages: `pages.json` holds the
|
| 1522 |
+
# widget-rendered ones (heading / body / imagery / CTAs per block) and
|
| 1523 |
+
# `prose-pages.json` the prose-rendered ones (legal text, Learn articles).
|
| 1524 |
+
SOURCE_PAGES = json.loads((ROOT / "data" / "pages.json").read_text(encoding="utf-8"))
|
| 1525 |
+
PROSE_PAGES = json.loads((ROOT / "data" / "prose-pages.json").read_text(encoding="utf-8"))
|
| 1526 |
+
PROSE_PAGES = {k: v for k, v in PROSE_PAGES.items() if v.get("blocks")}
|
| 1527 |
+
|
| 1528 |
+
|
| 1529 |
+
@app.post("/newsletter")
|
| 1530 |
+
def newsletter(request: Request, email: str = Form(...), topic: str = Form("intelligent-eyewear")):
|
| 1531 |
+
"""Home-page email capture. Local sandbox only: the address is recorded in the
|
| 1532 |
+
site database so the signup is observable, and nothing leaves the process."""
|
| 1533 |
+
token, account, owner = _session(request)
|
| 1534 |
+
address = email.strip()
|
| 1535 |
+
if address:
|
| 1536 |
+
c = _conn()
|
| 1537 |
+
try:
|
| 1538 |
+
c.execute("INSERT INTO newsletter_signup(email,topic,created_at) VALUES(?,?,?)",
|
| 1539 |
+
(address, topic, datetime.now(timezone.utc).isoformat()))
|
| 1540 |
+
c.commit()
|
| 1541 |
+
finally:
|
| 1542 |
+
c.close()
|
| 1543 |
+
resp = RedirectResponse("/?signup=1", status_code=303)
|
| 1544 |
+
_set_session(resp, token)
|
| 1545 |
+
return resp
|
| 1546 |
+
|
| 1547 |
+
|
| 1548 |
+
@app.get("/sitemap", response_class=HTMLResponse)
|
| 1549 |
+
def sitemap(request: Request):
|
| 1550 |
+
token, account, owner = _session(request)
|
| 1551 |
+
ctx = _base(request, account, owner)
|
| 1552 |
+
ctx.update(title="Sitemap")
|
| 1553 |
+
return _render(request, "sitemap.html", ctx, token)
|
| 1554 |
+
|
| 1555 |
+
|
| 1556 |
+
@app.get("/help", response_class=HTMLResponse)
|
| 1557 |
+
def help_page(request: Request, s: str = ""):
|
| 1558 |
+
token, account, owner = _session(request)
|
| 1559 |
+
faqs = CONTENT["faqs"]
|
| 1560 |
+
if s.strip():
|
| 1561 |
+
n = s.strip().lower()
|
| 1562 |
+
faqs = [f for f in faqs if n in f["q"].lower() or n in f["a"].lower()]
|
| 1563 |
+
ctx = _base(request, account, owner)
|
| 1564 |
+
ctx.update(faqs=faqs, s=s, searched=bool(s.strip()), title="Help")
|
| 1565 |
+
return _render(request, "help.html", ctx, token)
|
| 1566 |
+
|
| 1567 |
+
|
| 1568 |
+
@app.get("/learn", response_class=HTMLResponse)
|
| 1569 |
+
def learn(request: Request):
|
| 1570 |
+
token, account, owner = _session(request)
|
| 1571 |
+
ctx = _base(request, account, owner)
|
| 1572 |
+
ctx.update(articles=CONTENT["articles"], title="Eyewear A to Z")
|
| 1573 |
+
return _render(request, "learn.html", ctx, token)
|
| 1574 |
+
|
| 1575 |
+
|
| 1576 |
+
@app.get("/learn/{slug}", response_class=HTMLResponse)
|
| 1577 |
+
def learn_article(request: Request, slug: str):
|
| 1578 |
+
token, account, owner = _session(request)
|
| 1579 |
+
captured = _source_page(request, f"/learn/{slug}", token, account, owner)
|
| 1580 |
+
if captured is not None:
|
| 1581 |
+
return captured
|
| 1582 |
+
art = next((a for a in CONTENT["articles"] if a["slug"] == slug), None)
|
| 1583 |
+
if not art:
|
| 1584 |
+
return _not_found(request, token, account, owner)
|
| 1585 |
+
ctx = _base(request, account, owner)
|
| 1586 |
+
ctx.update(article=art, title=art["title"])
|
| 1587 |
+
return _render(request, "article.html", ctx, token)
|
| 1588 |
+
|
| 1589 |
+
|
| 1590 |
+
@app.get("/{slug}", response_class=HTMLResponse)
|
| 1591 |
+
def content_page(request: Request, slug: str):
|
| 1592 |
+
token, account, owner = _session(request)
|
| 1593 |
+
captured = _source_page(request, f"/{slug}", token, account, owner)
|
| 1594 |
+
if captured is not None:
|
| 1595 |
+
return captured
|
| 1596 |
+
page = CONTENT["pages"].get(slug)
|
| 1597 |
+
if not page:
|
| 1598 |
+
return _not_found(request, token, account, owner)
|
| 1599 |
+
ctx = _base(request, account, owner)
|
| 1600 |
+
ctx.update(page=page, title=page["title"])
|
| 1601 |
+
return _render(request, "content.html", ctx, token)
|
| 1602 |
+
|
| 1603 |
+
|
| 1604 |
+
@app.get("/{a}/{b}", response_class=HTMLResponse)
|
| 1605 |
+
def content_page_2(request: Request, a: str, b: str):
|
| 1606 |
+
token, account, owner = _session(request)
|
| 1607 |
+
captured = _source_page(request, f"/{a}/{b}", token, account, owner)
|
| 1608 |
+
if captured is not None:
|
| 1609 |
+
return captured
|
| 1610 |
+
page = CONTENT["pages"].get(f"{a}/{b}")
|
| 1611 |
+
if not page:
|
| 1612 |
+
return _not_found(request, token, account, owner)
|
| 1613 |
+
ctx = _base(request, account, owner)
|
| 1614 |
+
ctx.update(page=page, title=page["title"])
|
| 1615 |
+
return _render(request, "content.html", ctx, token)
|
| 1616 |
+
|
| 1617 |
+
|
| 1618 |
+
def _not_found(request: Request, token: str, account: dict, owner: str):
|
| 1619 |
+
ctx = _base(request, account, owner)
|
| 1620 |
+
ctx["title"] = "Page not found"
|
| 1621 |
+
return _render(request, "404.html", ctx, token, status=404)
|
| 1622 |
+
|
| 1623 |
+
|
| 1624 |
+
# --------------------------------------------------------------- route order
|
| 1625 |
+
# FastAPI matches in declaration order, so the parameterised catch-alls
|
| 1626 |
+
# (/{category}/{model}/{color}, /{slug}, /{a}/{b}) must be tried last or they
|
| 1627 |
+
# swallow literal paths such as /appointments/eye-exams/booking.
|
| 1628 |
+
def _specificity(route) -> int:
|
| 1629 |
+
path = getattr(route, "path", "")
|
| 1630 |
+
params = path.count("{")
|
| 1631 |
+
if params == 0:
|
| 1632 |
+
return 0
|
| 1633 |
+
if path in ("/{slug}", "/{a}/{b}"):
|
| 1634 |
+
return 3
|
| 1635 |
+
if path.startswith("/{category}"):
|
| 1636 |
+
return 2
|
| 1637 |
+
return 1
|
| 1638 |
+
|
| 1639 |
+
|
| 1640 |
+
app.router.routes.sort(key=_specificity)
|
| 1641 |
+
|
| 1642 |
+
|
| 1643 |
+
if __name__ == "__main__": # pragma: no cover - process entry point
|
| 1644 |
+
import uvicorn
|
| 1645 |
+
|
| 1646 |
+
uvicorn.run(app, host="127.0.0.1", port=int(os.environ.get("PORT", "8000")),
|
| 1647 |
+
log_level="warning")
|
tasks/warbyparker/solution/site/implementation/clone/backend/site_backend_integration.py
ADDED
|
@@ -0,0 +1,112 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""Generated, site-bound backend integration seam."""
|
| 2 |
+
|
| 3 |
+
from __future__ import annotations
|
| 4 |
+
|
| 5 |
+
import importlib
|
| 6 |
+
import json
|
| 7 |
+
import os
|
| 8 |
+
import sqlite3
|
| 9 |
+
from pathlib import Path
|
| 10 |
+
from typing import Any, Callable
|
| 11 |
+
|
| 12 |
+
from websitebench.local_clone_auth import LocalAuthStore
|
| 13 |
+
from websitebench.site_backend import (
|
| 14 |
+
SiteBackend,
|
| 15 |
+
load_runtime,
|
| 16 |
+
serve_jsonl,
|
| 17 |
+
validate_allowlist,
|
| 18 |
+
)
|
| 19 |
+
|
| 20 |
+
|
| 21 |
+
DEFAULT_RUNTIME_PATH = (
|
| 22 |
+
Path(__file__).resolve().parents[2] / "backend" / "runtime.json"
|
| 23 |
+
)
|
| 24 |
+
BRIDGE_DESCRIPTOR_PATH = (
|
| 25 |
+
Path(__file__).resolve().parents[2] / "backend" / "node-bridge.json"
|
| 26 |
+
)
|
| 27 |
+
|
| 28 |
+
|
| 29 |
+
def _declared_hook(
|
| 30 |
+
declaration: str | None,
|
| 31 |
+
) -> Callable[[sqlite3.Connection], None] | None:
|
| 32 |
+
if declaration is None:
|
| 33 |
+
return None
|
| 34 |
+
module_name, function_name = declaration.split(":", 1)
|
| 35 |
+
module = importlib.import_module(module_name)
|
| 36 |
+
hook: Any = getattr(module, function_name, None)
|
| 37 |
+
if not callable(hook):
|
| 38 |
+
raise RuntimeError(f"declared backend hook is not callable: {declaration}")
|
| 39 |
+
actual = f"{hook.__module__}:{hook.__name__}"
|
| 40 |
+
if actual != declaration:
|
| 41 |
+
raise RuntimeError(
|
| 42 |
+
f"declared backend hook resolved as {actual!r}, expected {declaration!r}"
|
| 43 |
+
)
|
| 44 |
+
return hook
|
| 45 |
+
|
| 46 |
+
|
| 47 |
+
def open_site_services() -> tuple[SiteBackend, LocalAuthStore]:
|
| 48 |
+
"""Open one bound database; never omit the site id for permanent auth."""
|
| 49 |
+
|
| 50 |
+
runtime_path = Path(
|
| 51 |
+
os.environ.get(
|
| 52 |
+
"WEBSITEBENCH_SITE_BACKEND_RUNTIME",
|
| 53 |
+
str(DEFAULT_RUNTIME_PATH),
|
| 54 |
+
)
|
| 55 |
+
).resolve()
|
| 56 |
+
runtime = load_runtime(runtime_path)
|
| 57 |
+
migration_hook = _declared_hook(runtime.migration_hook)
|
| 58 |
+
seed_hook = _declared_hook(runtime.seed_hook)
|
| 59 |
+
deployed_database = os.environ.get(
|
| 60 |
+
"WEBSITEBENCH_SITE_BACKEND_DATABASE",
|
| 61 |
+
)
|
| 62 |
+
if deployed_database is None:
|
| 63 |
+
backend = SiteBackend.open(
|
| 64 |
+
runtime_path,
|
| 65 |
+
migration_hook=migration_hook,
|
| 66 |
+
seed_hook=seed_hook,
|
| 67 |
+
)
|
| 68 |
+
else:
|
| 69 |
+
database_path = Path(deployed_database).resolve()
|
| 70 |
+
if database_path.name != runtime.database_filename:
|
| 71 |
+
raise RuntimeError(
|
| 72 |
+
"deployed database filename does not match runtime contract"
|
| 73 |
+
)
|
| 74 |
+
backend = SiteBackend.open(
|
| 75 |
+
json.loads(runtime_path.read_text(encoding="utf-8")),
|
| 76 |
+
data_root=database_path.parent,
|
| 77 |
+
migration_hook=migration_hook,
|
| 78 |
+
seed_hook=seed_hook,
|
| 79 |
+
)
|
| 80 |
+
if backend.lifecycle.database_path != database_path:
|
| 81 |
+
raise RuntimeError(
|
| 82 |
+
"deployed database path does not match backend preflight"
|
| 83 |
+
)
|
| 84 |
+
backend.lifecycle.initialize()
|
| 85 |
+
auth = LocalAuthStore(
|
| 86 |
+
backend.lifecycle.database_path,
|
| 87 |
+
site_id=backend.config.site_id,
|
| 88 |
+
)
|
| 89 |
+
auth.ensure_schema()
|
| 90 |
+
return backend, auth
|
| 91 |
+
|
| 92 |
+
|
| 93 |
+
def run_stdio_bridge() -> None:
|
| 94 |
+
"""Run only operations frozen in this site's descriptor."""
|
| 95 |
+
|
| 96 |
+
backend, auth = open_site_services()
|
| 97 |
+
descriptor = json.loads(BRIDGE_DESCRIPTOR_PATH.read_text(encoding="utf-8"))
|
| 98 |
+
allowed = validate_allowlist(
|
| 99 |
+
descriptor,
|
| 100 |
+
expected_site_id=backend.config.site_id,
|
| 101 |
+
)
|
| 102 |
+
serve_jsonl(backend, auth, allowed, sys.stdin, sys.stdout)
|
| 103 |
+
|
| 104 |
+
|
| 105 |
+
if __name__ == "__main__":
|
| 106 |
+
import argparse
|
| 107 |
+
import sys
|
| 108 |
+
|
| 109 |
+
parser = argparse.ArgumentParser(prog="websitebench-node-backend-bridge")
|
| 110 |
+
parser.add_argument("--stdio", action="store_true", required=True)
|
| 111 |
+
parser.parse_args()
|
| 112 |
+
run_stdio_bridge()
|
tasks/warbyparker/solution/site/implementation/clone/data/catalog.py
ADDED
|
@@ -0,0 +1,342 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""Catalog for the warbyparker offline clone.
|
| 2 |
+
|
| 3 |
+
Everything here is source-observed. The source ships a JSON payload of frame
|
| 4 |
+
objects inside its collection pages; `frames-{sunglasses,eyeglasses}.json` are
|
| 5 |
+
those objects, harvested page by page over public GETs, and `image-manifest.json`
|
| 6 |
+
maps each SKU to the локally stored copies of the images the source served for it.
|
| 7 |
+
|
| 8 |
+
Source-observed per variant: model, display name, colour name and colour code,
|
| 9 |
+
price, gender, primary shape, eyewire material, bridge fit, kids flag, stock
|
| 10 |
+
flag, marketing description, the offered frame widths, merchandising tags and
|
| 11 |
+
the front / angle / third-view photography plus the colour swatch.
|
| 12 |
+
|
| 13 |
+
Inferred (and recorded as such in scope/claims.jsonl): frame measurements in
|
| 14 |
+
millimetres, and the rating / review-count numbers, which the collection payload
|
| 15 |
+
does not carry.
|
| 16 |
+
"""
|
| 17 |
+
from __future__ import annotations
|
| 18 |
+
|
| 19 |
+
import json
|
| 20 |
+
from pathlib import Path
|
| 21 |
+
|
| 22 |
+
_DATA = Path(__file__).resolve().parent
|
| 23 |
+
_IMAGES: dict[str, dict] = json.loads(
|
| 24 |
+
(_DATA / "image-manifest.json").read_text(encoding="utf-8"))
|
| 25 |
+
# Per-model detail harvested from each model's own PDP payload: the real
|
| 26 |
+
# millimetre dimensions per width, and the real aggregate rating.
|
| 27 |
+
_DETAIL: dict[str, dict] = json.loads(
|
| 28 |
+
(_DATA / "frame-details.json").read_text(encoding="utf-8"))
|
| 29 |
+
# The collection payload can name fewer widths for a colour than that colour's
|
| 30 |
+
# own PDP does (verified on rosie / Terrazzo Tortoise). Where the two disagree
|
| 31 |
+
# the PDP is authoritative, so those variants were re-read individually.
|
| 32 |
+
_VARIANT_WIDTHS: dict[str, list[str]] = json.loads(
|
| 33 |
+
(_DATA / "variant-widths.json").read_text(encoding="utf-8"))
|
| 34 |
+
|
| 35 |
+
WIDTHS = ["extra-narrow", "narrow", "medium", "wide", "extra-wide"]
|
| 36 |
+
WIDTH_LABEL = {"extra-narrow": "Extra narrow", "narrow": "Narrow",
|
| 37 |
+
"medium": "Medium", "wide": "Wide", "extra-wide": "Extra wide"}
|
| 38 |
+
WIDTH_BLURB = {
|
| 39 |
+
"extra-narrow": "If you have a especially slender or narrow face",
|
| 40 |
+
"narrow": "If you have a slender or narrow face",
|
| 41 |
+
"medium": "If your face is average in size (the most common option!)",
|
| 42 |
+
"wide": "If you have a wide or broad face",
|
| 43 |
+
"extra-wide": "If you have an especially wide or broad face",
|
| 44 |
+
}
|
| 45 |
+
|
| 46 |
+
# source-observed from the /atc step-2 pills (absolute prices, not deltas)
|
| 47 |
+
PRESCRIPTIONS = [
|
| 48 |
+
("non-prescription", "Non-prescription", 95,
|
| 49 |
+
"UV-blocking lenses with a scratch-resistant coating, offering protection "
|
| 50 |
+
"without vision correction"),
|
| 51 |
+
("single-vision", "Single-vision", 195,
|
| 52 |
+
"UV-blocking lenses with a scratch-resistant coating—plus they correct one "
|
| 53 |
+
"field of vision (near, intermediate, or distance)"),
|
| 54 |
+
("progressives", "Progressives", 425,
|
| 55 |
+
"UV-blocking lenses with a scratch-resistant coating—plus they correct near, "
|
| 56 |
+
"intermediate, and distance fields of vision (select if your prescription has a "
|
| 57 |
+
"value for ADD on it)"),
|
| 58 |
+
("readers", "Readers", 195,
|
| 59 |
+
"UV-blocking lenses with a scratch-resistant coating—plus they provide simple "
|
| 60 |
+
"magnification for, well, reading (no prescription necessary)"),
|
| 61 |
+
]
|
| 62 |
+
LENS_COLORS = [
|
| 63 |
+
("included", "Included lenses", 0, None),
|
| 64 |
+
("customize", "Customize your lenses", 50,
|
| 65 |
+
"Personalize your pair with polarized or tinted lenses"),
|
| 66 |
+
]
|
| 67 |
+
# Eyeglasses open the configurator with a prescription question that sunglasses
|
| 68 |
+
# do not have (source-observed on /eyeglasses/<model>/<colour>/atc).
|
| 69 |
+
RX_HANDY = [
|
| 70 |
+
("yes", "Yes", "Add it now",
|
| 71 |
+
"Select a prescription from your account, upload a photo, or enter it manually."),
|
| 72 |
+
("later", "No", "Add it later",
|
| 73 |
+
"You can add it in cart or checkout—we'll need a valid prescription to "
|
| 74 |
+
"fulfill your order."),
|
| 75 |
+
("none", "I don't need one", None,
|
| 76 |
+
"I'm buying non-prescription or readers."),
|
| 77 |
+
]
|
| 78 |
+
|
| 79 |
+
UPSELL = ("clean-my-lenses-kit", "Clean My Lenses Kit", 20,
|
| 80 |
+
"It includes anti-fog lens spray, a microfiber cloth, and a microfiber "
|
| 81 |
+
"lens pouch—convenient!")
|
| 82 |
+
CART_SUGGESTIONS = [
|
| 83 |
+
("parker-pouch-single", "Parker Pouch - Single", 20),
|
| 84 |
+
("parker-case", "Parker Case", 20),
|
| 85 |
+
("clean-my-lenses-kit-anti-fog", "Clean My Lenses Kit with Anti-Fog Spray", 20),
|
| 86 |
+
]
|
| 87 |
+
|
| 88 |
+
# The facet panel exactly as the source ships it (group names, option copy,
|
| 89 |
+
# query parameters, helper descriptions), harvested from the collection payload.
|
| 90 |
+
FACETS: dict[str, list[dict]] = json.loads(
|
| 91 |
+
(_DATA / "facets.json").read_text(encoding="utf-8"))
|
| 92 |
+
|
| 93 |
+
# eyewireMaterial codes resolved against the "material" field of the ld+json
|
| 94 |
+
# ProductGroup on a real PDP for each code (see evidence/source/capture-log.md).
|
| 95 |
+
MATERIAL_NAME = {"HB": "Cellulose Acetate", "": "Cellulose Acetate",
|
| 96 |
+
"DM": "Titanium", "GD": "Stainless Steel", "SB": "Nylon"}
|
| 97 |
+
# ...and onto the four options the source's Material facet offers.
|
| 98 |
+
MATERIAL_FACET = {"HB": "Acetate", "": "Acetate", "DM": "Metal",
|
| 99 |
+
"GD": "Metal", "SB": "Nylon"}
|
| 100 |
+
GENDER_FACET = {"male": "M", "female": "F"} # "both" matches either option
|
| 101 |
+
GENDER_LABEL = {"both": "Unisex", "female": "Women's", "male": "Men's"}
|
| 102 |
+
BRIDGE_LABEL = {"standardBridge": "Standard bridge", "lowBridge": "Low Bridge Fit"}
|
| 103 |
+
|
| 104 |
+
# The source's Color facet offers these 16 values; each frame colour name is
|
| 105 |
+
# matched to them by the vocabulary the source itself uses in colour names.
|
| 106 |
+
COLOR_FAMILIES = {
|
| 107 |
+
"black": ("black", "eclipse", "jet", "licorice", "ink", "midnight", "onyx"),
|
| 108 |
+
"brown": ("brown", "toffee", "cinnamon", "umber", "ancho", "oak", "walnut",
|
| 109 |
+
"chestnut", "cacao", "whiskey", "macadamia", "buckwheat", "praline",
|
| 110 |
+
"tamarind", "cola", "caramel", "nutmeg", "sassafras", "driftwood",
|
| 111 |
+
"acorn", "amalfi", "manuka", "rye", "sesame", "coffee", "espresso",
|
| 112 |
+
"ristretto", "mocha", "cobblestone", "honeycomb", "chai"),
|
| 113 |
+
"tortoise": ("tortoise",),
|
| 114 |
+
"crystal": ("crystal",),
|
| 115 |
+
"multicolor": ("confetti", "terrazzo", "striped", "fade", "multicolor"),
|
| 116 |
+
"two-tone": ("with ", "two-tone"),
|
| 117 |
+
"gold": ("gold",),
|
| 118 |
+
"silver": ("silver", "chrome"),
|
| 119 |
+
"red": ("red", "raspberry", "malbec", "amarena", "cherry", "burgundy",
|
| 120 |
+
"riesling"),
|
| 121 |
+
"yellow": ("yellow", "honeydew", "apricot", "primrose", "marigold", "amber",
|
| 122 |
+
"brass", "wheat"),
|
| 123 |
+
"green": ("green", "moss", "olive", "eucalyptus", "seaweed", "viridian",
|
| 124 |
+
"canopy", "emerald", "lilypad", "cypress", "spruce", "ivy",
|
| 125 |
+
"poblano", "sage", "alder", "cactus", "rosemary"),
|
| 126 |
+
"blue": ("blue", "navy", "azure", "bellflower", "cornflower", "marine",
|
| 127 |
+
"pacific", "laguna", "bay", "inlet"),
|
| 128 |
+
"pink": ("pink", "rose", "magnolia", "mauve", "blush", "petal"),
|
| 129 |
+
"purple": ("purple", "violet", "lilac", "plum", "quartz", "lavender"),
|
| 130 |
+
"grey": ("grey", "gray", "greystone", "smoke", "slate", "shale", "graphite",
|
| 131 |
+
"snowmelt", "phantom", "pebble", "dove", "saltwater", "stone"),
|
| 132 |
+
"clear": ("clear", "transparent"),
|
| 133 |
+
}
|
| 134 |
+
|
| 135 |
+
|
| 136 |
+
def _families(color: str) -> list[str]:
|
| 137 |
+
low = color.lower()
|
| 138 |
+
out = [fam for fam, needles in COLOR_FAMILIES.items()
|
| 139 |
+
if any(n in low for n in needles)]
|
| 140 |
+
return out or ["crystal"]
|
| 141 |
+
|
| 142 |
+
|
| 143 |
+
def _slug(color: str) -> str:
|
| 144 |
+
return (color.lower().replace("+", " ").replace("&", " ")
|
| 145 |
+
.replace("'", "").replace(".", "").replace(",", "")
|
| 146 |
+
.replace("/", " ").replace(" ", " ").strip().replace(" ", "-"))
|
| 147 |
+
|
| 148 |
+
|
| 149 |
+
# The PDP payload's own dimension keys, in the order the source lists them.
|
| 150 |
+
MEASURE_LABELS = [("lensWidth", "Lens width"), ("bridgeWidth", "Bridge"),
|
| 151 |
+
("templeLength", "Temple"), ("lensHeight", "Lens height"),
|
| 152 |
+
("overallFrameWidth", "Frame width"), ("panto", "Panto"),
|
| 153 |
+
("headCurve", "Head curve")]
|
| 154 |
+
|
| 155 |
+
|
| 156 |
+
def _measure(category: str, model: str, width: str) -> dict | None:
|
| 157 |
+
"""Source-observed millimetres for this exact (model, width), or None."""
|
| 158 |
+
detail = _DETAIL.get(f"{category}:{model}") or {}
|
| 159 |
+
return (detail.get("dimensions") or {}).get(width)
|
| 160 |
+
|
| 161 |
+
|
| 162 |
+
def _shape_slug(shape: str | None) -> str:
|
| 163 |
+
s = (shape or "").strip().lower()
|
| 164 |
+
return {"aviator": "aviators", "cat-eye": "cat-eye"}.get(s, s or "rectangle")
|
| 165 |
+
|
| 166 |
+
|
| 167 |
+
def _load(category: str) -> list[dict]:
|
| 168 |
+
raw = json.loads((_DATA / f"frames-{category}.json").read_text(encoding="utf-8"))
|
| 169 |
+
grouped: dict[str, list[dict]] = {}
|
| 170 |
+
for item in raw["items"]:
|
| 171 |
+
images = _IMAGES.get(item["id"], {})
|
| 172 |
+
if not images.get("views"):
|
| 173 |
+
# no local photography for this SKU: never ship a placeholder
|
| 174 |
+
continue
|
| 175 |
+
grouped.setdefault(item["frame"], []).append((item, images))
|
| 176 |
+
|
| 177 |
+
frames = []
|
| 178 |
+
for store_frame_id, entries in grouped.items():
|
| 179 |
+
head = entries[0][0]
|
| 180 |
+
model = store_frame_id.rsplit("-", 2)[0]
|
| 181 |
+
widths = []
|
| 182 |
+
for item, _ in entries:
|
| 183 |
+
for w in (_VARIANT_WIDTHS.get(item["id"]) or item["widths"]):
|
| 184 |
+
if w in WIDTHS and w not in widths:
|
| 185 |
+
widths.append(w)
|
| 186 |
+
widths.sort(key=WIDTHS.index)
|
| 187 |
+
widths = widths or ["medium"]
|
| 188 |
+
variants = []
|
| 189 |
+
for index, (item, images) in enumerate(entries):
|
| 190 |
+
variants.append({
|
| 191 |
+
"slug": _slug(item["color"]),
|
| 192 |
+
"name": item["color"],
|
| 193 |
+
"code": item["code"],
|
| 194 |
+
"sku": item["id"],
|
| 195 |
+
"families": _families(item["color"]),
|
| 196 |
+
"image": images["views"][0],
|
| 197 |
+
"views": images["views"],
|
| 198 |
+
"swatch": images.get("swatch") or images["views"][0],
|
| 199 |
+
"in_stock": bool(item.get("stock", True)),
|
| 200 |
+
"widths": (_VARIANT_WIDTHS.get(item["id"])
|
| 201 |
+
or [w for w in item["widths"] if w in WIDTHS]
|
| 202 |
+
or ["medium"]),
|
| 203 |
+
"default": index == 0,
|
| 204 |
+
})
|
| 205 |
+
frames.append({
|
| 206 |
+
"model": model,
|
| 207 |
+
"name": head["name"],
|
| 208 |
+
"category": category,
|
| 209 |
+
"price": int(float(head["price"])),
|
| 210 |
+
"shape": _shape_slug(head["shape"]),
|
| 211 |
+
"gender": head["gender"],
|
| 212 |
+
"material": head["material"] or "SB",
|
| 213 |
+
"bridge": head["bridge"],
|
| 214 |
+
"kids": bool(head.get("kids")),
|
| 215 |
+
"tags": head.get("tags") or [],
|
| 216 |
+
"badges": [{"label": t.get("label"), "bg": t.get("backgroundColor"),
|
| 217 |
+
"fg": t.get("textColor"), "border": t.get("borderColor")}
|
| 218 |
+
for t in (head.get("tags") or []) if t.get("label")],
|
| 219 |
+
"widths": widths,
|
| 220 |
+
"variants": variants,
|
| 221 |
+
"measurements": {w: _measure(category, model, w) for w in widths
|
| 222 |
+
if _measure(category, model, w)},
|
| 223 |
+
# the width a link should land on: one we can fully describe,
|
| 224 |
+
# preferring "medium" the way the source's own PDPs do
|
| 225 |
+
"default_width": next(
|
| 226 |
+
(w for w in ("medium", *widths)
|
| 227 |
+
if _measure(category, model, w)), widths[0]),
|
| 228 |
+
"description": head["desc"] or "",
|
| 229 |
+
# source-observed; None where the source shows no reviews yet
|
| 230 |
+
"rating": (_DETAIL.get(f"{category}:{model}") or {}).get("rating"),
|
| 231 |
+
})
|
| 232 |
+
# Keep the order the source served, page by page: that IS the "Featured" sort.
|
| 233 |
+
return frames
|
| 234 |
+
|
| 235 |
+
|
| 236 |
+
FRAMES = _load("sunglasses") + _load("eyeglasses")
|
| 237 |
+
|
| 238 |
+
BY_MODEL: dict = {}
|
| 239 |
+
for _f in FRAMES:
|
| 240 |
+
BY_MODEL[(_f["category"], _f["model"])] = _f
|
| 241 |
+
BY_MODEL.setdefault(_f["model"], _f)
|
| 242 |
+
|
| 243 |
+
SHAPES = sorted({f["shape"] for f in FRAMES})
|
| 244 |
+
GENDERS = ["female", "male", "both"]
|
| 245 |
+
MATERIALS = sorted({MATERIAL_FACET.get(f["material"], "Acetate") for f in FRAMES})
|
| 246 |
+
PRICES = sorted({f["price"] for f in FRAMES})
|
| 247 |
+
BRIDGES = sorted({f["bridge"] for f in FRAMES})
|
| 248 |
+
COLOR_FAMILY_NAMES = list(COLOR_FAMILIES)
|
| 249 |
+
|
| 250 |
+
SOURCE_TOTALS = {"sunglasses": 121, "eyeglasses": 257}
|
| 251 |
+
|
| 252 |
+
|
| 253 |
+
def variant(model: str, color: str, category: str | None = None):
|
| 254 |
+
frame = BY_MODEL.get((category, model)) if category else BY_MODEL.get(model)
|
| 255 |
+
if not frame:
|
| 256 |
+
return None, None
|
| 257 |
+
for v in frame["variants"]:
|
| 258 |
+
if v["slug"] == color:
|
| 259 |
+
return frame, v
|
| 260 |
+
return frame, None
|
| 261 |
+
|
| 262 |
+
|
| 263 |
+
# ---------------------------------------------------------------- faceting
|
| 264 |
+
# Which facet options this catalog can actually satisfy from the source payload.
|
| 265 |
+
# Options the payload carries no field for are dropped rather than rendered as
|
| 266 |
+
# controls that can never match anything (recorded in scope/claims.jsonl).
|
| 267 |
+
SUPPORTED_FACETS = {"gender", "shapes", "availableWidths", "colors", "materials",
|
| 268 |
+
"prices", "bridgeFit", "construction", "merch"}
|
| 269 |
+
_TAG_BACKED = {"made-in-italy": "Made in Italy", "made-in-japan": "Made in Japan",
|
| 270 |
+
"light-weight": "Lightweight", "statement-frames": "Bold shapes"}
|
| 271 |
+
|
| 272 |
+
|
| 273 |
+
def _badge_labels(frame: dict) -> set[str]:
|
| 274 |
+
return {b["label"] for b in frame["badges"] if b.get("label")}
|
| 275 |
+
|
| 276 |
+
|
| 277 |
+
def facet_groups(category: str) -> list[dict]:
|
| 278 |
+
"""The source's own facet panel, minus options this catalog cannot satisfy."""
|
| 279 |
+
groups = []
|
| 280 |
+
for g in FACETS.get(category, []):
|
| 281 |
+
items = []
|
| 282 |
+
for it in g["items"]:
|
| 283 |
+
facet, value = it.get("facet"), it.get("value")
|
| 284 |
+
if facet not in SUPPORTED_FACETS:
|
| 285 |
+
continue
|
| 286 |
+
if facet in ("construction", "merch") and value not in _TAG_BACKED:
|
| 287 |
+
continue
|
| 288 |
+
items.append(it)
|
| 289 |
+
if items:
|
| 290 |
+
groups.append({**g, "items": items})
|
| 291 |
+
return groups
|
| 292 |
+
|
| 293 |
+
|
| 294 |
+
def matches(frame: dict, params) -> bool:
|
| 295 |
+
"""Apply the source's own facet query vocabulary to one frame."""
|
| 296 |
+
genders = params.getlist("gender")
|
| 297 |
+
if genders and frame["gender"] != "both":
|
| 298 |
+
if GENDER_FACET.get(frame["gender"]) not in genders:
|
| 299 |
+
return False
|
| 300 |
+
shapes = params.getlist("shapes")
|
| 301 |
+
if shapes and not any(_shape_slug(s) == frame["shape"] for s in shapes):
|
| 302 |
+
return False
|
| 303 |
+
widths = params.getlist("availableWidths")
|
| 304 |
+
if widths and not (set(widths) & set(frame["widths"])):
|
| 305 |
+
return False
|
| 306 |
+
colors = params.getlist("colors")
|
| 307 |
+
if colors:
|
| 308 |
+
have = set()
|
| 309 |
+
for v in frame["variants"]:
|
| 310 |
+
have |= set(v["families"])
|
| 311 |
+
if not (have & set(colors)):
|
| 312 |
+
return False
|
| 313 |
+
materials = params.getlist("materials")
|
| 314 |
+
if materials and MATERIAL_FACET.get(frame["material"], "Acetate") not in materials:
|
| 315 |
+
return False
|
| 316 |
+
prices = [p for p in params.getlist("prices") if p.isdigit()]
|
| 317 |
+
if prices and frame["price"] not in {int(p) for p in prices}:
|
| 318 |
+
return False
|
| 319 |
+
bridges = params.getlist("bridgeFit")
|
| 320 |
+
if bridges and frame["bridge"] not in bridges:
|
| 321 |
+
return False
|
| 322 |
+
for facet in ("construction", "merch"):
|
| 323 |
+
wanted = [v for v in params.getlist(facet) if v in _TAG_BACKED]
|
| 324 |
+
if wanted:
|
| 325 |
+
labels = _badge_labels(frame)
|
| 326 |
+
if not any(_TAG_BACKED[v] in labels for v in wanted):
|
| 327 |
+
return False
|
| 328 |
+
return True
|
| 329 |
+
|
| 330 |
+
|
| 331 |
+
SORTS = [("featured", "Featured"), ("price-low-high", "Price: Low to High"),
|
| 332 |
+
("price-high-low", "Price: High to Low"), ("name", "Name")]
|
| 333 |
+
|
| 334 |
+
|
| 335 |
+
def sorted_frames(frames: list[dict], sort: str) -> list[dict]:
|
| 336 |
+
if sort == "price-low-high":
|
| 337 |
+
return sorted(frames, key=lambda f: (f["price"], f["model"]))
|
| 338 |
+
if sort == "price-high-low":
|
| 339 |
+
return sorted(frames, key=lambda f: (-f["price"], f["model"]))
|
| 340 |
+
if sort == "name":
|
| 341 |
+
return sorted(frames, key=lambda f: f["name"])
|
| 342 |
+
return frames
|
tasks/warbyparker/solution/site/implementation/clone/data/collections.json
ADDED
|
@@ -0,0 +1,460 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"/collections/aero": {
|
| 3 |
+
"title": "Aero Series | Warby Parker",
|
| 4 |
+
"skus": [
|
| 5 |
+
"amaya-opt-sbf-saddle-tortoise",
|
| 6 |
+
"denman-opt-sbf-rye-tortoise-matte",
|
| 7 |
+
"ernie-opt-sbf-rye-tortoise-matte",
|
| 8 |
+
"ernie-opt-sbf-shore-pine-matte",
|
| 9 |
+
"marvin-opt-sbf-rye-tortoise",
|
| 10 |
+
"poston-opt-sbf-midnight-matte",
|
| 11 |
+
"poston-opt-sbf-rye-tortoise-matte"
|
| 12 |
+
]
|
| 13 |
+
},
|
| 14 |
+
"/collections/everywhere-series": {
|
| 15 |
+
"title": "Everywhere Series | Warby Parker",
|
| 16 |
+
"skus": [
|
| 17 |
+
"betz-sun-sbf-balsam-matte",
|
| 18 |
+
"betz-sun-sbf-raven-matte",
|
| 19 |
+
"callum-opt-sbf-balsam-matte",
|
| 20 |
+
"callum-opt-sbf-raven-matte",
|
| 21 |
+
"callum-opt-sbf-stratus-matte",
|
| 22 |
+
"callum-sun-sbf-balsam-matte",
|
| 23 |
+
"callum-sun-sbf-raven-matte",
|
| 24 |
+
"callum-sun-sbf-stratus-matte",
|
| 25 |
+
"hetty-opt-sbf-mocha-matte",
|
| 26 |
+
"hetty-opt-sbf-stratus-matte",
|
| 27 |
+
"richie-sun-sbf-raven-matte",
|
| 28 |
+
"richie-sun-sbf-stratus-matte",
|
| 29 |
+
"tacha-opt-sbf-beach-rose-matte",
|
| 30 |
+
"tacha-opt-sbf-mocha-matte",
|
| 31 |
+
"tacha-sun-sbf-beach-rose-matte",
|
| 32 |
+
"tacha-sun-sbf-mocha-matte",
|
| 33 |
+
"tally-opt-sbf-crystal-gulf-matte",
|
| 34 |
+
"tally-opt-sbf-himalayan-salt-matte"
|
| 35 |
+
]
|
| 36 |
+
},
|
| 37 |
+
"/collections/fall-2025": {
|
| 38 |
+
"title": "Fall 2025 | Warby Parker",
|
| 39 |
+
"skus": [
|
| 40 |
+
"blakeley-opt-sbf-peacock-green",
|
| 41 |
+
"blakeley-opt-sbf-smoky-mauve-tortoise",
|
| 42 |
+
"blakeley-opt-sbf-violet-magnolia",
|
| 43 |
+
"boggs-opt-sbf-chestnut-crystal",
|
| 44 |
+
"boggs-opt-sbf-jet-black",
|
| 45 |
+
"boggs-opt-sbf-snowmelt-matte",
|
| 46 |
+
"brimmer-sun-sbf-black-walnut",
|
| 47 |
+
"brimmer-sun-sbf-harbor-crystal",
|
| 48 |
+
"brimmer-sun-sbf-honeydew",
|
| 49 |
+
"brimmer-sun-sbf-jet-black-with-polished-gold",
|
| 50 |
+
"carlton-opt-sbf-apricot",
|
| 51 |
+
"carlton-opt-sbf-crystal",
|
| 52 |
+
"carlton-opt-sbf-nimbus-crystal-with-cacao-and-oak-barrel",
|
| 53 |
+
"carlton-opt-sbf-ristretto-tortoise",
|
| 54 |
+
"carlton-opt-sbf-seaweed-crystal",
|
| 55 |
+
"carson-opt-sbf-chai-crystal-fade",
|
| 56 |
+
"carson-opt-sbf-cinnamon-tortoise",
|
| 57 |
+
"carson-sun-sbf-chai-crystal-fade",
|
| 58 |
+
"carson-sun-sbf-cinnamon-tortoise",
|
| 59 |
+
"claude-opt-sbf-seaweed-crystal-with-antique-silver",
|
| 60 |
+
"claude-opt-sbf-umber-crystal-with-riesling",
|
| 61 |
+
"hector-opt-sbf-driftwood-fade",
|
| 62 |
+
"hector-opt-sbf-laguna-crystal-matte",
|
| 63 |
+
"hector-opt-sbf-whiskey-tortoise",
|
| 64 |
+
"ketty-opt-sbf-amarena",
|
| 65 |
+
"ketty-opt-sbf-terrazzo-tortoise",
|
| 66 |
+
"rosie-sun-sbf-jet-black",
|
| 67 |
+
"rosie-sun-sbf-mulberry-tortoise-fade",
|
| 68 |
+
"rosie-sun-sbf-terrazzo-tortoise"
|
| 69 |
+
]
|
| 70 |
+
},
|
| 71 |
+
"/collections/iris-edition": {
|
| 72 |
+
"title": "Iris Edition | Warby Parker",
|
| 73 |
+
"skus": [
|
| 74 |
+
"dex-opt-sbf-haze-crystal-with-brushed-ink",
|
| 75 |
+
"dex-opt-sbf-marine-teal-with-antique-silver",
|
| 76 |
+
"galen-opt-sbf-crystal-with-riesling",
|
| 77 |
+
"galen-opt-sbf-haze-crystal-with-brushed-ink",
|
| 78 |
+
"kerry-opt-sbf-malbec-red-with-polished-gold"
|
| 79 |
+
]
|
| 80 |
+
},
|
| 81 |
+
"/collections/market": {
|
| 82 |
+
"title": "Warby Parker x Market Studios | Warby Parker",
|
| 83 |
+
"skus": [
|
| 84 |
+
"cherman-opt-sbf-jet-black",
|
| 85 |
+
"cherman-sun-sbf-checkmate-brown"
|
| 86 |
+
]
|
| 87 |
+
},
|
| 88 |
+
"/collections/metal-edit": {
|
| 89 |
+
"title": "The Metal Edit | Warby Parker",
|
| 90 |
+
"skus": [
|
| 91 |
+
"callows-opt-sbf-brushed-ink",
|
| 92 |
+
"dresner-opt-sbf-brushed-navy",
|
| 93 |
+
"hilson-opt-sbf-brushed-ink",
|
| 94 |
+
"hilson-opt-sbf-hunter-green",
|
| 95 |
+
"lattimore-opt-sbf-black-walnut-with-riesling",
|
| 96 |
+
"lattimore-opt-sbf-jet-black-with-polished-gold",
|
| 97 |
+
"lattimore-sun-sbf-black-walnut-with-riesling",
|
| 98 |
+
"vela-opt-sbf-aventurine-tortoise-with-polished-gold",
|
| 99 |
+
"vela-opt-sbf-jet-black-with-polished-gold",
|
| 100 |
+
"vela-opt-sbf-malbec-crystal-with-polished-gold",
|
| 101 |
+
"vela-sun-sbf-aventurine-tortoise-with-polished-gold",
|
| 102 |
+
"vela-sun-sbf-jet-black-with-polished-gold",
|
| 103 |
+
"vela-sun-sbf-malbec-crystal-with-polished-gold"
|
| 104 |
+
]
|
| 105 |
+
},
|
| 106 |
+
"/collections/mosaic-collection": {
|
| 107 |
+
"title": "Mosaic Collection | Warby Parker",
|
| 108 |
+
"skus": [
|
| 109 |
+
"brant-opt-sbf-striped-cacao",
|
| 110 |
+
"brant-opt-sbf-striped-springs",
|
| 111 |
+
"brant-sun-sbf-striped-springs",
|
| 112 |
+
"briony-opt-sbf-striped-acadia",
|
| 113 |
+
"briony-opt-sbf-striped-buckeye",
|
| 114 |
+
"briony-sun-sbf-striped-buckeye",
|
| 115 |
+
"renata-opt-sbf-striped-amber",
|
| 116 |
+
"renata-sun-sbf-striped-amber"
|
| 117 |
+
]
|
| 118 |
+
},
|
| 119 |
+
"/collections/new-classics": {
|
| 120 |
+
"title": "New Classics | Warby Parker",
|
| 121 |
+
"skus": [
|
| 122 |
+
"azir-sun-sbf-licorice-crystal-with-polished-silver",
|
| 123 |
+
"azir-sun-sbf-solar-crystal-with-riesling",
|
| 124 |
+
"denham-opt-sbf-eastern-bluebird-fade-with-antique-silver",
|
| 125 |
+
"denham-opt-sbf-jet-black-matte-with-antique-silver",
|
| 126 |
+
"tobin-opt-sbf-black-currant-tortoise-with-polished-gold",
|
| 127 |
+
"tobin-opt-sbf-seaspray-crystal-with-riesling",
|
| 128 |
+
"tobin-sun-sbf-black-currant-tortoise-with-polished-gold",
|
| 129 |
+
"tobin-sun-sbf-seaspray-crystal-with-riesling",
|
| 130 |
+
"wilford-opt-sbf-nutmeg-crystal-with-polished-gold",
|
| 131 |
+
"wilford-opt-sbf-ristretto-tortoise-with-riesling",
|
| 132 |
+
"zimmer-sun-sbf-black-walnut-with-riesling",
|
| 133 |
+
"zimmer-sun-sbf-seaspray-crystal-with-polished-silver"
|
| 134 |
+
]
|
| 135 |
+
},
|
| 136 |
+
"/collections/spring-2026": {
|
| 137 |
+
"title": "Spring 2026 | Warby Parker",
|
| 138 |
+
"skus": [
|
| 139 |
+
"atticus-opt-sbf-black-oak-tortoise",
|
| 140 |
+
"crane-opt-sbf-black-matte-eclipse",
|
| 141 |
+
"crane-opt-sbf-crystal-with-english-oak",
|
| 142 |
+
"crane-opt-sbf-eastern-bluebird-fade",
|
| 143 |
+
"crane-opt-sbf-sea-glass-grey",
|
| 144 |
+
"crane-opt-sbf-striped-cypress",
|
| 145 |
+
"crane-opt-sbf-whiskey-tortoise",
|
| 146 |
+
"franny-opt-sbf-crystal-moss",
|
| 147 |
+
"franny-opt-sbf-toffee-tortoise",
|
| 148 |
+
"hollis-opt-sbf-cola-tortoise",
|
| 149 |
+
"hollis-opt-sbf-grapefruit-spritz",
|
| 150 |
+
"hollis-sun-sbf-cola-tortoise",
|
| 151 |
+
"hollis-sun-sbf-grapefruit-spritz",
|
| 152 |
+
"kittie-sun-sbf-miso-tortoise",
|
| 153 |
+
"kittie-sun-sbf-poblano",
|
| 154 |
+
"melton-opt-sbf-caspian-crystal-fade",
|
| 155 |
+
"melton-opt-sbf-ristretto-tortoise",
|
| 156 |
+
"millie-sun-sbf-ancho-tortoise",
|
| 157 |
+
"millie-sun-sbf-jet-black",
|
| 158 |
+
"pixley-opt-sbf-chestnut-crystal",
|
| 159 |
+
"pixley-opt-sbf-meadow",
|
| 160 |
+
"werner-opt-sbf-black-oak-tortoise",
|
| 161 |
+
"werner-opt-sbf-rose-water"
|
| 162 |
+
]
|
| 163 |
+
},
|
| 164 |
+
"/collections/strato-series": {
|
| 165 |
+
"title": "Strato Series | Warby Parker",
|
| 166 |
+
"skus": [
|
| 167 |
+
"densmore-sun-sbf-marmalade-with-riesling",
|
| 168 |
+
"fremont-opt-sbf-crystal-with-riesling",
|
| 169 |
+
"fremont-opt-sbf-laguna-crystal-with-polished-silver",
|
| 170 |
+
"fremont-sun-sbf-laguna-crystal-with-polished-silver",
|
| 171 |
+
"randel-opt-sbf-arctic-crystal-with-polished-silver",
|
| 172 |
+
"randel-opt-sbf-cactus-crystal-with-riesling",
|
| 173 |
+
"randel-sun-sbf-cactus-crystal-with-riesling",
|
| 174 |
+
"shepley-opt-sbf-crystal-with-riesling",
|
| 175 |
+
"shepley-opt-sbf-marmalade-with-riesling"
|
| 176 |
+
]
|
| 177 |
+
},
|
| 178 |
+
"/collections/summer-2025": {
|
| 179 |
+
"title": "Summer 2025 | Warby Parker",
|
| 180 |
+
"skus": [
|
| 181 |
+
"blakeley-opt-sbf-peacock-green",
|
| 182 |
+
"blakeley-opt-sbf-violet-magnolia",
|
| 183 |
+
"brenner-sun-sbf-negroni-crystal",
|
| 184 |
+
"brenner-sun-sbf-nightfall-fade",
|
| 185 |
+
"durand-sun-sbf-crystal",
|
| 186 |
+
"durand-sun-sbf-jet-black-with-polished-gold",
|
| 187 |
+
"durand-sun-sbf-laguna-crystal-matte",
|
| 188 |
+
"durand-sun-sbf-rose-water",
|
| 189 |
+
"durand-sun-sbf-whiskey-tortoise",
|
| 190 |
+
"marris-opt-sbf-emerald-crystal",
|
| 191 |
+
"marris-opt-sbf-truffle-tortoise",
|
| 192 |
+
"percey-opt-sbf-chestnut-crystal",
|
| 193 |
+
"percey-opt-sbf-crystal",
|
| 194 |
+
"percey-opt-sbf-crystal-with-oak-barrel-and-blue-bay",
|
| 195 |
+
"percey-opt-sbf-jet-black-matte",
|
| 196 |
+
"percey-opt-sbf-mist",
|
| 197 |
+
"percey-opt-sbf-raspberry",
|
| 198 |
+
"percey-opt-sbf-rye-tortoise",
|
| 199 |
+
"percey-opt-sbf-seaweed-crystal-with-amber-tortoise",
|
| 200 |
+
"reiner-opt-sbf-manuka",
|
| 201 |
+
"reiner-opt-sbf-mineral-grey",
|
| 202 |
+
"ronan-sun-sbf-mango-sorbet",
|
| 203 |
+
"ronan-sun-sbf-truffle-tortoise",
|
| 204 |
+
"yuna-sun-sbf-canopy",
|
| 205 |
+
"yuna-sun-sbf-lilypad-tortoise",
|
| 206 |
+
"zoya-sun-sbf-emerald-crystal",
|
| 207 |
+
"zoya-sun-sbf-lilypad-tortoise"
|
| 208 |
+
]
|
| 209 |
+
},
|
| 210 |
+
"/collections/summer-2026": {
|
| 211 |
+
"title": "Summer 2026 | Warby Parker",
|
| 212 |
+
"skus": [
|
| 213 |
+
"adair-opt-sbf-licorice-crystal-with-antique-silver",
|
| 214 |
+
"adair-sun-sbf-licorice-crystal-with-antique-silver",
|
| 215 |
+
"adair-sun-sbf-saddle-tortoise-with-riesling",
|
| 216 |
+
"auggie-sun-sbf-cinnamon-tortoise",
|
| 217 |
+
"auggie-sun-sbf-jet-black",
|
| 218 |
+
"bix-sun-sbf-umber-crystal",
|
| 219 |
+
"carlton-opt-sbf-amalfi-tortoise",
|
| 220 |
+
"carlton-opt-sbf-apricot",
|
| 221 |
+
"carlton-opt-sbf-crystal",
|
| 222 |
+
"carlton-opt-sbf-phantom-smoke-with-antique-silver",
|
| 223 |
+
"carlton-opt-sbf-ristretto-tortoise",
|
| 224 |
+
"carlton-opt-sbf-seaweed-crystal",
|
| 225 |
+
"elio-sun-sbf-black-walnut",
|
| 226 |
+
"elio-sun-sbf-crystal",
|
| 227 |
+
"elio-sun-sbf-jet-black-matte",
|
| 228 |
+
"natasha-sun-sbf-cola-tortoise-with-riesling",
|
| 229 |
+
"peters-opt-sbf-crystal-moss",
|
| 230 |
+
"peters-opt-sbf-root-beer",
|
| 231 |
+
"sonia-opt-sbf-aventurine-tortoise-fade",
|
| 232 |
+
"sonia-opt-sbf-jet-black",
|
| 233 |
+
"sonia-opt-sbf-oak-barrel",
|
| 234 |
+
"sonia-opt-sbf-taro"
|
| 235 |
+
]
|
| 236 |
+
},
|
| 237 |
+
"/collections/the-new-deco": {
|
| 238 |
+
"title": "The New Deco | Warby Parker",
|
| 239 |
+
"skus": [
|
| 240 |
+
"coles-opt-sbf-amarena-with-polished-gold",
|
| 241 |
+
"coles-opt-sbf-black-walnut-with-riesling",
|
| 242 |
+
"francesca-opt-sbf-walnut-crystal-with-polished-gold",
|
| 243 |
+
"scully-opt-sbf-acorn-tortoise-with-polished-gold",
|
| 244 |
+
"scully-opt-sbf-rose-water-with-riesling"
|
| 245 |
+
]
|
| 246 |
+
},
|
| 247 |
+
"/collections/tortoise-color-block": {
|
| 248 |
+
"title": "Tortoise Color Block | Warby Parker",
|
| 249 |
+
"skus": [
|
| 250 |
+
"aubrey-sun-sbf-jet-black",
|
| 251 |
+
"aubrey-sun-sbf-marzipan-tortoise",
|
| 252 |
+
"aubrey-sun-sbf-ristretto-tortoise-with-pineberry-tortoise",
|
| 253 |
+
"aubrey-sun-sbf-smoky-quartz-crystal",
|
| 254 |
+
"bodie-opt-sbf-crystal-with-english-oak",
|
| 255 |
+
"bodie-opt-sbf-driftwood-fade-with-antique-silver",
|
| 256 |
+
"bodie-opt-sbf-rye-tortoise",
|
| 257 |
+
"bodie-opt-sbf-saltwater-matte",
|
| 258 |
+
"bodie-opt-sbf-striped-spruce-with-caramel-tortoise",
|
| 259 |
+
"brady-opt-sbf-black-matte-eclipse",
|
| 260 |
+
"brady-opt-sbf-laguna-crystal-matte",
|
| 261 |
+
"brady-opt-sbf-ristretto-tortoise-with-french-blue",
|
| 262 |
+
"brady-opt-sbf-sea-glass-grey",
|
| 263 |
+
"carson-opt-sbf-chai-crystal-fade",
|
| 264 |
+
"carson-opt-sbf-cinnamon-tortoise",
|
| 265 |
+
"carson-opt-sbf-phantom-smoke-with-amber-tortoise",
|
| 266 |
+
"ronan-sun-sbf-tiramisu-tortoise-with-cola-tortoise",
|
| 267 |
+
"sonia-opt-sbf-aventurine-tortoise-fade",
|
| 268 |
+
"sonia-opt-sbf-jet-black",
|
| 269 |
+
"sonia-opt-sbf-oak-barrel",
|
| 270 |
+
"sonia-opt-sbf-striped-magnolia-with-cognac-tortoise",
|
| 271 |
+
"sonia-opt-sbf-taro",
|
| 272 |
+
"sonia-sun-sbf-aventurine-tortoise-fade",
|
| 273 |
+
"sonia-sun-sbf-jet-black",
|
| 274 |
+
"sonia-sun-sbf-oak-barrel",
|
| 275 |
+
"sonia-sun-sbf-striped-magnolia-with-cognac-tortoise",
|
| 276 |
+
"sutton-sun-sbf-azure-crystal",
|
| 277 |
+
"sutton-sun-sbf-jet-black",
|
| 278 |
+
"sutton-sun-sbf-saddle-tortoise-with-polished-gold",
|
| 279 |
+
"sutton-sun-sbf-striped-spruce-with-caramel-tortoise",
|
| 280 |
+
"sutton-sun-sbf-walnut-tortoise",
|
| 281 |
+
"zoya-opt-sbf-amarena-with-black-oak-tortoise",
|
| 282 |
+
"zoya-opt-sbf-emerald-crystal",
|
| 283 |
+
"zoya-opt-sbf-lilypad-tortoise",
|
| 284 |
+
"zoya-opt-sbf-ristretto-tortoise"
|
| 285 |
+
]
|
| 286 |
+
},
|
| 287 |
+
"/collections/tratto-collection": {
|
| 288 |
+
"title": "Tratto Collection | Warby Parker",
|
| 289 |
+
"skus": [
|
| 290 |
+
"dominique-opt-sbf-amarena-with-oak-barrel",
|
| 291 |
+
"gilman-opt-sbf-marina-blue-with-oak-barrel",
|
| 292 |
+
"jenney-sun-sbf-amarena-with-oak-barrel",
|
| 293 |
+
"larissa-opt-sbf-praline-tortoise-with-oak-barrel",
|
| 294 |
+
"mimi-sun-sbf-ristretto-tortoise-with-marbled-opal",
|
| 295 |
+
"nida-sun-sbf-jet-black-with-stone-tortoise"
|
| 296 |
+
]
|
| 297 |
+
},
|
| 298 |
+
"/collections/winter-2025": {
|
| 299 |
+
"title": "Winter 2025 | Warby Parker",
|
| 300 |
+
"skus": [
|
| 301 |
+
"alston-opt-sbf-poblano",
|
| 302 |
+
"alston-opt-sbf-violetwood",
|
| 303 |
+
"carlton-opt-sbf-apricot",
|
| 304 |
+
"carlton-opt-sbf-crystal",
|
| 305 |
+
"carlton-opt-sbf-nimbus-crystal-with-cacao-and-oak-barrel",
|
| 306 |
+
"carlton-opt-sbf-ristretto-tortoise",
|
| 307 |
+
"carlton-opt-sbf-seaweed-crystal",
|
| 308 |
+
"esme-opt-sbf-aventurine-tortoise-with-polished-gold",
|
| 309 |
+
"esme-opt-sbf-bellflower-crystal-with-polished-gold",
|
| 310 |
+
"esme-opt-sbf-canopy",
|
| 311 |
+
"esme-opt-sbf-crystal",
|
| 312 |
+
"esme-opt-sbf-jet-black-with-polished-gold",
|
| 313 |
+
"esme-opt-sbf-ristretto-tortoise-with-opal-tortoise",
|
| 314 |
+
"esme-opt-sbf-rose-water",
|
| 315 |
+
"esme-opt-sbf-sesame-tortoise",
|
| 316 |
+
"kemper-opt-sbf-blue-marblewood",
|
| 317 |
+
"kemper-opt-sbf-green-tea-crystal",
|
| 318 |
+
"pia-sun-sbf-black-oak-tortoise",
|
| 319 |
+
"pietro-opt-sbf-black-walnut",
|
| 320 |
+
"pietro-opt-sbf-striped-oceanfront",
|
| 321 |
+
"scooter-opt-sbf-phantom-smoke",
|
| 322 |
+
"scooter-opt-sbf-ristretto-tortoise",
|
| 323 |
+
"tal-opt-sbf-grapefruit-spritz",
|
| 324 |
+
"tal-opt-sbf-maritime-tortoise",
|
| 325 |
+
"tal-opt-sbf-rosemary-crystal-matte",
|
| 326 |
+
"torrez-opt-sbf-terrazzo-tortoise-with-riesling",
|
| 327 |
+
"windrow-opt-sbf-driftwood-fade-with-riesling"
|
| 328 |
+
]
|
| 329 |
+
},
|
| 330 |
+
"/collections/sport-2026": {
|
| 331 |
+
"title": "Warby Parker Sport Sunglasses | Warby Parker",
|
| 332 |
+
"skus": [
|
| 333 |
+
"cedar-sun-sbf-mahogany-tortoise",
|
| 334 |
+
"cedar-sun-sbf-marine-trench",
|
| 335 |
+
"cliff-sun-sbf-jet-black",
|
| 336 |
+
"cliff-sun-sbf-mahogany-tortoise",
|
| 337 |
+
"flint-sun-sbf-jet-black",
|
| 338 |
+
"flint-sun-sbf-sapwood-tortoise",
|
| 339 |
+
"river-sun-sbf-marine-trench",
|
| 340 |
+
"river-sun-sbf-sapwood-tortoise",
|
| 341 |
+
"sierra-sun-sbf-mahogany-tortoise"
|
| 342 |
+
]
|
| 343 |
+
},
|
| 344 |
+
"/collections/fall-2026": {
|
| 345 |
+
"title": "Fall 2026 | Warby Parker",
|
| 346 |
+
"skus": [
|
| 347 |
+
"aarons-opt-sbf-alder-crystal",
|
| 348 |
+
"aarons-opt-sbf-oak-barrel",
|
| 349 |
+
"aarons-sun-sbf-alder-crystal",
|
| 350 |
+
"aarons-sun-sbf-oak-barrel",
|
| 351 |
+
"daisy-opt-sbf-amarena",
|
| 352 |
+
"daisy-opt-sbf-confetti-tortoise",
|
| 353 |
+
"daisy-opt-sbf-jet-black",
|
| 354 |
+
"daisy-opt-sbf-oak-barrel",
|
| 355 |
+
"daisy-opt-sbf-violet-quartz-crystal-with-polished-silver",
|
| 356 |
+
"doris-opt-sbf-cinnamon-tortoise",
|
| 357 |
+
"doris-opt-sbf-poblano",
|
| 358 |
+
"esme-opt-sbf-aventurine-tortoise-with-polished-gold",
|
| 359 |
+
"esme-opt-sbf-bellflower-crystal-with-polished-gold",
|
| 360 |
+
"esme-opt-sbf-canopy",
|
| 361 |
+
"esme-opt-sbf-confetti-tortoise",
|
| 362 |
+
"esme-opt-sbf-crystal",
|
| 363 |
+
"esme-opt-sbf-jet-black-with-polished-gold",
|
| 364 |
+
"esme-opt-sbf-rose-water",
|
| 365 |
+
"esme-opt-sbf-sesame-tortoise",
|
| 366 |
+
"ilona-opt-sbf-buckwheat-tortoise",
|
| 367 |
+
"ilona-opt-sbf-rose-water",
|
| 368 |
+
"ivey-sun-sbf-cobblestone-tortoise",
|
| 369 |
+
"ivey-sun-sbf-malbec-crystal",
|
| 370 |
+
"putney-opt-sbf-licorice-crystal",
|
| 371 |
+
"putney-opt-sbf-toffee-tortoise",
|
| 372 |
+
"romero-opt-sbf-macadamia-tortoise",
|
| 373 |
+
"yulia-sun-sbf-jet-black",
|
| 374 |
+
"yulia-sun-sbf-terracotta-tortoise"
|
| 375 |
+
]
|
| 376 |
+
},
|
| 377 |
+
"/collections/arch-manning": {
|
| 378 |
+
"title": "Arch Manning's Favorite Eyeglasses and Sunglasses | Warby Parker",
|
| 379 |
+
"skus": [
|
| 380 |
+
"alvin-sun-sbf-english-oak-matte",
|
| 381 |
+
"alvin-sun-sbf-jet-black",
|
| 382 |
+
"blount-opt-sbf-antique-silver",
|
| 383 |
+
"blount-opt-sbf-polished-gold",
|
| 384 |
+
"bodie-opt-sbf-crystal-with-english-oak",
|
| 385 |
+
"bodie-opt-sbf-rye-tortoise",
|
| 386 |
+
"bodie-opt-sbf-saltwater-matte",
|
| 387 |
+
"boggs-opt-sbf-chestnut-crystal",
|
| 388 |
+
"boggs-opt-sbf-jet-black",
|
| 389 |
+
"boggs-opt-sbf-snowmelt-matte",
|
| 390 |
+
"butler-opt-sbf-butterscotch-tortoise",
|
| 391 |
+
"butler-opt-sbf-jet-black",
|
| 392 |
+
"butler-opt-sbf-olive-matte",
|
| 393 |
+
"butler-opt-sbf-teal-tortoise",
|
| 394 |
+
"callum-opt-sbf-balsam-matte",
|
| 395 |
+
"callum-opt-sbf-raven-matte",
|
| 396 |
+
"callum-opt-sbf-stratus-matte",
|
| 397 |
+
"callum-sun-sbf-balsam-matte",
|
| 398 |
+
"callum-sun-sbf-raven-matte",
|
| 399 |
+
"callum-sun-sbf-stratus-matte",
|
| 400 |
+
"elio-sun-sbf-black-walnut",
|
| 401 |
+
"elio-sun-sbf-cactus-crystal-with-polished-silver",
|
| 402 |
+
"elio-sun-sbf-crystal",
|
| 403 |
+
"elio-sun-sbf-inlet-crystal",
|
| 404 |
+
"fletcher-sun-sbf-antique-shale-fade",
|
| 405 |
+
"fletcher-sun-sbf-black-matte-eclipse",
|
| 406 |
+
"fletcher-sun-sbf-crystal",
|
| 407 |
+
"fletcher-sun-sbf-rye-tortoise",
|
| 408 |
+
"winston-opt-sbf-black-oak-tortoise",
|
| 409 |
+
"winston-opt-sbf-crystal-with-inlet-crystal-and-oak-barrel",
|
| 410 |
+
"winston-opt-sbf-jet-black",
|
| 411 |
+
"winston-opt-sbf-praline-tortoise",
|
| 412 |
+
"winston-opt-sbf-rosemary-crystal",
|
| 413 |
+
"winston-opt-sbf-tide-pool-tortoise-with-ristretto-tortoise"
|
| 414 |
+
]
|
| 415 |
+
},
|
| 416 |
+
"/eye-exams": {
|
| 417 |
+
"title": "Eye Exams | Warby Parker",
|
| 418 |
+
"skus": []
|
| 419 |
+
},
|
| 420 |
+
"/lenses/tinted": {
|
| 421 |
+
"title": "302 Found",
|
| 422 |
+
"skus": []
|
| 423 |
+
},
|
| 424 |
+
"/precision-progressives": {
|
| 425 |
+
"title": "Precision Progressives | Warby Parker",
|
| 426 |
+
"skus": [
|
| 427 |
+
"aubrey-sun-sbf-garnet-tortoise",
|
| 428 |
+
"aubrey-sun-sbf-jet-black",
|
| 429 |
+
"aubrey-sun-sbf-marzipan-tortoise",
|
| 430 |
+
"blakeley-opt-sbf-oxblood-fade",
|
| 431 |
+
"blakeley-opt-sbf-peacock-green",
|
| 432 |
+
"blakeley-opt-sbf-violet-magnolia",
|
| 433 |
+
"daisy-opt-sbf-cardinal-crystal",
|
| 434 |
+
"daisy-opt-sbf-confetti-tortoise",
|
| 435 |
+
"daisy-opt-sbf-crystal",
|
| 436 |
+
"daisy-opt-sbf-jet-black",
|
| 437 |
+
"daisy-opt-sbf-oak-barrel",
|
| 438 |
+
"daisy-opt-sbf-tea-rose-fade",
|
| 439 |
+
"daisy-opt-sbf-violet-quartz-crystal-with-polished-silver",
|
| 440 |
+
"esme-sun-sbf-aventurine-tortoise-with-polished-gold",
|
| 441 |
+
"esme-sun-sbf-crystal",
|
| 442 |
+
"esme-sun-sbf-sesame-tortoise",
|
| 443 |
+
"nancy-sun-sbf-cognac-tortoise",
|
| 444 |
+
"nancy-sun-sbf-palm-crystal-with-polished-gold",
|
| 445 |
+
"nancy-sun-sbf-rose-crystal",
|
| 446 |
+
"nancy-sun-sbf-sesame-tortoise-with-polished-gold",
|
| 447 |
+
"wilkie-opt-sbf-berry-crystal-fade",
|
| 448 |
+
"wilkie-opt-sbf-black-matte-eclipse",
|
| 449 |
+
"wilkie-opt-sbf-eastern-bluebird-fade",
|
| 450 |
+
"wilkie-opt-sbf-greystone",
|
| 451 |
+
"wilkie-opt-sbf-sandalwood-matte",
|
| 452 |
+
"wilkie-opt-sbf-sea-glass-grey",
|
| 453 |
+
"wilkie-opt-sbf-whiskey-tortoise"
|
| 454 |
+
]
|
| 455 |
+
},
|
| 456 |
+
"/pupils-project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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
{
|
| 3 |
+
"name": "All brands",
|
| 4 |
+
"component": "checkbox",
|
| 5 |
+
"items": [
|
| 6 |
+
{
|
| 7 |
+
"text": "Acuvue",
|
| 8 |
+
"facet": "brand",
|
| 9 |
+
"value": "acuvue",
|
| 10 |
+
"query": "brand=acuvue",
|
| 11 |
+
"redirect": "/contacts/acuvue"
|
| 12 |
+
},
|
| 13 |
+
{
|
| 14 |
+
"text": "Air Optix",
|
| 15 |
+
"facet": "brand",
|
| 16 |
+
"value": "air optix",
|
| 17 |
+
"query": "brand=air%20optix",
|
| 18 |
+
"redirect": "/contacts/air-optix"
|
| 19 |
+
},
|
| 20 |
+
{
|
| 21 |
+
"text": "Biofinity",
|
| 22 |
+
"facet": "brand",
|
| 23 |
+
"value": "biofinity",
|
| 24 |
+
"query": "brand=biofinity",
|
| 25 |
+
"redirect": "/contacts/biofinity"
|
| 26 |
+
},
|
| 27 |
+
{
|
| 28 |
+
"text": "Biotrue",
|
| 29 |
+
"facet": "brand",
|
| 30 |
+
"value": "biotrue",
|
| 31 |
+
"query": "brand=biotrue",
|
| 32 |
+
"redirect": "/contacts/biotrue"
|
| 33 |
+
},
|
| 34 |
+
{
|
| 35 |
+
"text": "Clariti",
|
| 36 |
+
"facet": "brand",
|
| 37 |
+
"value": "clariti",
|
| 38 |
+
"query": "brand=clariti",
|
| 39 |
+
"redirect": "/contacts/clariti"
|
| 40 |
+
},
|
| 41 |
+
{
|
| 42 |
+
"text": "Dailies",
|
| 43 |
+
"facet": "brand",
|
| 44 |
+
"value": "dailies",
|
| 45 |
+
"query": "brand=dailies",
|
| 46 |
+
"redirect": "/contacts/dailies"
|
| 47 |
+
},
|
| 48 |
+
{
|
| 49 |
+
"text": "Infuse",
|
| 50 |
+
"facet": "brand",
|
| 51 |
+
"value": "infuse",
|
| 52 |
+
"query": "brand=infuse",
|
| 53 |
+
"redirect": "/contacts/infuse"
|
| 54 |
+
},
|
| 55 |
+
{
|
| 56 |
+
"text": "Miru",
|
| 57 |
+
"facet": "brand",
|
| 58 |
+
"value": "miru",
|
| 59 |
+
"query": "brand=miru",
|
| 60 |
+
"redirect": "/contacts/miru"
|
| 61 |
+
},
|
| 62 |
+
{
|
| 63 |
+
"text": "MyDay",
|
| 64 |
+
"facet": "brand",
|
| 65 |
+
"value": "myday",
|
| 66 |
+
"query": "brand=myday",
|
| 67 |
+
"redirect": "/contacts/myday"
|
| 68 |
+
},
|
| 69 |
+
{
|
| 70 |
+
"text": "Precision1",
|
| 71 |
+
"facet": "brand",
|
| 72 |
+
"value": "precision1",
|
| 73 |
+
"query": "brand=precision1",
|
| 74 |
+
"redirect": "/contacts/precision1"
|
| 75 |
+
},
|
| 76 |
+
{
|
| 77 |
+
"text": "Proclear",
|
| 78 |
+
"facet": "brand",
|
| 79 |
+
"value": "proclear",
|
| 80 |
+
"query": "brand=proclear",
|
| 81 |
+
"redirect": "/contacts/proclear"
|
| 82 |
+
},
|
| 83 |
+
{
|
| 84 |
+
"text": "Scout",
|
| 85 |
+
"facet": "brand",
|
| 86 |
+
"value": "scout",
|
| 87 |
+
"query": "brand=scout",
|
| 88 |
+
"redirect": "/contacts/scout"
|
| 89 |
+
},
|
| 90 |
+
{
|
| 91 |
+
"text": "Total 30",
|
| 92 |
+
"facet": "brand",
|
| 93 |
+
"value": "total 30",
|
| 94 |
+
"query": "brand=total%2030",
|
| 95 |
+
"redirect": "/contacts/total-30"
|
| 96 |
+
},
|
| 97 |
+
{
|
| 98 |
+
"text": "Ultra",
|
| 99 |
+
"facet": "brand",
|
| 100 |
+
"value": "ultra",
|
| 101 |
+
"query": "brand=ultra",
|
| 102 |
+
"redirect": "/contacts/ultra"
|
| 103 |
+
},
|
| 104 |
+
{
|
| 105 |
+
"text": "Precision7",
|
| 106 |
+
"facet": "brand",
|
| 107 |
+
"value": "precision7",
|
| 108 |
+
"query": "brand=precision7",
|
| 109 |
+
"redirect": "/contacts/precision7"
|
| 110 |
+
}
|
| 111 |
+
]
|
| 112 |
+
},
|
| 113 |
+
{
|
| 114 |
+
"name": "Lens types",
|
| 115 |
+
"component": "checkbox",
|
| 116 |
+
"items": [
|
| 117 |
+
{
|
| 118 |
+
"text": "Daily",
|
| 119 |
+
"facet": "lensType",
|
| 120 |
+
"value": "disposable_daily",
|
| 121 |
+
"query": "lensType=disposable_daily",
|
| 122 |
+
"redirect": "/contacts/daily-contacts"
|
| 123 |
+
},
|
| 124 |
+
{
|
| 125 |
+
"text": "Weekly",
|
| 126 |
+
"facet": "lensType",
|
| 127 |
+
"value": "disposable_weekly",
|
| 128 |
+
"query": "lensType=disposable_weekly",
|
| 129 |
+
"redirect": "/contacts/weekly-contacts"
|
| 130 |
+
},
|
| 131 |
+
{
|
| 132 |
+
"text": "Biweekly",
|
| 133 |
+
"facet": "lensType",
|
| 134 |
+
"value": "disposable_one_two_weeks",
|
| 135 |
+
"query": "lensType=disposable_one_two_weeks",
|
| 136 |
+
"redirect": "/contacts/bi-weekly-contacts"
|
| 137 |
+
},
|
| 138 |
+
{
|
| 139 |
+
"text": "Monthly",
|
| 140 |
+
"facet": "lensType",
|
| 141 |
+
"value": "disposable_monthly",
|
| 142 |
+
"query": "lensType=disposable_monthly",
|
| 143 |
+
"redirect": "/contacts/monthly-contacts"
|
| 144 |
+
},
|
| 145 |
+
{
|
| 146 |
+
"text": "Multifocal & Bifocal",
|
| 147 |
+
"facet": "lensType",
|
| 148 |
+
"value": "multifocal_bifocal",
|
| 149 |
+
"query": "lensType=multifocal_bifocal",
|
| 150 |
+
"redirect": "/contacts/multifocal-bifocal"
|
| 151 |
+
},
|
| 152 |
+
{
|
| 153 |
+
"text": "Toric & Astigmatism",
|
| 154 |
+
"facet": "lensType",
|
| 155 |
+
"value": "toric_astigmatism",
|
| 156 |
+
"query": "lensType=toric_astigmatism",
|
| 157 |
+
"redirect": "/contacts/toric-astigmatism"
|
| 158 |
+
},
|
| 159 |
+
{
|
| 160 |
+
"text": "Color",
|
| 161 |
+
"facet": "lensType",
|
| 162 |
+
"value": "color_enhancing",
|
| 163 |
+
"query": "lensType=color_enhancing",
|
| 164 |
+
"redirect": "/contacts/color"
|
| 165 |
+
}
|
| 166 |
+
]
|
| 167 |
+
},
|
| 168 |
+
{
|
| 169 |
+
"name": "Manufacturer",
|
| 170 |
+
"component": "checkbox",
|
| 171 |
+
"items": [
|
| 172 |
+
{
|
| 173 |
+
"text": "Alcon",
|
| 174 |
+
"facet": "manufacturer",
|
| 175 |
+
"value": "alcon",
|
| 176 |
+
"query": "manufacturer=alcon",
|
| 177 |
+
"redirect": "/contacts/alcon"
|
| 178 |
+
},
|
| 179 |
+
{
|
| 180 |
+
"text": "Bausch + Lomb",
|
| 181 |
+
"facet": "manufacturer",
|
| 182 |
+
"value": "bausch + lomb",
|
| 183 |
+
"query": "manufacturer=bausch%20%2B%20lomb",
|
| 184 |
+
"redirect": "/contacts/bausch-lomb"
|
| 185 |
+
},
|
| 186 |
+
{
|
| 187 |
+
"text": "CooperVision",
|
| 188 |
+
"facet": "manufacturer",
|
| 189 |
+
"value": "coopervision",
|
| 190 |
+
"query": "manufacturer=coopervision",
|
| 191 |
+
"redirect": "/contacts/coopervision"
|
| 192 |
+
},
|
| 193 |
+
{
|
| 194 |
+
"text": "Johnson & Johnson",
|
| 195 |
+
"facet": "manufacturer",
|
| 196 |
+
"value": "johnson & johnson vision",
|
| 197 |
+
"query": "manufacturer=johnson%20%26%20johnson%20vision",
|
| 198 |
+
"redirect": "/contacts/johnson-and-johnson-vision"
|
| 199 |
+
},
|
| 200 |
+
{
|
| 201 |
+
"text": "Warby Parker",
|
| 202 |
+
"facet": "manufacturer",
|
| 203 |
+
"value": "warby parker",
|
| 204 |
+
"query": "manufacturer=warby%20parker",
|
| 205 |
+
"redirect": "/contacts/warby-parker"
|
| 206 |
+
},
|
| 207 |
+
{
|
| 208 |
+
"text": "Menicon",
|
| 209 |
+
"facet": "manufacturer",
|
| 210 |
+
"value": "menicon",
|
| 211 |
+
"query": "manufacturer=menicon",
|
| 212 |
+
"redirect": "/contacts/menicon"
|
| 213 |
+
}
|
| 214 |
+
]
|
| 215 |
+
}
|
| 216 |
+
]
|
tasks/warbyparker/solution/site/implementation/clone/data/content.json
ADDED
|
@@ -0,0 +1,359 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"pages": {
|
| 3 |
+
"insurance": {
|
| 4 |
+
"title": "Use your vision insurance",
|
| 5 |
+
"lead": "Most vision insurance plans cover a portion of your frames, lenses and eye exams.",
|
| 6 |
+
"body": [
|
| 7 |
+
"Enter your plan details at checkout and we apply eligible benefits to your order.",
|
| 8 |
+
"If Warby Parker is out of network for your plan, submit an out-of-network claim and get reimbursed directly.",
|
| 9 |
+
"Insurance benefits are applied against the local sandbox ledger in this offline clone; no real insurer is contacted."
|
| 10 |
+
]
|
| 11 |
+
},
|
| 12 |
+
"reimbursement": {
|
| 13 |
+
"title": "Submit an out-of-network claim",
|
| 14 |
+
"lead": "Get reimbursed for eligible purchases.",
|
| 15 |
+
"body": [
|
| 16 |
+
"Download an itemized receipt from your order detail page.",
|
| 17 |
+
"Submit it to your plan administrator with your member ID.",
|
| 18 |
+
"Reimbursement timelines are set by your plan, typically two to six weeks."
|
| 19 |
+
]
|
| 20 |
+
},
|
| 21 |
+
"what-is-fsa": {
|
| 22 |
+
"title": "How to use your FSA",
|
| 23 |
+
"lead": "A Flexible Spending Account lets you spend pre-tax dollars on eyewear.",
|
| 24 |
+
"body": [
|
| 25 |
+
"Prescription glasses, sunglasses, contacts and eye exams are all eligible.",
|
| 26 |
+
"Pay with your FSA card at checkout like any other card.",
|
| 27 |
+
"FSA funds usually expire at the end of the plan year."
|
| 28 |
+
]
|
| 29 |
+
},
|
| 30 |
+
"what-is-hsa": {
|
| 31 |
+
"title": "How to use your HSA",
|
| 32 |
+
"lead": "A Health Savings Account also covers prescription eyewear.",
|
| 33 |
+
"body": [
|
| 34 |
+
"HSA funds roll over year to year and stay with you.",
|
| 35 |
+
"Use your HSA card directly at checkout.",
|
| 36 |
+
"Keep your itemized receipt for your records."
|
| 37 |
+
]
|
| 38 |
+
},
|
| 39 |
+
"fsa-vs-hsa": {
|
| 40 |
+
"title": "FSA vs. HSA",
|
| 41 |
+
"lead": "Two pre-tax accounts, two different rule sets.",
|
| 42 |
+
"body": [
|
| 43 |
+
"FSA funds are use-it-or-lose-it within the plan year; HSA funds roll over.",
|
| 44 |
+
"An HSA requires a high-deductible health plan; an FSA does not.",
|
| 45 |
+
"Both cover prescription glasses, sunglasses and contacts."
|
| 46 |
+
]
|
| 47 |
+
},
|
| 48 |
+
"flexible-spending-accounts": {
|
| 49 |
+
"title": "Use your FSA",
|
| 50 |
+
"lead": "Spend your flexible spending dollars before they expire.",
|
| 51 |
+
"body": [
|
| 52 |
+
"Prescription eyewear is FSA eligible.",
|
| 53 |
+
"Pay with your FSA card at checkout.",
|
| 54 |
+
"We provide an itemized receipt on every order."
|
| 55 |
+
]
|
| 56 |
+
},
|
| 57 |
+
"gift-card": {
|
| 58 |
+
"title": "Gift cards",
|
| 59 |
+
"lead": "Give the gift of new frames.",
|
| 60 |
+
"body": [
|
| 61 |
+
"Digital gift cards are delivered to the recipient's inbox.",
|
| 62 |
+
"Gift cards never expire and can be combined with insurance benefits.",
|
| 63 |
+
"In this offline clone, gift card delivery is written to the local outbox."
|
| 64 |
+
]
|
| 65 |
+
},
|
| 66 |
+
"virtual-vision-test": {
|
| 67 |
+
"title": "Renew a prescription from home",
|
| 68 |
+
"lead": "Renew an existing prescription with a virtual vision test.",
|
| 69 |
+
"body": [
|
| 70 |
+
"Take the test in about ten minutes from your phone or laptop.",
|
| 71 |
+
"A licensed doctor reviews your results and signs off, usually within 24 hours.",
|
| 72 |
+
"Available for single-vision prescriptions that have not changed."
|
| 73 |
+
]
|
| 74 |
+
},
|
| 75 |
+
"ios-app": {
|
| 76 |
+
"title": "Download our app",
|
| 77 |
+
"lead": "Try frames on virtually and measure your PD.",
|
| 78 |
+
"body": [
|
| 79 |
+
"Virtual Try-On uses your camera to preview any frame.",
|
| 80 |
+
"Measure your pupillary distance in a few seconds.",
|
| 81 |
+
"Track orders and manage prescriptions on the go."
|
| 82 |
+
]
|
| 83 |
+
},
|
| 84 |
+
"intelligent-eyewear": {
|
| 85 |
+
"title": "Intelligent Eyewear",
|
| 86 |
+
"lead": "Frames with audio and assistance built in.",
|
| 87 |
+
"body": [
|
| 88 |
+
"Open-ear speakers you can hear without blocking the world.",
|
| 89 |
+
"All-day battery in a frame that still looks like a frame.",
|
| 90 |
+
"Available with prescription, non-prescription and sun lenses."
|
| 91 |
+
]
|
| 92 |
+
},
|
| 93 |
+
"add-a-pair-and-save": {
|
| 94 |
+
"title": "Add a pair and save",
|
| 95 |
+
"lead": "Buy more than one pair and save on the second.",
|
| 96 |
+
"body": [
|
| 97 |
+
"Add a second pair of eyeglasses or sunglasses and save 15%.",
|
| 98 |
+
"Mix and match categories however you like.",
|
| 99 |
+
"The discount is applied automatically in the cart."
|
| 100 |
+
]
|
| 101 |
+
},
|
| 102 |
+
"buy-a-pair-give-a-pair": {
|
| 103 |
+
"title": "Buy a Pair, Give a Pair",
|
| 104 |
+
"lead": "For every pair sold, a pair is distributed to someone in need.",
|
| 105 |
+
"body": [
|
| 106 |
+
"We work with nonprofit partners to train people to give basic eye exams.",
|
| 107 |
+
"Partners sell glasses at affordable prices to keep their programs sustainable.",
|
| 108 |
+
"Over fifteen million pairs distributed to date."
|
| 109 |
+
]
|
| 110 |
+
},
|
| 111 |
+
"how-our-glasses-are-made": {
|
| 112 |
+
"title": "How our glasses are made",
|
| 113 |
+
"lead": "From cellulose acetate block to finished frame.",
|
| 114 |
+
"body": [
|
| 115 |
+
"Acetate is milled, tumbled and hand-polished over several days.",
|
| 116 |
+
"Hinges are set by hand and each frame is inspected before it ships.",
|
| 117 |
+
"Lenses are cut and edged to your prescription in our own optical lab."
|
| 118 |
+
]
|
| 119 |
+
},
|
| 120 |
+
"history": {
|
| 121 |
+
"title": "Our story",
|
| 122 |
+
"lead": "Started in 2010 to sell better eyewear for less.",
|
| 123 |
+
"body": [
|
| 124 |
+
"Designer eyewear was dominated by a single conglomerate charging luxury prices.",
|
| 125 |
+
"We designed our own frames and sold them directly, cutting out the markup.",
|
| 126 |
+
"Home Try-On let people shop for glasses without visiting a store."
|
| 127 |
+
]
|
| 128 |
+
},
|
| 129 |
+
"impact-report": {
|
| 130 |
+
"title": "Impact",
|
| 131 |
+
"lead": "Our programs and where they operate.",
|
| 132 |
+
"body": [
|
| 133 |
+
"Buy a Pair, Give a Pair operates in more than sixty countries.",
|
| 134 |
+
"Pupils Project provides vision screenings and glasses to students at no cost.",
|
| 135 |
+
"We publish an annual impact report with program-level detail."
|
| 136 |
+
]
|
| 137 |
+
},
|
| 138 |
+
"jobs": {
|
| 139 |
+
"title": "Jobs",
|
| 140 |
+
"lead": "Openings across retail, optical labs, engineering and design.",
|
| 141 |
+
"body": [
|
| 142 |
+
"Retail teams staff more than two hundred stores.",
|
| 143 |
+
"Our optical labs cut and edge lenses in house.",
|
| 144 |
+
"Every role includes vision coverage and an annual pair of glasses."
|
| 145 |
+
]
|
| 146 |
+
},
|
| 147 |
+
"reviews/quality": {
|
| 148 |
+
"title": "Customer reviews",
|
| 149 |
+
"lead": "What people say about their frames.",
|
| 150 |
+
"body": [
|
| 151 |
+
"Frames are reviewed by verified purchasers only.",
|
| 152 |
+
"Ratings cover fit, finish and lens quality.",
|
| 153 |
+
"Reviews in this offline clone are local deterministic seed data."
|
| 154 |
+
]
|
| 155 |
+
},
|
| 156 |
+
"pd/instructions": {
|
| 157 |
+
"title": "Measure your PD",
|
| 158 |
+
"lead": "Your pupillary distance centers the lenses in your frames.",
|
| 159 |
+
"body": [
|
| 160 |
+
"Use our iOS app to measure automatically in a few seconds.",
|
| 161 |
+
"Or measure with a ruler in a mirror, from the center of one pupil to the other.",
|
| 162 |
+
"Most adult PDs fall between 57 and 70 millimeters."
|
| 163 |
+
]
|
| 164 |
+
},
|
| 165 |
+
"privacy-policy": {
|
| 166 |
+
"title": "Privacy Policy",
|
| 167 |
+
"lead": "How we handle personal information.",
|
| 168 |
+
"body": [
|
| 169 |
+
"This is an offline clone. No data leaves the local backend.",
|
| 170 |
+
"No credentials, cookies or payment data are transmitted anywhere.",
|
| 171 |
+
"All records live in a site-isolated local SQLite database."
|
| 172 |
+
]
|
| 173 |
+
},
|
| 174 |
+
"terms-of-use": {
|
| 175 |
+
"title": "Terms of Use",
|
| 176 |
+
"lead": "Terms governing use of this site.",
|
| 177 |
+
"body": [
|
| 178 |
+
"This offline clone exists for benchmark evaluation only.",
|
| 179 |
+
"It is not affiliated with, endorsed by or operated by Warby Parker.",
|
| 180 |
+
"No commercial transaction is possible; payments are simulated locally."
|
| 181 |
+
]
|
| 182 |
+
},
|
| 183 |
+
"accessibility": {
|
| 184 |
+
"title": "Accessibility",
|
| 185 |
+
"lead": "Our commitment to an accessible experience.",
|
| 186 |
+
"body": [
|
| 187 |
+
"We target WCAG 2.1 AA across the site.",
|
| 188 |
+
"Every interactive control is reachable and operable by keyboard.",
|
| 189 |
+
"Report an accessibility barrier through the help page."
|
| 190 |
+
]
|
| 191 |
+
},
|
| 192 |
+
"your-rights": {
|
| 193 |
+
"title": "Your privacy rights",
|
| 194 |
+
"lead": "Requests you can make about your data.",
|
| 195 |
+
"body": [
|
| 196 |
+
"Request a copy of the personal information associated with your account.",
|
| 197 |
+
"Request deletion of your account and its records.",
|
| 198 |
+
"In this offline clone all records are local and resettable."
|
| 199 |
+
]
|
| 200 |
+
},
|
| 201 |
+
"notice-of-privacy-practices": {
|
| 202 |
+
"title": "Notice of Privacy Practices",
|
| 203 |
+
"lead": "How protected health information is handled.",
|
| 204 |
+
"body": [
|
| 205 |
+
"Eye exam records are protected health information.",
|
| 206 |
+
"We use them to provide care and to fill your prescription.",
|
| 207 |
+
"You may request a copy of your records at any time."
|
| 208 |
+
]
|
| 209 |
+
},
|
| 210 |
+
"washington-health-data-policy": {
|
| 211 |
+
"title": "Washington Consumer Health Data Policy",
|
| 212 |
+
"lead": "Additional disclosures for Washington residents.",
|
| 213 |
+
"body": [
|
| 214 |
+
"Describes collection and sharing of consumer health data.",
|
| 215 |
+
"Includes the right to withdraw consent and to request deletion.",
|
| 216 |
+
"This offline clone collects no real health data."
|
| 217 |
+
]
|
| 218 |
+
},
|
| 219 |
+
"show-preferences": {
|
| 220 |
+
"title": "Cookie preferences",
|
| 221 |
+
"lead": "Manage tracking preferences.",
|
| 222 |
+
"body": [
|
| 223 |
+
"Strictly necessary cookies keep your session and cart working.",
|
| 224 |
+
"Analytics and advertising cookies are disabled in this offline clone.",
|
| 225 |
+
"Your choice is stored in the local session only."
|
| 226 |
+
]
|
| 227 |
+
},
|
| 228 |
+
"contacts-new-customer-offer": {
|
| 229 |
+
"title": "25% off your first contacts order",
|
| 230 |
+
"lead": "A limited-time offer for new contacts customers.",
|
| 231 |
+
"body": [
|
| 232 |
+
"Applies to your first contact lens order.",
|
| 233 |
+
"Combine it with FSA, HSA or vision insurance benefits.",
|
| 234 |
+
"The discount is applied automatically in the cart."
|
| 235 |
+
]
|
| 236 |
+
},
|
| 237 |
+
"contacts-annual-supply-bonus": {
|
| 238 |
+
"title": "Get $50 with an annual supply",
|
| 239 |
+
"lead": "Buy a year of contacts and get a credit.",
|
| 240 |
+
"body": [
|
| 241 |
+
"Order an annual supply and receive a $50 credit toward frames.",
|
| 242 |
+
"The credit posts to your account after the order ships.",
|
| 243 |
+
"Combinable with insurance benefits."
|
| 244 |
+
]
|
| 245 |
+
},
|
| 246 |
+
"kids-eyeglasses": {
|
| 247 |
+
"title": "Kids eyeglasses",
|
| 248 |
+
"lead": "Frames built for smaller faces and rougher days.",
|
| 249 |
+
"body": [
|
| 250 |
+
"Flexible hinges and impact-resistant lenses come standard.",
|
| 251 |
+
"Sizes run from narrow to medium.",
|
| 252 |
+
"Every pair includes a case and cleaning cloth."
|
| 253 |
+
]
|
| 254 |
+
},
|
| 255 |
+
"low-bridge": {
|
| 256 |
+
"title": "Low Bridge Fit",
|
| 257 |
+
"lead": "Frames designed for a lower nose bridge.",
|
| 258 |
+
"body": [
|
| 259 |
+
"Low Bridge Fit frames sit higher on the face and have wider nose pads.",
|
| 260 |
+
"They reduce slipping and stop lenses resting on your cheeks.",
|
| 261 |
+
"Look for the Low Bridge Fit badge on eligible frames."
|
| 262 |
+
]
|
| 263 |
+
},
|
| 264 |
+
"appointments/eye-exams": {
|
| 265 |
+
"title": "Eye exams",
|
| 266 |
+
"lead": "Comprehensive eye exams at our stores.",
|
| 267 |
+
"body": [
|
| 268 |
+
"Exams are conducted by licensed optometrists.",
|
| 269 |
+
"Digital retinal imaging is available at most locations.",
|
| 270 |
+
"Book online and bring your current glasses with you."
|
| 271 |
+
]
|
| 272 |
+
},
|
| 273 |
+
"learn/pediatric-eye-exam": {
|
| 274 |
+
"title": "Pediatric eye exams",
|
| 275 |
+
"lead": "What to expect at a child's eye exam.",
|
| 276 |
+
"body": [
|
| 277 |
+
"Children should have their first exam before starting school.",
|
| 278 |
+
"Exams check for amblyopia, strabismus and refractive error.",
|
| 279 |
+
"Bring any current glasses and a list of family eye conditions."
|
| 280 |
+
]
|
| 281 |
+
}
|
| 282 |
+
},
|
| 283 |
+
"articles": [
|
| 284 |
+
{
|
| 285 |
+
"slug": "how-often-should-you-get-an-eye-exam",
|
| 286 |
+
"title": "How often should you get an eye exam?",
|
| 287 |
+
"lead": "Most adults need an exam every one to two years.",
|
| 288 |
+
"body": [
|
| 289 |
+
"Adults under 40 with no symptoms should be seen every two years.",
|
| 290 |
+
"After 40, annual exams catch presbyopia and early glaucoma.",
|
| 291 |
+
"Contact lens wearers need an annual exam to keep a valid prescription."
|
| 292 |
+
]
|
| 293 |
+
},
|
| 294 |
+
{
|
| 295 |
+
"slug": "retinal-imaging",
|
| 296 |
+
"title": "What is retinal imaging?",
|
| 297 |
+
"lead": "A high-resolution photograph of the back of your eye.",
|
| 298 |
+
"body": [
|
| 299 |
+
"Retinal imaging captures the optic nerve, blood vessels and macula.",
|
| 300 |
+
"It can reveal diabetes, hypertension and macular degeneration.",
|
| 301 |
+
"The scan takes seconds and does not require dilation."
|
| 302 |
+
]
|
| 303 |
+
},
|
| 304 |
+
{
|
| 305 |
+
"slug": "how-to-read-eye-prescription",
|
| 306 |
+
"title": "How to read your eye prescription",
|
| 307 |
+
"lead": "OD, OS, SPH, CYL, AXIS and ADD, explained.",
|
| 308 |
+
"body": [
|
| 309 |
+
"OD is your right eye and OS is your left eye.",
|
| 310 |
+
"SPH is the lens power; a minus value is nearsighted, a plus value is farsighted.",
|
| 311 |
+
"CYL and AXIS describe astigmatism. ADD appears only on progressive and reading prescriptions."
|
| 312 |
+
]
|
| 313 |
+
},
|
| 314 |
+
{
|
| 315 |
+
"slug": "pediatric-eye-exam",
|
| 316 |
+
"title": "Pediatric eye exams",
|
| 317 |
+
"lead": "What to expect at a child's eye exam.",
|
| 318 |
+
"body": [
|
| 319 |
+
"Children should have their first exam before starting school.",
|
| 320 |
+
"Exams check for amblyopia, strabismus and refractive error.",
|
| 321 |
+
"Bring any current glasses and a list of family eye conditions."
|
| 322 |
+
]
|
| 323 |
+
}
|
| 324 |
+
],
|
| 325 |
+
"faqs": [
|
| 326 |
+
{
|
| 327 |
+
"q": "How does Home Try-On work?",
|
| 328 |
+
"a": "Pick five frames, we ship them to you free, you keep them for five days and send them back with a prepaid label."
|
| 329 |
+
},
|
| 330 |
+
{
|
| 331 |
+
"q": "Do you accept vision insurance?",
|
| 332 |
+
"a": "Yes. Enter your plan details at checkout, or submit an out-of-network claim for reimbursement."
|
| 333 |
+
},
|
| 334 |
+
{
|
| 335 |
+
"q": "What is your return policy?",
|
| 336 |
+
"a": "Free returns and exchanges within 30 days of delivery, no questions asked."
|
| 337 |
+
},
|
| 338 |
+
{
|
| 339 |
+
"q": "How long do orders take?",
|
| 340 |
+
"a": "Prescription glasses ship in about seven to ten business days. Non-prescription orders ship faster."
|
| 341 |
+
},
|
| 342 |
+
{
|
| 343 |
+
"q": "Can I use my FSA or HSA?",
|
| 344 |
+
"a": "Yes. Prescription glasses, sunglasses and contacts are all eligible expenses."
|
| 345 |
+
},
|
| 346 |
+
{
|
| 347 |
+
"q": "Do you offer progressive lenses?",
|
| 348 |
+
"a": "Yes, progressives are available on most frames for $425 including the frame."
|
| 349 |
+
},
|
| 350 |
+
{
|
| 351 |
+
"q": "How do I measure my PD?",
|
| 352 |
+
"a": "Use our iOS app, or measure from the center of one pupil to the other with a ruler."
|
| 353 |
+
},
|
| 354 |
+
{
|
| 355 |
+
"q": "Is insurance accepted for eye exams?",
|
| 356 |
+
"a": "Most vision plans cover an annual exam. Bring your member ID to your appointment."
|
| 357 |
+
}
|
| 358 |
+
]
|
| 359 |
+
}
|
tasks/warbyparker/solution/site/implementation/clone/data/facets.json
ADDED
|
@@ -0,0 +1,1026 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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 |
+
"items": [
|
| 8 |
+
{
|
| 9 |
+
"text": "Bestsellers",
|
| 10 |
+
"facet": "merch",
|
| 11 |
+
"value": "best-seller",
|
| 12 |
+
"query": "merch=best-seller",
|
| 13 |
+
"description": null,
|
| 14 |
+
"redirect": null
|
| 15 |
+
},
|
| 16 |
+
{
|
| 17 |
+
"text": "Trending: 90s minimalism",
|
| 18 |
+
"facet": "merch",
|
| 19 |
+
"value": "90s",
|
| 20 |
+
"query": "merch=90s",
|
| 21 |
+
"description": null,
|
| 22 |
+
"redirect": null
|
| 23 |
+
},
|
| 24 |
+
{
|
| 25 |
+
"text": "New arrivals",
|
| 26 |
+
"facet": "merch",
|
| 27 |
+
"value": "new-arrival",
|
| 28 |
+
"query": "merch=new-arrival",
|
| 29 |
+
"description": null,
|
| 30 |
+
"redirect": null
|
| 31 |
+
}
|
| 32 |
+
]
|
| 33 |
+
},
|
| 34 |
+
{
|
| 35 |
+
"name": "Gender",
|
| 36 |
+
"component": "checkbox",
|
| 37 |
+
"type": "side_by_side",
|
| 38 |
+
"items": [
|
| 39 |
+
{
|
| 40 |
+
"text": "Men's",
|
| 41 |
+
"facet": "gender",
|
| 42 |
+
"value": "M",
|
| 43 |
+
"query": "gender=M",
|
| 44 |
+
"description": null,
|
| 45 |
+
"redirect": null
|
| 46 |
+
},
|
| 47 |
+
{
|
| 48 |
+
"text": "Women's",
|
| 49 |
+
"facet": "gender",
|
| 50 |
+
"value": "F",
|
| 51 |
+
"query": "gender=F",
|
| 52 |
+
"description": null,
|
| 53 |
+
"redirect": null
|
| 54 |
+
}
|
| 55 |
+
]
|
| 56 |
+
},
|
| 57 |
+
{
|
| 58 |
+
"name": "Shape",
|
| 59 |
+
"component": "checkbox",
|
| 60 |
+
"type": "stacked",
|
| 61 |
+
"items": [
|
| 62 |
+
{
|
| 63 |
+
"text": "Square",
|
| 64 |
+
"facet": "shapes",
|
| 65 |
+
"value": "Square",
|
| 66 |
+
"query": "shapes=Square",
|
| 67 |
+
"description": null,
|
| 68 |
+
"redirect": "/sunglasses/square"
|
| 69 |
+
},
|
| 70 |
+
{
|
| 71 |
+
"text": "Rectangle",
|
| 72 |
+
"facet": "shapes",
|
| 73 |
+
"value": "Rectangle",
|
| 74 |
+
"query": "shapes=Rectangle",
|
| 75 |
+
"description": null,
|
| 76 |
+
"redirect": "/sunglasses/rectangle"
|
| 77 |
+
},
|
| 78 |
+
{
|
| 79 |
+
"text": "Round",
|
| 80 |
+
"facet": "shapes",
|
| 81 |
+
"value": "Round",
|
| 82 |
+
"query": "shapes=Round",
|
| 83 |
+
"description": null,
|
| 84 |
+
"redirect": "/sunglasses/round"
|
| 85 |
+
},
|
| 86 |
+
{
|
| 87 |
+
"text": "Oval",
|
| 88 |
+
"facet": "shapes",
|
| 89 |
+
"value": "Oval",
|
| 90 |
+
"query": "shapes=Oval",
|
| 91 |
+
"description": null,
|
| 92 |
+
"redirect": "/sunglasses/oval"
|
| 93 |
+
},
|
| 94 |
+
{
|
| 95 |
+
"text": "Cat-eye",
|
| 96 |
+
"facet": "shapes",
|
| 97 |
+
"value": "Cat-eye",
|
| 98 |
+
"query": "shapes=Cat-eye",
|
| 99 |
+
"description": null,
|
| 100 |
+
"redirect": "/sunglasses/cat-eye"
|
| 101 |
+
},
|
| 102 |
+
{
|
| 103 |
+
"text": "Geometric",
|
| 104 |
+
"facet": "shapes",
|
| 105 |
+
"value": "Geometric",
|
| 106 |
+
"query": "shapes=Geometric",
|
| 107 |
+
"description": null,
|
| 108 |
+
"redirect": "/sunglasses/geometric"
|
| 109 |
+
},
|
| 110 |
+
{
|
| 111 |
+
"text": "Aviator",
|
| 112 |
+
"facet": "shapes",
|
| 113 |
+
"value": "Aviator",
|
| 114 |
+
"query": "shapes=Aviator",
|
| 115 |
+
"description": null,
|
| 116 |
+
"redirect": "/sunglasses/aviators"
|
| 117 |
+
}
|
| 118 |
+
]
|
| 119 |
+
},
|
| 120 |
+
{
|
| 121 |
+
"name": "Frame width",
|
| 122 |
+
"component": "checkbox",
|
| 123 |
+
"type": "text",
|
| 124 |
+
"items": [
|
| 125 |
+
{
|
| 126 |
+
"text": "Extra narrow",
|
| 127 |
+
"facet": "availableWidths",
|
| 128 |
+
"value": "extra-narrow",
|
| 129 |
+
"query": "availableWidths=extra-narrow",
|
| 130 |
+
"description": null,
|
| 131 |
+
"redirect": null
|
| 132 |
+
},
|
| 133 |
+
{
|
| 134 |
+
"text": "Narrow",
|
| 135 |
+
"facet": "availableWidths",
|
| 136 |
+
"value": "narrow",
|
| 137 |
+
"query": "availableWidths=narrow",
|
| 138 |
+
"description": null,
|
| 139 |
+
"redirect": null
|
| 140 |
+
},
|
| 141 |
+
{
|
| 142 |
+
"text": "Medium",
|
| 143 |
+
"facet": "availableWidths",
|
| 144 |
+
"value": "medium",
|
| 145 |
+
"query": "availableWidths=medium",
|
| 146 |
+
"description": null,
|
| 147 |
+
"redirect": null
|
| 148 |
+
},
|
| 149 |
+
{
|
| 150 |
+
"text": "Wide",
|
| 151 |
+
"facet": "availableWidths",
|
| 152 |
+
"value": "wide",
|
| 153 |
+
"query": "availableWidths=wide",
|
| 154 |
+
"description": null,
|
| 155 |
+
"redirect": null
|
| 156 |
+
},
|
| 157 |
+
{
|
| 158 |
+
"text": "Extra wide",
|
| 159 |
+
"facet": "availableWidths",
|
| 160 |
+
"value": "extra-wide",
|
| 161 |
+
"query": "availableWidths=extra-wide",
|
| 162 |
+
"description": null,
|
| 163 |
+
"redirect": null
|
| 164 |
+
}
|
| 165 |
+
]
|
| 166 |
+
},
|
| 167 |
+
{
|
| 168 |
+
"name": "Color",
|
| 169 |
+
"component": "checkbox",
|
| 170 |
+
"type": "swatch_text",
|
| 171 |
+
"items": [
|
| 172 |
+
{
|
| 173 |
+
"text": "Black",
|
| 174 |
+
"facet": "colors",
|
| 175 |
+
"value": "black",
|
| 176 |
+
"query": "colors=black",
|
| 177 |
+
"description": null,
|
| 178 |
+
"redirect": null
|
| 179 |
+
},
|
| 180 |
+
{
|
| 181 |
+
"text": "Brown",
|
| 182 |
+
"facet": "colors",
|
| 183 |
+
"value": "brown",
|
| 184 |
+
"query": "colors=brown",
|
| 185 |
+
"description": null,
|
| 186 |
+
"redirect": null
|
| 187 |
+
},
|
| 188 |
+
{
|
| 189 |
+
"text": "Tortoise",
|
| 190 |
+
"facet": "colors",
|
| 191 |
+
"value": "tortoise",
|
| 192 |
+
"query": "colors=tortoise",
|
| 193 |
+
"description": null,
|
| 194 |
+
"redirect": null
|
| 195 |
+
},
|
| 196 |
+
{
|
| 197 |
+
"text": "Crystal",
|
| 198 |
+
"facet": "colors",
|
| 199 |
+
"value": "crystal",
|
| 200 |
+
"query": "colors=crystal",
|
| 201 |
+
"description": null,
|
| 202 |
+
"redirect": null
|
| 203 |
+
},
|
| 204 |
+
{
|
| 205 |
+
"text": "Multicolor",
|
| 206 |
+
"facet": "colors",
|
| 207 |
+
"value": "multicolor",
|
| 208 |
+
"query": "colors=multicolor",
|
| 209 |
+
"description": null,
|
| 210 |
+
"redirect": null
|
| 211 |
+
},
|
| 212 |
+
{
|
| 213 |
+
"text": "Two-tone",
|
| 214 |
+
"facet": "colors",
|
| 215 |
+
"value": "two-tone",
|
| 216 |
+
"query": "colors=two-tone",
|
| 217 |
+
"description": null,
|
| 218 |
+
"redirect": null
|
| 219 |
+
},
|
| 220 |
+
{
|
| 221 |
+
"text": "Gold",
|
| 222 |
+
"facet": "colors",
|
| 223 |
+
"value": "gold",
|
| 224 |
+
"query": "colors=gold",
|
| 225 |
+
"description": null,
|
| 226 |
+
"redirect": null
|
| 227 |
+
},
|
| 228 |
+
{
|
| 229 |
+
"text": "Silver",
|
| 230 |
+
"facet": "colors",
|
| 231 |
+
"value": "silver",
|
| 232 |
+
"query": "colors=silver",
|
| 233 |
+
"description": null,
|
| 234 |
+
"redirect": null
|
| 235 |
+
},
|
| 236 |
+
{
|
| 237 |
+
"text": "Red",
|
| 238 |
+
"facet": "colors",
|
| 239 |
+
"value": "red",
|
| 240 |
+
"query": "colors=red",
|
| 241 |
+
"description": null,
|
| 242 |
+
"redirect": null
|
| 243 |
+
},
|
| 244 |
+
{
|
| 245 |
+
"text": "Yellow",
|
| 246 |
+
"facet": "colors",
|
| 247 |
+
"value": "yellow",
|
| 248 |
+
"query": "colors=yellow",
|
| 249 |
+
"description": null,
|
| 250 |
+
"redirect": null
|
| 251 |
+
},
|
| 252 |
+
{
|
| 253 |
+
"text": "Green",
|
| 254 |
+
"facet": "colors",
|
| 255 |
+
"value": "green",
|
| 256 |
+
"query": "colors=green",
|
| 257 |
+
"description": null,
|
| 258 |
+
"redirect": null
|
| 259 |
+
},
|
| 260 |
+
{
|
| 261 |
+
"text": "Blue",
|
| 262 |
+
"facet": "colors",
|
| 263 |
+
"value": "blue",
|
| 264 |
+
"query": "colors=blue",
|
| 265 |
+
"description": null,
|
| 266 |
+
"redirect": null
|
| 267 |
+
},
|
| 268 |
+
{
|
| 269 |
+
"text": "Pink",
|
| 270 |
+
"facet": "colors",
|
| 271 |
+
"value": "pink",
|
| 272 |
+
"query": "colors=pink",
|
| 273 |
+
"description": null,
|
| 274 |
+
"redirect": null
|
| 275 |
+
},
|
| 276 |
+
{
|
| 277 |
+
"text": "Purple",
|
| 278 |
+
"facet": "colors",
|
| 279 |
+
"value": "purple",
|
| 280 |
+
"query": "colors=purple",
|
| 281 |
+
"description": null,
|
| 282 |
+
"redirect": null
|
| 283 |
+
},
|
| 284 |
+
{
|
| 285 |
+
"text": "Grey",
|
| 286 |
+
"facet": "colors",
|
| 287 |
+
"value": "grey",
|
| 288 |
+
"query": "colors=grey",
|
| 289 |
+
"description": null,
|
| 290 |
+
"redirect": null
|
| 291 |
+
},
|
| 292 |
+
{
|
| 293 |
+
"text": "Clear",
|
| 294 |
+
"facet": "colors",
|
| 295 |
+
"value": "clear",
|
| 296 |
+
"query": "colors=clear",
|
| 297 |
+
"description": null,
|
| 298 |
+
"redirect": null
|
| 299 |
+
}
|
| 300 |
+
]
|
| 301 |
+
},
|
| 302 |
+
{
|
| 303 |
+
"name": "Material",
|
| 304 |
+
"component": "checkbox",
|
| 305 |
+
"type": "side_by_side",
|
| 306 |
+
"items": [
|
| 307 |
+
{
|
| 308 |
+
"text": "Metal",
|
| 309 |
+
"facet": "materials",
|
| 310 |
+
"value": "Metal",
|
| 311 |
+
"query": "materials=Metal",
|
| 312 |
+
"description": null,
|
| 313 |
+
"redirect": null
|
| 314 |
+
},
|
| 315 |
+
{
|
| 316 |
+
"text": "Acetate",
|
| 317 |
+
"facet": "materials",
|
| 318 |
+
"value": "Acetate",
|
| 319 |
+
"query": "materials=Acetate",
|
| 320 |
+
"description": null,
|
| 321 |
+
"redirect": null
|
| 322 |
+
},
|
| 323 |
+
{
|
| 324 |
+
"text": "Mixed",
|
| 325 |
+
"facet": "materials",
|
| 326 |
+
"value": "Mixed",
|
| 327 |
+
"query": "materials=Mixed",
|
| 328 |
+
"description": null,
|
| 329 |
+
"redirect": null
|
| 330 |
+
},
|
| 331 |
+
{
|
| 332 |
+
"text": "Nylon",
|
| 333 |
+
"facet": "materials",
|
| 334 |
+
"value": "Nylon",
|
| 335 |
+
"query": "materials=Nylon",
|
| 336 |
+
"description": null,
|
| 337 |
+
"redirect": null
|
| 338 |
+
}
|
| 339 |
+
]
|
| 340 |
+
},
|
| 341 |
+
{
|
| 342 |
+
"name": "Frame price",
|
| 343 |
+
"component": "slider",
|
| 344 |
+
"type": "text",
|
| 345 |
+
"items": [
|
| 346 |
+
{
|
| 347 |
+
"text": "$$95",
|
| 348 |
+
"facet": "prices",
|
| 349 |
+
"value": "95",
|
| 350 |
+
"query": "prices=95",
|
| 351 |
+
"description": null,
|
| 352 |
+
"redirect": null
|
| 353 |
+
},
|
| 354 |
+
{
|
| 355 |
+
"text": "$$125",
|
| 356 |
+
"facet": "prices",
|
| 357 |
+
"value": "125",
|
| 358 |
+
"query": "prices=125",
|
| 359 |
+
"description": null,
|
| 360 |
+
"redirect": null
|
| 361 |
+
},
|
| 362 |
+
{
|
| 363 |
+
"text": "$$145",
|
| 364 |
+
"facet": "prices",
|
| 365 |
+
"value": "145",
|
| 366 |
+
"query": "prices=145",
|
| 367 |
+
"description": null,
|
| 368 |
+
"redirect": null
|
| 369 |
+
},
|
| 370 |
+
{
|
| 371 |
+
"text": "$$175",
|
| 372 |
+
"facet": "prices",
|
| 373 |
+
"value": "175",
|
| 374 |
+
"query": "prices=175",
|
| 375 |
+
"description": null,
|
| 376 |
+
"redirect": null
|
| 377 |
+
},
|
| 378 |
+
{
|
| 379 |
+
"text": "$$195",
|
| 380 |
+
"facet": "prices",
|
| 381 |
+
"value": "195",
|
| 382 |
+
"query": "prices=195",
|
| 383 |
+
"description": null,
|
| 384 |
+
"redirect": null
|
| 385 |
+
}
|
| 386 |
+
]
|
| 387 |
+
},
|
| 388 |
+
{
|
| 389 |
+
"name": "Prescription",
|
| 390 |
+
"component": "checkbox",
|
| 391 |
+
"type": "text",
|
| 392 |
+
"items": [
|
| 393 |
+
{
|
| 394 |
+
"text": "Good for progressives",
|
| 395 |
+
"facet": "rxNeeds",
|
| 396 |
+
"value": "good-for-progressive",
|
| 397 |
+
"query": "rxNeeds=good-for-progressive",
|
| 398 |
+
"description": null,
|
| 399 |
+
"redirect": null
|
| 400 |
+
},
|
| 401 |
+
{
|
| 402 |
+
"text": "Good for a strong Rx",
|
| 403 |
+
"facet": "rxNeeds",
|
| 404 |
+
"value": "good-for-strong-rx",
|
| 405 |
+
"query": "rxNeeds=good-for-strong-rx",
|
| 406 |
+
"description": null,
|
| 407 |
+
"redirect": null
|
| 408 |
+
},
|
| 409 |
+
{
|
| 410 |
+
"text": "Good for readers",
|
| 411 |
+
"facet": "rxNeeds",
|
| 412 |
+
"value": "good-for-readers",
|
| 413 |
+
"query": "rxNeeds=good-for-readers",
|
| 414 |
+
"description": null,
|
| 415 |
+
"redirect": null
|
| 416 |
+
}
|
| 417 |
+
]
|
| 418 |
+
},
|
| 419 |
+
{
|
| 420 |
+
"name": "Features",
|
| 421 |
+
"component": "checkbox",
|
| 422 |
+
"type": "text",
|
| 423 |
+
"items": [
|
| 424 |
+
{
|
| 425 |
+
"text": "Lightweight",
|
| 426 |
+
"facet": "construction",
|
| 427 |
+
"value": "light-weight",
|
| 428 |
+
"query": "construction=light-weight",
|
| 429 |
+
"description": null,
|
| 430 |
+
"redirect": null
|
| 431 |
+
},
|
| 432 |
+
{
|
| 433 |
+
"text": "Semi-rimless",
|
| 434 |
+
"facet": "construction",
|
| 435 |
+
"value": "semi-rimless",
|
| 436 |
+
"query": "construction=semi-rimless",
|
| 437 |
+
"description": null,
|
| 438 |
+
"redirect": null
|
| 439 |
+
},
|
| 440 |
+
{
|
| 441 |
+
"text": "Adjustable nose pads",
|
| 442 |
+
"facet": "construction",
|
| 443 |
+
"value": "nose-pads",
|
| 444 |
+
"query": "construction=nose-pads",
|
| 445 |
+
"description": null,
|
| 446 |
+
"redirect": null
|
| 447 |
+
},
|
| 448 |
+
{
|
| 449 |
+
"text": "Sun Clip-Ons available",
|
| 450 |
+
"facet": "eligibleForClipOns",
|
| 451 |
+
"value": "true",
|
| 452 |
+
"query": "eligibleForClipOns=true",
|
| 453 |
+
"description": null,
|
| 454 |
+
"redirect": null
|
| 455 |
+
},
|
| 456 |
+
{
|
| 457 |
+
"text": "Made in Italy",
|
| 458 |
+
"facet": "merch",
|
| 459 |
+
"value": "made-in-italy",
|
| 460 |
+
"query": "merch=made-in-italy",
|
| 461 |
+
"description": null,
|
| 462 |
+
"redirect": null
|
| 463 |
+
},
|
| 464 |
+
{
|
| 465 |
+
"text": "Made in Japan",
|
| 466 |
+
"facet": "merch",
|
| 467 |
+
"value": "made-in-japan",
|
| 468 |
+
"query": "merch=made-in-japan",
|
| 469 |
+
"description": null,
|
| 470 |
+
"redirect": null
|
| 471 |
+
},
|
| 472 |
+
{
|
| 473 |
+
"text": "Bold shapes",
|
| 474 |
+
"facet": "merch",
|
| 475 |
+
"value": "statement-frames",
|
| 476 |
+
"query": "merch=statement-frames",
|
| 477 |
+
"description": null,
|
| 478 |
+
"redirect": null
|
| 479 |
+
}
|
| 480 |
+
]
|
| 481 |
+
},
|
| 482 |
+
{
|
| 483 |
+
"name": "Nose bridge",
|
| 484 |
+
"component": "checkbox",
|
| 485 |
+
"type": "text_description",
|
| 486 |
+
"items": [
|
| 487 |
+
{
|
| 488 |
+
"text": "Standard bridge",
|
| 489 |
+
"facet": "bridgeFit",
|
| 490 |
+
"value": "standardBridge",
|
| 491 |
+
"query": "bridgeFit=standardBridge",
|
| 492 |
+
"description": "Typically best for those with a narrow or averaged size face and cheekbones.",
|
| 493 |
+
"redirect": null
|
| 494 |
+
},
|
| 495 |
+
{
|
| 496 |
+
"text": "Low Bridge Fit",
|
| 497 |
+
"facet": "bridgeFit",
|
| 498 |
+
"value": "lowBridge",
|
| 499 |
+
"query": "bridgeFit=lowBridge",
|
| 500 |
+
"description": "Larger nose pads, slightly curved temples, ultra-roomy fit, and an adjusted lens tilt provide more comfort for those with low bridges, wide faces, and/or high cheekbones.",
|
| 501 |
+
"redirect": null
|
| 502 |
+
}
|
| 503 |
+
]
|
| 504 |
+
}
|
| 505 |
+
],
|
| 506 |
+
"eyeglasses": [
|
| 507 |
+
{
|
| 508 |
+
"name": "Shop by",
|
| 509 |
+
"component": "radio",
|
| 510 |
+
"type": "text",
|
| 511 |
+
"items": [
|
| 512 |
+
{
|
| 513 |
+
"text": "Bestsellers",
|
| 514 |
+
"facet": "merch",
|
| 515 |
+
"value": "best-seller",
|
| 516 |
+
"query": "merch=best-seller",
|
| 517 |
+
"description": null,
|
| 518 |
+
"redirect": null
|
| 519 |
+
},
|
| 520 |
+
{
|
| 521 |
+
"text": "Trending: 90s minimalism",
|
| 522 |
+
"facet": "merch",
|
| 523 |
+
"value": "90s",
|
| 524 |
+
"query": "merch=90s",
|
| 525 |
+
"description": null,
|
| 526 |
+
"redirect": null
|
| 527 |
+
},
|
| 528 |
+
{
|
| 529 |
+
"text": "Good for progressives",
|
| 530 |
+
"facet": "rxNeeds",
|
| 531 |
+
"value": "good-for-progressive",
|
| 532 |
+
"query": "rxNeeds=good-for-progressive",
|
| 533 |
+
"description": null,
|
| 534 |
+
"redirect": null
|
| 535 |
+
},
|
| 536 |
+
{
|
| 537 |
+
"text": "New arrivals",
|
| 538 |
+
"facet": "merch",
|
| 539 |
+
"value": "new-arrival",
|
| 540 |
+
"query": "merch=new-arrival",
|
| 541 |
+
"description": null,
|
| 542 |
+
"redirect": null
|
| 543 |
+
}
|
| 544 |
+
]
|
| 545 |
+
},
|
| 546 |
+
{
|
| 547 |
+
"name": "Shape",
|
| 548 |
+
"component": "checkbox",
|
| 549 |
+
"type": "stacked",
|
| 550 |
+
"items": [
|
| 551 |
+
{
|
| 552 |
+
"text": "Square",
|
| 553 |
+
"facet": "shapes",
|
| 554 |
+
"value": "Square",
|
| 555 |
+
"query": "shapes=Square",
|
| 556 |
+
"description": null,
|
| 557 |
+
"redirect": "/eyeglasses/square"
|
| 558 |
+
},
|
| 559 |
+
{
|
| 560 |
+
"text": "Rectangle",
|
| 561 |
+
"facet": "shapes",
|
| 562 |
+
"value": "Rectangle",
|
| 563 |
+
"query": "shapes=Rectangle",
|
| 564 |
+
"description": null,
|
| 565 |
+
"redirect": "/eyeglasses/rectangle"
|
| 566 |
+
},
|
| 567 |
+
{
|
| 568 |
+
"text": "Round",
|
| 569 |
+
"facet": "shapes",
|
| 570 |
+
"value": "Round",
|
| 571 |
+
"query": "shapes=Round",
|
| 572 |
+
"description": null,
|
| 573 |
+
"redirect": "/eyeglasses/round"
|
| 574 |
+
},
|
| 575 |
+
{
|
| 576 |
+
"text": "Oval",
|
| 577 |
+
"facet": "shapes",
|
| 578 |
+
"value": "Oval",
|
| 579 |
+
"query": "shapes=Oval",
|
| 580 |
+
"description": null,
|
| 581 |
+
"redirect": "/eyeglasses/oval"
|
| 582 |
+
},
|
| 583 |
+
{
|
| 584 |
+
"text": "Cat-eye",
|
| 585 |
+
"facet": "shapes",
|
| 586 |
+
"value": "Cat-eye",
|
| 587 |
+
"query": "shapes=Cat-eye",
|
| 588 |
+
"description": null,
|
| 589 |
+
"redirect": "/eyeglasses/cat-eye"
|
| 590 |
+
},
|
| 591 |
+
{
|
| 592 |
+
"text": "Geometric",
|
| 593 |
+
"facet": "shapes",
|
| 594 |
+
"value": "Geometric",
|
| 595 |
+
"query": "shapes=Geometric",
|
| 596 |
+
"description": null,
|
| 597 |
+
"redirect": "/eyeglasses/geometric"
|
| 598 |
+
},
|
| 599 |
+
{
|
| 600 |
+
"text": "Aviator",
|
| 601 |
+
"facet": "shapes",
|
| 602 |
+
"value": "Aviator",
|
| 603 |
+
"query": "shapes=Aviator",
|
| 604 |
+
"description": null,
|
| 605 |
+
"redirect": "/eyeglasses/aviator"
|
| 606 |
+
}
|
| 607 |
+
]
|
| 608 |
+
},
|
| 609 |
+
{
|
| 610 |
+
"name": "Gender",
|
| 611 |
+
"component": "checkbox",
|
| 612 |
+
"type": "side_by_side",
|
| 613 |
+
"items": [
|
| 614 |
+
{
|
| 615 |
+
"text": "Men's",
|
| 616 |
+
"facet": "gender",
|
| 617 |
+
"value": "M",
|
| 618 |
+
"query": "gender=M",
|
| 619 |
+
"description": null,
|
| 620 |
+
"redirect": null
|
| 621 |
+
},
|
| 622 |
+
{
|
| 623 |
+
"text": "Women's",
|
| 624 |
+
"facet": "gender",
|
| 625 |
+
"value": "F",
|
| 626 |
+
"query": "gender=F",
|
| 627 |
+
"description": null,
|
| 628 |
+
"redirect": null
|
| 629 |
+
}
|
| 630 |
+
]
|
| 631 |
+
},
|
| 632 |
+
{
|
| 633 |
+
"name": "Frame width",
|
| 634 |
+
"component": "checkbox",
|
| 635 |
+
"type": "text",
|
| 636 |
+
"items": [
|
| 637 |
+
{
|
| 638 |
+
"text": "Extra narrow",
|
| 639 |
+
"facet": "availableWidths",
|
| 640 |
+
"value": "extra-narrow",
|
| 641 |
+
"query": "availableWidths=extra-narrow",
|
| 642 |
+
"description": null,
|
| 643 |
+
"redirect": null
|
| 644 |
+
},
|
| 645 |
+
{
|
| 646 |
+
"text": "Narrow",
|
| 647 |
+
"facet": "availableWidths",
|
| 648 |
+
"value": "narrow",
|
| 649 |
+
"query": "availableWidths=narrow",
|
| 650 |
+
"description": null,
|
| 651 |
+
"redirect": null
|
| 652 |
+
},
|
| 653 |
+
{
|
| 654 |
+
"text": "Medium",
|
| 655 |
+
"facet": "availableWidths",
|
| 656 |
+
"value": "medium",
|
| 657 |
+
"query": "availableWidths=medium",
|
| 658 |
+
"description": null,
|
| 659 |
+
"redirect": null
|
| 660 |
+
},
|
| 661 |
+
{
|
| 662 |
+
"text": "Wide",
|
| 663 |
+
"facet": "availableWidths",
|
| 664 |
+
"value": "wide",
|
| 665 |
+
"query": "availableWidths=wide",
|
| 666 |
+
"description": null,
|
| 667 |
+
"redirect": null
|
| 668 |
+
},
|
| 669 |
+
{
|
| 670 |
+
"text": "Extra wide",
|
| 671 |
+
"facet": "availableWidths",
|
| 672 |
+
"value": "extra-wide",
|
| 673 |
+
"query": "availableWidths=extra-wide",
|
| 674 |
+
"description": null,
|
| 675 |
+
"redirect": null
|
| 676 |
+
}
|
| 677 |
+
]
|
| 678 |
+
},
|
| 679 |
+
{
|
| 680 |
+
"name": "Color",
|
| 681 |
+
"component": "checkbox",
|
| 682 |
+
"type": "swatch_text",
|
| 683 |
+
"items": [
|
| 684 |
+
{
|
| 685 |
+
"text": "Black",
|
| 686 |
+
"facet": "colors",
|
| 687 |
+
"value": "black",
|
| 688 |
+
"query": "colors=black",
|
| 689 |
+
"description": null,
|
| 690 |
+
"redirect": null
|
| 691 |
+
},
|
| 692 |
+
{
|
| 693 |
+
"text": "Brown",
|
| 694 |
+
"facet": "colors",
|
| 695 |
+
"value": "brown",
|
| 696 |
+
"query": "colors=brown",
|
| 697 |
+
"description": null,
|
| 698 |
+
"redirect": null
|
| 699 |
+
},
|
| 700 |
+
{
|
| 701 |
+
"text": "Tortoise",
|
| 702 |
+
"facet": "colors",
|
| 703 |
+
"value": "tortoise",
|
| 704 |
+
"query": "colors=tortoise",
|
| 705 |
+
"description": null,
|
| 706 |
+
"redirect": null
|
| 707 |
+
},
|
| 708 |
+
{
|
| 709 |
+
"text": "Crystal",
|
| 710 |
+
"facet": "colors",
|
| 711 |
+
"value": "crystal",
|
| 712 |
+
"query": "colors=crystal",
|
| 713 |
+
"description": null,
|
| 714 |
+
"redirect": null
|
| 715 |
+
},
|
| 716 |
+
{
|
| 717 |
+
"text": "Multicolor",
|
| 718 |
+
"facet": "colors",
|
| 719 |
+
"value": "multicolor",
|
| 720 |
+
"query": "colors=multicolor",
|
| 721 |
+
"description": null,
|
| 722 |
+
"redirect": null
|
| 723 |
+
},
|
| 724 |
+
{
|
| 725 |
+
"text": "Two-tone",
|
| 726 |
+
"facet": "colors",
|
| 727 |
+
"value": "two-tone",
|
| 728 |
+
"query": "colors=two-tone",
|
| 729 |
+
"description": null,
|
| 730 |
+
"redirect": null
|
| 731 |
+
},
|
| 732 |
+
{
|
| 733 |
+
"text": "Gold",
|
| 734 |
+
"facet": "colors",
|
| 735 |
+
"value": "gold",
|
| 736 |
+
"query": "colors=gold",
|
| 737 |
+
"description": null,
|
| 738 |
+
"redirect": null
|
| 739 |
+
},
|
| 740 |
+
{
|
| 741 |
+
"text": "Silver",
|
| 742 |
+
"facet": "colors",
|
| 743 |
+
"value": "silver",
|
| 744 |
+
"query": "colors=silver",
|
| 745 |
+
"description": null,
|
| 746 |
+
"redirect": null
|
| 747 |
+
},
|
| 748 |
+
{
|
| 749 |
+
"text": "Red",
|
| 750 |
+
"facet": "colors",
|
| 751 |
+
"value": "red",
|
| 752 |
+
"query": "colors=red",
|
| 753 |
+
"description": null,
|
| 754 |
+
"redirect": null
|
| 755 |
+
},
|
| 756 |
+
{
|
| 757 |
+
"text": "Yellow",
|
| 758 |
+
"facet": "colors",
|
| 759 |
+
"value": "yellow",
|
| 760 |
+
"query": "colors=yellow",
|
| 761 |
+
"description": null,
|
| 762 |
+
"redirect": null
|
| 763 |
+
},
|
| 764 |
+
{
|
| 765 |
+
"text": "Green",
|
| 766 |
+
"facet": "colors",
|
| 767 |
+
"value": "green",
|
| 768 |
+
"query": "colors=green",
|
| 769 |
+
"description": null,
|
| 770 |
+
"redirect": null
|
| 771 |
+
},
|
| 772 |
+
{
|
| 773 |
+
"text": "Blue",
|
| 774 |
+
"facet": "colors",
|
| 775 |
+
"value": "blue",
|
| 776 |
+
"query": "colors=blue",
|
| 777 |
+
"description": null,
|
| 778 |
+
"redirect": null
|
| 779 |
+
},
|
| 780 |
+
{
|
| 781 |
+
"text": "Pink",
|
| 782 |
+
"facet": "colors",
|
| 783 |
+
"value": "pink",
|
| 784 |
+
"query": "colors=pink",
|
| 785 |
+
"description": null,
|
| 786 |
+
"redirect": null
|
| 787 |
+
},
|
| 788 |
+
{
|
| 789 |
+
"text": "Purple",
|
| 790 |
+
"facet": "colors",
|
| 791 |
+
"value": "purple",
|
| 792 |
+
"query": "colors=purple",
|
| 793 |
+
"description": null,
|
| 794 |
+
"redirect": null
|
| 795 |
+
},
|
| 796 |
+
{
|
| 797 |
+
"text": "Grey",
|
| 798 |
+
"facet": "colors",
|
| 799 |
+
"value": "grey",
|
| 800 |
+
"query": "colors=grey",
|
| 801 |
+
"description": null,
|
| 802 |
+
"redirect": null
|
| 803 |
+
},
|
| 804 |
+
{
|
| 805 |
+
"text": "Clear",
|
| 806 |
+
"facet": "colors",
|
| 807 |
+
"value": "clear",
|
| 808 |
+
"query": "colors=clear",
|
| 809 |
+
"description": null,
|
| 810 |
+
"redirect": null
|
| 811 |
+
}
|
| 812 |
+
]
|
| 813 |
+
},
|
| 814 |
+
{
|
| 815 |
+
"name": "Material",
|
| 816 |
+
"component": "checkbox",
|
| 817 |
+
"type": "side_by_side",
|
| 818 |
+
"items": [
|
| 819 |
+
{
|
| 820 |
+
"text": "Metal",
|
| 821 |
+
"facet": "materials",
|
| 822 |
+
"value": "Metal",
|
| 823 |
+
"query": "materials=Metal",
|
| 824 |
+
"description": null,
|
| 825 |
+
"redirect": null
|
| 826 |
+
},
|
| 827 |
+
{
|
| 828 |
+
"text": "Acetate",
|
| 829 |
+
"facet": "materials",
|
| 830 |
+
"value": "Acetate",
|
| 831 |
+
"query": "materials=Acetate",
|
| 832 |
+
"description": null,
|
| 833 |
+
"redirect": null
|
| 834 |
+
},
|
| 835 |
+
{
|
| 836 |
+
"text": "Mixed",
|
| 837 |
+
"facet": "materials",
|
| 838 |
+
"value": "Mixed",
|
| 839 |
+
"query": "materials=Mixed",
|
| 840 |
+
"description": null,
|
| 841 |
+
"redirect": null
|
| 842 |
+
},
|
| 843 |
+
{
|
| 844 |
+
"text": "Nylon",
|
| 845 |
+
"facet": "materials",
|
| 846 |
+
"value": "Nylon",
|
| 847 |
+
"query": "materials=Nylon",
|
| 848 |
+
"description": null,
|
| 849 |
+
"redirect": null
|
| 850 |
+
}
|
| 851 |
+
]
|
| 852 |
+
},
|
| 853 |
+
{
|
| 854 |
+
"name": "Frame price",
|
| 855 |
+
"component": "slider",
|
| 856 |
+
"type": "text",
|
| 857 |
+
"items": [
|
| 858 |
+
{
|
| 859 |
+
"text": "$$95",
|
| 860 |
+
"facet": "prices",
|
| 861 |
+
"value": "95",
|
| 862 |
+
"query": "prices=95",
|
| 863 |
+
"description": null,
|
| 864 |
+
"redirect": null
|
| 865 |
+
},
|
| 866 |
+
{
|
| 867 |
+
"text": "$$125",
|
| 868 |
+
"facet": "prices",
|
| 869 |
+
"value": "125",
|
| 870 |
+
"query": "prices=125",
|
| 871 |
+
"description": null,
|
| 872 |
+
"redirect": null
|
| 873 |
+
},
|
| 874 |
+
{
|
| 875 |
+
"text": "$$145",
|
| 876 |
+
"facet": "prices",
|
| 877 |
+
"value": "145",
|
| 878 |
+
"query": "prices=145",
|
| 879 |
+
"description": null,
|
| 880 |
+
"redirect": null
|
| 881 |
+
},
|
| 882 |
+
{
|
| 883 |
+
"text": "$$175",
|
| 884 |
+
"facet": "prices",
|
| 885 |
+
"value": "175",
|
| 886 |
+
"query": "prices=175",
|
| 887 |
+
"description": null,
|
| 888 |
+
"redirect": null
|
| 889 |
+
},
|
| 890 |
+
{
|
| 891 |
+
"text": "$$195",
|
| 892 |
+
"facet": "prices",
|
| 893 |
+
"value": "195",
|
| 894 |
+
"query": "prices=195",
|
| 895 |
+
"description": null,
|
| 896 |
+
"redirect": null
|
| 897 |
+
}
|
| 898 |
+
]
|
| 899 |
+
},
|
| 900 |
+
{
|
| 901 |
+
"name": "Prescription",
|
| 902 |
+
"component": "checkbox",
|
| 903 |
+
"type": "text",
|
| 904 |
+
"items": [
|
| 905 |
+
{
|
| 906 |
+
"text": "Good for progressives",
|
| 907 |
+
"facet": "rxNeeds",
|
| 908 |
+
"value": "good-for-progressive",
|
| 909 |
+
"query": "rxNeeds=good-for-progressive",
|
| 910 |
+
"description": null,
|
| 911 |
+
"redirect": null
|
| 912 |
+
},
|
| 913 |
+
{
|
| 914 |
+
"text": "Good for a strong Rx",
|
| 915 |
+
"facet": "rxNeeds",
|
| 916 |
+
"value": "good-for-strong-rx",
|
| 917 |
+
"query": "rxNeeds=good-for-strong-rx",
|
| 918 |
+
"description": null,
|
| 919 |
+
"redirect": null
|
| 920 |
+
},
|
| 921 |
+
{
|
| 922 |
+
"text": "Good for readers",
|
| 923 |
+
"facet": "rxNeeds",
|
| 924 |
+
"value": "good-for-readers",
|
| 925 |
+
"query": "rxNeeds=good-for-readers",
|
| 926 |
+
"description": null,
|
| 927 |
+
"redirect": null
|
| 928 |
+
}
|
| 929 |
+
]
|
| 930 |
+
},
|
| 931 |
+
{
|
| 932 |
+
"name": "Features",
|
| 933 |
+
"component": "checkbox",
|
| 934 |
+
"type": "text",
|
| 935 |
+
"items": [
|
| 936 |
+
{
|
| 937 |
+
"text": "Lightweight",
|
| 938 |
+
"facet": "construction",
|
| 939 |
+
"value": "light-weight",
|
| 940 |
+
"query": "construction=light-weight",
|
| 941 |
+
"description": null,
|
| 942 |
+
"redirect": null
|
| 943 |
+
},
|
| 944 |
+
{
|
| 945 |
+
"text": "Semi-rimless",
|
| 946 |
+
"facet": "construction",
|
| 947 |
+
"value": "semi-rimless",
|
| 948 |
+
"query": "construction=semi-rimless",
|
| 949 |
+
"description": null,
|
| 950 |
+
"redirect": null
|
| 951 |
+
},
|
| 952 |
+
{
|
| 953 |
+
"text": "Adjustable nose pads",
|
| 954 |
+
"facet": "construction",
|
| 955 |
+
"value": "nose-pads",
|
| 956 |
+
"query": "construction=nose-pads",
|
| 957 |
+
"description": null,
|
| 958 |
+
"redirect": null
|
| 959 |
+
},
|
| 960 |
+
{
|
| 961 |
+
"text": "Sun Clip-Ons available",
|
| 962 |
+
"facet": "eligibleForClipOns",
|
| 963 |
+
"value": "true",
|
| 964 |
+
"query": "eligibleForClipOns=true",
|
| 965 |
+
"description": null,
|
| 966 |
+
"redirect": null
|
| 967 |
+
},
|
| 968 |
+
{
|
| 969 |
+
"text": "Rimless",
|
| 970 |
+
"facet": "construction",
|
| 971 |
+
"value": "rimless",
|
| 972 |
+
"query": "construction=rimless",
|
| 973 |
+
"description": null,
|
| 974 |
+
"redirect": null
|
| 975 |
+
},
|
| 976 |
+
{
|
| 977 |
+
"text": "Made in Italy",
|
| 978 |
+
"facet": "merch",
|
| 979 |
+
"value": "made-in-italy",
|
| 980 |
+
"query": "merch=made-in-italy",
|
| 981 |
+
"description": null,
|
| 982 |
+
"redirect": null
|
| 983 |
+
},
|
| 984 |
+
{
|
| 985 |
+
"text": "Made in Japan",
|
| 986 |
+
"facet": "merch",
|
| 987 |
+
"value": "made-in-japan",
|
| 988 |
+
"query": "merch=made-in-japan",
|
| 989 |
+
"description": null,
|
| 990 |
+
"redirect": null
|
| 991 |
+
},
|
| 992 |
+
{
|
| 993 |
+
"text": "Bold shapes",
|
| 994 |
+
"facet": "merch",
|
| 995 |
+
"value": "statement-frames",
|
| 996 |
+
"query": "merch=statement-frames",
|
| 997 |
+
"description": null,
|
| 998 |
+
"redirect": null
|
| 999 |
+
}
|
| 1000 |
+
]
|
| 1001 |
+
},
|
| 1002 |
+
{
|
| 1003 |
+
"name": "Nose bridge",
|
| 1004 |
+
"component": "checkbox",
|
| 1005 |
+
"type": "text_description",
|
| 1006 |
+
"items": [
|
| 1007 |
+
{
|
| 1008 |
+
"text": "Standard bridge",
|
| 1009 |
+
"facet": "bridgeFit",
|
| 1010 |
+
"value": "standardBridge",
|
| 1011 |
+
"query": "bridgeFit=standardBridge",
|
| 1012 |
+
"description": "Typically best for those with a narrow or averaged size face and cheekbones.",
|
| 1013 |
+
"redirect": null
|
| 1014 |
+
},
|
| 1015 |
+
{
|
| 1016 |
+
"text": "Low Bridge Fit",
|
| 1017 |
+
"facet": "bridgeFit",
|
| 1018 |
+
"value": "lowBridge",
|
| 1019 |
+
"query": "bridgeFit=lowBridge",
|
| 1020 |
+
"description": "Larger nose pads, slightly curved temples, ultra-roomy fit, and an adjusted lens tilt provide more comfort for those with low bridges, wide faces, and/or high cheekbones.",
|
| 1021 |
+
"redirect": null
|
| 1022 |
+
}
|
| 1023 |
+
]
|
| 1024 |
+
}
|
| 1025 |
+
]
|
| 1026 |
+
}
|
tasks/warbyparker/solution/site/implementation/clone/data/footer.json
ADDED
|
@@ -0,0 +1,156 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
{
|
| 3 |
+
"title": "Products",
|
| 4 |
+
"links": [
|
| 5 |
+
[
|
| 6 |
+
"Eyeglasses",
|
| 7 |
+
"/eyeglasses"
|
| 8 |
+
],
|
| 9 |
+
[
|
| 10 |
+
"Sunglasses",
|
| 11 |
+
"/sunglasses"
|
| 12 |
+
],
|
| 13 |
+
[
|
| 14 |
+
"Contacts",
|
| 15 |
+
"/contacts"
|
| 16 |
+
],
|
| 17 |
+
[
|
| 18 |
+
"New collections",
|
| 19 |
+
"/collections"
|
| 20 |
+
],
|
| 21 |
+
[
|
| 22 |
+
"Accessories",
|
| 23 |
+
"/accessories"
|
| 24 |
+
],
|
| 25 |
+
[
|
| 26 |
+
"Gift cards",
|
| 27 |
+
"/gift-card"
|
| 28 |
+
],
|
| 29 |
+
[
|
| 30 |
+
"Intelligent Eyewear",
|
| 31 |
+
"/intelligent-eyewear"
|
| 32 |
+
]
|
| 33 |
+
],
|
| 34 |
+
"col": 1
|
| 35 |
+
},
|
| 36 |
+
{
|
| 37 |
+
"title": "Shop Online",
|
| 38 |
+
"links": [
|
| 39 |
+
[
|
| 40 |
+
"Advisor",
|
| 41 |
+
"/quiz/frames"
|
| 42 |
+
],
|
| 43 |
+
[
|
| 44 |
+
"Virtual Try-On",
|
| 45 |
+
"/virtual-vision-test"
|
| 46 |
+
],
|
| 47 |
+
[
|
| 48 |
+
"Download our app",
|
| 49 |
+
"/ios-app"
|
| 50 |
+
]
|
| 51 |
+
],
|
| 52 |
+
"col": 2
|
| 53 |
+
},
|
| 54 |
+
{
|
| 55 |
+
"title": "Get a prescription",
|
| 56 |
+
"links": [
|
| 57 |
+
[
|
| 58 |
+
"Book an eye exam",
|
| 59 |
+
"/appointments/eye-exams/booking"
|
| 60 |
+
],
|
| 61 |
+
[
|
| 62 |
+
"Renew a prescription",
|
| 63 |
+
"/virtual-vision-test"
|
| 64 |
+
],
|
| 65 |
+
[
|
| 66 |
+
"Measure your PD",
|
| 67 |
+
"/pd/instructions"
|
| 68 |
+
]
|
| 69 |
+
],
|
| 70 |
+
"col": 2
|
| 71 |
+
},
|
| 72 |
+
{
|
| 73 |
+
"title": "Visit a store",
|
| 74 |
+
"links": [
|
| 75 |
+
[
|
| 76 |
+
"Find a location",
|
| 77 |
+
"/retail"
|
| 78 |
+
]
|
| 79 |
+
],
|
| 80 |
+
"col": 2
|
| 81 |
+
},
|
| 82 |
+
{
|
| 83 |
+
"title": "Ways to save",
|
| 84 |
+
"links": [
|
| 85 |
+
[
|
| 86 |
+
"Insurance",
|
| 87 |
+
"/insurance"
|
| 88 |
+
],
|
| 89 |
+
[
|
| 90 |
+
"Flexible spending",
|
| 91 |
+
"/flexible-spending-accounts"
|
| 92 |
+
],
|
| 93 |
+
[
|
| 94 |
+
"25% off contacts",
|
| 95 |
+
"/contacts-new-customer-offer"
|
| 96 |
+
],
|
| 97 |
+
[
|
| 98 |
+
"Add a pair and save",
|
| 99 |
+
"/add-a-pair-and-save"
|
| 100 |
+
]
|
| 101 |
+
],
|
| 102 |
+
"col": 3
|
| 103 |
+
},
|
| 104 |
+
{
|
| 105 |
+
"title": "Education",
|
| 106 |
+
"links": [
|
| 107 |
+
[
|
| 108 |
+
"Eyeglasses lens guide",
|
| 109 |
+
"/eyeglasses/lenses"
|
| 110 |
+
],
|
| 111 |
+
[
|
| 112 |
+
"Sunglasses lens guide",
|
| 113 |
+
"/sunglasses/lenses"
|
| 114 |
+
],
|
| 115 |
+
[
|
| 116 |
+
"Eyewear A to Z",
|
| 117 |
+
"/learn"
|
| 118 |
+
],
|
| 119 |
+
[
|
| 120 |
+
"How our glasses are made",
|
| 121 |
+
"/how-our-glasses-are-made"
|
| 122 |
+
]
|
| 123 |
+
],
|
| 124 |
+
"col": 3
|
| 125 |
+
},
|
| 126 |
+
{
|
| 127 |
+
"title": "About us",
|
| 128 |
+
"links": [
|
| 129 |
+
[
|
| 130 |
+
"Our story",
|
| 131 |
+
"/history"
|
| 132 |
+
],
|
| 133 |
+
[
|
| 134 |
+
"Buy a Pair, Give a Pair",
|
| 135 |
+
"/buy-a-pair-give-a-pair"
|
| 136 |
+
],
|
| 137 |
+
[
|
| 138 |
+
"Customer reviews",
|
| 139 |
+
"/reviews/quality"
|
| 140 |
+
],
|
| 141 |
+
[
|
| 142 |
+
"Jobs",
|
| 143 |
+
"/jobs"
|
| 144 |
+
],
|
| 145 |
+
[
|
| 146 |
+
"Impact Foundation",
|
| 147 |
+
"/impact-report"
|
| 148 |
+
],
|
| 149 |
+
[
|
| 150 |
+
"Sitemap",
|
| 151 |
+
"/sitemap"
|
| 152 |
+
]
|
| 153 |
+
],
|
| 154 |
+
"col": 4
|
| 155 |
+
}
|
| 156 |
+
]
|
tasks/warbyparker/solution/site/implementation/clone/data/frame-details.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
tasks/warbyparker/solution/site/implementation/clone/data/frames-eyeglasses.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
tasks/warbyparker/solution/site/implementation/clone/data/frames-sunglasses.json
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
{
|
| 3 |
+
"type": "hero",
|
| 4 |
+
"heading": "Keep your eyes<br>on Arch Manning",
|
| 5 |
+
"color": "white",
|
| 6 |
+
"image": "/static/img/home/e41b41a6fef99dbd.png",
|
| 7 |
+
"alt": "Arch Manning wearing Warby Parker glasses.",
|
| 8 |
+
"ctas": [
|
| 9 |
+
{
|
| 10 |
+
"copy": "Start with a quiz",
|
| 11 |
+
"route": "/quiz/frames"
|
| 12 |
+
},
|
| 13 |
+
{
|
| 14 |
+
"copy": "Shop eyeglasses",
|
| 15 |
+
"route": "/eyeglasses"
|
| 16 |
+
},
|
| 17 |
+
{
|
| 18 |
+
"copy": "Shop Arch's picks",
|
| 19 |
+
"route": "/collections/arch-manning",
|
| 20 |
+
"kind": "link"
|
| 21 |
+
}
|
| 22 |
+
],
|
| 23 |
+
"valueProps": [
|
| 24 |
+
{
|
| 25 |
+
"copy": "25% off first contacts order",
|
| 26 |
+
"url": "/contacts"
|
| 27 |
+
},
|
| 28 |
+
{
|
| 29 |
+
"copy": "Free shipping",
|
| 30 |
+
"url": null
|
| 31 |
+
},
|
| 32 |
+
{
|
| 33 |
+
"copy": "Free 30-day returns",
|
| 34 |
+
"url": null
|
| 35 |
+
},
|
| 36 |
+
{
|
| 37 |
+
"copy": "Vision benefits accepted",
|
| 38 |
+
"url": "/insurance"
|
| 39 |
+
}
|
| 40 |
+
]
|
| 41 |
+
},
|
| 42 |
+
{
|
| 43 |
+
"type": "duo",
|
| 44 |
+
"items": [
|
| 45 |
+
{
|
| 46 |
+
"heading": "A fresh dose of nostalgia",
|
| 47 |
+
"image": "/static/img/home/1c5a51efdb1f93cf.png",
|
| 48 |
+
"alt": "Two pairs of Warby Parker eyeglasses resting on a sunlit checkered stone floor beside chess pieces.",
|
| 49 |
+
"ctas": [
|
| 50 |
+
{
|
| 51 |
+
"copy": "Shop Putney",
|
| 52 |
+
"route": "/eyeglasses/putney/toffee-tortoise?w=medium"
|
| 53 |
+
},
|
| 54 |
+
{
|
| 55 |
+
"copy": "Shop all ’90s styles",
|
| 56 |
+
"route": "/eyeglasses?merch=90s"
|
| 57 |
+
}
|
| 58 |
+
]
|
| 59 |
+
},
|
| 60 |
+
{
|
| 61 |
+
"heading": "See fall semester through fresh eyes",
|
| 62 |
+
"image": "/static/img/home/a8eea1208340404c.jpg",
|
| 63 |
+
"alt": "A smiling woman with curly dark hair wearing tortoiseshell round glasses and a blue sweater.",
|
| 64 |
+
"ctas": [
|
| 65 |
+
{
|
| 66 |
+
"copy": "Shop the collection",
|
| 67 |
+
"route": "/collections/fall-2026"
|
| 68 |
+
}
|
| 69 |
+
]
|
| 70 |
+
}
|
| 71 |
+
]
|
| 72 |
+
},
|
| 73 |
+
{
|
| 74 |
+
"type": "carousel",
|
| 75 |
+
"query": "?kind=eyeGlasses&max=8",
|
| 76 |
+
"headingPrefix": "Shop by ",
|
| 77 |
+
"headingSelector": "new arrivals",
|
| 78 |
+
"variant": "buy",
|
| 79 |
+
"count": 8,
|
| 80 |
+
"selectorRoute": "/eyeglasses?merch=new-arrival"
|
| 81 |
+
},
|
| 82 |
+
{
|
| 83 |
+
"type": "banner",
|
| 84 |
+
"tone": "light",
|
| 85 |
+
"heading": "Introducing Intelligent Eyewear",
|
| 86 |
+
"body": "In partnership with Google and Samsung, we’re developing next-gen glasses designed for all-day wear.",
|
| 87 |
+
"image": "/static/img/home/7eba5a1418c66d19.png",
|
| 88 |
+
"bleed": true,
|
| 89 |
+
"alt": "Three models wearing Warby Parker Intelligent Eyewear.",
|
| 90 |
+
"ctas": [
|
| 91 |
+
{
|
| 92 |
+
"copy": "Learn more >",
|
| 93 |
+
"route": "/intelligent-eyewear",
|
| 94 |
+
"kind": "plainlink"
|
| 95 |
+
}
|
| 96 |
+
],
|
| 97 |
+
"signup": {
|
| 98 |
+
"heading": "Be the first to know",
|
| 99 |
+
"placeholder": "Email address",
|
| 100 |
+
"button": "Sign up",
|
| 101 |
+
"note": "For more information, read our privacy policy",
|
| 102 |
+
"noteLink": {
|
| 103 |
+
"copy": "here",
|
| 104 |
+
"route": "/privacy-policy"
|
| 105 |
+
}
|
| 106 |
+
}
|
| 107 |
+
},
|
| 108 |
+
{
|
| 109 |
+
"type": "tiles",
|
| 110 |
+
"heading": "Four ways to use your vision benefits",
|
| 111 |
+
"items": [
|
| 112 |
+
{
|
| 113 |
+
"heading": "Prescription eyeglasses",
|
| 114 |
+
"route": "/eyeglasses",
|
| 115 |
+
"image": "/static/img/home/757acce45041e4fe.png",
|
| 116 |
+
"alt": "A close-up shot showcases three pairs of glasses stacked on top of each other."
|
| 117 |
+
},
|
| 118 |
+
{
|
| 119 |
+
"heading": "Prescription sunglasses",
|
| 120 |
+
"route": "/sunglasses",
|
| 121 |
+
"image": "/static/img/home/6610b1981a28266b.png",
|
| 122 |
+
"alt": "A woman with blonde hair and large tortoiseshell sunglasses."
|
| 123 |
+
},
|
| 124 |
+
{
|
| 125 |
+
"heading": "Contacts",
|
| 126 |
+
"route": "/contacts",
|
| 127 |
+
"image": "/static/img/home/6e50ee9027b3c984.png",
|
| 128 |
+
"alt": "Various brands of contact lens boxes are displayed in a product shot."
|
| 129 |
+
},
|
| 130 |
+
{
|
| 131 |
+
"heading": "Eye exams",
|
| 132 |
+
"route": "/appointments/eye-exams/booking",
|
| 133 |
+
"image": "/static/img/home/071b52696a8dd9fa.png",
|
| 134 |
+
"alt": "A woman is having her eyes examined using a phoropter at an eye exam."
|
| 135 |
+
}
|
| 136 |
+
],
|
| 137 |
+
"overlay": true
|
| 138 |
+
},
|
| 139 |
+
{
|
| 140 |
+
"type": "eligibility",
|
| 141 |
+
"heading": "It’s easy to use your insurance",
|
| 142 |
+
"body": "Enter your information to see if you have eligible benefits for eyewear."
|
| 143 |
+
},
|
| 144 |
+
{
|
| 145 |
+
"type": "band",
|
| 146 |
+
"heading": "We’ve got your eyes covered",
|
| 147 |
+
"bodyParts": [
|
| 148 |
+
{
|
| 149 |
+
"t": "Book an "
|
| 150 |
+
},
|
| 151 |
+
{
|
| 152 |
+
"t": "eye exam",
|
| 153 |
+
"route": "/appointments/eye-exams/booking"
|
| 154 |
+
},
|
| 155 |
+
{
|
| 156 |
+
"t": ", try on "
|
| 157 |
+
},
|
| 158 |
+
{
|
| 159 |
+
"t": "glasses",
|
| 160 |
+
"route": "/eyeglasses"
|
| 161 |
+
},
|
| 162 |
+
{
|
| 163 |
+
"t": ", and shop "
|
| 164 |
+
},
|
| 165 |
+
{
|
| 166 |
+
"t": "contacts",
|
| 167 |
+
"route": "/contacts"
|
| 168 |
+
},
|
| 169 |
+
{
|
| 170 |
+
"t": "—all at your "
|
| 171 |
+
},
|
| 172 |
+
{
|
| 173 |
+
"t": "nearby store",
|
| 174 |
+
"route": "/retail"
|
| 175 |
+
}
|
| 176 |
+
]
|
| 177 |
+
},
|
| 178 |
+
{
|
| 179 |
+
"type": "promo",
|
| 180 |
+
"heading": "Curated frame picks, at your fingertips",
|
| 181 |
+
"body": "With Advisor, virtually try on frames and get personalised picks.",
|
| 182 |
+
"image": "/static/img/home/63e9ebd01a449393.jpg",
|
| 183 |
+
"alt": "A hand holding a phone showing the Warby Parker Advisor.",
|
| 184 |
+
"ctas": [
|
| 185 |
+
{
|
| 186 |
+
"copy": "Download for iOS",
|
| 187 |
+
"route": "/ios-app"
|
| 188 |
+
}
|
| 189 |
+
],
|
| 190 |
+
"media": "square",
|
| 191 |
+
"side": "left"
|
| 192 |
+
},
|
| 193 |
+
{
|
| 194 |
+
"type": "banner",
|
| 195 |
+
"heading": "Shop together and save",
|
| 196 |
+
"body": "Buy one prescription pair and save 20% on additional pairs—including kids’ glasses.",
|
| 197 |
+
"image": "/static/img/home/84b46ed1619ec4a9.jpg",
|
| 198 |
+
"alt": "A family wearing Warby Parker glasses.",
|
| 199 |
+
"ctas": [
|
| 200 |
+
{
|
| 201 |
+
"copy": "Shop eyeglasses",
|
| 202 |
+
"route": "/eyeglasses"
|
| 203 |
+
},
|
| 204 |
+
{
|
| 205 |
+
"copy": "Shop sunglasses",
|
| 206 |
+
"route": "/sunglasses"
|
| 207 |
+
},
|
| 208 |
+
{
|
| 209 |
+
"copy": "Start with a quiz",
|
| 210 |
+
"route": "/quiz/frames",
|
| 211 |
+
"kind": "link"
|
| 212 |
+
}
|
| 213 |
+
],
|
| 214 |
+
"tone": "light",
|
| 215 |
+
"bleed": false
|
| 216 |
+
},
|
| 217 |
+
{
|
| 218 |
+
"type": "ugc",
|
| 219 |
+
"heading": "Warby Parker in the wild",
|
| 220 |
+
"items": [
|
| 221 |
+
{
|
| 222 |
+
"caption": "York in Polished Gold",
|
| 223 |
+
"handle": "@alona.mary.kara",
|
| 224 |
+
"route": "/eyeglasses/york/polished-gold",
|
| 225 |
+
"image": "/static/img/home/d0bdceb5b520f110.jpg",
|
| 226 |
+
"alt": "A woman in a brown baseball cap wearing York glasses in Polished Gold."
|
| 227 |
+
},
|
| 228 |
+
{
|
| 229 |
+
"caption": "Beale in Jet Black",
|
| 230 |
+
"handle": "@ethanllllow",
|
| 231 |
+
"route": "/sunglasses/beale/jet-black",
|
| 232 |
+
"image": "/static/img/home/1bca66a6012b94e5.jpg",
|
| 233 |
+
"alt": "A bearded man wearing Beale sunglasses in Jet Black."
|
| 234 |
+
},
|
| 235 |
+
{
|
| 236 |
+
"caption": "Scooter in Phantom Smoke",
|
| 237 |
+
"handle": "@efekanerg",
|
| 238 |
+
"route": "/eyeglasses/scooter/phantom-smoke",
|
| 239 |
+
"image": "/static/img/home/0a18f6b76f801cf3.jpg",
|
| 240 |
+
"alt": "A man outdoors wearing Scooter glasses in Phantom Smoke."
|
| 241 |
+
},
|
| 242 |
+
{
|
| 243 |
+
"caption": "Bodie in Crystal with English Oak",
|
| 244 |
+
"handle": "@natisstyle",
|
| 245 |
+
"route": "/eyeglasses/bodie/crystal-with-english-oak",
|
| 246 |
+
"image": "/static/img/home/1df8e9161ee2db41.jpg",
|
| 247 |
+
"alt": "A woman taking a mirror selfie wearing Bodie glasses."
|
| 248 |
+
}
|
| 249 |
+
],
|
| 250 |
+
"overlay": true
|
| 251 |
+
},
|
| 252 |
+
{
|
| 253 |
+
"type": "banner",
|
| 254 |
+
"heading": "Turn any pair into a progressives pair",
|
| 255 |
+
"image": "/static/img/home/10721c041f8925ef.png",
|
| 256 |
+
"alt": "A woman with freckles wearing progressive glasses.",
|
| 257 |
+
"ctas": [
|
| 258 |
+
{
|
| 259 |
+
"copy": "Shop eyeglasses",
|
| 260 |
+
"route": "/eyeglasses"
|
| 261 |
+
},
|
| 262 |
+
{
|
| 263 |
+
"copy": "See all lens options",
|
| 264 |
+
"route": "/eyeglasses/lenses"
|
| 265 |
+
}
|
| 266 |
+
],
|
| 267 |
+
"tone": "light",
|
| 268 |
+
"bleed": false,
|
| 269 |
+
"inkSecondary": true
|
| 270 |
+
},
|
| 271 |
+
{
|
| 272 |
+
"type": "carousel",
|
| 273 |
+
"heading": "Good for a progressives Rx",
|
| 274 |
+
"shopAll": {
|
| 275 |
+
"copy": "Shop all",
|
| 276 |
+
"route": "/eyeglasses/progressives"
|
| 277 |
+
},
|
| 278 |
+
"query": "?kind=eyeGlasses&max=10",
|
| 279 |
+
"variant": "plain",
|
| 280 |
+
"count": 10
|
| 281 |
+
},
|
| 282 |
+
{
|
| 283 |
+
"type": "tiles",
|
| 284 |
+
"heading": "Shop frames by lens type",
|
| 285 |
+
"sub": "Need help choosing? Learn which lens is best for you in our guide.",
|
| 286 |
+
"subLink": {
|
| 287 |
+
"copy": "our guide",
|
| 288 |
+
"route": "/eyeglasses/lenses"
|
| 289 |
+
},
|
| 290 |
+
"items": [
|
| 291 |
+
{
|
| 292 |
+
"heading": "Blue-light",
|
| 293 |
+
"route": "/eyeglasses/blue-light",
|
| 294 |
+
"image": "/static/img/home/cb64cf494412c98e.png",
|
| 295 |
+
"alt": "Round glasses with tortoiseshell frames next to a laptop on a desk."
|
| 296 |
+
},
|
| 297 |
+
{
|
| 298 |
+
"heading": "Progressives",
|
| 299 |
+
"route": "/eyeglasses/progressives",
|
| 300 |
+
"image": "/static/img/home/6ef010aedd466f79.png",
|
| 301 |
+
"alt": "Smiling person with glasses and a beard, wearing a blue and white shirt."
|
| 302 |
+
},
|
| 303 |
+
{
|
| 304 |
+
"heading": "Anti-fatigue",
|
| 305 |
+
"route": "/eyeglasses/anti-fatigue",
|
| 306 |
+
"image": "/static/img/home/e38898bd44f84f5a.png",
|
| 307 |
+
"alt": "Open book and tortoiseshell glasses on a marble surface."
|
| 308 |
+
},
|
| 309 |
+
{
|
| 310 |
+
"heading": "Light-responsive",
|
| 311 |
+
"route": "/eyeglasses/light-responsive",
|
| 312 |
+
"image": "/static/img/home/729c048471d0a286.png",
|
| 313 |
+
"alt": "Person with curly hair wearing sunglasses and a cream jacket."
|
| 314 |
+
}
|
| 315 |
+
],
|
| 316 |
+
"overlay": true
|
| 317 |
+
},
|
| 318 |
+
{
|
| 319 |
+
"type": "promo",
|
| 320 |
+
"heading": "The<i> ultimate </i>Virtual Try-On is in our app",
|
| 321 |
+
"image": "/static/img/home/ad01b25cc494051b.png",
|
| 322 |
+
"alt": "A man trying on glasses with Virtual Try-On in the Warby Parker app.",
|
| 323 |
+
"ctas": [
|
| 324 |
+
{
|
| 325 |
+
"copy": "Download our app",
|
| 326 |
+
"route": "/ios-app"
|
| 327 |
+
}
|
| 328 |
+
],
|
| 329 |
+
"media": "square",
|
| 330 |
+
"side": "left"
|
| 331 |
+
},
|
| 332 |
+
{
|
| 333 |
+
"type": "promo",
|
| 334 |
+
"eyebrow": "Nice to see you",
|
| 335 |
+
"heading": "Visit a nearby store",
|
| 336 |
+
"body": "Try on our full assortment of frames, get styled by a friendly advisor, and receive an eye exam from an expert optometrist.",
|
| 337 |
+
"image": "/static/img/home/459fd2ec0ded62f0.jpg",
|
| 338 |
+
"alt": "Silver Lake",
|
| 339 |
+
"ctas": [
|
| 340 |
+
{
|
| 341 |
+
"copy": "Find your store",
|
| 342 |
+
"route": "/retail"
|
| 343 |
+
},
|
| 344 |
+
{
|
| 345 |
+
"copy": "Book an exam",
|
| 346 |
+
"route": "/appointments/eye-exams/booking/RSLK"
|
| 347 |
+
}
|
| 348 |
+
],
|
| 349 |
+
"media": "store",
|
| 350 |
+
"side": "right",
|
| 351 |
+
"caption": "Silver Lake",
|
| 352 |
+
"captionSub": "3.2 miles away"
|
| 353 |
+
},
|
| 354 |
+
{
|
| 355 |
+
"type": "banner",
|
| 356 |
+
"heading": "Buy a Pair, Give a Pair",
|
| 357 |
+
"body": "For every pair of eyeglasses or sunglasses purchased, a pair of glasses is distributed to someone in need.",
|
| 358 |
+
"image": "/static/img/home/25ab71fc84e18cea.gif",
|
| 359 |
+
"alt": "Children wearing donated glasses.",
|
| 360 |
+
"ctas": [
|
| 361 |
+
{
|
| 362 |
+
"copy": "Learn more",
|
| 363 |
+
"route": "/buy-a-pair-give-a-pair"
|
| 364 |
+
}
|
| 365 |
+
],
|
| 366 |
+
"tone": "navy",
|
| 367 |
+
"bleed": false
|
| 368 |
+
}
|
| 369 |
+
]
|
tasks/warbyparker/solution/site/implementation/clone/data/image-manifest.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
tasks/warbyparker/solution/site/implementation/clone/data/nav.json
ADDED
|
@@ -0,0 +1,522 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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": [
|
| 6 |
+
{
|
| 7 |
+
"title": "Eyeglasses",
|
| 8 |
+
"links": [
|
| 9 |
+
[
|
| 10 |
+
"All eyeglasses",
|
| 11 |
+
"/eyeglasses"
|
| 12 |
+
],
|
| 13 |
+
[
|
| 14 |
+
"Women",
|
| 15 |
+
"/eyeglasses/women"
|
| 16 |
+
],
|
| 17 |
+
[
|
| 18 |
+
"Men",
|
| 19 |
+
"/eyeglasses/men"
|
| 20 |
+
],
|
| 21 |
+
[
|
| 22 |
+
"Kids",
|
| 23 |
+
"/kids-eyeglasses"
|
| 24 |
+
],
|
| 25 |
+
[
|
| 26 |
+
"Bestsellers",
|
| 27 |
+
"/eyeglasses?merch=best-seller"
|
| 28 |
+
],
|
| 29 |
+
[
|
| 30 |
+
"New Arrivals",
|
| 31 |
+
"/eyeglasses?merch=new-arrival"
|
| 32 |
+
],
|
| 33 |
+
[
|
| 34 |
+
"$95 Frames",
|
| 35 |
+
"/eyeglasses?prices=95"
|
| 36 |
+
],
|
| 37 |
+
[
|
| 38 |
+
"Low Bridge Fit",
|
| 39 |
+
"/eyeglasses/low-bridge"
|
| 40 |
+
],
|
| 41 |
+
[
|
| 42 |
+
"Take a style quiz",
|
| 43 |
+
"/quiz/frames"
|
| 44 |
+
]
|
| 45 |
+
]
|
| 46 |
+
},
|
| 47 |
+
{
|
| 48 |
+
"title": "Shop by Lens Type",
|
| 49 |
+
"links": [
|
| 50 |
+
[
|
| 51 |
+
"Single-vision",
|
| 52 |
+
"/eyeglasses/single-vision"
|
| 53 |
+
],
|
| 54 |
+
[
|
| 55 |
+
"Progressives",
|
| 56 |
+
"/eyeglasses/progressives"
|
| 57 |
+
],
|
| 58 |
+
[
|
| 59 |
+
"Readers",
|
| 60 |
+
"/eyeglasses/readers"
|
| 61 |
+
],
|
| 62 |
+
[
|
| 63 |
+
"Non-prescription",
|
| 64 |
+
"/eyeglasses/non-prescription"
|
| 65 |
+
],
|
| 66 |
+
[
|
| 67 |
+
"Blue-light",
|
| 68 |
+
"/eyeglasses/blue-light"
|
| 69 |
+
],
|
| 70 |
+
[
|
| 71 |
+
"Anti-fatigue",
|
| 72 |
+
"/eyeglasses/anti-fatigue"
|
| 73 |
+
],
|
| 74 |
+
[
|
| 75 |
+
"Light-responsive",
|
| 76 |
+
"/eyeglasses/light-responsive"
|
| 77 |
+
],
|
| 78 |
+
[
|
| 79 |
+
"See all lens options",
|
| 80 |
+
"/eyeglasses/lenses"
|
| 81 |
+
]
|
| 82 |
+
]
|
| 83 |
+
},
|
| 84 |
+
{
|
| 85 |
+
"title": "Shop by Shape",
|
| 86 |
+
"links": [
|
| 87 |
+
[
|
| 88 |
+
"Square",
|
| 89 |
+
"/eyeglasses/square"
|
| 90 |
+
],
|
| 91 |
+
[
|
| 92 |
+
"Rectangle",
|
| 93 |
+
"/eyeglasses/rectangle"
|
| 94 |
+
],
|
| 95 |
+
[
|
| 96 |
+
"Round",
|
| 97 |
+
"/eyeglasses/round"
|
| 98 |
+
],
|
| 99 |
+
[
|
| 100 |
+
"Oval",
|
| 101 |
+
"/eyeglasses/oval"
|
| 102 |
+
],
|
| 103 |
+
[
|
| 104 |
+
"Cat-eye",
|
| 105 |
+
"/eyeglasses/cat-eye"
|
| 106 |
+
],
|
| 107 |
+
[
|
| 108 |
+
"Geometric",
|
| 109 |
+
"/eyeglasses/geometric"
|
| 110 |
+
],
|
| 111 |
+
[
|
| 112 |
+
"Aviator",
|
| 113 |
+
"/eyeglasses/aviator"
|
| 114 |
+
]
|
| 115 |
+
]
|
| 116 |
+
},
|
| 117 |
+
{
|
| 118 |
+
"title": "Shop by Color",
|
| 119 |
+
"links": [
|
| 120 |
+
[
|
| 121 |
+
"Black",
|
| 122 |
+
"/eyeglasses?colors=black"
|
| 123 |
+
],
|
| 124 |
+
[
|
| 125 |
+
"Brown",
|
| 126 |
+
"/eyeglasses?colors=brown"
|
| 127 |
+
],
|
| 128 |
+
[
|
| 129 |
+
"Tortoise",
|
| 130 |
+
"/eyeglasses?colors=tortoise"
|
| 131 |
+
],
|
| 132 |
+
[
|
| 133 |
+
"Crystal",
|
| 134 |
+
"/eyeglasses?colors=crystal"
|
| 135 |
+
],
|
| 136 |
+
[
|
| 137 |
+
"Multicolor",
|
| 138 |
+
"/eyeglasses?colors=multicolor"
|
| 139 |
+
],
|
| 140 |
+
[
|
| 141 |
+
"Two-tone",
|
| 142 |
+
"/eyeglasses?colors=two-tone"
|
| 143 |
+
],
|
| 144 |
+
[
|
| 145 |
+
"Gold",
|
| 146 |
+
"/eyeglasses?colors=gold"
|
| 147 |
+
],
|
| 148 |
+
[
|
| 149 |
+
"Silver",
|
| 150 |
+
"/eyeglasses?colors=silver"
|
| 151 |
+
]
|
| 152 |
+
]
|
| 153 |
+
}
|
| 154 |
+
]
|
| 155 |
+
},
|
| 156 |
+
{
|
| 157 |
+
"key": "sunglasses",
|
| 158 |
+
"label": "Sunglasses",
|
| 159 |
+
"groups": [
|
| 160 |
+
{
|
| 161 |
+
"title": "Sunglasses",
|
| 162 |
+
"links": [
|
| 163 |
+
[
|
| 164 |
+
"All sunglasses",
|
| 165 |
+
"/sunglasses"
|
| 166 |
+
],
|
| 167 |
+
[
|
| 168 |
+
"Women",
|
| 169 |
+
"/sunglasses/women"
|
| 170 |
+
],
|
| 171 |
+
[
|
| 172 |
+
"Men",
|
| 173 |
+
"/sunglasses/men"
|
| 174 |
+
],
|
| 175 |
+
[
|
| 176 |
+
"Sport",
|
| 177 |
+
"/collections/sport-2026",
|
| 178 |
+
"New"
|
| 179 |
+
],
|
| 180 |
+
[
|
| 181 |
+
"Bestsellers",
|
| 182 |
+
"/sunglasses?merch=best-seller"
|
| 183 |
+
],
|
| 184 |
+
[
|
| 185 |
+
"New Arrivals",
|
| 186 |
+
"/sunglasses?merch=new-arrival"
|
| 187 |
+
],
|
| 188 |
+
[
|
| 189 |
+
"$95 Frames",
|
| 190 |
+
"/sunglasses?prices=95"
|
| 191 |
+
],
|
| 192 |
+
[
|
| 193 |
+
"Low Bridge Fit",
|
| 194 |
+
"/sunglasses/low-bridge"
|
| 195 |
+
]
|
| 196 |
+
]
|
| 197 |
+
},
|
| 198 |
+
{
|
| 199 |
+
"title": "Shop by Lens Type",
|
| 200 |
+
"links": [
|
| 201 |
+
[
|
| 202 |
+
"Non-prescription",
|
| 203 |
+
"/sunglasses/non-prescription"
|
| 204 |
+
],
|
| 205 |
+
[
|
| 206 |
+
"Prescription",
|
| 207 |
+
"/sunglasses/prescription"
|
| 208 |
+
],
|
| 209 |
+
[
|
| 210 |
+
"Progressives",
|
| 211 |
+
"/sunglasses/progressive"
|
| 212 |
+
],
|
| 213 |
+
[
|
| 214 |
+
"Tinted",
|
| 215 |
+
"/sunglasses/tinted",
|
| 216 |
+
"Trending"
|
| 217 |
+
],
|
| 218 |
+
[
|
| 219 |
+
"Polarized",
|
| 220 |
+
"/sunglasses/polarized"
|
| 221 |
+
],
|
| 222 |
+
[
|
| 223 |
+
"Performance Polarized",
|
| 224 |
+
"/collections/sport-2026"
|
| 225 |
+
],
|
| 226 |
+
[
|
| 227 |
+
"See all lens options",
|
| 228 |
+
"/sunglasses/lenses"
|
| 229 |
+
]
|
| 230 |
+
]
|
| 231 |
+
},
|
| 232 |
+
{
|
| 233 |
+
"title": "Shop by Shape",
|
| 234 |
+
"links": [
|
| 235 |
+
[
|
| 236 |
+
"Square",
|
| 237 |
+
"/eyeglasses/square"
|
| 238 |
+
],
|
| 239 |
+
[
|
| 240 |
+
"Rectangle",
|
| 241 |
+
"/sunglasses/rectangle"
|
| 242 |
+
],
|
| 243 |
+
[
|
| 244 |
+
"Round",
|
| 245 |
+
"/sunglasses/round"
|
| 246 |
+
],
|
| 247 |
+
[
|
| 248 |
+
"Oval",
|
| 249 |
+
"/sunglasses/oval"
|
| 250 |
+
],
|
| 251 |
+
[
|
| 252 |
+
"Cat-eye",
|
| 253 |
+
"/sunglasses/cat-eye"
|
| 254 |
+
],
|
| 255 |
+
[
|
| 256 |
+
"Geometric",
|
| 257 |
+
"/sunglasses/geometric"
|
| 258 |
+
],
|
| 259 |
+
[
|
| 260 |
+
"Aviator",
|
| 261 |
+
"/sunglasses/aviators"
|
| 262 |
+
]
|
| 263 |
+
]
|
| 264 |
+
},
|
| 265 |
+
{
|
| 266 |
+
"title": "Shop by Color",
|
| 267 |
+
"links": [
|
| 268 |
+
[
|
| 269 |
+
"Black",
|
| 270 |
+
"/sunglasses?colors=black"
|
| 271 |
+
],
|
| 272 |
+
[
|
| 273 |
+
"Brown",
|
| 274 |
+
"/sunglasses?colors=brown"
|
| 275 |
+
],
|
| 276 |
+
[
|
| 277 |
+
"Tortoise",
|
| 278 |
+
"/sunglasses?colors=tortoise"
|
| 279 |
+
],
|
| 280 |
+
[
|
| 281 |
+
"Crystal",
|
| 282 |
+
"/sunglasses?colors=crystal"
|
| 283 |
+
],
|
| 284 |
+
[
|
| 285 |
+
"Gold",
|
| 286 |
+
"/sunglasses?colors=gold"
|
| 287 |
+
],
|
| 288 |
+
[
|
| 289 |
+
"Silver",
|
| 290 |
+
"/sunglasses?colors=silver"
|
| 291 |
+
],
|
| 292 |
+
[
|
| 293 |
+
"Shop all colors",
|
| 294 |
+
"/sunglasses"
|
| 295 |
+
]
|
| 296 |
+
]
|
| 297 |
+
}
|
| 298 |
+
]
|
| 299 |
+
},
|
| 300 |
+
{
|
| 301 |
+
"key": "contacts",
|
| 302 |
+
"label": "Contacts",
|
| 303 |
+
"groups": [
|
| 304 |
+
{
|
| 305 |
+
"title": "Shop by contacts brand",
|
| 306 |
+
"links": [
|
| 307 |
+
[
|
| 308 |
+
"Find your brand",
|
| 309 |
+
"/contacts"
|
| 310 |
+
],
|
| 311 |
+
[
|
| 312 |
+
"Acuvue",
|
| 313 |
+
"/contacts/acuvue"
|
| 314 |
+
],
|
| 315 |
+
[
|
| 316 |
+
"Air Optix",
|
| 317 |
+
"/contacts/air-optix"
|
| 318 |
+
],
|
| 319 |
+
[
|
| 320 |
+
"Biofinity",
|
| 321 |
+
"/contacts/biofinity"
|
| 322 |
+
],
|
| 323 |
+
[
|
| 324 |
+
"Biotrue",
|
| 325 |
+
"/contacts/biotrue"
|
| 326 |
+
],
|
| 327 |
+
[
|
| 328 |
+
"Clariti",
|
| 329 |
+
"/contacts/clariti"
|
| 330 |
+
],
|
| 331 |
+
[
|
| 332 |
+
"Dailies",
|
| 333 |
+
"/contacts/dailies"
|
| 334 |
+
],
|
| 335 |
+
[
|
| 336 |
+
"MyDay",
|
| 337 |
+
"/contacts/myday"
|
| 338 |
+
],
|
| 339 |
+
[
|
| 340 |
+
"Miru",
|
| 341 |
+
"/contacts/miru"
|
| 342 |
+
],
|
| 343 |
+
[
|
| 344 |
+
"Precision1",
|
| 345 |
+
"/contacts/precision1"
|
| 346 |
+
]
|
| 347 |
+
]
|
| 348 |
+
},
|
| 349 |
+
{
|
| 350 |
+
"title": "Shop by lens type",
|
| 351 |
+
"links": [
|
| 352 |
+
[
|
| 353 |
+
"Daily",
|
| 354 |
+
"/contacts/daily-contacts"
|
| 355 |
+
],
|
| 356 |
+
[
|
| 357 |
+
"Weekly",
|
| 358 |
+
"/contacts/weekly-contacts"
|
| 359 |
+
],
|
| 360 |
+
[
|
| 361 |
+
"Biweekly",
|
| 362 |
+
"/contacts/bi-weekly-contacts"
|
| 363 |
+
],
|
| 364 |
+
[
|
| 365 |
+
"Monthly",
|
| 366 |
+
"/contacts/monthly-contacts"
|
| 367 |
+
],
|
| 368 |
+
[
|
| 369 |
+
"Multifocal + Bifocal",
|
| 370 |
+
"/contacts/multifocal-bifocal"
|
| 371 |
+
],
|
| 372 |
+
[
|
| 373 |
+
"Toric + Astigmatism",
|
| 374 |
+
"/contacts/toric-astigmatism"
|
| 375 |
+
],
|
| 376 |
+
[
|
| 377 |
+
"Color",
|
| 378 |
+
"/contacts/color"
|
| 379 |
+
]
|
| 380 |
+
]
|
| 381 |
+
},
|
| 382 |
+
{
|
| 383 |
+
"title": "Shop by manufacturer",
|
| 384 |
+
"links": [
|
| 385 |
+
[
|
| 386 |
+
"Alcon",
|
| 387 |
+
"/contacts/alcon"
|
| 388 |
+
],
|
| 389 |
+
[
|
| 390 |
+
"Bausch + Lomb",
|
| 391 |
+
"/contacts/bausch-lomb"
|
| 392 |
+
],
|
| 393 |
+
[
|
| 394 |
+
"CooperVision",
|
| 395 |
+
"/contacts/coopervision"
|
| 396 |
+
],
|
| 397 |
+
[
|
| 398 |
+
"Johnson & Johnson",
|
| 399 |
+
"/contacts/johnson-and-johnson-vision"
|
| 400 |
+
],
|
| 401 |
+
[
|
| 402 |
+
"Menicon",
|
| 403 |
+
"/contacts/menicon"
|
| 404 |
+
]
|
| 405 |
+
]
|
| 406 |
+
},
|
| 407 |
+
{
|
| 408 |
+
"title": "Ways to save",
|
| 409 |
+
"links": [
|
| 410 |
+
[
|
| 411 |
+
"25% off your first order",
|
| 412 |
+
"/contacts-new-customer-offer"
|
| 413 |
+
],
|
| 414 |
+
[
|
| 415 |
+
"Get $50 with an annual supply",
|
| 416 |
+
"/contacts-annual-supply-bonus"
|
| 417 |
+
],
|
| 418 |
+
[
|
| 419 |
+
"Save with FSA/HSA",
|
| 420 |
+
"/flexible-spending-accounts"
|
| 421 |
+
],
|
| 422 |
+
[
|
| 423 |
+
"Use your vision insurance",
|
| 424 |
+
"/insurance"
|
| 425 |
+
]
|
| 426 |
+
]
|
| 427 |
+
}
|
| 428 |
+
]
|
| 429 |
+
},
|
| 430 |
+
{
|
| 431 |
+
"key": "eye-exams",
|
| 432 |
+
"label": "Eye exams",
|
| 433 |
+
"groups": [
|
| 434 |
+
{
|
| 435 |
+
"title": "Eye exams",
|
| 436 |
+
"links": [
|
| 437 |
+
[
|
| 438 |
+
"Book an eye exam",
|
| 439 |
+
"/appointments/eye-exams/booking"
|
| 440 |
+
],
|
| 441 |
+
[
|
| 442 |
+
"Pediatric eye exams",
|
| 443 |
+
"/learn/pediatric-eye-exam"
|
| 444 |
+
],
|
| 445 |
+
[
|
| 446 |
+
"Renew prescription from home",
|
| 447 |
+
"/virtual-vision-test"
|
| 448 |
+
],
|
| 449 |
+
[
|
| 450 |
+
"Measure your PD on iOS",
|
| 451 |
+
"/ios-app"
|
| 452 |
+
],
|
| 453 |
+
[
|
| 454 |
+
"Find a store near you",
|
| 455 |
+
"/retail"
|
| 456 |
+
]
|
| 457 |
+
]
|
| 458 |
+
},
|
| 459 |
+
{
|
| 460 |
+
"title": "FAQs",
|
| 461 |
+
"links": [
|
| 462 |
+
[
|
| 463 |
+
"How often do I need an exam?",
|
| 464 |
+
"/learn/how-often-should-you-get-an-eye-exam"
|
| 465 |
+
],
|
| 466 |
+
[
|
| 467 |
+
"What is retinal imaging?",
|
| 468 |
+
"/learn/retinal-imaging"
|
| 469 |
+
],
|
| 470 |
+
[
|
| 471 |
+
"How to read your prescription",
|
| 472 |
+
"/learn/how-to-read-eye-prescription"
|
| 473 |
+
]
|
| 474 |
+
]
|
| 475 |
+
}
|
| 476 |
+
]
|
| 477 |
+
},
|
| 478 |
+
{
|
| 479 |
+
"key": "insurance",
|
| 480 |
+
"label": "Insurance",
|
| 481 |
+
"groups": [
|
| 482 |
+
{
|
| 483 |
+
"title": "Vision insurance",
|
| 484 |
+
"links": [
|
| 485 |
+
[
|
| 486 |
+
"Check my benefits",
|
| 487 |
+
"/insurance"
|
| 488 |
+
],
|
| 489 |
+
[
|
| 490 |
+
"Submit an out-of-network claim",
|
| 491 |
+
"/reimbursement"
|
| 492 |
+
],
|
| 493 |
+
[
|
| 494 |
+
"Insurance FAQs",
|
| 495 |
+
"/help?s=insurance"
|
| 496 |
+
]
|
| 497 |
+
]
|
| 498 |
+
},
|
| 499 |
+
{
|
| 500 |
+
"title": "FSA and HSA",
|
| 501 |
+
"links": [
|
| 502 |
+
[
|
| 503 |
+
"How to use your FSA",
|
| 504 |
+
"/what-is-fsa"
|
| 505 |
+
],
|
| 506 |
+
[
|
| 507 |
+
"How to use your HSA",
|
| 508 |
+
"/what-is-hsa"
|
| 509 |
+
],
|
| 510 |
+
[
|
| 511 |
+
"FSA vs. HSA",
|
| 512 |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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"/insurance": {
|
| 3 |
+
"title": "Insurance | Warby Parker",
|
| 4 |
+
"blocks": [
|
| 5 |
+
{
|
| 6 |
+
"type": "universal_eligibility_check",
|
| 7 |
+
"heading": "Yes, you can pay with insurance!",
|
| 8 |
+
"body": "Enter your information to see if you have eligible benefits for frames, contacts, or eye exams. If you do, we\u2019ll apply them automatically.",
|
| 9 |
+
"image": null,
|
| 10 |
+
"alt": null,
|
| 11 |
+
"ctas": [],
|
| 12 |
+
"items": []
|
| 13 |
+
},
|
| 14 |
+
{
|
| 15 |
+
"type": "list_graphics_stack",
|
| 16 |
+
"heading": "Vision insurance covers\u2026",
|
| 17 |
+
"body": null,
|
| 18 |
+
"image": null,
|
| 19 |
+
"alt": null,
|
| 20 |
+
"ctas": [],
|
| 21 |
+
"items": []
|
| 22 |
+
},
|
| 23 |
+
{
|
| 24 |
+
"type": "insurance_carriers_v2",
|
| 25 |
+
"heading": "Find your carrier to get started",
|
| 26 |
+
"body": "We\u2019re in-network with most major vision carriers\u2014but even if we\u2019re not, you may still be eligible for out-of-network savings.",
|
| 27 |
+
"image": null,
|
| 28 |
+
"alt": null,
|
| 29 |
+
"ctas": [],
|
| 30 |
+
"items": []
|
| 31 |
+
},
|
| 32 |
+
{
|
| 33 |
+
"type": "insurance_comparison",
|
| 34 |
+
"heading": "In-network vs. out-of-network",
|
| 35 |
+
"body": "Whether we\u2019re in-network or out-of-network with your carrier, you can still use your vision insurance with us\u2014we\u2019ll walk you through the process.",
|
| 36 |
+
"image": null,
|
| 37 |
+
"alt": null,
|
| 38 |
+
"ctas": [],
|
| 39 |
+
"items": []
|
| 40 |
+
},
|
| 41 |
+
{
|
| 42 |
+
"type": "addons_faq",
|
| 43 |
+
"heading": "Insurance FAQs",
|
| 44 |
+
"body": null,
|
| 45 |
+
"image": null,
|
| 46 |
+
"alt": null,
|
| 47 |
+
"ctas": [],
|
| 48 |
+
"items": []
|
| 49 |
+
}
|
| 50 |
+
]
|
| 51 |
+
},
|
| 52 |
+
"/reimbursement": {
|
| 53 |
+
"title": "Submit a claim | Warby Parker",
|
| 54 |
+
"blocks": [
|
| 55 |
+
{
|
| 56 |
+
"type": "insurance_reimbursement_steps",
|
| 57 |
+
"heading": "How to get reimbursed with your vision plan",
|
| 58 |
+
"body": "Even if we\u2019re not in-network with your carrier, you can still use your benefits to save on glasses, contacts, and eye exams.",
|
| 59 |
+
"image": null,
|
| 60 |
+
"alt": null,
|
| 61 |
+
"ctas": [],
|
| 62 |
+
"items": []
|
| 63 |
+
},
|
| 64 |
+
{
|
| 65 |
+
"type": "insurance_carriers_v2",
|
| 66 |
+
"heading": "Carrier-specific claim forms",
|
| 67 |
+
"body": "Get detailed instructions for your specific vision insurance carrier below.",
|
| 68 |
+
"image": null,
|
| 69 |
+
"alt": null,
|
| 70 |
+
"ctas": [],
|
| 71 |
+
"items": []
|
| 72 |
+
},
|
| 73 |
+
{
|
| 74 |
+
"type": "messaging_no_image",
|
| 75 |
+
"heading": null,
|
| 76 |
+
"body": "P.S. You can also access this page from your order confirmation email, or by visiting <br>Account > Orders > Submit Reimbursement.",
|
| 77 |
+
"image": null,
|
| 78 |
+
"alt": null,
|
| 79 |
+
"ctas": [],
|
| 80 |
+
"items": []
|
| 81 |
+
}
|
| 82 |
+
]
|
| 83 |
+
},
|
| 84 |
+
"/what-is-fsa": {
|
| 85 |
+
"title": "What Is an FSA? | Use Your Flexible Spending Account for Glasses, Contacts & Eye Exams | Warby Parker",
|
| 86 |
+
"blocks": [
|
| 87 |
+
{
|
| 88 |
+
"type": "messaging_single_image_partial_bleed",
|
| 89 |
+
"heading": "What Is an FSA (Flexible Spending Account)?",
|
| 90 |
+
"body": "Flexible Spending Accounts (FSAs) let you set aside pre-tax dollars for qualified health expenses\u2014including prescription glasses, contacts, and eye exams. In other words: it\u2019s money you\u2019ve already earned, set aside specifically to help you see more clearly (literally).",
|
| 91 |
+
"image": "/static/img/page/38c947c45e3a5005.jpg",
|
| 92 |
+
"alt": "Two frames resting on top of a blue cloth and blue background",
|
| 93 |
+
"ctas": [
|
| 94 |
+
{
|
| 95 |
+
"copy": "Start shopping",
|
| 96 |
+
"route": "/eyeglasses"
|
| 97 |
+
}
|
| 98 |
+
],
|
| 99 |
+
"items": []
|
| 100 |
+
},
|
| 101 |
+
{
|
| 102 |
+
"type": "messaging_no_image",
|
| 103 |
+
"heading": "How to pay with FSA ",
|
| 104 |
+
"body": "With an FSA, you choose how much to contribute for the year, and those funds become available to spend on eligible medical and vision expenses. Because the money is pre-tax, you can save up to 30% (depending on your tax bracket) on items like:<br><ul><li><span>Prescription eyeglasses</span></li><li><span>Prescription sunglasses</span></li><li><span>Contact lenses</span></li><li><span>Eye exams</span></li><li><span>Lens replacements</span></li><li><span>Readers (with prescription lenses)</span></li></ul>If you\u2019re planning to refresh your glasses or contact lenses anyway, using FSA funds is one of the simplest ways to save.",
|
| 105 |
+
"image": null,
|
| 106 |
+
"alt": null,
|
| 107 |
+
"ctas": [],
|
| 108 |
+
"items": []
|
| 109 |
+
},
|
| 110 |
+
{
|
| 111 |
+
"type": "v3_addons_quick_shop_carousel",
|
| 112 |
+
"heading": "Four ways to use your FSA",
|
| 113 |
+
"body": null,
|
| 114 |
+
"image": null,
|
| 115 |
+
"alt": null,
|
| 116 |
+
"ctas": [],
|
| 117 |
+
"items": []
|
| 118 |
+
},
|
| 119 |
+
{
|
| 120 |
+
"type": "messaging_no_image",
|
| 121 |
+
"heading": "What You Can Buy at Warby Parker With FSA Funds",
|
| 122 |
+
"body": "The short answer: almost anything with a prescription.<br><br>The longer answer:<br><ul><li>Prescription glasses: Any frame with prescription lenses.</li><li>Prescription sunglasses: Yes, they count.</li><li>Contact lenses: Absolutely\u2014including daily, weekly, and monthly lenses.</li><li>Eye exams: At Warby Parker locations with optometrists.</li><li>Lens upgrades: Progressives, blue-light filtering, or specialized coatings (as long as they\u2019re part of a prescription purchase).</li></ul>Items like non-prescription sunglasses or accessories aren\u2019t FSA-eligible\u2014but they still look great.",
|
| 123 |
+
"image": null,
|
| 124 |
+
"alt": null,
|
| 125 |
+
"ctas": [],
|
| 126 |
+
"items": []
|
| 127 |
+
},
|
| 128 |
+
{
|
| 129 |
+
"type": "messaging_no_image",
|
| 130 |
+
"heading": "Paying With Your FSA Card Online or In-Store",
|
| 131 |
+
"body": "Most FSA cards work just like debit cards:<br><ul><li><b>Online</b>: Use your FSA card at checkout\u2014no extra forms needed.</li><li><b>In store</b>: Swipe your card as your payment method.</li><li><b>If your card doesn\u2019t swipe</b>: Pay normally and submit your itemized receipt for reimbursement (your FSA provider will guide you through their portal).</li></ul>",
|
| 132 |
+
"image": null,
|
| 133 |
+
"alt": null,
|
| 134 |
+
"ctas": [],
|
| 135 |
+
"items": []
|
| 136 |
+
},
|
| 137 |
+
{
|
| 138 |
+
"type": "messaging_no_image",
|
| 139 |
+
"heading": "Don\u2019t Forget Year-End Deadlines",
|
| 140 |
+
"body": "Most FSAs expire on December 31\u2014meaning unused funds disappear (\u201cuse it or lose it\u201d). Some employers offer a grace period or a small rollover, but it\u2019s not guaranteed.<div><br></div><div>If you\u2019re unsure of your deadline, it\u2019s worth checking. (Future-you will thank you.)</div><div><br></div>",
|
| 141 |
+
"image": null,
|
| 142 |
+
"alt": null,
|
| 143 |
+
"ctas": [],
|
| 144 |
+
"items": []
|
| 145 |
+
},
|
| 146 |
+
{
|
| 147 |
+
"type": "messaging_no_image",
|
| 148 |
+
"heading": "How to Get Reimbursed (If You Don\u2019t Use an FSA Card)<div><br></div>",
|
| 149 |
+
"body": "If your FSA doesn\u2019t include a physical card, no problem. Just:<br><ul><li><span>Make your purchase normally.</span></li><li><span>Download your itemized receipt from your Warby Parker order history.</span></li><li><span>Upload it to your FSA provider\u2019s portal.</span></li></ul>They\u2019ll take it from there.",
|
| 150 |
+
"image": null,
|
| 151 |
+
"alt": null,
|
| 152 |
+
"ctas": [],
|
| 153 |
+
"items": []
|
| 154 |
+
},
|
| 155 |
+
{
|
| 156 |
+
"type": "v3_messaging_single_image_full_bleed_with_hotspots",
|
| 157 |
+
"heading": "Find the perfect frame with a quick quiz",
|
| 158 |
+
"body": null,
|
| 159 |
+
"image": "/static/img/page/137cdc48bb33016a.jpg",
|
| 160 |
+
"alt": "Two pairs of glasses are displayed on geometric shapes, one pair of sunglasses and one pair of eyeglasses.",
|
| 161 |
+
"ctas": [
|
| 162 |
+
{
|
| 163 |
+
"copy": "Get started",
|
| 164 |
+
"route": "/quiz/frames"
|
| 165 |
+
}
|
| 166 |
+
],
|
| 167 |
+
"items": []
|
| 168 |
+
},
|
| 169 |
+
{
|
| 170 |
+
"type": "addons_faq",
|
| 171 |
+
"heading": "FAQ\u2019s",
|
| 172 |
+
"body": null,
|
| 173 |
+
"image": null,
|
| 174 |
+
"alt": null,
|
| 175 |
+
"ctas": [],
|
| 176 |
+
"items": []
|
| 177 |
+
}
|
| 178 |
+
]
|
| 179 |
+
},
|
| 180 |
+
"/what-is-hsa": {
|
| 181 |
+
"title": "What Is an HSA? | Use Your Health Savings Account for Glasses, Contacts & Eye Exams | Warby Parker",
|
| 182 |
+
"blocks": [
|
| 183 |
+
{
|
| 184 |
+
"type": "messaging_single_image_partial_bleed",
|
| 185 |
+
"heading": "What Is an HSA (Health Savings Account)?",
|
| 186 |
+
"body": "An HSA is a personal savings account you can use to pay for eligible medical expenses\u2014including prescription glasses, contacts, and eye exams. Because it\u2019s funded with pre-tax dollars (and rolls over year to year), it\u2019s one of the simplest ways to save on vision care.",
|
| 187 |
+
"image": "/static/img/page/1f8d29e55d4ff0f7.jpg",
|
| 188 |
+
"alt": "Two frames leaning on blocks with a green ribbon",
|
| 189 |
+
"ctas": [
|
| 190 |
+
{
|
| 191 |
+
"copy": "Start shopping ",
|
| 192 |
+
"route": "/eyeglasses"
|
| 193 |
+
}
|
| 194 |
+
],
|
| 195 |
+
"items": []
|
| 196 |
+
},
|
| 197 |
+
{
|
| 198 |
+
"type": "messaging_no_image",
|
| 199 |
+
"heading": "How an HSA Works",
|
| 200 |
+
"body": "Your HSA is linked to a high-deductible health plan (HDHP) and lets you set aside pre-tax dollars for qualified health expenses. Unlike FSAs, the money in your HSA is <b>yours to keep</b>\u2014it rolls over each year and can even be invested.<br><br><b>You can use HSA funds on:</b><br><ul><li>Prescription eyeglasses</li><li>Prescription sunglasses</li><li>Contact lenses</li><li>Eye exams</li><li>Lens upgrades (progressives, anti-reflective, blue-light filtering, etc.)</li><li>Other qualified medical/vision expensesYou can use HSA funds on:</li><li>Prescription eyeglasses</li><li>Prescription sunglasses</li><li>Contact lenses</li><li>Eye exams</li><li>Lens upgrades (progressives, anti-reflective, blue-light filtering, etc.)</li><li>Other qualified medical/vision expenses</li></ul>",
|
| 201 |
+
"image": null,
|
| 202 |
+
"alt": null,
|
| 203 |
+
"ctas": [],
|
| 204 |
+
"items": []
|
| 205 |
+
},
|
| 206 |
+
{
|
| 207 |
+
"type": "v3_addons_quick_shop_carousel",
|
| 208 |
+
"heading": "Four ways to use your HSA",
|
| 209 |
+
"body": null,
|
| 210 |
+
"image": null,
|
| 211 |
+
"alt": null,
|
| 212 |
+
"ctas": [],
|
| 213 |
+
"items": []
|
| 214 |
+
},
|
| 215 |
+
{
|
| 216 |
+
"type": "messaging_no_image",
|
| 217 |
+
"heading": "Why HSAs Are Great for Vision Care",
|
| 218 |
+
"body": "Using pre-tax dollars can make eye exams or new glasses feel noticeably more affordable. And because your HSA balance never expires, you can save up for larger expenses (like progressives, replacement lenses, or annual contact lens orders) whenever you need them.",
|
| 219 |
+
"image": null,
|
| 220 |
+
"alt": null,
|
| 221 |
+
"ctas": [],
|
| 222 |
+
"items": []
|
| 223 |
+
},
|
| 224 |
+
{
|
| 225 |
+
"type": "messaging_no_image",
|
| 226 |
+
"heading": "Why HSAs Are Great for Vision Care",
|
| 227 |
+
"body": "Most HSA cards work just like a debit card.<br><ul><li>Online: Enter your HSA card like any other payment method.</li><li>In store: Swipe or tap it at checkout.</li><li>If your card doesn\u2019t process: Pay normally and submit your itemized receipt through your HSA provider\u2019s portal.</li></ul>Tip: Keep receipts in your HSA dashboard\u2014many providers allow you to store them for future reimbursement.",
|
| 228 |
+
"image": null,
|
| 229 |
+
"alt": null,
|
| 230 |
+
"ctas": [],
|
| 231 |
+
"items": []
|
| 232 |
+
},
|
| 233 |
+
{
|
| 234 |
+
"type": "messaging_no_image",
|
| 235 |
+
"heading": "What\u2019s the Difference Between an HSA and an FSA?",
|
| 236 |
+
"body": "If you\u2019re comparing the two, here\u2019s the quick version:<br><ul><li>HSAs require a high-deductible health plan. FSAs don\u2019t.</li><li>HSA funds roll over forever. FSA funds expire annually (mostly).</li><li>Both can be used for glasses, contacts, and exams.</li></ul>If you have both accounts, you can use either for eligible eyewear purchases.",
|
| 237 |
+
"image": null,
|
| 238 |
+
"alt": null,
|
| 239 |
+
"ctas": [],
|
| 240 |
+
"items": []
|
| 241 |
+
},
|
| 242 |
+
{
|
| 243 |
+
"type": "v3_messaging_single_image_full_bleed_with_hotspots",
|
| 244 |
+
"heading": "Find the perfect frame with a quick quiz",
|
| 245 |
+
"body": null,
|
| 246 |
+
"image": "/static/img/page/137cdc48bb33016a.jpg",
|
| 247 |
+
"alt": "Two pairs of glasses are displayed on geometric shapes, one pair of sunglasses and one pair of eyeglasses.",
|
| 248 |
+
"ctas": [
|
| 249 |
+
{
|
| 250 |
+
"copy": "Get started",
|
| 251 |
+
"route": "/quiz/frames"
|
| 252 |
+
}
|
| 253 |
+
],
|
| 254 |
+
"items": []
|
| 255 |
+
},
|
| 256 |
+
{
|
| 257 |
+
"type": "addons_faq",
|
| 258 |
+
"heading": "FAQ's",
|
| 259 |
+
"body": null,
|
| 260 |
+
"image": null,
|
| 261 |
+
"alt": null,
|
| 262 |
+
"ctas": [],
|
| 263 |
+
"items": []
|
| 264 |
+
}
|
| 265 |
+
]
|
| 266 |
+
},
|
| 267 |
+
"/fsa-vs-hsa": {
|
| 268 |
+
"title": "FSA vs HSA: What\u2019s the Difference? | Using Your Benefits for Glasses & Eye Exams | Warby Parker",
|
| 269 |
+
"blocks": [
|
| 270 |
+
{
|
| 271 |
+
"type": "messaging_single_image_partial_bleed",
|
| 272 |
+
"heading": "FSA vs. HSA: What\u2019s the Difference?",
|
| 273 |
+
"body": "Flexible spending accounts (FSA) and health savings accounts (HSA) both allow you to set aside money (before taxes) for specific health care expenses, like prescription eyewear and eye exams, but there are some key differences between them.",
|
| 274 |
+
"image": "/static/img/page/a14e147ae411b7f8.jpg",
|
| 275 |
+
"alt": "",
|
| 276 |
+
"ctas": [
|
| 277 |
+
{
|
| 278 |
+
"copy": "Start shopping",
|
| 279 |
+
"route": "/eyeglasses"
|
| 280 |
+
}
|
| 281 |
+
],
|
| 282 |
+
"items": []
|
| 283 |
+
},
|
| 284 |
+
{
|
| 285 |
+
"type": "messaging_single_image_partial_bleed",
|
| 286 |
+
"heading": "FSA vs. HSA ",
|
| 287 |
+
"body": "Health Savings Accounts:<br><ul><li><span>Roll over unused contributions year after year</span></li><li><span>Can still be used after termination of employment</span></li><li>Must accompany a high-deductible health insurance plan (individual or through an employer)</li><li>Allow withdrawals with a 10% penalty fee</li><li>Have a higher contribution maximum than FSAs</li></ul><br>Flexible Spending Accounts:<br><ul><li>Typically require contributions to be used by the end of the year</li><li>Can no longer be accessed after termination of employment</li><li>Must accompany group insurance through an employer </li><li>Don\u2019t allow withdrawals </li></ul>",
|
| 288 |
+
"image": "/static/img/page/99d28c525fc23d0e.jpg",
|
| 289 |
+
"alt": "",
|
| 290 |
+
"ctas": [],
|
| 291 |
+
"items": []
|
| 292 |
+
},
|
| 293 |
+
{
|
| 294 |
+
"type": "messaging_no_image",
|
| 295 |
+
"heading": "When an FSA Makes Sense",
|
| 296 |
+
"body": "An FSA tends to fit people who:<br><ul><li>Don\u2019t have a high-deductible health plan</li><li>Prefer employer-managed benefits</li><li>Expect predictable healthcare or vision expenses each year</li><li>Want to save pre-tax dollars on prescription eyewear</li></ul>The main tradeoff: FSAs typically expire each year (with a possible grace period or small rollover).",
|
| 297 |
+
"image": null,
|
| 298 |
+
"alt": null,
|
| 299 |
+
"ctas": [],
|
| 300 |
+
"items": []
|
| 301 |
+
},
|
| 302 |
+
{
|
| 303 |
+
"type": "v3_addons_quick_shop_carousel",
|
| 304 |
+
"heading": "Four ways to use your FSA or HSA ",
|
| 305 |
+
"body": null,
|
| 306 |
+
"image": null,
|
| 307 |
+
"alt": null,
|
| 308 |
+
"ctas": [],
|
| 309 |
+
"items": []
|
| 310 |
+
},
|
| 311 |
+
{
|
| 312 |
+
"type": "messaging_no_image",
|
| 313 |
+
"heading": "When an HSA Makes Sense<div><br></div>",
|
| 314 |
+
"body": "HSAs are a good match if you:<br><ul><li>Are enrolled in a high-deductible health plan</li><li>Want funds that roll over forever</li><li>Want the option to invest unused money</li><li>Prefer more control and flexibility</li></ul>For vision care purchases, HSAs offer the advantage of long-term savings and no deadlines.",
|
| 315 |
+
"image": null,
|
| 316 |
+
"alt": null,
|
| 317 |
+
"ctas": [],
|
| 318 |
+
"items": []
|
| 319 |
+
},
|
| 320 |
+
{
|
| 321 |
+
"type": "messaging_no_image",
|
| 322 |
+
"heading": "Using Either Account at Warby Parker",
|
| 323 |
+
"body": "No matter which account you have, you can use it on:<br><ul><li>Prescription glasses</li><li>Prescription sunglasses</li><li>Contact lenses</li><li>Eye exams</li><li>Lens upgrades</li></ul>Both cards typically process like debit cards at checkout. If not, you can submit your receipt for reimbursement.",
|
| 324 |
+
"image": null,
|
| 325 |
+
"alt": null,
|
| 326 |
+
"ctas": [],
|
| 327 |
+
"items": []
|
| 328 |
+
},
|
| 329 |
+
{
|
| 330 |
+
"type": "messaging_no_image",
|
| 331 |
+
"heading": "Which One Saves You More on Vision Care?",
|
| 332 |
+
"body": "It depends on your plan\u2014but generally:<br><ul><li>FSAs may help with predictable annual expenses (like annual contacts or a new pair of glasses).</li><li>HSAs offer greater long-term tax advantages, especially if you keep a balance year-to-year.</li></ul>Whichever account you use, buying prescription eyewear with pre-tax dollars is almost always the most cost-effective option.",
|
| 333 |
+
"image": null,
|
| 334 |
+
"alt": null,
|
| 335 |
+
"ctas": [],
|
| 336 |
+
"items": []
|
| 337 |
+
},
|
| 338 |
+
{
|
| 339 |
+
"type": "v3_messaging_single_image_full_bleed_with_hotspots",
|
| 340 |
+
"heading": "Find the perfect frame with a quick quiz",
|
| 341 |
+
"body": null,
|
| 342 |
+
"image": "/static/img/page/0e919a21d055366d.jpg",
|
| 343 |
+
"alt": "A woman playfully holds several pairs of glasses in front of her face against a blue background.",
|
| 344 |
+
"ctas": [
|
| 345 |
+
{
|
| 346 |
+
"copy": "Get started",
|
| 347 |
+
"route": "/quiz/frames"
|
| 348 |
+
}
|
| 349 |
+
],
|
| 350 |
+
"items": []
|
| 351 |
+
},
|
| 352 |
+
{
|
| 353 |
+
"type": "addons_faq",
|
| 354 |
+
"heading": "FAQ's",
|
| 355 |
+
"body": null,
|
| 356 |
+
"image": null,
|
| 357 |
+
"alt": null,
|
| 358 |
+
"ctas": [],
|
| 359 |
+
"items": []
|
| 360 |
+
}
|
| 361 |
+
]
|
| 362 |
+
},
|
| 363 |
+
"/flexible-spending-accounts": {
|
| 364 |
+
"title": "Flexible Spending Accounts | Warby Parker",
|
| 365 |
+
"blocks": [
|
| 366 |
+
{
|
| 367 |
+
"type": "hero_single_image_full_width",
|
| 368 |
+
"heading": "Don\u2019t let your FSA or HSA go to waste!",
|
| 369 |
+
"body": "We accept flexible spending accounts (FSA)\u2014many of which expire on December 31\u2014and health savings accounts (HSA). Put \u2019em to good use on Warby Parker prescription glasses (including blue-light-filtering, anti-fatigue, light-responsive, and progressives lenses), prescription sunglasses, contact lenses, readers, and eye exams.",
|
| 370 |
+
"image": "/static/img/page/ab9efcc7956ecfec.jpg",
|
| 371 |
+
"alt": "FSA",
|
| 372 |
+
"ctas": [
|
| 373 |
+
{
|
| 374 |
+
"copy": "Shop eyeglasses",
|
| 375 |
+
"route": "/eyeglasses"
|
| 376 |
+
},
|
| 377 |
+
{
|
| 378 |
+
"copy": "Shop contacts",
|
| 379 |
+
"route": "/contacts"
|
| 380 |
+
},
|
| 381 |
+
{
|
| 382 |
+
"copy": "Start with a style quiz",
|
| 383 |
+
"route": "/quiz/frames"
|
| 384 |
+
}
|
| 385 |
+
],
|
| 386 |
+
"items": []
|
| 387 |
+
},
|
| 388 |
+
{
|
| 389 |
+
"type": "messaging_no_image",
|
| 390 |
+
"heading": "No FSA or HSA?",
|
| 391 |
+
"body": "You can still save an average of $100 when you use your vision insurance benefits. (This may vary by state or plan.)",
|
| 392 |
+
"image": null,
|
| 393 |
+
"alt": null,
|
| 394 |
+
"ctas": [
|
| 395 |
+
{
|
| 396 |
+
"copy": "Check your benefits here",
|
| 397 |
+
"route": "/insurance"
|
| 398 |
+
}
|
| 399 |
+
],
|
| 400 |
+
"items": []
|
| 401 |
+
},
|
| 402 |
+
{
|
| 403 |
+
"type": "messaging_no_image",
|
| 404 |
+
"heading": "What\u2019s covered by FSA and HSA?",
|
| 405 |
+
"body": null,
|
| 406 |
+
"image": null,
|
| 407 |
+
"alt": null,
|
| 408 |
+
"ctas": [],
|
| 409 |
+
"items": []
|
| 410 |
+
},
|
| 411 |
+
{
|
| 412 |
+
"type": "messaging_single_image_inset",
|
| 413 |
+
"heading": "Prescription eyeglasses",
|
| 414 |
+
"body": "Starting at $95, including prescription lenses\u2014plus we offer free shipping, free returns, and a six-month, no-scratch guarantee.",
|
| 415 |
+
"image": "/static/img/page/5eda590c9710821c.jpg",
|
| 416 |
+
"alt": "Man and woman with lenses smiling to the camera.",
|
| 417 |
+
"ctas": [
|
| 418 |
+
{
|
| 419 |
+
"copy": "Shop Women",
|
| 420 |
+
"route": "/eyeglasses/women"
|
| 421 |
+
},
|
| 422 |
+
{
|
| 423 |
+
"copy": "Shop Men",
|
| 424 |
+
"route": "/eyeglasses/men"
|
| 425 |
+
}
|
| 426 |
+
],
|
| 427 |
+
"items": []
|
| 428 |
+
},
|
| 429 |
+
{
|
| 430 |
+
"type": "messaging_single_image_inset",
|
| 431 |
+
"heading": "Contact lenses",
|
| 432 |
+
"body": "Shop all the top brands, online and in stores. Whichever brand you wear, you\u2019ll get 20% off your first order of contacts\u2014even when paying with an FSA or HSA.",
|
| 433 |
+
"image": "/static/img/page/7ccde704d86b2a5b.jpg",
|
| 434 |
+
"alt": "Shop contacts",
|
| 435 |
+
"ctas": [
|
| 436 |
+
{
|
| 437 |
+
"copy": "Find your brand",
|
| 438 |
+
"route": "/contacts"
|
| 439 |
+
}
|
| 440 |
+
],
|
| 441 |
+
"items": []
|
| 442 |
+
},
|
| 443 |
+
{
|
| 444 |
+
"type": "messaging_no_image",
|
| 445 |
+
"heading": "Still have questions about FSA or HSA?",
|
| 446 |
+
"body": null,
|
| 447 |
+
"image": null,
|
| 448 |
+
"alt": null,
|
| 449 |
+
"ctas": [],
|
| 450 |
+
"items": []
|
| 451 |
+
}
|
| 452 |
+
]
|
| 453 |
+
},
|
| 454 |
+
"/virtual-vision-test": {
|
| 455 |
+
"title": "Virtual Vision Test | Renew your Prescription from Home | Warby Parker",
|
| 456 |
+
"blocks": [
|
| 457 |
+
{
|
| 458 |
+
"type": "hero_single_image_full_width",
|
| 459 |
+
"heading": "Virtual Vision Test by Warby Parker",
|
| 460 |
+
"body": "Seeing well out of an expired glasses or contacts prescription? If you\u2019re eligible, renew yours from home in just 10 minutes.<br><br>",
|
| 461 |
+
"image": "/static/img/page/77172f422d7efeea.jpg",
|
| 462 |
+
"alt": "Stack of blue hardback books with pages facing forward. Succulent on the left of frame. iphone leaning again books showing eye test representing Virtual Vision Test App to renew expired eyeglasses and contacts prescriptions. ",
|
| 463 |
+
"ctas": [],
|
| 464 |
+
"items": []
|
| 465 |
+
},
|
| 466 |
+
{
|
| 467 |
+
"type": "messaging_no_image",
|
| 468 |
+
"heading": "How it works",
|
| 469 |
+
"body": null,
|
| 470 |
+
"image": null,
|
| 471 |
+
"alt": null,
|
| 472 |
+
"ctas": [],
|
| 473 |
+
"items": []
|
| 474 |
+
},
|
| 475 |
+
{
|
| 476 |
+
"type": "messaging_single_image_inset",
|
| 477 |
+
"heading": "We\u2019ll see if you\u2019re eligible",
|
| 478 |
+
"body": "This part only takes about 5 minutes: Answer a few questions about your eye health and more to confirm if you\u2019re eligible to proceed.<br><br>Due to state-level regulations, these states are currently ineligible to use Virtual Vision Test: AK, AZ, AR, CO, CT, DE, DC, GA, ID, IN, KS, KY, LA, ME, MD, MI, MN, NV, NJ, NM, ND, RI, SC, SD, VA, WA, WV",
|
| 479 |
+
"image": null,
|
| 480 |
+
"alt": "Looping video of man wearing rectangle brown eyeglasses taking Virtual Vision Test App by Warby Parker to renew eyeglasses prescription.",
|
| 481 |
+
"ctas": [],
|
| 482 |
+
"items": []
|
| 483 |
+
},
|
| 484 |
+
{
|
| 485 |
+
"type": "messaging_single_image_inset",
|
| 486 |
+
"heading": "Take a 5-minute vision test",
|
| 487 |
+
"body": "Wearing the glasses or contacts with the prescription you'd like to renew, you'll read an eye chart, just like at the doctor's office.",
|
| 488 |
+
"image": null,
|
| 489 |
+
"alt": "Looping video of man placing phone down to take vision test through Warby Parker's Virtual Vision test to renew expired prescription. ",
|
| 490 |
+
"ctas": [],
|
| 491 |
+
"items": []
|
| 492 |
+
},
|
| 493 |
+
{
|
| 494 |
+
"type": "messaging_single_image_inset",
|
| 495 |
+
"heading": "A qualified eye doctor will review your results",
|
| 496 |
+
"body": "If you're still seeing well out of your current prescription, then the doctor will renew it, and you'll be charged $15. (They may instead recommend you get an in-person, comprehensive eye exam; in that case, you will not be charged.) Either way, you\u2019ll hear back within 48 hours.",
|
| 497 |
+
"image": null,
|
| 498 |
+
"alt": "Female optometrist wearing oversized black round eyeglasses reviewing results of a Virtual Vision Test. ",
|
| 499 |
+
"ctas": [],
|
| 500 |
+
"items": []
|
| 501 |
+
},
|
| 502 |
+
{
|
| 503 |
+
"type": "list_no_image_single",
|
| 504 |
+
"heading": "Virtual Vision Test is great for anyone who:",
|
| 505 |
+
"body": null,
|
| 506 |
+
"image": null,
|
| 507 |
+
"alt": null,
|
| 508 |
+
"ctas": [],
|
| 509 |
+
"items": []
|
| 510 |
+
},
|
| 511 |
+
{
|
| 512 |
+
"type": "list_no_image_single",
|
| 513 |
+
"heading": "What you\u2019ll need to use the app",
|
| 514 |
+
"body": null,
|
| 515 |
+
"image": null,
|
| 516 |
+
"alt": null,
|
| 517 |
+
"ctas": [],
|
| 518 |
+
"items": []
|
| 519 |
+
},
|
| 520 |
+
{
|
| 521 |
+
"type": "messaging_no_image",
|
| 522 |
+
"heading": "Let's get started",
|
| 523 |
+
"body": "Download the app to renew your prescription online, or book an eye exam at one of our stores to get an updated one.",
|
| 524 |
+
"image": null,
|
| 525 |
+
"alt": null,
|
| 526 |
+
"ctas": [],
|
| 527 |
+
"items": []
|
| 528 |
+
}
|
| 529 |
+
]
|
| 530 |
+
},
|
| 531 |
+
"/ios-app": {
|
| 532 |
+
"title": "Warby Parker Mobile Apps | Warby Parker",
|
| 533 |
+
"blocks": [
|
| 534 |
+
{
|
| 535 |
+
"type": "hero_single_image_full_width",
|
| 536 |
+
"heading": "An eye-opening app experience",
|
| 537 |
+
"body": "Find your favorite frames and manage all your eye care in one place. Plus, with Advisor, you can virtually try on glasses and get personalized recommendations\u2014just like you\u2019re shopping in-store.",
|
| 538 |
+
"image": "/static/img/page/2cbfc48dfd7bac62.jpg",
|
| 539 |
+
"alt": "A person holding a smartphone, analyzing face shape",
|
| 540 |
+
"ctas": [],
|
| 541 |
+
"items": []
|
| 542 |
+
},
|
| 543 |
+
{
|
| 544 |
+
"type": "messaging_single_image_inset",
|
| 545 |
+
"heading": "Meet your new go-to Advisor",
|
| 546 |
+
"body": "Our latest AI-powered app feature, Advisor, helps you find a perfect frame by scanning your face, capturing your style preferences and measurements, and then recommending glasses to buy (or try)\u2014and it\u2019s all at your fingertips.",
|
| 547 |
+
"image": "/static/img/page/f1b0933603cbd5d8.jpg",
|
| 548 |
+
"alt": "A person using a smartphone app to virtually try on eyeglasses, with options for frame selection visible on the screen.",
|
| 549 |
+
"ctas": [],
|
| 550 |
+
"items": []
|
| 551 |
+
},
|
| 552 |
+
{
|
| 553 |
+
"type": "messaging_single_image_inset",
|
| 554 |
+
"heading": "The best Virtual Try-On, anywhere",
|
| 555 |
+
"body": "Use our award-winning Virtual Try-On tool to see frames on your face instantly. It\u2019s shockingly realistic\u2014and can calculate which frame size fits you best.",
|
| 556 |
+
"image": "/static/img/page/0f2d1befad146c34.jpg",
|
| 557 |
+
"alt": "A person holding a smartphone displaying a virtual try-on feature for glasses, with options for frame sizes and purchasing against a blue sky background.",
|
| 558 |
+
"ctas": [],
|
| 559 |
+
"items": []
|
| 560 |
+
},
|
| 561 |
+
{
|
| 562 |
+
"type": "messaging_single_image_inset",
|
| 563 |
+
"heading": "Glasses Eraser is a game-changer",
|
| 564 |
+
"body": "When you need glasses, it\u2019s often (ironically) hard to see yourself clearly when you try on new frames. Glasses Eraser seamlessly removes your real glasses while you try on virtual glasses\u2014so you can still see while testing out new pairs.",
|
| 565 |
+
"image": "/static/img/page/d32b62f6ad7ae19b.jpg",
|
| 566 |
+
"alt": "A person using a smartphone app to virtually try on eyeglasses, with options for frame selection visible on the screen.",
|
| 567 |
+
"ctas": [],
|
| 568 |
+
"items": []
|
| 569 |
+
},
|
| 570 |
+
{
|
| 571 |
+
"type": "messaging_single_image_inset",
|
| 572 |
+
"heading": "Contacts in a *snap*",
|
| 573 |
+
"body": "Restocking on contacts only takes one click\u2014just scan your last box of lenses to find your brand or place a new order in seconds.",
|
| 574 |
+
"image": "/static/img/page/d99890b57811181e.jpg",
|
| 575 |
+
"alt": "A person sitting at a table using a smartphone to virtually try on glasses. The screen displays their image with glasses and options for first impressions.",
|
| 576 |
+
"ctas": [],
|
| 577 |
+
"items": []
|
| 578 |
+
},
|
| 579 |
+
{
|
| 580 |
+
"type": "messaging_no_image",
|
| 581 |
+
"heading": "Every little thing, made easier",
|
| 582 |
+
"body": null,
|
| 583 |
+
"image": null,
|
| 584 |
+
"alt": null,
|
| 585 |
+
"ctas": [],
|
| 586 |
+
"items": []
|
| 587 |
+
}
|
| 588 |
+
]
|
| 589 |
+
},
|
| 590 |
+
"/intelligent-eyewear": {
|
| 591 |
+
"title": "Warby Parker Intelligent Eyewear | Warby Parker",
|
| 592 |
+
"blocks": [
|
| 593 |
+
{
|
| 594 |
+
"type": "email_capture",
|
| 595 |
+
"heading": "Warby Parker Intelligent Eyewear",
|
| 596 |
+
"body": "In partnership with Google and Samsung, we\u2019re developing next-gen glasses designed for all-day wear.",
|
| 597 |
+
"image": "/static/img/page/2e385c7e61b53627.jpg",
|
| 598 |
+
"alt": "Intelligent eyewear styling",
|
| 599 |
+
"ctas": [],
|
| 600 |
+
"items": []
|
| 601 |
+
},
|
| 602 |
+
{
|
| 603 |
+
"type": "list_graphics_stack",
|
| 604 |
+
"heading": "Explore the features",
|
| 605 |
+
"body": "Here\u2019s a peek at what to expect with Intelligent Eyewear:",
|
| 606 |
+
"image": null,
|
| 607 |
+
"alt": null,
|
| 608 |
+
"ctas": [],
|
| 609 |
+
"items": []
|
| 610 |
+
},
|
| 611 |
+
{
|
| 612 |
+
"type": "messaging_single_image_partial_bleed",
|
| 613 |
+
"heading": "As seen at Galaxy Unpacked and Google I/O",
|
| 614 |
+
"body": "Both recent events shared a sneak peek of our forthcoming Intelligent Eyewear launch, coming this fall. Most recently, at Galaxy Unpacked, we previewed our second frame in the collection and demonstrated how Warby Parker Intelligent Eyewear helps with your day-to-day life by understanding your context, connecting the dots, and providing seamless, hands-free support.",
|
| 615 |
+
"image": "/static/img/page/24be94ae357f3f96.jpg",
|
| 616 |
+
"alt": "Close-up of a Black man wearing brown-framed glasses with cameras on the temples.",
|
| 617 |
+
"ctas": [],
|
| 618 |
+
"items": []
|
| 619 |
+
},
|
| 620 |
+
{
|
| 621 |
+
"type": "messaging_single_image_partial_bleed",
|
| 622 |
+
"heading": "Everyday eyewear, made extraordinary",
|
| 623 |
+
"body": "Intelligent Eyewear combines Warby Parker\u2019s signature design and prescription expertise with Google\u2019s AI and Samsung\u2019s leadership in hardware engineering. ",
|
| 624 |
+
"image": "/static/img/page/f36fac7b990d78af.jpg",
|
| 625 |
+
"alt": "Close-up of a Black man wearing brown-framed glasses with cameras on the temples.",
|
| 626 |
+
"ctas": [],
|
| 627 |
+
"items": []
|
| 628 |
+
},
|
| 629 |
+
{
|
| 630 |
+
"type": "email_capture",
|
| 631 |
+
"heading": "See them first",
|
| 632 |
+
"body": "Sign up to receive updates on Warby Parker Intelligent Eyewear.",
|
| 633 |
+
"image": null,
|
| 634 |
+
"alt": null,
|
| 635 |
+
"ctas": [],
|
| 636 |
+
"items": []
|
| 637 |
+
},
|
| 638 |
+
{
|
| 639 |
+
"type": "messaging_single_image_inset",
|
| 640 |
+
"heading": "As always, for every pair purchased, a pair of glasses is distributed to someone in need ",
|
| 641 |
+
"body": null,
|
| 642 |
+
"image": "/static/img/page/3f713cc725e1ffd2.jpg",
|
| 643 |
+
"alt": "Collage of four images. Top left: Child wearing vision testing device. Top right: Smiling person sitting with books. Bottom left: Man with glasses smiling broadly. Bottom right: Child with a phoropter during an eye exam.",
|
| 644 |
+
"ctas": [],
|
| 645 |
+
"items": []
|
| 646 |
+
},
|
| 647 |
+
{
|
| 648 |
+
"type": "messaging_no_image",
|
| 649 |
+
"heading": null,
|
| 650 |
+
"body": "Compatibility, availability, and age restrictions vary. Some features require setup or subscription. Google, Android, and Gemini are trademarks of Google LLC.",
|
| 651 |
+
"image": null,
|
| 652 |
+
"alt": null,
|
| 653 |
+
"ctas": [],
|
| 654 |
+
"items": []
|
| 655 |
+
}
|
| 656 |
+
]
|
| 657 |
+
},
|
| 658 |
+
"/add-a-pair-and-save": {
|
| 659 |
+
"title": "Add A Pair and Save | Warby Parker",
|
| 660 |
+
"blocks": [
|
| 661 |
+
{
|
| 662 |
+
"type": "hero_single_image_full_width",
|
| 663 |
+
"heading": "Add a pair and save",
|
| 664 |
+
"body": "Buy one prescription pair and save 20% on additional pairs\u2014eyeglasses or sunglasses!",
|
| 665 |
+
"image": "/static/img/page/f776eed48ae54987.jpg",
|
| 666 |
+
"alt": "Add a pair and save promotion image showing square acetate Hughes in Chestnut Crystal eyeglasses, Felix in Pacific Crystal prescription eyeglasses, and Laurel frames in Tea Rose Fade prescription sunglasses. ",
|
| 667 |
+
"ctas": [
|
| 668 |
+
{
|
| 669 |
+
"copy": "Shop Women",
|
| 670 |
+
"route": "/eyeglasses/women"
|
| 671 |
+
},
|
| 672 |
+
{
|
| 673 |
+
"copy": "Shop Men",
|
| 674 |
+
"route": "/eyeglasses/men"
|
| 675 |
+
},
|
| 676 |
+
{
|
| 677 |
+
"copy": "Start with a style quiz",
|
| 678 |
+
"route": "/quiz/frames"
|
| 679 |
+
}
|
| 680 |
+
],
|
| 681 |
+
"items": []
|
| 682 |
+
},
|
| 683 |
+
{
|
| 684 |
+
"type": "messaging_no_image",
|
| 685 |
+
"heading": "Terms & Conditions",
|
| 686 |
+
"body": "$59",
|
| 687 |
+
"image": null,
|
| 688 |
+
"alt": null,
|
| 689 |
+
"ctas": [],
|
| 690 |
+
"items": []
|
| 691 |
+
},
|
| 692 |
+
{
|
| 693 |
+
"type": "messaging_single_image_inset",
|
| 694 |
+
"heading": "Extra pair, extra impact",
|
| 695 |
+
"body": "For every pair purchased, a pair of glasses is distributed to someone in need through our Buy a Pair, Give a Pair program.",
|
| 696 |
+
"image": "/static/img/page/75acad190a24d041.jpg",
|
| 697 |
+
"alt": "A person wearing a floral headscarf and adjusting their black glasses, smiling confidently.",
|
| 698 |
+
"ctas": [],
|
| 699 |
+
"items": []
|
| 700 |
+
}
|
| 701 |
+
]
|
| 702 |
+
},
|
| 703 |
+
"/buy-a-pair-give-a-pair": {
|
| 704 |
+
"title": "Buy a Pair, Give a Pair | Warby Parker",
|
| 705 |
+
"blocks": [
|
| 706 |
+
{
|
| 707 |
+
"type": "messaging_no_image",
|
| 708 |
+
"heading": "<b>Approximately one billion people around the world need glasses but lack access to them.</b>",
|
| 709 |
+
"body": null,
|
| 710 |
+
"image": null,
|
| 711 |
+
"alt": null,
|
| 712 |
+
"ctas": [],
|
| 713 |
+
"items": []
|
| 714 |
+
},
|
| 715 |
+
{
|
| 716 |
+
"type": "messaging_no_image",
|
| 717 |
+
"heading": "To help address this problem, we work with a handful of partners worldwide to ensure that for every pair of Warby Parker glasses or sunglasses purchased, a pair of glasses is distributed to someone in need.",
|
| 718 |
+
"body": null,
|
| 719 |
+
"image": null,
|
| 720 |
+
"alt": null,
|
| 721 |
+
"ctas": [],
|
| 722 |
+
"items": []
|
| 723 |
+
},
|
| 724 |
+
{
|
| 725 |
+
"type": "messaging_no_image",
|
| 726 |
+
"heading": "The impact of a pair of glasses",
|
| 727 |
+
"body": "Vision correction can be life-changing. <b>Studies have shown that in low-income communities, a pair of reading glasses can increase productivity by up to 32% and boost income by 33%.<sup>*</sup></b><br> <br>It\u2019s estimated that 80% of childhood learning occurs visually, so early intervention is crucial in influencing a child\u2019s success (in school and beyond). In 2021, the <i>Journal of the American Medical Association (JAMA) Ophthalmology</i> published the results of a three-year study conducted by Baltimore\u2019s Johns Hopkins University Wilmer Eye Institute and School of Education. <b>It showed that the overall academic gains for students who received glasses were equivalent to adding two to four months of education onto the school year.</b><br> <br>Outcomes like these are the reason we believe in vision for all.",
|
| 728 |
+
"image": null,
|
| 729 |
+
"alt": null,
|
| 730 |
+
"ctas": [],
|
| 731 |
+
"items": []
|
| 732 |
+
},
|
| 733 |
+
{
|
| 734 |
+
"type": "hero_carousel_full_width",
|
| 735 |
+
"heading": null,
|
| 736 |
+
"body": null,
|
| 737 |
+
"image": null,
|
| 738 |
+
"alt": null,
|
| 739 |
+
"ctas": [],
|
| 740 |
+
"items": [
|
| 741 |
+
{
|
| 742 |
+
"heading": null,
|
| 743 |
+
"body": "Students, Mexico<br><i>Ver Bien</i>",
|
| 744 |
+
"route": null
|
| 745 |
+
},
|
| 746 |
+
{
|
| 747 |
+
"heading": null,
|
| 748 |
+
"body": "India<br><i>VisionSpring</i>",
|
| 749 |
+
"route": null
|
| 750 |
+
},
|
| 751 |
+
{
|
| 752 |
+
"heading": null,
|
| 753 |
+
"body": "Knitter, Zambia<br><i>RestoringVision</i>",
|
| 754 |
+
"route": null
|
| 755 |
+
},
|
| 756 |
+
{
|
| 757 |
+
"heading": null,
|
| 758 |
+
"body": "Electrician, India<br><i>VisionSpring</i>",
|
| 759 |
+
"route": null
|
| 760 |
+
},
|
| 761 |
+
{
|
| 762 |
+
"heading": null,
|
| 763 |
+
"body": "Tea pickers, India<br><i>VisionSpring</i>",
|
| 764 |
+
"route": null
|
| 765 |
+
},
|
| 766 |
+
{
|
| 767 |
+
"heading": null,
|
| 768 |
+
"body": "El Salvador<br><i>RestoringVision</i>",
|
| 769 |
+
"route": null
|
| 770 |
+
}
|
| 771 |
+
]
|
| 772 |
+
},
|
| 773 |
+
{
|
| 774 |
+
"type": "messaging_no_image",
|
| 775 |
+
"heading": "Over 25 million pairs distributed to people in need",
|
| 776 |
+
"body": "That means over 25 million more people now have the glasses they need to learn, work, and achieve better economic outcomes.<br> <br>Within that, over 350,000 pairs of glasses have been distributed to schoolchildren in the United States through our school-based vision program, Pupils Project.",
|
| 777 |
+
"image": null,
|
| 778 |
+
"alt": null,
|
| 779 |
+
"ctas": [],
|
| 780 |
+
"items": []
|
| 781 |
+
},
|
| 782 |
+
{
|
| 783 |
+
"type": "messaging_no_image",
|
| 784 |
+
"heading": "Vision for all",
|
| 785 |
+
"body": "From Mexico to Zimbabwe, Bangladesh to Sri Lanka, our impact has reached over 80 countries, including over 40 cities in the United States.",
|
| 786 |
+
"image": null,
|
| 787 |
+
"alt": null,
|
| 788 |
+
"ctas": [],
|
| 789 |
+
"items": []
|
| 790 |
+
},
|
| 791 |
+
{
|
| 792 |
+
"type": "messaging_no_image",
|
| 793 |
+
"heading": "Pupils Project",
|
| 794 |
+
"body": "In 2015 we expanded our Buy a Pair, Give a Pair program with the creation of Pupils Project. Through this school-based vision program, we work with local organizations and government agencies to give free vision screenings, eye exams, and glasses to schoolchildren in the United States\u2014for many of whom this is their first pair.<br> <br>To date, Pupils Project has distributed over 350,000 pairs (and counting!) to students across the country, from Boston to the Bay Area\u2014and many cities in between.",
|
| 795 |
+
"image": null,
|
| 796 |
+
"alt": null,
|
| 797 |
+
"ctas": [
|
| 798 |
+
{
|
| 799 |
+
"copy": "Learn more",
|
| 800 |
+
"route": "/pupils-project"
|
| 801 |
+
}
|
| 802 |
+
],
|
| 803 |
+
"items": []
|
| 804 |
+
}
|
| 805 |
+
]
|
| 806 |
+
},
|
| 807 |
+
"/how-our-glasses-are-made": {
|
| 808 |
+
"title": "We\u2019ve Got Your Eyes Covered | Warby Parker",
|
| 809 |
+
"blocks": [
|
| 810 |
+
{
|
| 811 |
+
"type": "media_single_media_video",
|
| 812 |
+
"heading": "How Warby Parker glasses are made",
|
| 813 |
+
"body": null,
|
| 814 |
+
"image": "/static/img/page/f6c712a1342b22f8.jpg",
|
| 815 |
+
"alt": "Person sketching and designing Warby Parker glasses",
|
| 816 |
+
"ctas": [],
|
| 817 |
+
"items": []
|
| 818 |
+
},
|
| 819 |
+
{
|
| 820 |
+
"type": "messaging_no_image",
|
| 821 |
+
"heading": "The design starts at our headquarters",
|
| 822 |
+
"body": "Every Warby Parker frame is designed in-house, where our team puts together mood boards for inspiration, sketches initial designs, and maps out product details for prototyping.",
|
| 823 |
+
"image": null,
|
| 824 |
+
"alt": null,
|
| 825 |
+
"ctas": [],
|
| 826 |
+
"items": []
|
| 827 |
+
},
|
| 828 |
+
{
|
| 829 |
+
"type": "messaging_no_image",
|
| 830 |
+
"heading": "Every frame is hand-assembled and polished",
|
| 831 |
+
"body": "After raw material is cut into face fronts using a high-tech CNC machine, it\u2019s tumbled with wood chips and hand-polished with a German wax compound. The frames are then carefully assembled and sent through a series of quality checks.<br>\\n\\n",
|
| 832 |
+
"image": null,
|
| 833 |
+
"alt": null,
|
| 834 |
+
"ctas": [],
|
| 835 |
+
"items": []
|
| 836 |
+
},
|
| 837 |
+
{
|
| 838 |
+
"type": "media_single_media_image",
|
| 839 |
+
"heading": null,
|
| 840 |
+
"body": "A CNC machine cuts a general frame shape from raw acetate sheets<br>\\n",
|
| 841 |
+
"image": "/static/img/page/17ee572fd9a0ec1c.jpg",
|
| 842 |
+
"alt": "Looping video of a metal machine cutting out frame shape from a sheet of acetate of yellow and black tortoise coloring. ",
|
| 843 |
+
"ctas": [],
|
| 844 |
+
"items": []
|
| 845 |
+
},
|
| 846 |
+
{
|
| 847 |
+
"type": "messaging_no_image",
|
| 848 |
+
"heading": "When you order, a pair is made just for you",
|
| 849 |
+
"body": "We custom-cut and polish the edges of your lenses, which have been treated with anti-reflective and scratch-resistant coatings. Our frames come standard with impact-resistant polycarbonate lenses that block 100% of UVA and UVB rays.<br>\\n",
|
| 850 |
+
"image": null,
|
| 851 |
+
"alt": null,
|
| 852 |
+
"ctas": [],
|
| 853 |
+
"items": []
|
| 854 |
+
},
|
| 855 |
+
{
|
| 856 |
+
"type": "media_single_media_image",
|
| 857 |
+
"heading": null,
|
| 858 |
+
"body": "Lenses are carefully mounted into the frame<br>\\n",
|
| 859 |
+
"image": "/static/img/page/b7dcbd84563deac8.jpg",
|
| 860 |
+
"alt": "person in a white lab coat in a lab fitting lenses in a Warby Parker frames behind a worktable. ",
|
| 861 |
+
"ctas": [],
|
| 862 |
+
"items": []
|
| 863 |
+
},
|
| 864 |
+
{
|
| 865 |
+
"type": "messaging_no_image",
|
| 866 |
+
"heading": "And off they go",
|
| 867 |
+
"body": "After the frames are individually inspected and bench aligned, they\u2019re packaged up and ready for you!<br>\\n\\n",
|
| 868 |
+
"image": null,
|
| 869 |
+
"alt": null,
|
| 870 |
+
"ctas": [],
|
| 871 |
+
"items": []
|
| 872 |
+
},
|
| 873 |
+
{
|
| 874 |
+
"type": "messaging_single_image_inset",
|
| 875 |
+
"heading": "Find your pair",
|
| 876 |
+
"body": null,
|
| 877 |
+
"image": "/static/img/page/00f5212e17294014.jpg",
|
| 878 |
+
"alt": "Woman placing the finished frame on their face and smiling with the results. ",
|
| 879 |
+
"ctas": [
|
| 880 |
+
{
|
| 881 |
+
"copy": "Shop women",
|
| 882 |
+
"route": "/eyeglasses/women"
|
| 883 |
+
},
|
| 884 |
+
{
|
| 885 |
+
"copy": "Shop men",
|
| 886 |
+
"route": "/eyeglasses/men"
|
| 887 |
+
}
|
| 888 |
+
],
|
| 889 |
+
"items": []
|
| 890 |
+
}
|
| 891 |
+
]
|
| 892 |
+
},
|
| 893 |
+
"/impact-report": {
|
| 894 |
+
"title": "Impact Report | Warby Parker",
|
| 895 |
+
"blocks": [
|
| 896 |
+
{
|
| 897 |
+
"type": "messaging_single_image_partial_bleed",
|
| 898 |
+
"heading": "Warby Parker Impact Report",
|
| 899 |
+
"body": "Completing a yearly report, as benchmarked by the universally recognized GRI (Global Reporting Initiative) framework, gives us the opportunity to examine how we\u2019re embodying our core values and ensures we\u2019re growing responsibly. Adhering to these rigorous guidelines enables us to continue to create positive impact at an ever-increasing scale.",
|
| 900 |
+
"image": "/static/img/page/df50d356819752c1.png",
|
| 901 |
+
"alt": "Girl Posing with Head Resting on Hand",
|
| 902 |
+
"ctas": [],
|
| 903 |
+
"items": []
|
| 904 |
+
},
|
| 905 |
+
{
|
| 906 |
+
"type": "messaging_no_image",
|
| 907 |
+
"heading": "2025 at a Glance",
|
| 908 |
+
"body": "In both our social mission and our eye care business, we crossed several major milestones this past year.",
|
| 909 |
+
"image": null,
|
| 910 |
+
"alt": null,
|
| 911 |
+
"ctas": [],
|
| 912 |
+
"items": []
|
| 913 |
+
},
|
| 914 |
+
{
|
| 915 |
+
"type": "messaging_no_image",
|
| 916 |
+
"heading": "Environment",
|
| 917 |
+
"body": "We believe that our business can do well while doing good in the world\u2014and that those two goals are intertwined, not at odds. As we grow, we aim to prove that working toward sustainability does not come at the expense of product quality, customer satisfaction, or growth. How? By pushing ourselves to waste less, operate our facilities more efficiently, and limit our greenhouse gas footprint. (We also offset our carbon emissions to ensure that we\u2019re carbon-neutral across our operations.)",
|
| 918 |
+
"image": null,
|
| 919 |
+
"alt": null,
|
| 920 |
+
"ctas": [],
|
| 921 |
+
"items": []
|
| 922 |
+
},
|
| 923 |
+
{
|
| 924 |
+
"type": "messaging_no_image",
|
| 925 |
+
"heading": "Customers",
|
| 926 |
+
"body": "Each and every day, our team aims to create high-quality products and deliver remarkable experiences that delight our more than two million customers. In 2025, we launched Advisor, a first-of-its-kind tool that makes tailored product recommendations based on a customer\u2019s facial measurements and style preferences. We also announced a landmark partnership with Google and Samsung to develop AI-powered glasses for all-day wear, providing customers with instant context and insight as they navigate the world. ",
|
| 927 |
+
"image": null,
|
| 928 |
+
"alt": null,
|
| 929 |
+
"ctas": [],
|
| 930 |
+
"items": []
|
| 931 |
+
},
|
| 932 |
+
{
|
| 933 |
+
"type": "messaging_no_image",
|
| 934 |
+
"heading": "Employees",
|
| 935 |
+
"body": "Warby Parker wouldn\u2019t be where it is today without every one of its team members. As we grow, we stay true to who we are by working to develop a team that\u2019s high-performing, well-rounded, and thoughtful\u2014one where everyone feels respected, valued, and equipped with the right tools to be successful.\\n",
|
| 936 |
+
"image": null,
|
| 937 |
+
"alt": null,
|
| 938 |
+
"ctas": [],
|
| 939 |
+
"items": []
|
| 940 |
+
},
|
| 941 |
+
{
|
| 942 |
+
"type": "messaging_no_image",
|
| 943 |
+
"heading": "Want to take a deeper dive?",
|
| 944 |
+
"body": null,
|
| 945 |
+
"image": null,
|
| 946 |
+
"alt": null,
|
| 947 |
+
"ctas": [],
|
| 948 |
+
"items": []
|
| 949 |
+
}
|
| 950 |
+
]
|
| 951 |
+
},
|
| 952 |
+
"/reviews/quality": {
|
| 953 |
+
"title": "Customer Reviews | Quality | Warby Parker",
|
| 954 |
+
"blocks": [
|
| 955 |
+
{
|
| 956 |
+
"type": "hero_no_image",
|
| 957 |
+
"heading": "Warby Parker Customer Reviews",
|
| 958 |
+
"body": null,
|
| 959 |
+
"image": null,
|
| 960 |
+
"alt": null,
|
| 961 |
+
"ctas": [],
|
| 962 |
+
"items": []
|
| 963 |
+
},
|
| 964 |
+
{
|
| 965 |
+
"type": "messaging_no_image",
|
| 966 |
+
"heading": "How's the quality of your glasses?",
|
| 967 |
+
"body": "From custom-designed cellulose acetate to ultra-lightweight titanium, we use nothing but premium materials for our frames.",
|
| 968 |
+
"image": null,
|
| 969 |
+
"alt": null,
|
| 970 |
+
"ctas": [],
|
| 971 |
+
"items": []
|
| 972 |
+
},
|
| 973 |
+
{
|
| 974 |
+
"type": "messaging_no_image",
|
| 975 |
+
"heading": null,
|
| 976 |
+
"body": "\u201cI've had glasses my whole life, and they're now a very important accessory to me, so being able to buy good quality and affordable glasses so I can switch up my look is SO important to me. I can't believe I waited this long to try them. So so happy!\u201d",
|
| 977 |
+
"image": null,
|
| 978 |
+
"alt": null,
|
| 979 |
+
"ctas": [],
|
| 980 |
+
"items": []
|
| 981 |
+
},
|
| 982 |
+
{
|
| 983 |
+
"type": "messaging_no_image",
|
| 984 |
+
"heading": null,
|
| 985 |
+
"body": "\u201cGreat price, great quality, great styles, great customer service. I have two pairs, and because of my recommendation, my girlfriend has a pair, and all of my glasses-wearing siblings have a pair. Keep up the great work. DON'T CHANGE!\u201d",
|
| 986 |
+
"image": null,
|
| 987 |
+
"alt": null,
|
| 988 |
+
"ctas": [],
|
| 989 |
+
"items": []
|
| 990 |
+
},
|
| 991 |
+
{
|
| 992 |
+
"type": "messaging_no_image",
|
| 993 |
+
"heading": null,
|
| 994 |
+
"body": "\u201cFirst-time shopper and couldn't be more pleased with the selection, quality, speed of delivery and level of customer care! Really, what more could anyone expect?\u201d",
|
| 995 |
+
"image": null,
|
| 996 |
+
"alt": null,
|
| 997 |
+
"ctas": [],
|
| 998 |
+
"items": []
|
| 999 |
+
},
|
| 1000 |
+
{
|
| 1001 |
+
"type": "messaging_no_image",
|
| 1002 |
+
"heading": null,
|
| 1003 |
+
"body": "\u201cExcellent quality from Warby Parker. This is my fourth pair of glasses from here and won't be my last. Thank you!\u201d",
|
| 1004 |
+
"image": null,
|
| 1005 |
+
"alt": null,
|
| 1006 |
+
"ctas": [],
|
| 1007 |
+
"items": []
|
| 1008 |
+
},
|
| 1009 |
+
{
|
| 1010 |
+
"type": "messaging_no_image",
|
| 1011 |
+
"heading": null,
|
| 1012 |
+
"body": "\u201cI love Warby Parker!! They are amazing quality glasses, for an actually reasonable price...I have almost my whole family in Warby Parkers.\u201d",
|
| 1013 |
+
"image": null,
|
| 1014 |
+
"alt": null,
|
| 1015 |
+
"ctas": [],
|
| 1016 |
+
"items": []
|
| 1017 |
+
},
|
| 1018 |
+
{
|
| 1019 |
+
"type": "messaging_no_image",
|
| 1020 |
+
"heading": null,
|
| 1021 |
+
"body": "\u201cMy glasses arrived very quickly and are great quality. The price was very affordable, even for me (and I have a very severe prescription). I love that you can just upload a picture of your prescription. Genius.\u201d",
|
| 1022 |
+
"image": null,
|
| 1023 |
+
"alt": null,
|
| 1024 |
+
"ctas": [],
|
| 1025 |
+
"items": []
|
| 1026 |
+
},
|
| 1027 |
+
{
|
| 1028 |
+
"type": "messaging_no_image",
|
| 1029 |
+
"heading": null,
|
| 1030 |
+
"body": "\u201cI love the quality, looks, and ease of purchase!\u201d<br>",
|
| 1031 |
+
"image": null,
|
| 1032 |
+
"alt": null,
|
| 1033 |
+
"ctas": [],
|
| 1034 |
+
"items": []
|
| 1035 |
+
},
|
| 1036 |
+
{
|
| 1037 |
+
"type": "messaging_no_image",
|
| 1038 |
+
"heading": null,
|
| 1039 |
+
"body": "\u201cThe glasses are lightweight, fit my face comfortably and are great quality for the price.\u201d",
|
| 1040 |
+
"image": null,
|
| 1041 |
+
"alt": null,
|
| 1042 |
+
"ctas": [],
|
| 1043 |
+
"items": []
|
| 1044 |
+
},
|
| 1045 |
+
{
|
| 1046 |
+
"type": "messaging_no_image",
|
| 1047 |
+
"heading": null,
|
| 1048 |
+
"body": "\u201cTried it for the first time and loved my experience. Low price, easy process, quality frames, cute styles, loved it all.\u201d",
|
| 1049 |
+
"image": null,
|
| 1050 |
+
"alt": null,
|
| 1051 |
+
"ctas": [],
|
| 1052 |
+
"items": []
|
| 1053 |
+
},
|
| 1054 |
+
{
|
| 1055 |
+
"type": "messaging_no_image",
|
| 1056 |
+
"heading": null,
|
| 1057 |
+
"body": "\u201cThis company is the strongest example I have come across of a perfectly conceived and executed product\u2014quality and fashion for value, beautiful packaging, clever copy, and speedy, knowledgeable service.\u201d",
|
| 1058 |
+
"image": null,
|
| 1059 |
+
"alt": null,
|
| 1060 |
+
"ctas": [],
|
| 1061 |
+
"items": []
|
| 1062 |
+
}
|
| 1063 |
+
]
|
| 1064 |
+
},
|
| 1065 |
+
"/pd/instructions": {
|
| 1066 |
+
"title": "Measure Your Pupillary Distance | Warby Parker",
|
| 1067 |
+
"blocks": [
|
| 1068 |
+
{
|
| 1069 |
+
"type": "hero_no_image",
|
| 1070 |
+
"heading": "Measure your pupillary distance (PD)",
|
| 1071 |
+
"body": "PD is the distance between your pupils, and it's used to help center a prescription correctly in your frames. Before using our PD tool, review the steps below.",
|
| 1072 |
+
"image": null,
|
| 1073 |
+
"alt": null,
|
| 1074 |
+
"ctas": [
|
| 1075 |
+
{
|
| 1076 |
+
"copy": "Sign in to measure your PD",
|
| 1077 |
+
"route": "/login?next=%2Fpd%2Fwebcam"
|
| 1078 |
+
}
|
| 1079 |
+
],
|
| 1080 |
+
"items": []
|
| 1081 |
+
},
|
| 1082 |
+
{
|
| 1083 |
+
"type": "messaging_single_image_inset",
|
| 1084 |
+
"heading": "1. Take your glasses off for your photo.",
|
| 1085 |
+
"body": "It also helps to be in a well-lit area with a clean background.",
|
| 1086 |
+
"image": null,
|
| 1087 |
+
"alt": "Man taking off frames.",
|
| 1088 |
+
"ctas": [],
|
| 1089 |
+
"items": []
|
| 1090 |
+
},
|
| 1091 |
+
{
|
| 1092 |
+
"type": "messaging_single_image_inset",
|
| 1093 |
+
"heading": "2. Adjust your screen and look directly at the camera.",
|
| 1094 |
+
"body": "It should be positioned straight on with your face centered.",
|
| 1095 |
+
"image": null,
|
| 1096 |
+
"alt": "Man taking off frames.",
|
| 1097 |
+
"ctas": [],
|
| 1098 |
+
"items": []
|
| 1099 |
+
},
|
| 1100 |
+
{
|
| 1101 |
+
"type": "messaging_single_image_inset",
|
| 1102 |
+
"heading": "3. Place any card (approximately the size of a credit card) under your nose and snap a pic.",
|
| 1103 |
+
"body": "Be sure the card is touching your face. (Do not show the side of your card with numbers.)",
|
| 1104 |
+
"image": null,
|
| 1105 |
+
"alt": "Man taking off frames.",
|
| 1106 |
+
"ctas": [
|
| 1107 |
+
{
|
| 1108 |
+
"copy": "Ready? Sign in to Measure PD",
|
| 1109 |
+
"route": "/login?next=%2Fpd%2Fwebcam"
|
| 1110 |
+
}
|
| 1111 |
+
],
|
| 1112 |
+
"items": []
|
| 1113 |
+
}
|
| 1114 |
+
]
|
| 1115 |
+
},
|
| 1116 |
+
"/contacts-new-customer-offer": {
|
| 1117 |
+
"title": "New Contacts Customers Save | Warby Parker",
|
| 1118 |
+
"blocks": [
|
| 1119 |
+
{
|
| 1120 |
+
"type": "hero_carousel_full_width",
|
| 1121 |
+
"heading": null,
|
| 1122 |
+
"body": null,
|
| 1123 |
+
"image": null,
|
| 1124 |
+
"alt": null,
|
| 1125 |
+
"ctas": [],
|
| 1126 |
+
"items": [
|
| 1127 |
+
{
|
| 1128 |
+
"heading": "Save 25% on your first order of contacts",
|
| 1129 |
+
"body": "New to buying contact lenses at Warby Parker? We carry all the top brands, including Acuvue, Biofinity, and DAILIES. Place your first order of lenses and get 25% off, no promo code needed. Order up to a year\u2019s supply for maximum savings.",
|
| 1130 |
+
"route": null
|
| 1131 |
+
}
|
| 1132 |
+
]
|
| 1133 |
+
},
|
| 1134 |
+
{
|
| 1135 |
+
"type": "messaging_no_image",
|
| 1136 |
+
"heading": "Save 25% on your first order of contacts",
|
| 1137 |
+
"body": "New to buying contact lenses at Warby Parker? We carry dozens of top brands, including Acuvue, Biofinity, DAILIES, and our very own daily lens, Scout. Place your first order of lenses and get 25% off automatically (no promo code needed!). Nab up to a year\u2019s supply for maximum savings.",
|
| 1138 |
+
"image": null,
|
| 1139 |
+
"alt": null,
|
| 1140 |
+
"ctas": [
|
| 1141 |
+
{
|
| 1142 |
+
"copy": "Find you brand",
|
| 1143 |
+
"route": "/contacts"
|
| 1144 |
+
}
|
| 1145 |
+
],
|
| 1146 |
+
"items": []
|
| 1147 |
+
},
|
| 1148 |
+
{
|
| 1149 |
+
"type": "messaging_single_image_inset",
|
| 1150 |
+
"heading": "Ready to start saving?",
|
| 1151 |
+
"body": "Browse dozens of top brands to find your contacts. As always, you\u2019ll get free shipping (and no hidden fees) on every order of lenses.",
|
| 1152 |
+
"image": "/static/img/page/46016b129a15d711.jpg",
|
| 1153 |
+
"alt": "Boxes of contact lenses for Warby Parker's Scout, Acvuve 1-Day Oasys Max, Alcon Total30 contact brands.",
|
| 1154 |
+
"ctas": [
|
| 1155 |
+
{
|
| 1156 |
+
"copy": "Shop contacts",
|
| 1157 |
+
"route": "/contacts"
|
| 1158 |
+
}
|
| 1159 |
+
],
|
| 1160 |
+
"items": []
|
| 1161 |
+
},
|
| 1162 |
+
{
|
| 1163 |
+
"type": "list_single_image_inset_standard_list",
|
| 1164 |
+
"heading": "3 reasons to shop contacts at Warby Parker",
|
| 1165 |
+
"body": null,
|
| 1166 |
+
"image": "/static/img/page/f71c7ce6d788c67b.jpg",
|
| 1167 |
+
"alt": "Male optometrist wearing rectangle eyeglasses and white medical coat performing eye exam on male patient. ",
|
| 1168 |
+
"ctas": [
|
| 1169 |
+
{
|
| 1170 |
+
"copy": "Shop contacts",
|
| 1171 |
+
"route": "/contacts"
|
| 1172 |
+
}
|
| 1173 |
+
],
|
| 1174 |
+
"items": []
|
| 1175 |
+
},
|
| 1176 |
+
{
|
| 1177 |
+
"type": "messaging_no_image",
|
| 1178 |
+
"heading": "Terms & Conditions",
|
| 1179 |
+
"body": "Promotion applied automatically to each contact lens product in your cart at checkout for all first-time contact lens purchasers. Offer cannot be (i) redeemed for cash, (ii) applied to previous purchases, services, gift cards, accessories, eyeglasses, sunglasses, taxes, shipping or processing charges, or (iii) combined with certain coupons or discount codes, including in-network insurance benefits. Any out-of-network insurance reimbursement will be at the discretion of the insurance provider and will be limited to amounts actually paid. Offer subject to change without notice.\\n",
|
| 1180 |
+
"image": null,
|
| 1181 |
+
"alt": null,
|
| 1182 |
+
"ctas": [],
|
| 1183 |
+
"items": []
|
| 1184 |
+
}
|
| 1185 |
+
]
|
| 1186 |
+
},
|
| 1187 |
+
"/contacts-annual-supply-bonus": {
|
| 1188 |
+
"title": "Contacts Annual Supply Bonus | Warby Parker",
|
| 1189 |
+
"blocks": [
|
| 1190 |
+
{
|
| 1191 |
+
"type": "v3_hero_single_image_product_lockup_frames",
|
| 1192 |
+
"heading": "Stock up on contacts, save on frames",
|
| 1193 |
+
"body": "Get a $50 eyewear credit with an annual supply\u2014no matter which lenses you wear\u2014or a $25 credit with a six-month supply of dailies.",
|
| 1194 |
+
"image": "/static/img/page/3ffdb63f8e702dbf.jpg",
|
| 1195 |
+
"alt": "",
|
| 1196 |
+
"ctas": [
|
| 1197 |
+
{
|
| 1198 |
+
"copy": "Find your lenses ",
|
| 1199 |
+
"route": "/contacts"
|
| 1200 |
+
}
|
| 1201 |
+
],
|
| 1202 |
+
"items": []
|
| 1203 |
+
},
|
| 1204 |
+
{
|
| 1205 |
+
"type": "list_single_image_inset_standard_list",
|
| 1206 |
+
"heading": "How the six-month supply bonus works",
|
| 1207 |
+
"body": null,
|
| 1208 |
+
"image": "/static/img/page/8c843a9cc9ef8e8a.jpg",
|
| 1209 |
+
"alt": "A stack of contact lens boxes from Acuvue, MyDay, Precision 1, and Bausch + Lomb.",
|
| 1210 |
+
"ctas": [
|
| 1211 |
+
{
|
| 1212 |
+
"copy": "Browse eyeglasses",
|
| 1213 |
+
"route": "/eyeglasses"
|
| 1214 |
+
},
|
| 1215 |
+
{
|
| 1216 |
+
"copy": "Browse sunglasses",
|
| 1217 |
+
"route": "/sunglasses"
|
| 1218 |
+
}
|
| 1219 |
+
],
|
| 1220 |
+
"items": []
|
| 1221 |
+
},
|
| 1222 |
+
{
|
| 1223 |
+
"type": "list_single_image_inset_standard_list",
|
| 1224 |
+
"heading": "How the annual supply bonus works",
|
| 1225 |
+
"body": null,
|
| 1226 |
+
"image": "/static/img/page/4ada5031fc130956.jpg",
|
| 1227 |
+
"alt": "A hand holding a contact lens on the tip of the index finger against a blue background.",
|
| 1228 |
+
"ctas": [
|
| 1229 |
+
{
|
| 1230 |
+
"copy": "Browse eyeglasses",
|
| 1231 |
+
"route": "/eyeglasses"
|
| 1232 |
+
},
|
| 1233 |
+
{
|
| 1234 |
+
"copy": "Browse sunglasses",
|
| 1235 |
+
"route": "/sunglasses"
|
| 1236 |
+
}
|
| 1237 |
+
],
|
| 1238 |
+
"items": []
|
| 1239 |
+
},
|
| 1240 |
+
{
|
| 1241 |
+
"type": "messaging_single_image_inset",
|
| 1242 |
+
"heading": "When you\u2019re ready to find frames",
|
| 1243 |
+
"body": "Our eyeglasses and sunglasses are crafted from top-tier materials, and they come with scratch-resistant lenses that offer 100% UV protection.<br>",
|
| 1244 |
+
"image": "/static/img/page/67e77bd4d248cd59.jpg",
|
| 1245 |
+
"alt": "Two people wearing stylish eyeglasses, one with round gold frames and the other with tortoiseshell frames, posing together.",
|
| 1246 |
+
"ctas": [
|
| 1247 |
+
{
|
| 1248 |
+
"copy": "Peep our eyeglasses",
|
| 1249 |
+
"route": "/eyeglasses"
|
| 1250 |
+
},
|
| 1251 |
+
{
|
| 1252 |
+
"copy": "See our sunglasses",
|
| 1253 |
+
"route": "/sunglasses"
|
| 1254 |
+
}
|
| 1255 |
+
],
|
| 1256 |
+
"items": []
|
| 1257 |
+
},
|
| 1258 |
+
{
|
| 1259 |
+
"type": "messaging_single_image_inset",
|
| 1260 |
+
"heading": "Need a new prescription?",
|
| 1261 |
+
"body": "Use our Virtual Vision Test to renew your prescription for any brand (from home, using just your iPhone!) or book a comprehensive eye exam at one of our stores.<br>",
|
| 1262 |
+
"image": "/static/img/page/d6b33219699e13d4.jpg",
|
| 1263 |
+
"alt": "A phone displaying a virtual vision test next to books, an Acuvue Oasys box, and a Scout by Warby Parker contact lens case.",
|
| 1264 |
+
"ctas": [
|
| 1265 |
+
{
|
| 1266 |
+
"copy": "Renew from home",
|
| 1267 |
+
"route": "/virtual-vision-test"
|
| 1268 |
+
},
|
| 1269 |
+
{
|
| 1270 |
+
"copy": "Book an exam",
|
| 1271 |
+
"route": "/eye-exams"
|
| 1272 |
+
}
|
| 1273 |
+
],
|
| 1274 |
+
"items": []
|
| 1275 |
+
},
|
| 1276 |
+
{
|
| 1277 |
+
"type": "messaging_no_image",
|
| 1278 |
+
"heading": "Terms and Conditions",
|
| 1279 |
+
"body": "$5d",
|
| 1280 |
+
"image": null,
|
| 1281 |
+
"alt": null,
|
| 1282 |
+
"ctas": [],
|
| 1283 |
+
"items": []
|
| 1284 |
+
}
|
| 1285 |
+
]
|
| 1286 |
+
},
|
| 1287 |
+
"/eyeglasses/lenses": {
|
| 1288 |
+
"title": "Eyeglasses Lens Guide | Warby Parker | Warby Parker",
|
| 1289 |
+
"blocks": [
|
| 1290 |
+
{
|
| 1291 |
+
"type": "hero_no_image",
|
| 1292 |
+
"heading": "Our eyeglasses lens guide",
|
| 1293 |
+
"body": "Warby Parker lenses come with premium, protective coatings at no extra cost. Explore the options below, and choose the lens that\u2019s right for you.",
|
| 1294 |
+
"image": null,
|
| 1295 |
+
"alt": null,
|
| 1296 |
+
"ctas": [
|
| 1297 |
+
{
|
| 1298 |
+
"copy": "Shop all eyeglasses",
|
| 1299 |
+
"route": "/eyeglasses"
|
| 1300 |
+
}
|
| 1301 |
+
],
|
| 1302 |
+
"items": []
|
| 1303 |
+
},
|
| 1304 |
+
{
|
| 1305 |
+
"type": "list_single_image_inset_text_blocks",
|
| 1306 |
+
"heading": "Included with every pair, at no additional cost",
|
| 1307 |
+
"body": null,
|
| 1308 |
+
"image": "/static/img/page/91c7ed1a61de30d3.jpg",
|
| 1309 |
+
"alt": "Two pairs of eyeglasses, one with clear frames and the other with tortoiseshell frames, displayed against a light blue background.",
|
| 1310 |
+
"ctas": [],
|
| 1311 |
+
"items": []
|
| 1312 |
+
},
|
| 1313 |
+
{
|
| 1314 |
+
"type": "addons_quick_shop_carousel",
|
| 1315 |
+
"heading": "Shop frames by lens type",
|
| 1316 |
+
"body": null,
|
| 1317 |
+
"image": null,
|
| 1318 |
+
"alt": null,
|
| 1319 |
+
"ctas": [],
|
| 1320 |
+
"items": []
|
| 1321 |
+
},
|
| 1322 |
+
{
|
| 1323 |
+
"type": "messaging_no_image",
|
| 1324 |
+
"heading": "Prescription types",
|
| 1325 |
+
"body": "Whether you want to correct your near, far, or intermediate vision (or all three), we have lenses that meet your vision needs.",
|
| 1326 |
+
"image": null,
|
| 1327 |
+
"alt": null,
|
| 1328 |
+
"ctas": [],
|
| 1329 |
+
"items": []
|
| 1330 |
+
},
|
| 1331 |
+
{
|
| 1332 |
+
"type": "messaging_single_image_partial_bleed",
|
| 1333 |
+
"heading": "Single-vision",
|
| 1334 |
+
"body": "These lenses correct one field of vision\u2014near, intermediate, or distance. This option is what most people choose, and it\u2019s included in the price of our frames, starting at $95.",
|
| 1335 |
+
"image": "/static/img/page/a83382435d7dd04e.png",
|
| 1336 |
+
"alt": "The half of a Durand in Whiskey Tortoise frame.",
|
| 1337 |
+
"ctas": [
|
| 1338 |
+
{
|
| 1339 |
+
"copy": "Shop now",
|
| 1340 |
+
"route": "/eyeglasses?prices=95"
|
| 1341 |
+
}
|
| 1342 |
+
],
|
| 1343 |
+
"items": []
|
| 1344 |
+
},
|
| 1345 |
+
{
|
| 1346 |
+
"type": "messaging_single_image_partial_bleed",
|
| 1347 |
+
"heading": "Readers",
|
| 1348 |
+
"body": "These lenses offer simple magnification (up to +2.75) for, well, reading\u2014no prescription necessary. Our reading glasses start at $95, lenses included.",
|
| 1349 |
+
"image": "/static/img/page/e820e8ab1a31e252.png",
|
| 1350 |
+
"alt": "The half of an acetate Wilkie in Eastern Bluebird Fade frame on a white background.",
|
| 1351 |
+
"ctas": [
|
| 1352 |
+
{
|
| 1353 |
+
"copy": "Shop now",
|
| 1354 |
+
"route": "/eyeglasses?rxNeeds=good-for-readers"
|
| 1355 |
+
}
|
| 1356 |
+
],
|
| 1357 |
+
"items": []
|
| 1358 |
+
},
|
| 1359 |
+
{
|
| 1360 |
+
"type": "messaging_no_image",
|
| 1361 |
+
"heading": "Non-prescription",
|
| 1362 |
+
"body": "Get all the style and protection of our optical lenses, minus the vision correction. Non-prescription lenses come with our frames at no added cost.<div><br></div>",
|
| 1363 |
+
"image": null,
|
| 1364 |
+
"alt": null,
|
| 1365 |
+
"ctas": [],
|
| 1366 |
+
"items": []
|
| 1367 |
+
},
|
| 1368 |
+
{
|
| 1369 |
+
"type": "messaging_no_image",
|
| 1370 |
+
"heading": "Lens types",
|
| 1371 |
+
"body": "All our optical lenses, regardless of prescription, come with the benefits outlined above. You can also customize yours with one of these specialized lens types.",
|
| 1372 |
+
"image": null,
|
| 1373 |
+
"alt": null,
|
| 1374 |
+
"ctas": [],
|
| 1375 |
+
"items": []
|
| 1376 |
+
},
|
| 1377 |
+
{
|
| 1378 |
+
"type": "messaging_single_image_partial_bleed",
|
| 1379 |
+
"heading": "Blue-light-filtering",
|
| 1380 |
+
"body": "Blue light is a subset of light emitted by the sun, as well as by computer, phone, and other electronic screens. These lenses filter a higher percentage of blue light than our classic option and cost an additional $50.",
|
| 1381 |
+
"image": "/static/img/page/7b82920c11c1fe00.png",
|
| 1382 |
+
"alt": "The half of the acetate and geometric Tobias in Laguna Crystal frame with clear lenses and blue light-filtering lenses on a white background.",
|
| 1383 |
+
"ctas": [
|
| 1384 |
+
{
|
| 1385 |
+
"copy": "Shop now",
|
| 1386 |
+
"route": "/eyeglasses/blue-light"
|
| 1387 |
+
}
|
| 1388 |
+
],
|
| 1389 |
+
"items": []
|
| 1390 |
+
},
|
| 1391 |
+
{
|
| 1392 |
+
"type": "messaging_single_image_partial_bleed",
|
| 1393 |
+
"heading": "Anti-fatigue",
|
| 1394 |
+
"body": "This lens is designed to lessen eye strain caused by digital devices and other activities that require focus. It features a small boost of power that is seamlessly integrated into a single-vision lens, with no visible lines. You can add anti-fatigue lenses to any frame for $100.",
|
| 1395 |
+
"image": "/static/img/page/a25c4ec16e99527e.png",
|
| 1396 |
+
"alt": "The half of the round clear acetate Carlton in Crystal frame on a white background with distance and near markers indicators on the lenses as an anti-fatigue example.",
|
| 1397 |
+
"ctas": [
|
| 1398 |
+
{
|
| 1399 |
+
"copy": "Shop now",
|
| 1400 |
+
"route": "/eyeglasses/anti-fatigue"
|
| 1401 |
+
}
|
| 1402 |
+
],
|
| 1403 |
+
"items": []
|
| 1404 |
+
},
|
| 1405 |
+
{
|
| 1406 |
+
"type": "messaging_single_image_partial_bleed",
|
| 1407 |
+
"heading": "Light-responsive",
|
| 1408 |
+
"body": "<span>These lenses transition to grey, brown, green, or blue when exposed to UV rays. They also reduce glare and filter more blue light than our classic optical lenses. Signature light-responsive lenses become fully clear indoors and cost an additional $125. We also offer Transitions\u00ae XTRActive\u00ae lenses, which transition in the car. They're our darkest light-responsive lenses outdoors and maintain a very subtle tint indoors. Add them to any frame for an additional $200.</span>",
|
| 1409 |
+
"image": "/static/img/page/0d2458a37de1b188.jpg",
|
| 1410 |
+
"alt": "The half of the round and square acetate Haskell in Whiskey Tortoise frame on a white background with lenses fading from clear to solid grey in a loop showing a digital example for how light-responsive lenses transition from clear lenses inside to solid color lenses when they come in contact with UV rays from outside. ",
|
| 1411 |
+
"ctas": [
|
| 1412 |
+
{
|
| 1413 |
+
"copy": "Shop now",
|
| 1414 |
+
"route": "/eyeglasses/light-responsive"
|
| 1415 |
+
}
|
| 1416 |
+
],
|
| 1417 |
+
"items": []
|
| 1418 |
+
},
|
| 1419 |
+
{
|
| 1420 |
+
"type": "messaging_no_image",
|
| 1421 |
+
"heading": "Lens materials",
|
| 1422 |
+
"body": "We offer three high-quality options, so you can pick the one that\u2019s ideal for your prescription strength.",
|
| 1423 |
+
"image": null,
|
| 1424 |
+
"alt": null,
|
| 1425 |
+
"ctas": [],
|
| 1426 |
+
"items": []
|
| 1427 |
+
}
|
| 1428 |
+
]
|
| 1429 |
+
},
|
| 1430 |
+
"/sunglasses/lenses": {
|
| 1431 |
+
"title": "Sunglasses Lens Guide | Warby Parker | Warby Parker",
|
| 1432 |
+
"blocks": [
|
| 1433 |
+
{
|
| 1434 |
+
"type": "hero_no_image",
|
| 1435 |
+
"heading": "Sunglasses lens guide",
|
| 1436 |
+
"body": "Learn about the lenses you can choose for your new pair, from prescription types to materials\u2014the works!",
|
| 1437 |
+
"image": null,
|
| 1438 |
+
"alt": null,
|
| 1439 |
+
"ctas": [
|
| 1440 |
+
{
|
| 1441 |
+
"copy": "Shop all sunglasses",
|
| 1442 |
+
"route": "/sunglasses"
|
| 1443 |
+
}
|
| 1444 |
+
],
|
| 1445 |
+
"items": []
|
| 1446 |
+
},
|
| 1447 |
+
{
|
| 1448 |
+
"type": "list_single_image_inset_text_blocks",
|
| 1449 |
+
"heading": "Included with every pair, at no additional cost",
|
| 1450 |
+
"body": null,
|
| 1451 |
+
"image": "/static/img/page/5b88094433f8355a.jpg",
|
| 1452 |
+
"alt": "stack of bestselling prescription sunglasses in square, round, aviator, and cateye shapes",
|
| 1453 |
+
"ctas": [],
|
| 1454 |
+
"items": []
|
| 1455 |
+
},
|
| 1456 |
+
{
|
| 1457 |
+
"type": "addons_quick_shop_carousel",
|
| 1458 |
+
"heading": "Shop frames by lens type",
|
| 1459 |
+
"body": null,
|
| 1460 |
+
"image": null,
|
| 1461 |
+
"alt": null,
|
| 1462 |
+
"ctas": [],
|
| 1463 |
+
"items": []
|
| 1464 |
+
},
|
| 1465 |
+
{
|
| 1466 |
+
"type": "messaging_no_image",
|
| 1467 |
+
"heading": "Prescription types",
|
| 1468 |
+
"body": "We\u2019ve got options to meet a variety of vision needs",
|
| 1469 |
+
"image": null,
|
| 1470 |
+
"alt": null,
|
| 1471 |
+
"ctas": [],
|
| 1472 |
+
"items": []
|
| 1473 |
+
},
|
| 1474 |
+
{
|
| 1475 |
+
"type": "messaging_single_image_partial_bleed",
|
| 1476 |
+
"heading": "Single-vision",
|
| 1477 |
+
"body": "These prescription lenses correct one field of vision\u2014near, intermediate, or distance\u2014and start at $195, frame included.",
|
| 1478 |
+
"image": "/static/img/page/e8daf66c24747042.png",
|
| 1479 |
+
"alt": "The half of a Durand in Whiskey Tortoise frame.",
|
| 1480 |
+
"ctas": [
|
| 1481 |
+
{
|
| 1482 |
+
"copy": "Shop now",
|
| 1483 |
+
"route": "/sunglasses?prices=95"
|
| 1484 |
+
}
|
| 1485 |
+
],
|
| 1486 |
+
"items": []
|
| 1487 |
+
},
|
| 1488 |
+
{
|
| 1489 |
+
"type": "messaging_single_image_partial_bleed",
|
| 1490 |
+
"heading": "Signature progressives",
|
| 1491 |
+
"body": "These digital free-form progressive lenses provide seamless correction for reading, distance, and everything in between (so you don\u2019t need to switch between multiple pairs). If there\u2019s an \u201cADD\u201d value on your prescription, progressives may be right for you. Unlike bifocals or trifocals, progressives don\u2019t include a visible line between each power. Ours start at $425.",
|
| 1492 |
+
"image": "/static/img/page/aca47b70c7c8a469.png",
|
| 1493 |
+
"alt": "Half of the metal Anwar in Polish Gold frame with Standard progressives lenses indicating where distance, intermediate, and reading prescription fits in the round lens. ",
|
| 1494 |
+
"ctas": [
|
| 1495 |
+
{
|
| 1496 |
+
"copy": "Shop now",
|
| 1497 |
+
"route": "/eyeglasses/progressives"
|
| 1498 |
+
}
|
| 1499 |
+
],
|
| 1500 |
+
"items": []
|
| 1501 |
+
},
|
| 1502 |
+
{
|
| 1503 |
+
"type": "messaging_single_image_partial_bleed",
|
| 1504 |
+
"heading": "Precision progressives",
|
| 1505 |
+
"body": "If you\u2019re looking for superior visual quality, with added comfort, then these premium progressive lenses are a smart upgrade. Each pair is specially made using additional measurements\u200b\u200b to optimize your vision, reduce peripheral distortion, and provide a wider field of view. They start at $495.",
|
| 1506 |
+
"image": "/static/img/page/b396ca1f9fa74668.png",
|
| 1507 |
+
"alt": "Half of the metal Anwar in Polish Gold frame with a Precision progressive sunglasses lens indicating where distance, intermediate, and reading prescription is filled in the round lens.",
|
| 1508 |
+
"ctas": [
|
| 1509 |
+
{
|
| 1510 |
+
"copy": "Shop now",
|
| 1511 |
+
"route": "/precision-progressives"
|
| 1512 |
+
}
|
| 1513 |
+
],
|
| 1514 |
+
"items": []
|
| 1515 |
+
},
|
| 1516 |
+
{
|
| 1517 |
+
"type": "messaging_single_image_partial_bleed",
|
| 1518 |
+
"heading": "Readers",
|
| 1519 |
+
"body": "These lenses offer simple magnification (up to +2.75) for, well, reading\u2014no prescription necessary. Sunglasses with reading lenses start at $195.",
|
| 1520 |
+
"image": "/static/img/page/e0201d6c1b51ca28.png",
|
| 1521 |
+
"alt": "The half of an acetate Wilkie in Eastern Bluebird Fade frame on a white background.",
|
| 1522 |
+
"ctas": [
|
| 1523 |
+
{
|
| 1524 |
+
"copy": "Shop now",
|
| 1525 |
+
"route": "/sunglasses?rxNeeds=good-for-readers"
|
| 1526 |
+
}
|
| 1527 |
+
],
|
| 1528 |
+
"items": []
|
| 1529 |
+
},
|
| 1530 |
+
{
|
| 1531 |
+
"type": "messaging_no_image",
|
| 1532 |
+
"heading": "Non-prescription",
|
| 1533 |
+
"body": "These lenses offer style and protection with no vision correction. Most people choose this option when they\u2019re shopping for a new pair of everyday sunglasses. Non-prescription lenses are included in the price of our sunglasses.",
|
| 1534 |
+
"image": null,
|
| 1535 |
+
"alt": null,
|
| 1536 |
+
"ctas": [],
|
| 1537 |
+
"items": []
|
| 1538 |
+
},
|
| 1539 |
+
{
|
| 1540 |
+
"type": "messaging_no_image",
|
| 1541 |
+
"heading": "Lens types",
|
| 1542 |
+
"body": "Customize your sunglasses with our range of lens colors and finishes",
|
| 1543 |
+
"image": null,
|
| 1544 |
+
"alt": null,
|
| 1545 |
+
"ctas": [],
|
| 1546 |
+
"items": []
|
| 1547 |
+
},
|
| 1548 |
+
{
|
| 1549 |
+
"type": "messaging_single_image_partial_bleed",
|
| 1550 |
+
"heading": "Solid",
|
| 1551 |
+
"body": "Consistently colored from top to bottom, our solid lenses come in a glorious palette, from grey to green and beyond. When you order prescription sunglasses, you can choose between brown, green, grey, or blue lenses.",
|
| 1552 |
+
"image": "/static/img/page/314ab478fd4d32b6.jpg",
|
| 1553 |
+
"alt": "Half of a square acetate Barkley in Antique Shale Fade frame with solid green polarized lenses.",
|
| 1554 |
+
"ctas": [],
|
| 1555 |
+
"items": []
|
| 1556 |
+
},
|
| 1557 |
+
{
|
| 1558 |
+
"type": "messaging_single_image_partial_bleed",
|
| 1559 |
+
"heading": "Flash Mirrored",
|
| 1560 |
+
"body": "The mirrored surfaces cut down on the amount of light entering the eye (healthy) and keep things mysterious (stealthy). Find flash mirrored lenses in silver, blue, and rose gold.",
|
| 1561 |
+
"image": "/static/img/page/d6763febaf02a414.jpg",
|
| 1562 |
+
"alt": "Half for the round acetate Haskell in Crystal clear frames with Blue flash mirrored sunglasses lens. ",
|
| 1563 |
+
"ctas": [],
|
| 1564 |
+
"items": []
|
| 1565 |
+
},
|
| 1566 |
+
{
|
| 1567 |
+
"type": "messaging_single_image_partial_bleed",
|
| 1568 |
+
"heading": "Gradient",
|
| 1569 |
+
"body": "These lenses transition from one color at the top to another (or a lighter tint of the same) at the bottom. Pick from brown, green, grey, blue, or violet gradient lenses when you order prescription sunglasses.",
|
| 1570 |
+
"image": "/static/img/page/efa5dd1b51f92218.jpg",
|
| 1571 |
+
"alt": "Half of the square acetate Rhea in Truffle Tortoise frames with Grey gradient sunglasses lenses with dark grey on the top and Ombr\u00e9s to light grey on the bottom. ",
|
| 1572 |
+
"ctas": [],
|
| 1573 |
+
"items": []
|
| 1574 |
+
},
|
| 1575 |
+
{
|
| 1576 |
+
"type": "messaging_single_image_partial_bleed",
|
| 1577 |
+
"heading": "Tinted",
|
| 1578 |
+
"body": "If a subtle pop of color suits your style, we offer tinted lenses in your choice of blue, yellow, or rosy brown. While they\u2019re lighter-toned and less opaque than true sunglasses, our tinted lenses block 100% of UVA and UVB rays (and come with anti-reflective coating).",
|
| 1579 |
+
"image": "/static/img/page/bcd73d014fb92384.jpg",
|
| 1580 |
+
"alt": "Tortoiseshell aviator sunglasses with tinted lenses and a double bridge.",
|
| 1581 |
+
"ctas": [
|
| 1582 |
+
{
|
| 1583 |
+
"copy": "Shop now",
|
| 1584 |
+
"route": "/lenses/tinted"
|
| 1585 |
+
}
|
| 1586 |
+
],
|
| 1587 |
+
"items": []
|
| 1588 |
+
},
|
| 1589 |
+
{
|
| 1590 |
+
"type": "messaging_single_image_partial_bleed",
|
| 1591 |
+
"heading": "Performance Polarized",
|
| 1592 |
+
"body": "Our performance lenses feature advanced polarization to preserve depth perception, enhance contrast and clarity in varied environments, and reduce horizontal glare by up to 55%\u2014all without distorting digital screens. Customize any prescription pair with the color of your choice.<br><br><b>GREY<br>Benefits: </b>true color and glare reduction<br><b>Ideal for:</b> water and road<br><br><b>BROWN<br>Benefits: </b>enhanced contrast and depth<br><b>Ideal for: </b>field and fishing<br><br><b>ROSEWOOD<br>Benefits: </b>enhanced contrast and reduced fatigue<br><b>Ideal for: </b>trails and snow<br><br>Available in any pair of Warby Parker sunglasses <br><br>Non-prescription performance polarized lenses are automatically included in every Warby Parker Sport frame. You can add them to any other pair of sunglasses for an additional $65.",
|
| 1593 |
+
"image": "/static/img/page/9e6737f898ff537d.jpg",
|
| 1594 |
+
"alt": "Split screen images showing the same scene with different color filters: Grey, Brown, and Rosewood.",
|
| 1595 |
+
"ctas": [
|
| 1596 |
+
{
|
| 1597 |
+
"copy": "Shop now",
|
| 1598 |
+
"route": "/collections/sport-2026"
|
| 1599 |
+
}
|
| 1600 |
+
],
|
| 1601 |
+
"items": []
|
| 1602 |
+
},
|
| 1603 |
+
{
|
| 1604 |
+
"type": "messaging_no_image",
|
| 1605 |
+
"heading": "Lens materials",
|
| 1606 |
+
"body": "Find what\u2019s best for your prescription",
|
| 1607 |
+
"image": null,
|
| 1608 |
+
"alt": null,
|
| 1609 |
+
"ctas": [],
|
| 1610 |
+
"items": []
|
| 1611 |
+
}
|
| 1612 |
+
]
|
| 1613 |
+
},
|
| 1614 |
+
"/kids-eyeglasses": {
|
| 1615 |
+
"title": "Kids Eyeglasses | Durable Frames For Children | Warby Parker",
|
| 1616 |
+
"blocks": [
|
| 1617 |
+
{
|
| 1618 |
+
"type": "messaging_no_image",
|
| 1619 |
+
"heading": "Kids\u2019 Eyeglasses",
|
| 1620 |
+
"body": "Our children\u2019s eyeglasses start at $95, including prescription lenses with scratch-resistant and anti-reflective coatings. We\u2019ve also included flexible spring hinges for extra durability and comfort. Buy one prescription pair and get 20% off additional pairs\u2014plus get free shipping and free 30-day returns on every order.",
|
| 1621 |
+
"image": null,
|
| 1622 |
+
"alt": null,
|
| 1623 |
+
"ctas": [],
|
| 1624 |
+
"items": []
|
| 1625 |
+
}
|
| 1626 |
+
]
|
| 1627 |
+
},
|
| 1628 |
+
"/collections": {
|
| 1629 |
+
"title": "New Collections | Warby Parker",
|
| 1630 |
+
"blocks": [
|
| 1631 |
+
{
|
| 1632 |
+
"type": "hero_no_image",
|
| 1633 |
+
"heading": "New collections",
|
| 1634 |
+
"body": "On the lookout for new eyeglasses or sunglasses? Discover our freshest frames and latest debuts right here.",
|
| 1635 |
+
"image": null,
|
| 1636 |
+
"alt": null,
|
| 1637 |
+
"ctas": [],
|
| 1638 |
+
"items": []
|
| 1639 |
+
},
|
| 1640 |
+
{
|
| 1641 |
+
"type": "messaging_single_image_inset",
|
| 1642 |
+
"heading": "The Metal Edit",
|
| 1643 |
+
"body": "For our latest collection, a timeless eyewear material takes impressive new forms.<div><br></div>",
|
| 1644 |
+
"image": "/static/img/page/faefc6c44cd4f9e0.jpg",
|
| 1645 |
+
"alt": "Two pairs of glasses, one tortoise-shell and one black, are hanging and overlapping on a green background.",
|
| 1646 |
+
"ctas": [
|
| 1647 |
+
{
|
| 1648 |
+
"copy": "Shop the collection",
|
| 1649 |
+
"route": "/collections/metal-edit"
|
| 1650 |
+
}
|
| 1651 |
+
],
|
| 1652 |
+
"items": []
|
| 1653 |
+
},
|
| 1654 |
+
{
|
| 1655 |
+
"type": "messaging_single_image_inset",
|
| 1656 |
+
"heading": "Fall 2026",
|
| 1657 |
+
"body": "However you approach fall\u2019s fresh start, there\u2019s a new Warby Parker frame to match.<div><br></div>",
|
| 1658 |
+
"image": "/static/img/page/a0955941d6feb7b6.jpg",
|
| 1659 |
+
"alt": "Three pairs of glasses on a yellow surface with autumn leaves.",
|
| 1660 |
+
"ctas": [
|
| 1661 |
+
{
|
| 1662 |
+
"copy": "Shop the collection",
|
| 1663 |
+
"route": "/collections/fall-2026"
|
| 1664 |
+
}
|
| 1665 |
+
],
|
| 1666 |
+
"items": []
|
| 1667 |
+
},
|
| 1668 |
+
{
|
| 1669 |
+
"type": "messaging_single_image_inset",
|
| 1670 |
+
"heading": "Tortoise Color Block",
|
| 1671 |
+
"body": "With contrasting shades on the face front and temples, these frames reimagine some of our bestselling shapes.",
|
| 1672 |
+
"image": "/static/img/page/bb5cc5841516374e.jpg",
|
| 1673 |
+
"alt": "Close-up of a woman wearing oversized tortoiseshell sunglasses, laughing with hands covering her mouth.",
|
| 1674 |
+
"ctas": [
|
| 1675 |
+
{
|
| 1676 |
+
"copy": "Shop the collection",
|
| 1677 |
+
"route": "/collections/tortoise-color-block"
|
| 1678 |
+
}
|
| 1679 |
+
],
|
| 1680 |
+
"items": []
|
| 1681 |
+
},
|
| 1682 |
+
{
|
| 1683 |
+
"type": "messaging_single_image_inset",
|
| 1684 |
+
"heading": "Aero Series",
|
| 1685 |
+
"body": "These ultralight, ultrathin frames are engineered to a new standard of all-day comfort.",
|
| 1686 |
+
"image": "/static/img/page/ceb2b3bfd244eeba.jpg",
|
| 1687 |
+
"alt": "A pair of black eyeglasses with tortoise shell temples rests atop a pair of black sunglasses.",
|
| 1688 |
+
"ctas": [
|
| 1689 |
+
{
|
| 1690 |
+
"copy": "Shop the collection",
|
| 1691 |
+
"route": "/collections/aero"
|
| 1692 |
+
}
|
| 1693 |
+
],
|
| 1694 |
+
"items": []
|
| 1695 |
+
},
|
| 1696 |
+
{
|
| 1697 |
+
"type": "messaging_single_image_inset",
|
| 1698 |
+
"heading": "Summer 2026",
|
| 1699 |
+
"body": "Our latest release introduces a slate of new, sun-ready shapes and a refreshed palette.",
|
| 1700 |
+
"image": "/static/img/page/87236f52d42c8d35.jpg",
|
| 1701 |
+
"alt": "A pair of black eyeglasses with tortoise shell temples rests atop a pair of black sunglasses.",
|
| 1702 |
+
"ctas": [
|
| 1703 |
+
{
|
| 1704 |
+
"copy": "Shop the collection",
|
| 1705 |
+
"route": "/collections/summer-2026"
|
| 1706 |
+
}
|
| 1707 |
+
],
|
| 1708 |
+
"items": []
|
| 1709 |
+
},
|
| 1710 |
+
{
|
| 1711 |
+
"type": "messaging_single_image_inset",
|
| 1712 |
+
"heading": "Tratto Collection",
|
| 1713 |
+
"body": "In a show of Italian craftsmanship, hand-laminated tortoise end pieces bring a touch of timeless texture to each shape.",
|
| 1714 |
+
"image": "/static/img/page/2264bb68084eb9c2.jpg",
|
| 1715 |
+
"alt": "A bald man carrying a woman on his back. Both are wearing sunglasses and smiling.",
|
| 1716 |
+
"ctas": [
|
| 1717 |
+
{
|
| 1718 |
+
"copy": "Shop now",
|
| 1719 |
+
"route": "/collections/tratto-collection"
|
| 1720 |
+
}
|
| 1721 |
+
],
|
| 1722 |
+
"items": []
|
| 1723 |
+
},
|
| 1724 |
+
{
|
| 1725 |
+
"type": "messaging_single_image_inset",
|
| 1726 |
+
"heading": "Warby Parker Sport",
|
| 1727 |
+
"body": "Introducing ultra-lightweight, durable eyewear that\u2019s built to perform\u2014but designed to be worn every day and everywhere.",
|
| 1728 |
+
"image": "/static/img/page/efe6dc2ee413c7d0.jpg",
|
| 1729 |
+
"alt": "A bald man carrying a woman on his back. Both are wearing sunglasses and smiling.",
|
| 1730 |
+
"ctas": [
|
| 1731 |
+
{
|
| 1732 |
+
"copy": "Shop the collection",
|
| 1733 |
+
"route": "/collections/sport-2026"
|
| 1734 |
+
}
|
| 1735 |
+
],
|
| 1736 |
+
"items": []
|
| 1737 |
+
},
|
| 1738 |
+
{
|
| 1739 |
+
"type": "messaging_single_image_inset",
|
| 1740 |
+
"heading": "Spring 2026",
|
| 1741 |
+
"body": "Our final drop of the season introduces square pairs with casual charisma, plus perennial bestsellers in a bounty of pinks and greens.",
|
| 1742 |
+
"image": "/static/img/page/8a7f882b14870535.jpg",
|
| 1743 |
+
"alt": "A young man and woman wearing glasses. The man has brown hair and glasses with tortoiseshell frames. The woman has dark skin, dark hair, and light pink glasses.",
|
| 1744 |
+
"ctas": [
|
| 1745 |
+
{
|
| 1746 |
+
"copy": "Shop the collection",
|
| 1747 |
+
"route": "/collections/spring-2026"
|
| 1748 |
+
}
|
| 1749 |
+
],
|
| 1750 |
+
"items": []
|
| 1751 |
+
},
|
| 1752 |
+
{
|
| 1753 |
+
"type": "messaging_single_image_inset",
|
| 1754 |
+
"heading": "The New Deco",
|
| 1755 |
+
"body": "With richly hued acetate and radiant, polished metal, our latest collection is a quiet nod to the era it\u2019s named after.",
|
| 1756 |
+
"image": "/static/img/page/31d04461e4702452.jpg",
|
| 1757 |
+
"alt": "Three pairs of stylish eyeglasses with tortoise shell frames are displayed on a silver tray.",
|
| 1758 |
+
"ctas": [
|
| 1759 |
+
{
|
| 1760 |
+
"copy": "Shop the collection",
|
| 1761 |
+
"route": "/collections/the-new-deco"
|
| 1762 |
+
}
|
| 1763 |
+
],
|
| 1764 |
+
"items": []
|
| 1765 |
+
},
|
| 1766 |
+
{
|
| 1767 |
+
"type": "messaging_single_image_inset",
|
| 1768 |
+
"heading": "Iris Edition",
|
| 1769 |
+
"body": "An inlaid rim of acetate outlines (and accentuates) each lens in our latest collection of mixed-material eyewear.",
|
| 1770 |
+
"image": "/static/img/page/b5fa6f74905f6a43.jpg",
|
| 1771 |
+
"alt": "Close-up of eyeglasses with silver frames and clear lenses against a blue background.",
|
| 1772 |
+
"ctas": [
|
| 1773 |
+
{
|
| 1774 |
+
"copy": "Shop now",
|
| 1775 |
+
"route": "/collections/iris-edition"
|
| 1776 |
+
}
|
| 1777 |
+
],
|
| 1778 |
+
"items": []
|
| 1779 |
+
},
|
| 1780 |
+
{
|
| 1781 |
+
"type": "messaging_single_image_inset",
|
| 1782 |
+
"heading": "Winter 2025",
|
| 1783 |
+
"body": "Introducing brand-new shapes in a cozy color palette\u2014and forever bestsellers in fresh hues.",
|
| 1784 |
+
"image": "/static/img/page/aa3b1ed8ab4f25c3.jpg",
|
| 1785 |
+
"alt": "Clear Warby Parker glasses resting on the top edge of a brown hardcover book.",
|
| 1786 |
+
"ctas": [
|
| 1787 |
+
{
|
| 1788 |
+
"copy": "Shop the collection",
|
| 1789 |
+
"route": "/collections/winter-2025"
|
| 1790 |
+
}
|
| 1791 |
+
],
|
| 1792 |
+
"items": []
|
| 1793 |
+
},
|
| 1794 |
+
{
|
| 1795 |
+
"type": "messaging_single_image_inset",
|
| 1796 |
+
"heading": "Mosaic Collection",
|
| 1797 |
+
"body": "Each frame in our new slate of color-blocked eyewear blends three to four distinct hues into an artfully balanced composition.",
|
| 1798 |
+
"image": "/static/img/page/9c374af1154aee5e.jpg",
|
| 1799 |
+
"alt": "Tortoiseshell eyeglasses resting on a white surface with blue and orange blocks.",
|
| 1800 |
+
"ctas": [
|
| 1801 |
+
{
|
| 1802 |
+
"copy": "Shop the collection",
|
| 1803 |
+
"route": "/collections/mosaic-collection"
|
| 1804 |
+
}
|
| 1805 |
+
],
|
| 1806 |
+
"items": []
|
| 1807 |
+
},
|
| 1808 |
+
{
|
| 1809 |
+
"type": "messaging_single_image_inset",
|
| 1810 |
+
"heading": "Strato Series",
|
| 1811 |
+
"body": "Introducing our latest Italian-made frames, crafted from translucent acetate and striated stainless steel.<div><br></div>",
|
| 1812 |
+
"image": "/static/img/page/e58fe866ec2b37a2.jpg",
|
| 1813 |
+
"alt": "Clear Warby Parker glasses resting on the top edge of a brown hardcover book.",
|
| 1814 |
+
"ctas": [
|
| 1815 |
+
{
|
| 1816 |
+
"copy": "Shop the collection",
|
| 1817 |
+
"route": "/collections/strato-series"
|
| 1818 |
+
}
|
| 1819 |
+
],
|
| 1820 |
+
"items": []
|
| 1821 |
+
},
|
| 1822 |
+
{
|
| 1823 |
+
"type": "messaging_single_image_inset",
|
| 1824 |
+
"heading": "Arch Manning",
|
| 1825 |
+
"body": "College football quarterback (and lifelong glasses wearer) Arch Manning is joining Team Warby.",
|
| 1826 |
+
"image": "/static/img/page/f6861f4ee4d2d33e.jpg",
|
| 1827 |
+
"alt": "Clear Warby Parker glasses resting on the top edge of a brown hardcover book.",
|
| 1828 |
+
"ctas": [
|
| 1829 |
+
{
|
| 1830 |
+
"copy": "Shop the collection",
|
| 1831 |
+
"route": "/collections/arch-manning"
|
| 1832 |
+
}
|
| 1833 |
+
],
|
| 1834 |
+
"items": []
|
| 1835 |
+
},
|
| 1836 |
+
{
|
| 1837 |
+
"type": "messaging_single_image_inset",
|
| 1838 |
+
"heading": "Fall 2025",
|
| 1839 |
+
"body": "The same qualities that make a good book\u2014rich details, dramatic arcs, a strong point of view\u2014define the season\u2019s newest frames.",
|
| 1840 |
+
"image": "/static/img/page/f99b1c8ca588a297.png",
|
| 1841 |
+
"alt": "Man in sunglasses and woman in large brown glasses sitting closely outdoors.",
|
| 1842 |
+
"ctas": [
|
| 1843 |
+
{
|
| 1844 |
+
"copy": "Shop the collection",
|
| 1845 |
+
"route": "/collections/fall-2025"
|
| 1846 |
+
}
|
| 1847 |
+
],
|
| 1848 |
+
"items": []
|
| 1849 |
+
},
|
| 1850 |
+
{
|
| 1851 |
+
"type": "messaging_single_image_inset",
|
| 1852 |
+
"heading": "Tortoise Color Block",
|
| 1853 |
+
"body": "With one colorway on the face front and another on the temples, these frames contrast tortoiseshells and clean, crystal shades.",
|
| 1854 |
+
"image": "/static/img/page/e8073c1cdba8f7eb.jpg",
|
| 1855 |
+
"alt": "man wearing tortoiseshell eyeglasses ",
|
| 1856 |
+
"ctas": [
|
| 1857 |
+
{
|
| 1858 |
+
"copy": "Shop the collection",
|
| 1859 |
+
"route": "/collections/tortoise-color-block"
|
| 1860 |
+
}
|
| 1861 |
+
],
|
| 1862 |
+
"items": []
|
| 1863 |
+
},
|
| 1864 |
+
{
|
| 1865 |
+
"type": "messaging_single_image_inset",
|
| 1866 |
+
"heading": "Summer 2025",
|
| 1867 |
+
"body": "New shapes and bestsellers are basking in a fresh, sun-ready color palette",
|
| 1868 |
+
"image": "/static/img/page/4e02c93a4586b326.jpg",
|
| 1869 |
+
"alt": "man and woman wearing eyeglasses and sunglasses in summertime.",
|
| 1870 |
+
"ctas": [
|
| 1871 |
+
{
|
| 1872 |
+
"copy": "Shop the collection",
|
| 1873 |
+
"route": "/collections/summer-2025"
|
| 1874 |
+
}
|
| 1875 |
+
],
|
| 1876 |
+
"items": []
|
| 1877 |
+
},
|
| 1878 |
+
{
|
| 1879 |
+
"type": "messaging_single_image_inset",
|
| 1880 |
+
"heading": "Warby Parker x Market Studios",
|
| 1881 |
+
"body": "Uncommon creativity meets expert craftsmanship in our collaboration with Market Studios. Together, we created this new, \u201990s-inspired silhouette.",
|
| 1882 |
+
"image": "/static/img/page/03c493b664b23a34.jpg",
|
| 1883 |
+
"alt": "Market Studios and Warby Parker collaboration featuring RZA",
|
| 1884 |
+
"ctas": [
|
| 1885 |
+
{
|
| 1886 |
+
"copy": "Shop the collection",
|
| 1887 |
+
"route": "/collections/market"
|
| 1888 |
+
}
|
| 1889 |
+
],
|
| 1890 |
+
"items": []
|
| 1891 |
+
},
|
| 1892 |
+
{
|
| 1893 |
+
"type": "messaging_single_image_inset",
|
| 1894 |
+
"heading": "New Classics",
|
| 1895 |
+
"body": "Meet Italian-crafted, mixed-material styles that blend modern with midcentury.",
|
| 1896 |
+
"image": "/static/img/page/38a718a50f83c81d.jpg",
|
| 1897 |
+
"alt": "Sunglasses on an open book, with blackberries adding a fresh, summery touch.",
|
| 1898 |
+
"ctas": [
|
| 1899 |
+
{
|
| 1900 |
+
"copy": "Shop the collection",
|
| 1901 |
+
"route": "/collections/new-classics"
|
| 1902 |
+
}
|
| 1903 |
+
],
|
| 1904 |
+
"items": []
|
| 1905 |
+
},
|
| 1906 |
+
{
|
| 1907 |
+
"type": "messaging_single_image_inset",
|
| 1908 |
+
"heading": "Everywhere Series",
|
| 1909 |
+
"body": "We\u2019ve added new shapes and colors to our most lightweight, made-for-movement collection",
|
| 1910 |
+
"image": "/static/img/page/70f0c73cd8ce51e6.jpg",
|
| 1911 |
+
"alt": "Two eyeglasses & one sunglass with green background",
|
| 1912 |
+
"ctas": [
|
| 1913 |
+
{
|
| 1914 |
+
"copy": "Shop the collection",
|
| 1915 |
+
"route": "/collections/everywhere-series"
|
| 1916 |
+
}
|
| 1917 |
+
],
|
| 1918 |
+
"items": []
|
| 1919 |
+
},
|
| 1920 |
+
{
|
| 1921 |
+
"type": "v3_messaging_single_image_inset",
|
| 1922 |
+
"heading": "The<i> ultimate </i>Virtual Try-On is in our app",
|
| 1923 |
+
"body": null,
|
| 1924 |
+
"image": "/static/img/page/fb02ba09a868ae02.jpg",
|
| 1925 |
+
"alt": "Person using VTO from warby parker on a device.",
|
| 1926 |
+
"ctas": [
|
| 1927 |
+
{
|
| 1928 |
+
"copy": "Download our app",
|
| 1929 |
+
"route": "/ios-app"
|
| 1930 |
+
}
|
| 1931 |
+
],
|
| 1932 |
+
"items": []
|
| 1933 |
+
},
|
| 1934 |
+
{
|
| 1935 |
+
"type": "hero_no_image",
|
| 1936 |
+
"heading": "New Collections | Warby Parker",
|
| 1937 |
+
"body": "On the lookout for new eyeglasses or sunglasses? Discover our freshest eyeglasses and sunglasses and latest debuts right here.",
|
| 1938 |
+
"image": null,
|
| 1939 |
+
"alt": null,
|
| 1940 |
+
"ctas": [],
|
| 1941 |
+
"items": []
|
| 1942 |
+
},
|
| 1943 |
+
{
|
| 1944 |
+
"type": "recirculation_no_image",
|
| 1945 |
+
"heading": "Want to see more?",
|
| 1946 |
+
"body": null,
|
| 1947 |
+
"image": null,
|
| 1948 |
+
"alt": "Girl Posing with Head Resting on Hand",
|
| 1949 |
+
"ctas": [
|
| 1950 |
+
{
|
| 1951 |
+
"copy": "Shop eyeglasses",
|
| 1952 |
+
"route": "/eyeglasses"
|
| 1953 |
+
},
|
| 1954 |
+
{
|
| 1955 |
+
"copy": "Shop sunglasses",
|
| 1956 |
+
"route": "/sunglasses"
|
| 1957 |
+
},
|
| 1958 |
+
{
|
| 1959 |
+
"copy": "Start with a style quiz",
|
| 1960 |
+
"route": "/quiz/frames"
|
| 1961 |
+
}
|
| 1962 |
+
],
|
| 1963 |
+
"items": []
|
| 1964 |
+
}
|
| 1965 |
+
]
|
| 1966 |
+
},
|
| 1967 |
+
"/eye-exams": {
|
| 1968 |
+
"title": "Eye Exams | Warby Parker",
|
| 1969 |
+
"blocks": [
|
| 1970 |
+
{
|
| 1971 |
+
"type": "messaging_single_image_inset",
|
| 1972 |
+
"heading": "Need to get your eyes checked?",
|
| 1973 |
+
"body": "We\u2019re here to make quality, holistic vision care accessible and convenient\u2014that\u2019s why most Warby Parker locations offer comprehensive eye exams (including an eye health check and prescriptions for glasses and contacts).",
|
| 1974 |
+
"image": "/static/img/page/dbe45096bd98d1d3.jpg",
|
| 1975 |
+
"alt": "Person undergoing an eye exam with a phoropter, adjusted by an optometrist, set against a blue background.",
|
| 1976 |
+
"ctas": [
|
| 1977 |
+
{
|
| 1978 |
+
"copy": "Book an eye exam",
|
| 1979 |
+
"route": "/retail"
|
| 1980 |
+
}
|
| 1981 |
+
],
|
| 1982 |
+
"items": []
|
| 1983 |
+
},
|
| 1984 |
+
{
|
| 1985 |
+
"type": "messaging_no_image",
|
| 1986 |
+
"heading": "We recommend an annual exam to help evaluate your vision, examine your eye health, and screen for other health issues. Plus, it gives you an opportunity to ask an expert optometrist any eye-related questions.",
|
| 1987 |
+
"body": null,
|
| 1988 |
+
"image": null,
|
| 1989 |
+
"alt": null,
|
| 1990 |
+
"ctas": [],
|
| 1991 |
+
"items": []
|
| 1992 |
+
},
|
| 1993 |
+
{
|
| 1994 |
+
"type": "messaging_single_image_inset",
|
| 1995 |
+
"heading": "Top-notch optometrists",
|
| 1996 |
+
"body": "Our eye doctors combine best-in-class expertise with a relationship-driven, patient-first approach.",
|
| 1997 |
+
"image": "/static/img/page/bbdbfd7fe65b3554.jpg",
|
| 1998 |
+
"alt": "Optometrists wearing glasses and smiling at the camera.",
|
| 1999 |
+
"ctas": [],
|
| 2000 |
+
"items": []
|
| 2001 |
+
},
|
| 2002 |
+
{
|
| 2003 |
+
"type": "messaging_single_image_inset",
|
| 2004 |
+
"heading": "Your spot for contacts",
|
| 2005 |
+
"body": "Contact lens exams involve an additional set of tests and fittings, which can be performed alongside a comprehensive eye exam at most Warby Parker locations.\u00b9 Our optometrists will work with you to ensure that you\u2019re matched with the contacts that work best for your eyes.<div><br></div><div>We carry all the top brands, including Acuvue, Biofinity, and DAILIES. Plus, whichever contacts you buy, you\u2019ll get 20% off your first order.</div>",
|
| 2006 |
+
"image": "/static/img/page/ddd3df6d5c13b582.jpg",
|
| 2007 |
+
"alt": "Cascade of contact lenses boxes. From top to bottom: Acuvue Oasys, Biofinity, Scout, Acuvue Moist.",
|
| 2008 |
+
"ctas": [],
|
| 2009 |
+
"items": []
|
| 2010 |
+
},
|
| 2011 |
+
{
|
| 2012 |
+
"type": "messaging_single_image_inset",
|
| 2013 |
+
"heading": "Rather renew your prescription from home?",
|
| 2014 |
+
"body": "With our Virtual Vision Test app, you can renew your current eyeglasses or contacts prescription from home\u2014all you need is 10 minutes and an iPhone.<sup>2</sup>",
|
| 2015 |
+
"image": "/static/img/page/b0239a7c3bf2cb26.jpg",
|
| 2016 |
+
"alt": "Virtual Vision Test displayed on a smartphone with a plant and blue books behind on top of a table.",
|
| 2017 |
+
"ctas": [],
|
| 2018 |
+
"items": []
|
| 2019 |
+
}
|
| 2020 |
+
]
|
| 2021 |
+
},
|
| 2022 |
+
"/pupils-project": {
|
| 2023 |
+
"title": "Pupils Project | Warby Parker",
|
| 2024 |
+
"blocks": [
|
| 2025 |
+
{
|
| 2026 |
+
"type": "hero_single_image_full_width",
|
| 2027 |
+
"heading": "All about Pupils Project",
|
| 2028 |
+
"body": "In 2015 we expanded our Buy a Pair, Give a Pair program with the creation of Pupils Project. Through this school-based vision program, we work with local organizations and government agencies to give free vision screenings, eye exams, and glasses to schoolchildren in the United States\u2014for many of whom this is their first pair.",
|
| 2029 |
+
"image": "/static/img/page/0a1ff81012998f24.jpg",
|
| 2030 |
+
"alt": "Little kid smiling while holding a children's book",
|
| 2031 |
+
"ctas": [],
|
| 2032 |
+
"items": []
|
| 2033 |
+
},
|
| 2034 |
+
{
|
| 2035 |
+
"type": "messaging_single_image_partial_bleed",
|
| 2036 |
+
"heading": "How it works",
|
| 2037 |
+
"body": "We partner with a number of organizations and local government agencies to conduct vision screenings and eye exams right in the students\u2019 classrooms. This model helps eliminate barriers to access by providing free prescription glasses and meeting children at school, where teachers are often the first to spot vision issues.\\n<br></br>\\nOn our side, we provide prescription glasses, designed by our very own team, specifically for these students. Everyone (at every age!) deserves to feel comfortable and confident in their glasses, so we offer over 100 options to choose from.",
|
| 2038 |
+
"image": "/static/img/page/46b03b6dceec3ab2.jpg",
|
| 2039 |
+
"alt": "Child with a phoropter during an eye exam.",
|
| 2040 |
+
"ctas": [],
|
| 2041 |
+
"items": []
|
| 2042 |
+
},
|
| 2043 |
+
{
|
| 2044 |
+
"type": "messaging_no_image",
|
| 2045 |
+
"heading": "To date, Pupils Project has distributed over 350,000 pairs (and counting!) to students across the country, from Boston to the Bay Area\u2014and many cities in between.",
|
| 2046 |
+
"body": "Overall, over 20 million pairs of glasses have been distributed worldwide through our Buy a Pair, Give a Pair program.",
|
| 2047 |
+
"image": null,
|
| 2048 |
+
"alt": null,
|
| 2049 |
+
"ctas": [],
|
| 2050 |
+
"items": []
|
| 2051 |
+
},
|
| 2052 |
+
{
|
| 2053 |
+
"type": "messaging_single_image_partial_bleed",
|
| 2054 |
+
"heading": "Partnering for good",
|
| 2055 |
+
"body": "As part of our Pupils Project program in Baltimore, our partners at Johns Hopkins University spent years studying the impact of school-based vision interventions on academic outcomes\u2014essentially, the effect glasses might have on a student's performance in school. This is a topic that had never been studied in a rigorous academic setting before, and we were proud to partner with Hopkins to provide the glasses for this first-of-its-kind work.<br></br>The study, which was published in Journal of the American Medical Association (JAMA) Ophthalmology in 2021, found that reading scores increased significantly for students who got glasses\u2014and there was also significant improvement in math for students in elementary grades. The improvements were most striking for girls, special education students, and students who had been among the lowest performing.",
|
| 2056 |
+
"image": "/static/img/page/24191782bba84e64.jpg",
|
| 2057 |
+
"alt": "Little kid wearing their eyeglasses",
|
| 2058 |
+
"ctas": [],
|
| 2059 |
+
"items": []
|
| 2060 |
+
},
|
| 2061 |
+
{
|
| 2062 |
+
"type": "messaging_single_image_partial_bleed",
|
| 2063 |
+
"heading": null,
|
| 2064 |
+
"body": "<b>The overall gains for students who received glasses were equivalent to adding two to four months of education onto the school year;</b> for students in the lowest quartile or participating in special education, wearing glasses had an impact that equated to four to six months of additional learning. In comparison to other widely used educational interventions, the impact of eyeglasses is larger than that measured for providing students with computers, extending the school day, or attending urban charter schools. For students performing in the lowest quartile at baseline and those in special education, the impact from eyeglasses was even more powerful than tutoring.",
|
| 2065 |
+
"image": "/static/img/page/9097786fb18b6a1e.jpg",
|
| 2066 |
+
"alt": "Child with a marker wearing glasses writing into a board.",
|
| 2067 |
+
"ctas": [],
|
| 2068 |
+
"items": []
|
| 2069 |
+
},
|
| 2070 |
+
{
|
| 2071 |
+
"type": "messaging_no_image",
|
| 2072 |
+
"heading": "Our ultimate goal is for every student in the country to have the glasses they need to succeed in school and life.",
|
| 2073 |
+
"body": "We\u2019re constantly exploring ways to bring Pupils Project to new cities and partnerships. Reach out to pupilsproject@warbyparker.com if you\u2019re interested in collaborating.",
|
| 2074 |
+
"image": null,
|
| 2075 |
+
"alt": null,
|
| 2076 |
+
"ctas": [],
|
| 2077 |
+
"items": []
|
| 2078 |
+
}
|
| 2079 |
+
]
|
| 2080 |
+
},
|
| 2081 |
+
"/precision-progressives": {
|
| 2082 |
+
"title": "Precision Progressives | Warby Parker",
|
| 2083 |
+
"blocks": [
|
| 2084 |
+
{
|
| 2085 |
+
"type": "hero_single_image_full_width",
|
| 2086 |
+
"heading": "Precision progressives",
|
| 2087 |
+
"body": "Just like the name suggests, these premium progressive lenses offer more personalization\u2014each pair is made using your prescription, frame choice, and points of measure\u2014than our signature progressives. This results in optimized vision, reduced peripheral distortion, and a wider field of view.",
|
| 2088 |
+
"image": "/static/img/page/e9731d6af1b509dc.png",
|
| 2089 |
+
"alt": "Stack of eyeglasses against a neutral background.",
|
| 2090 |
+
"ctas": [
|
| 2091 |
+
{
|
| 2092 |
+
"copy": "Book an eye exam",
|
| 2093 |
+
"route": "/appointments/eye-exams/booking"
|
| 2094 |
+
}
|
| 2095 |
+
],
|
| 2096 |
+
"items": []
|
| 2097 |
+
},
|
| 2098 |
+
{
|
| 2099 |
+
"type": "messaging_no_image",
|
| 2100 |
+
"heading": "Signature progressives vs. precision progressives",
|
| 2101 |
+
"body": "Both options provide seamless near, intermediate, and distance vision correction in one lens, but they offer different features and levels of personalization.",
|
| 2102 |
+
"image": null,
|
| 2103 |
+
"alt": null,
|
| 2104 |
+
"ctas": [],
|
| 2105 |
+
"items": []
|
| 2106 |
+
},
|
| 2107 |
+
{
|
| 2108 |
+
"type": "messaging_no_image",
|
| 2109 |
+
"heading": "Check out our most popular progressive styles",
|
| 2110 |
+
"body": null,
|
| 2111 |
+
"image": null,
|
| 2112 |
+
"alt": null,
|
| 2113 |
+
"ctas": [
|
| 2114 |
+
{
|
| 2115 |
+
"copy": "Shop sunglasses",
|
| 2116 |
+
"route": "/sunglasses"
|
| 2117 |
+
}
|
| 2118 |
+
],
|
| 2119 |
+
"items": []
|
| 2120 |
+
},
|
| 2121 |
+
{
|
| 2122 |
+
"type": "hero_single_image_full_width",
|
| 2123 |
+
"heading": "Easy, stress-free shopping",
|
| 2124 |
+
"body": "We have a 30-day, hassle-free return or exchange policy and a six-month, no-scratch guarantee for our lenses.",
|
| 2125 |
+
"image": "/static/img/page/ecf72da03dda4539.png",
|
| 2126 |
+
"alt": "Gold oval eyeglasses with tortoiseshell arms, standing upright against a light blue background, casting a shadow.",
|
| 2127 |
+
"ctas": [],
|
| 2128 |
+
"items": []
|
| 2129 |
+
}
|
| 2130 |
+
]
|
| 2131 |
+
}
|
| 2132 |
+
}
|
tasks/warbyparker/solution/site/implementation/clone/data/prose-pages.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
tasks/warbyparker/solution/site/implementation/clone/data/stores.py
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""Retail stores. The first three are source-observed on /my-account
|
| 2 |
+
("Your nearest stores" carousel); the remainder are deterministic local seed data
|
| 3 |
+
marked `inferred` in scope/claims.jsonl so the locator and booking flow work."""
|
| 4 |
+
|
| 5 |
+
STORES = [
|
| 6 |
+
{"slug": "silver-lake", "code": "RSLK", "name": "Silver Lake",
|
| 7 |
+
"address": "3916 W. Sunset Blvd.", "city": "Los Angeles", "state": "CA",
|
| 8 |
+
"zip": "90029", "miles": 3.2, "availability": "today", "retinal": True,
|
| 9 |
+
"source": "observed"},
|
| 10 |
+
{"slug": "glendale", "code": "RGLN", "name": "Glendale",
|
| 11 |
+
"address": "232 S. Brand Blvd.", "city": "Glendale", "state": "CA",
|
| 12 |
+
"zip": "91204", "miles": 5.8, "availability": "tomorrow", "retinal": True,
|
| 13 |
+
"source": "observed"},
|
| 14 |
+
{"slug": "west-3rd-st", "code": "RVAN", "name": "West 3rd St.",
|
| 15 |
+
"address": "8129 W. 3rd St.", "city": "Los Angeles", "state": "CA",
|
| 16 |
+
"zip": "90048", "miles": 7.3, "availability": "today", "retinal": True,
|
| 17 |
+
"source": "observed"},
|
| 18 |
+
{"slug": "pasadena", "code": "RPAS", "name": "Pasadena",
|
| 19 |
+
"address": "45 S. Fair Oaks Ave.", "city": "Pasadena", "state": "CA",
|
| 20 |
+
"zip": "91105", "miles": 9.1, "availability": "tomorrow", "retinal": True,
|
| 21 |
+
"source": "inferred"},
|
| 22 |
+
{"slug": "santa-monica", "code": "RSMO", "name": "Santa Monica",
|
| 23 |
+
"address": "1327 Third Street Promenade", "city": "Santa Monica", "state": "CA",
|
| 24 |
+
"zip": "90401", "miles": 12.4, "availability": "today", "retinal": False,
|
| 25 |
+
"source": "inferred"},
|
| 26 |
+
{"slug": "the-grove", "code": "RGRV", "name": "The Grove",
|
| 27 |
+
"address": "189 The Grove Dr.", "city": "Los Angeles", "state": "CA",
|
| 28 |
+
"zip": "90036", "miles": 7.9, "availability": "today", "retinal": True,
|
| 29 |
+
"source": "inferred"},
|
| 30 |
+
]
|
| 31 |
+
BY_SLUG = {s["slug"]: s for s in STORES}
|
| 32 |
+
|
| 33 |
+
SLOTS = ["9:20 AM", "10:40 AM", "12:00 PM", "1:20 PM", "2:40 PM", "4:00 PM", "5:20 PM"]
|
| 34 |
+
|
| 35 |
+
|
| 36 |
+
def search(q: str):
|
| 37 |
+
if not q:
|
| 38 |
+
return STORES
|
| 39 |
+
q = q.strip().lower()
|
| 40 |
+
return [s for s in STORES
|
| 41 |
+
if q in s["name"].lower() or q in s["city"].lower() or q in s["zip"]]
|
| 42 |
+
|
| 43 |
+
|
| 44 |
+
# Source-observed on /appointments/eye-exams/booking: the flow opens by asking
|
| 45 |
+
# which exam you want, with these names, prices, durations and copy.
|
| 46 |
+
EXAM_TYPES = [
|
| 47 |
+
{"slug": "glasses", "name": "Glasses exam", "price": "$85*",
|
| 48 |
+
"duration": "20\u201330 minutes",
|
| 49 |
+
"blurb": "Includes a comprehensive eye health check and an up-to-date "
|
| 50 |
+
"glasses prescription"},
|
| 51 |
+
{"slug": "glasses-and-contacts", "name": "Glasses and contacts exam",
|
| 52 |
+
"price": "$140\u2013$160*", "duration": "30\u201340 minutes",
|
| 53 |
+
"blurb": "Includes a comprehensive eye health check and new prescriptions "
|
| 54 |
+
"for glasses and contacts"},
|
| 55 |
+
]
|
| 56 |
+
EXAM_BY_SLUG = {e["slug"]: e for e in EXAM_TYPES}
|
| 57 |
+
EXAM_NOTE = ("*Exam prices vary depending on location. Payment is due at the time "
|
| 58 |
+
"of the exam. Some locations offer optional services for an "
|
| 59 |
+
"additional cost.")
|
tasks/warbyparker/solution/site/implementation/clone/data/variant-widths.json
ADDED
|
@@ -0,0 +1,456 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
| 5 |
+
"esme-sun-sbf-crystal": [
|
| 6 |
+
"medium",
|
| 7 |
+
"wide"
|
| 8 |
+
],
|
| 9 |
+
"esme-sun-sbf-sesame-tortoise": [
|
| 10 |
+
"medium",
|
| 11 |
+
"wide",
|
| 12 |
+
"extra-wide"
|
| 13 |
+
],
|
| 14 |
+
"esme-opt-sbf-confetti-tortoise": [
|
| 15 |
+
"narrow",
|
| 16 |
+
"medium"
|
| 17 |
+
],
|
| 18 |
+
"elio-sun-sbf-black-walnut": [
|
| 19 |
+
"medium",
|
| 20 |
+
"wide"
|
| 21 |
+
],
|
| 22 |
+
"elio-sun-sbf-cactus-crystal-with-polished-silver": [
|
| 23 |
+
"wide"
|
| 24 |
+
],
|
| 25 |
+
"elio-sun-sbf-crystal": [
|
| 26 |
+
"medium",
|
| 27 |
+
"wide"
|
| 28 |
+
],
|
| 29 |
+
"elio-sun-sbf-jet-black-matte": [
|
| 30 |
+
"wide"
|
| 31 |
+
],
|
| 32 |
+
"brimmer-sun-sbf-jet-black-with-polished-gold": [
|
| 33 |
+
"wide"
|
| 34 |
+
],
|
| 35 |
+
"brimmer-sun-sbf-black-walnut": [
|
| 36 |
+
"wide"
|
| 37 |
+
],
|
| 38 |
+
"brimmer-sun-sbf-honeydew": [
|
| 39 |
+
"wide"
|
| 40 |
+
],
|
| 41 |
+
"brimmer-opt-sbf-black-walnut": [
|
| 42 |
+
"narrow",
|
| 43 |
+
"medium",
|
| 44 |
+
"wide"
|
| 45 |
+
],
|
| 46 |
+
"carson-sun-sbf-striped-eucalyptus": [
|
| 47 |
+
"wide"
|
| 48 |
+
],
|
| 49 |
+
"carson-sun-sbf-cinnamon-tortoise": [
|
| 50 |
+
"wide"
|
| 51 |
+
],
|
| 52 |
+
"carson-opt-sbf-phantom-smoke-with-amber-tortoise": [
|
| 53 |
+
"wide"
|
| 54 |
+
],
|
| 55 |
+
"cliff-sun-sbf-mahogany-tortoise": [
|
| 56 |
+
"wide"
|
| 57 |
+
],
|
| 58 |
+
"raider-sun-sbf-brushed-ink": [
|
| 59 |
+
"medium"
|
| 60 |
+
],
|
| 61 |
+
"raider-sun-sbf-brushed-ink-with-flash-gold-lenses": [
|
| 62 |
+
"wide"
|
| 63 |
+
],
|
| 64 |
+
"raider-sun-sbf-brushed-ink-with-polished-gold": [
|
| 65 |
+
"medium"
|
| 66 |
+
],
|
| 67 |
+
"raider-sun-sbf-polished-gold": [
|
| 68 |
+
"narrow",
|
| 69 |
+
"medium",
|
| 70 |
+
"wide",
|
| 71 |
+
"extra-wide"
|
| 72 |
+
],
|
| 73 |
+
"raider-sun-sbf-polished-silver": [
|
| 74 |
+
"narrow",
|
| 75 |
+
"medium",
|
| 76 |
+
"wide",
|
| 77 |
+
"extra-wide"
|
| 78 |
+
],
|
| 79 |
+
"raider-sun-sbf-rose-gold": [
|
| 80 |
+
"wide"
|
| 81 |
+
],
|
| 82 |
+
"rosie-sun-sbf-jet-black": [
|
| 83 |
+
"wide"
|
| 84 |
+
],
|
| 85 |
+
"rosie-sun-sbf-mulberry-tortoise-fade": [
|
| 86 |
+
"wide"
|
| 87 |
+
],
|
| 88 |
+
"rosie-opt-sbf-terrazzo-tortoise": [
|
| 89 |
+
"medium",
|
| 90 |
+
"wide"
|
| 91 |
+
],
|
| 92 |
+
"aubrey-sun-sbf-jet-black": [
|
| 93 |
+
"narrow",
|
| 94 |
+
"wide"
|
| 95 |
+
],
|
| 96 |
+
"aubrey-sun-sbf-garnet-tortoise": [
|
| 97 |
+
"wide"
|
| 98 |
+
],
|
| 99 |
+
"aubrey-sun-sbf-marzipan-tortoise": [
|
| 100 |
+
"narrow",
|
| 101 |
+
"wide"
|
| 102 |
+
],
|
| 103 |
+
"ronan-sun-sbf-tiramisu-tortoise-with-cola-tortoise": [
|
| 104 |
+
"wide"
|
| 105 |
+
],
|
| 106 |
+
"durand-sun-sbf-jet-black-with-polished-gold": [
|
| 107 |
+
"wide"
|
| 108 |
+
],
|
| 109 |
+
"durand-sun-sbf-rose-water": [
|
| 110 |
+
"narrow",
|
| 111 |
+
"medium",
|
| 112 |
+
"wide",
|
| 113 |
+
"extra-wide"
|
| 114 |
+
],
|
| 115 |
+
"durand-sun-sbf-whiskey-tortoise": [
|
| 116 |
+
"narrow",
|
| 117 |
+
"medium",
|
| 118 |
+
"wide",
|
| 119 |
+
"extra-wide"
|
| 120 |
+
],
|
| 121 |
+
"durand-opt-sbf-rose-water": [
|
| 122 |
+
"extra-narrow",
|
| 123 |
+
"narrow",
|
| 124 |
+
"medium",
|
| 125 |
+
"wide",
|
| 126 |
+
"extra-wide"
|
| 127 |
+
],
|
| 128 |
+
"haskell-sun-sbf-crystal": [
|
| 129 |
+
"medium",
|
| 130 |
+
"wide"
|
| 131 |
+
],
|
| 132 |
+
"haskell-sun-sbf-chestnut-crystal": [
|
| 133 |
+
"medium"
|
| 134 |
+
],
|
| 135 |
+
"haskell-sun-sbf-whiskey-tortoise": [
|
| 136 |
+
"medium",
|
| 137 |
+
"wide"
|
| 138 |
+
],
|
| 139 |
+
"haskell-opt-sbf-crystal": [
|
| 140 |
+
"narrow",
|
| 141 |
+
"medium",
|
| 142 |
+
"wide"
|
| 143 |
+
],
|
| 144 |
+
"toddy-sun-sbf-sequoia-tortoise": [
|
| 145 |
+
"narrow",
|
| 146 |
+
"wide"
|
| 147 |
+
],
|
| 148 |
+
"toddy-sun-sbf-azure-crystal-with-oak-barrel": [
|
| 149 |
+
"wide"
|
| 150 |
+
],
|
| 151 |
+
"toddy-sun-sbf-seaweed-crystal": [
|
| 152 |
+
"medium"
|
| 153 |
+
],
|
| 154 |
+
"toddy-opt-sbf-azure-crystal-with-oak-barrel": [
|
| 155 |
+
"wide"
|
| 156 |
+
],
|
| 157 |
+
"wright-sun-sbf-nutmeg-crystal": [
|
| 158 |
+
"narrow",
|
| 159 |
+
"medium"
|
| 160 |
+
],
|
| 161 |
+
"wright-sun-sbf-walnut-tortoise": [
|
| 162 |
+
"narrow",
|
| 163 |
+
"medium",
|
| 164 |
+
"wide"
|
| 165 |
+
],
|
| 166 |
+
"wright-opt-sbf-rosemary-crystal": [
|
| 167 |
+
"medium",
|
| 168 |
+
"wide"
|
| 169 |
+
],
|
| 170 |
+
"hayes-sun-sbf-jet-black": [
|
| 171 |
+
"medium"
|
| 172 |
+
],
|
| 173 |
+
"hayes-sun-sbf-mesquite-tortoise": [
|
| 174 |
+
"wide"
|
| 175 |
+
],
|
| 176 |
+
"hayes-sun-sbf-riverbed-tortoise": [
|
| 177 |
+
"medium"
|
| 178 |
+
],
|
| 179 |
+
"hayes-opt-sbf-jet-black": [
|
| 180 |
+
"wide"
|
| 181 |
+
],
|
| 182 |
+
"wilkie-opt-sbf-black-matte-eclipse": [
|
| 183 |
+
"extra-narrow",
|
| 184 |
+
"medium",
|
| 185 |
+
"extra-wide"
|
| 186 |
+
],
|
| 187 |
+
"wilkie-opt-sbf-crystal-with-english-oak": [
|
| 188 |
+
"medium"
|
| 189 |
+
],
|
| 190 |
+
"wilkie-opt-sbf-eastern-bluebird-fade": [
|
| 191 |
+
"extra-narrow",
|
| 192 |
+
"medium",
|
| 193 |
+
"extra-wide"
|
| 194 |
+
],
|
| 195 |
+
"wilkie-opt-sbf-greystone": [
|
| 196 |
+
"medium",
|
| 197 |
+
"extra-wide"
|
| 198 |
+
],
|
| 199 |
+
"wilkie-opt-sbf-sea-glass-grey": [
|
| 200 |
+
"extra-narrow",
|
| 201 |
+
"medium",
|
| 202 |
+
"extra-wide"
|
| 203 |
+
],
|
| 204 |
+
"wilkie-opt-sbf-striped-cypress": [
|
| 205 |
+
"extra-narrow",
|
| 206 |
+
"medium"
|
| 207 |
+
],
|
| 208 |
+
"wilkie-opt-sbf-whiskey-tortoise": [
|
| 209 |
+
"medium"
|
| 210 |
+
],
|
| 211 |
+
"esme-opt-sbf-aventurine-tortoise-with-polished-gold": [
|
| 212 |
+
"narrow",
|
| 213 |
+
"medium"
|
| 214 |
+
],
|
| 215 |
+
"esme-opt-sbf-bellflower-crystal-with-polished-gold": [
|
| 216 |
+
"medium"
|
| 217 |
+
],
|
| 218 |
+
"esme-opt-sbf-canopy": [
|
| 219 |
+
"medium"
|
| 220 |
+
],
|
| 221 |
+
"esme-opt-sbf-crystal": [
|
| 222 |
+
"extra-narrow",
|
| 223 |
+
"narrow",
|
| 224 |
+
"medium",
|
| 225 |
+
"wide"
|
| 226 |
+
],
|
| 227 |
+
"esme-opt-sbf-jet-black-with-polished-gold": [
|
| 228 |
+
"medium"
|
| 229 |
+
],
|
| 230 |
+
"esme-opt-sbf-rose-water": [
|
| 231 |
+
"narrow",
|
| 232 |
+
"medium"
|
| 233 |
+
],
|
| 234 |
+
"esme-opt-sbf-sesame-tortoise": [
|
| 235 |
+
"extra-narrow",
|
| 236 |
+
"narrow",
|
| 237 |
+
"medium",
|
| 238 |
+
"wide",
|
| 239 |
+
"extra-wide"
|
| 240 |
+
],
|
| 241 |
+
"whalen-opt-sbf-acorn-tortoise": [
|
| 242 |
+
"medium",
|
| 243 |
+
"wide"
|
| 244 |
+
],
|
| 245 |
+
"whalen-opt-sbf-crystal": [
|
| 246 |
+
"medium"
|
| 247 |
+
],
|
| 248 |
+
"whalen-opt-sbf-driftwood-fade": [
|
| 249 |
+
"medium"
|
| 250 |
+
],
|
| 251 |
+
"whalen-opt-sbf-pebble-shore-tortoise-with-riesling": [
|
| 252 |
+
"medium"
|
| 253 |
+
],
|
| 254 |
+
"whalen-opt-sbf-seaweed-crystal": [
|
| 255 |
+
"extra-narrow"
|
| 256 |
+
],
|
| 257 |
+
"whalen-opt-sbf-terrazzo-tortoise": [
|
| 258 |
+
"extra-narrow",
|
| 259 |
+
"medium"
|
| 260 |
+
],
|
| 261 |
+
"durand-opt-sbf-crystal": [
|
| 262 |
+
"narrow",
|
| 263 |
+
"medium",
|
| 264 |
+
"wide"
|
| 265 |
+
],
|
| 266 |
+
"durand-opt-sbf-crystal-with-oak-barrel": [
|
| 267 |
+
"medium",
|
| 268 |
+
"wide"
|
| 269 |
+
],
|
| 270 |
+
"durand-opt-sbf-laguna-crystal-matte": [
|
| 271 |
+
"extra-narrow",
|
| 272 |
+
"medium"
|
| 273 |
+
],
|
| 274 |
+
"durand-opt-sbf-whiskey-tortoise": [
|
| 275 |
+
"narrow",
|
| 276 |
+
"medium",
|
| 277 |
+
"wide",
|
| 278 |
+
"extra-wide"
|
| 279 |
+
],
|
| 280 |
+
"crane-opt-sbf-striped-cypress": [
|
| 281 |
+
"wide"
|
| 282 |
+
],
|
| 283 |
+
"crane-opt-sbf-black-matte-eclipse": [
|
| 284 |
+
"wide"
|
| 285 |
+
],
|
| 286 |
+
"crane-opt-sbf-eastern-bluebird-fade": [
|
| 287 |
+
"wide"
|
| 288 |
+
],
|
| 289 |
+
"crane-opt-sbf-sea-glass-grey": [
|
| 290 |
+
"wide"
|
| 291 |
+
],
|
| 292 |
+
"crane-opt-sbf-whiskey-tortoise": [
|
| 293 |
+
"wide"
|
| 294 |
+
],
|
| 295 |
+
"carlton-opt-sbf-amalfi-tortoise": [
|
| 296 |
+
"medium"
|
| 297 |
+
],
|
| 298 |
+
"carlton-opt-sbf-apricot": [
|
| 299 |
+
"medium"
|
| 300 |
+
],
|
| 301 |
+
"carlton-opt-sbf-crystal": [
|
| 302 |
+
"medium",
|
| 303 |
+
"wide",
|
| 304 |
+
"extra-wide"
|
| 305 |
+
],
|
| 306 |
+
"carlton-opt-sbf-phantom-smoke-with-antique-silver": [
|
| 307 |
+
"medium"
|
| 308 |
+
],
|
| 309 |
+
"carlton-opt-sbf-ristretto-tortoise": [
|
| 310 |
+
"narrow",
|
| 311 |
+
"medium"
|
| 312 |
+
],
|
| 313 |
+
"carlton-opt-sbf-seaweed-crystal": [
|
| 314 |
+
"narrow",
|
| 315 |
+
"medium",
|
| 316 |
+
"wide",
|
| 317 |
+
"extra-wide"
|
| 318 |
+
],
|
| 319 |
+
"percey-opt-sbf-chestnut-crystal": [
|
| 320 |
+
"narrow",
|
| 321 |
+
"medium",
|
| 322 |
+
"wide",
|
| 323 |
+
"extra-wide"
|
| 324 |
+
],
|
| 325 |
+
"percey-opt-sbf-crystal": [
|
| 326 |
+
"extra-narrow",
|
| 327 |
+
"medium"
|
| 328 |
+
],
|
| 329 |
+
"percey-opt-sbf-crystal-with-oak-barrel-and-blue-bay": [
|
| 330 |
+
"medium"
|
| 331 |
+
],
|
| 332 |
+
"percey-opt-sbf-jet-black-matte": [
|
| 333 |
+
"medium",
|
| 334 |
+
"wide"
|
| 335 |
+
],
|
| 336 |
+
"percey-opt-sbf-raspberry": [
|
| 337 |
+
"medium"
|
| 338 |
+
],
|
| 339 |
+
"percey-opt-sbf-rye-tortoise": [
|
| 340 |
+
"medium"
|
| 341 |
+
],
|
| 342 |
+
"percey-opt-sbf-seaweed-crystal-with-amber-tortoise": [
|
| 343 |
+
"medium",
|
| 344 |
+
"wide"
|
| 345 |
+
],
|
| 346 |
+
"percey-opt-sbf-striped-sassafras": [
|
| 347 |
+
"extra-narrow",
|
| 348 |
+
"narrow",
|
| 349 |
+
"medium",
|
| 350 |
+
"wide",
|
| 351 |
+
"extra-wide"
|
| 352 |
+
],
|
| 353 |
+
"percey-sun-sbf-striped-sassafras": [
|
| 354 |
+
"medium",
|
| 355 |
+
"wide"
|
| 356 |
+
],
|
| 357 |
+
"boggs-opt-sbf-striped-cypress": [
|
| 358 |
+
"extra-wide"
|
| 359 |
+
],
|
| 360 |
+
"boggs-opt-sbf-jet-black": [
|
| 361 |
+
"wide",
|
| 362 |
+
"extra-wide"
|
| 363 |
+
],
|
| 364 |
+
"boggs-opt-sbf-snowmelt-matte": [
|
| 365 |
+
"extra-wide"
|
| 366 |
+
],
|
| 367 |
+
"boggs-sun-sbf-jet-black": [
|
| 368 |
+
"extra-wide"
|
| 369 |
+
],
|
| 370 |
+
"winston-opt-sbf-black-oak-tortoise": [
|
| 371 |
+
"narrow",
|
| 372 |
+
"medium",
|
| 373 |
+
"wide"
|
| 374 |
+
],
|
| 375 |
+
"winston-opt-sbf-crystal-with-inlet-crystal-and-oak-barrel": [
|
| 376 |
+
"medium"
|
| 377 |
+
],
|
| 378 |
+
"winston-opt-sbf-jet-black": [
|
| 379 |
+
"medium",
|
| 380 |
+
"wide"
|
| 381 |
+
],
|
| 382 |
+
"winston-opt-sbf-praline-tortoise": [
|
| 383 |
+
"wide"
|
| 384 |
+
],
|
| 385 |
+
"winston-opt-sbf-rosemary-crystal": [
|
| 386 |
+
"narrow",
|
| 387 |
+
"medium",
|
| 388 |
+
"wide"
|
| 389 |
+
],
|
| 390 |
+
"ernie-opt-sbf-rye-tortoise-matte": [
|
| 391 |
+
"wide"
|
| 392 |
+
],
|
| 393 |
+
"blakeley-opt-sbf-violet-magnolia": [
|
| 394 |
+
"narrow",
|
| 395 |
+
"medium",
|
| 396 |
+
"wide"
|
| 397 |
+
],
|
| 398 |
+
"blakeley-opt-sbf-peacock-green": [
|
| 399 |
+
"medium",
|
| 400 |
+
"wide"
|
| 401 |
+
],
|
| 402 |
+
"blakeley-opt-sbf-smoky-mauve-tortoise": [
|
| 403 |
+
"narrow",
|
| 404 |
+
"medium"
|
| 405 |
+
],
|
| 406 |
+
"sonia-opt-sbf-striped-magnolia-with-cognac-tortoise": [
|
| 407 |
+
"wide"
|
| 408 |
+
],
|
| 409 |
+
"sonia-opt-sbf-aventurine-tortoise-fade": [
|
| 410 |
+
"narrow",
|
| 411 |
+
"medium",
|
| 412 |
+
"wide"
|
| 413 |
+
],
|
| 414 |
+
"sonia-opt-sbf-jet-black": [
|
| 415 |
+
"medium",
|
| 416 |
+
"wide"
|
| 417 |
+
],
|
| 418 |
+
"sonia-opt-sbf-oak-barrel": [
|
| 419 |
+
"narrow",
|
| 420 |
+
"medium",
|
| 421 |
+
"wide"
|
| 422 |
+
],
|
| 423 |
+
"sonia-sun-sbf-oak-barrel": [
|
| 424 |
+
"wide"
|
| 425 |
+
],
|
| 426 |
+
"butler-opt-sbf-butterscotch-tortoise": [
|
| 427 |
+
"narrow",
|
| 428 |
+
"medium"
|
| 429 |
+
],
|
| 430 |
+
"butler-opt-sbf-jet-black": [
|
| 431 |
+
"narrow",
|
| 432 |
+
"medium"
|
| 433 |
+
],
|
| 434 |
+
"butler-opt-sbf-olive-matte": [
|
| 435 |
+
"medium"
|
| 436 |
+
],
|
| 437 |
+
"butler-sun-sbf-butterscotch-tortoise": [
|
| 438 |
+
"medium"
|
| 439 |
+
],
|
| 440 |
+
"claude-opt-sbf-seaweed-crystal-with-antique-silver": [
|
| 441 |
+
"wide"
|
| 442 |
+
],
|
| 443 |
+
"haskell-opt-sbf-camel": [
|
| 444 |
+
"medium"
|
| 445 |
+
],
|
| 446 |
+
"haskell-opt-sbf-chestnut-crystal": [
|
| 447 |
+
"medium"
|
| 448 |
+
],
|
| 449 |
+
"haskell-opt-sbf-whiskey-tortoise": [
|
| 450 |
+
"medium",
|
| 451 |
+
"wide"
|
| 452 |
+
],
|
| 453 |
+
"dex-opt-sbf-marine-teal-with-antique-silver": [
|
| 454 |
+
"wide"
|
| 455 |
+
]
|
| 456 |
+
}
|
tasks/warbyparker/solution/site/implementation/clone/requirements.txt
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
fastapi>=0.115
|
| 2 |
+
uvicorn>=0.30
|
| 3 |
+
jinja2>=3.1
|
| 4 |
+
python-multipart>=0.0.9
|
tasks/warbyparker/solution/site/implementation/clone/static/css/wp.css
ADDED
|
@@ -0,0 +1,928 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/* warbyparker clone — tokens transcribed from source :root custom properties
|
| 2 |
+
(see materials/warbyparker/evidence/source/design-tokens.md). Do not invent values. */
|
| 3 |
+
:root{
|
| 4 |
+
--wp-space-1:4px;--wp-space-2:8px;--wp-space-3:12px;--wp-space-4:16px;--wp-space-5:20px;
|
| 5 |
+
--wp-space-6:24px;--wp-space-7:28px;--wp-space-8:32px;--wp-space-9:36px;--wp-space-10:40px;
|
| 6 |
+
--wp-space-12:48px;--wp-space-14:56px;--wp-space-15:60px;--wp-space-16:64px;--wp-space-20:80px;--wp-space-24:96px;
|
| 7 |
+
--wp-space-32:128px;--wp-space-36:144px;
|
| 8 |
+
--wp-color-core-blues-blueprint:#1050d0;--wp-color-core-blues-dark-blueprint:#1144a9;
|
| 9 |
+
--wp-color-core-blues-faded-blueprint:#8aa9e8;--wp-color-core-blues-ink:#072369;
|
| 10 |
+
--wp-color-core-blues-jet-ink:#021a57;--wp-color-core-blues-ink-wash:#8593b5;
|
| 11 |
+
--wp-color-core-blues-warby:#00a2e1;--wp-color-core-blues-light-warby:#caeaf5;
|
| 12 |
+
--wp-color-grayscale-black:#000;--wp-color-grayscale-cosmos:#121212;
|
| 13 |
+
--wp-color-grayscale-slate:#3a434c;--wp-color-grayscale-graphite:#72777c;
|
| 14 |
+
--wp-color-grayscale-nimbus:#e1e5e6;--wp-color-grayscale-draft:#eeedec;
|
| 15 |
+
--wp-color-grayscale-chalk:#f6f7f5;--wp-color-grayscale-ivory:#fcfbf9;
|
| 16 |
+
--wp-color-grayscale-parchment:#f6f0e9;--wp-color-grayscale-white:#fff;
|
| 17 |
+
--wp-color-sliver:#a1a4a6;
|
| 18 |
+
--wp-color-support-classroom-green:#09624d;--wp-color-support-light-green:#dfebe8;
|
| 19 |
+
--wp-color-support-red:#d6003c;--wp-color-support-dark-red:#bf0025;
|
| 20 |
+
--wp-color-support-light-red:#ffe5ec;--wp-color-support-orange:#c93700;
|
| 21 |
+
--wp-color-support-light-orange:#ffecce;--wp-color-support-light-blue:#ddf1f7;
|
| 22 |
+
--wp-color-overlay-background:#121212cc;
|
| 23 |
+
--wp-shadow-1:0 0 4px 0 #1212121f;
|
| 24 |
+
--wp-shadow-2:0 4px 12px 0 #00000005,0 1px 4px 0 #0000000a;
|
| 25 |
+
--wp-shadow-4:0 2px 24px 0 #1212121f;
|
| 26 |
+
--wp-shadow-5:0 8px 12px 0 #1212121f,0 1px 4px 0 #1212121f;
|
| 27 |
+
--wp-shadow-6:0 6px 24px 0 #1212123d;
|
| 28 |
+
--wp-transition-p2:.2s cubic-bezier(.25,0,.35,.95);
|
| 29 |
+
--wp-transition-e45:.45s cubic-bezier(.25,.85,.35,1);
|
| 30 |
+
--wp-border-divider:1px solid var(--wp-color-grayscale-nimbus);
|
| 31 |
+
--wp-grid-desktop-count:12;--wp-grid-desktop-gutter-size:24px;--wp-grid-desktop-offset:48px;
|
| 32 |
+
/* Fallback stacks. ABC Social and Ivory LL are licensed and are NOT redistributed;
|
| 33 |
+
this is a documented, reported perceptible difference. */
|
| 34 |
+
--wp-font-ui:"ABC Social","Helvetica Neue",Helvetica,Arial,sans-serif;
|
| 35 |
+
--wp-font-display:"Ivory LL",Georgia,"Times New Roman",serif;
|
| 36 |
+
}
|
| 37 |
+
*,*::before,*::after{box-sizing:border-box}
|
| 38 |
+
html{-webkit-font-smoothing:antialiased}
|
| 39 |
+
body{margin:0;font-family:var(--wp-font-ui);font-size:16px;line-height:1.5;
|
| 40 |
+
color:var(--wp-color-grayscale-cosmos);background:var(--wp-color-grayscale-white)}
|
| 41 |
+
a{color:var(--wp-color-core-blues-blueprint);font-weight:600;text-decoration:none}
|
| 42 |
+
a:hover{text-decoration:underline}
|
| 43 |
+
img{max-width:100%;display:block}
|
| 44 |
+
button{font:inherit;cursor:pointer;border:0;background:none;color:inherit}
|
| 45 |
+
h1{font-family:var(--wp-font-ui);font-size:24px;line-height:34px;font-weight:500;letter-spacing:.48px;margin:0}
|
| 46 |
+
h2{font-family:var(--wp-font-display);font-size:24px;line-height:30px;font-weight:400;letter-spacing:-.24px;margin:0}
|
| 47 |
+
h3{font-family:var(--wp-font-ui);font-size:18px;line-height:26px;font-weight:500;margin:0}
|
| 48 |
+
.wrap{max-width:1440px;margin:0 auto;padding:0 var(--wp-grid-desktop-offset)}
|
| 49 |
+
.skip{position:absolute;left:-9999px}.skip:focus{left:var(--wp-space-4);top:var(--wp-space-2);
|
| 50 |
+
background:#fff;padding:var(--wp-space-2) var(--wp-space-4);z-index:99}
|
| 51 |
+
|
| 52 |
+
/* ---------- header ----------
|
| 53 |
+
measured on the source at 1200px: nav is 111px tall with no border; upper bar
|
| 54 |
+
1200x40 on ink (#072369) carrying a left promo link at x=48, the centred
|
| 55 |
+
164x12 wordmark, and a right promo link ending at 1152; the lower row is 71px
|
| 56 |
+
with the five mega-menu buttons from x=48 on a 20px rhythm and the utility
|
| 57 |
+
cluster right-aligned. On the home page the lower row sits over the hero. */
|
| 58 |
+
.top-nav{position:relative;z-index:5;height:111px}
|
| 59 |
+
.top-nav-upper{background:var(--wp-color-core-blues-ink);height:40px}
|
| 60 |
+
.top-nav-upper-inner{display:flex;align-items:center;justify-content:space-between;
|
| 61 |
+
height:40px;position:relative}
|
| 62 |
+
.promo-link{color:var(--wp-color-grayscale-white);font-size:16px;font-weight:400;
|
| 63 |
+
text-decoration:none;line-height:20px}
|
| 64 |
+
.promo-link:hover{text-decoration:underline;color:var(--wp-color-grayscale-white)}
|
| 65 |
+
.promo-link.right{text-align:right}
|
| 66 |
+
.wordmark{position:absolute;left:50%;transform:translateX(-50%);
|
| 67 |
+
color:var(--wp-color-grayscale-white);display:flex;align-items:center;
|
| 68 |
+
width:186px;justify-content:center}
|
| 69 |
+
.wordmark svg{width:164px;height:12px;display:block}
|
| 70 |
+
.top-nav-lower{display:flex;align-items:center;justify-content:space-between;height:71px}
|
| 71 |
+
.top-nav-main{display:flex;align-items:center;gap:var(--wp-space-5);font-size:16px}
|
| 72 |
+
.top-nav-main >*{font-weight:400;color:var(--wp-color-grayscale-cosmos);
|
| 73 |
+
background:none;border:0;padding:0;line-height:20px;text-decoration:none;
|
| 74 |
+
transition:color var(--wp-transition-p2)}
|
| 75 |
+
.top-nav-main >*:hover{text-decoration:underline}
|
| 76 |
+
.top-nav-util{display:flex;align-items:center;gap:var(--wp-space-5);font-size:16px}
|
| 77 |
+
.util-account{color:var(--wp-color-grayscale-slate);font-weight:400;
|
| 78 |
+
border:1px solid var(--wp-color-grayscale-nimbus);border-radius:100px;
|
| 79 |
+
height:38px;min-width:112px;display:inline-flex;align-items:center;
|
| 80 |
+
justify-content:center;text-decoration:none}
|
| 81 |
+
.util-account:hover{border-color:var(--wp-color-grayscale-cosmos);text-decoration:none}
|
| 82 |
+
.util-icon{width:24px;height:24px;display:inline-flex;align-items:center;
|
| 83 |
+
justify-content:center;color:var(--wp-color-core-blues-blueprint);
|
| 84 |
+
font-size:18px;text-decoration:none;position:relative}
|
| 85 |
+
.cart-badge{position:absolute;top:-4px;right:-8px;display:inline-flex;min-width:16px;
|
| 86 |
+
height:16px;padding:0 4px;border-radius:8px;background:var(--wp-color-core-blues-blueprint);
|
| 87 |
+
color:#fff;font-size:10px;font-weight:600;align-items:center;justify-content:center}
|
| 88 |
+
/* home page: the lower row overlays the hero in white */
|
| 89 |
+
.top-nav.over-hero{height:40px}
|
| 90 |
+
.top-nav.over-hero .top-nav-lower{position:absolute;left:0;right:0;top:40px;
|
| 91 |
+
padding:0 var(--wp-grid-desktop-offset);max-width:1440px;margin:0 auto;z-index:5}
|
| 92 |
+
.top-nav.over-hero .top-nav-main >*{color:var(--wp-color-grayscale-white)}
|
| 93 |
+
.top-nav.over-hero .util-account{color:var(--wp-color-grayscale-white);
|
| 94 |
+
border-color:var(--wp-color-grayscale-white-alpha50)}
|
| 95 |
+
.top-nav.over-hero .util-icon{color:var(--wp-color-grayscale-white)}
|
| 96 |
+
/* measured on the source: panel opens at y=111 under the nav; four 205px
|
| 97 |
+
columns from x=48 on a 229px pitch (24px gap); headings 14px/500 graphite
|
| 98 |
+
with 0.28px tracking and no uppercase; links 16px/400 cosmos on a 36px
|
| 99 |
+
vertical rhythm, first link 36px under its heading. */
|
| 100 |
+
.mega{position:absolute;left:0;right:0;top:111px;background:#fff;
|
| 101 |
+
border-bottom:var(--wp-border-divider);box-shadow:var(--wp-shadow-4);
|
| 102 |
+
padding:var(--wp-space-6) 0 var(--wp-space-12);display:none;z-index:5}
|
| 103 |
+
.top-nav.over-hero .mega{top:111px}
|
| 104 |
+
.mega[data-open="true"]{display:block}
|
| 105 |
+
.mega-grid{display:grid;grid-template-columns:repeat(4,205px);gap:var(--wp-space-6);
|
| 106 |
+
justify-content:start}
|
| 107 |
+
.mega h4{font-size:14px;font-weight:500;line-height:20px;letter-spacing:.28px;
|
| 108 |
+
text-transform:none;color:var(--wp-color-grayscale-graphite);margin:0 0 var(--wp-space-4)}
|
| 109 |
+
.mega ul{list-style:none;margin:0;padding:0;display:grid;gap:var(--wp-space-3)}
|
| 110 |
+
.mega a{color:var(--wp-color-grayscale-cosmos);font-weight:400;font-size:16px;
|
| 111 |
+
line-height:24px;text-decoration:none;display:inline-block}
|
| 112 |
+
.mega a:hover{text-decoration:underline}
|
| 113 |
+
.badge{display:inline-block;margin-left:var(--wp-space-2);font-size:11px;font-weight:600;
|
| 114 |
+
padding:2px 6px;border-radius:2px;background:var(--wp-color-support-light-green);
|
| 115 |
+
color:var(--wp-color-support-classroom-green);vertical-align:middle}
|
| 116 |
+
|
| 117 |
+
/* ---------- cookie banner ---------- */
|
| 118 |
+
.cookie{background:var(--wp-color-grayscale-chalk);border-bottom:var(--wp-border-divider);
|
| 119 |
+
padding:var(--wp-space-4) 0;font-size:13px;color:var(--wp-color-grayscale-slate)}
|
| 120 |
+
.cookie .wrap{display:flex;gap:var(--wp-space-6);align-items:center;justify-content:space-between}
|
| 121 |
+
.cookie h2{font-family:var(--wp-font-ui);font-size:14px;font-weight:600;margin:0 0 var(--wp-space-1)}
|
| 122 |
+
|
| 123 |
+
/* ---------- collection ---------- */
|
| 124 |
+
/* measured on the source at 1200px: sidebar 342, gutter 48, three 222px columns
|
| 125 |
+
with a 24px column gap and a 60px row gap; card box 222x429. */
|
| 126 |
+
.collection{display:grid;grid-template-columns:342px 714px;gap:var(--wp-space-12);
|
| 127 |
+
padding-top:var(--wp-space-8);padding-bottom:var(--wp-space-24)}
|
| 128 |
+
.facets{font-size:14px}
|
| 129 |
+
.facet{border-bottom:var(--wp-border-divider);padding:var(--wp-space-4) 0}
|
| 130 |
+
.facet >summary{font-weight:500;cursor:pointer;list-style:none;display:flex;
|
| 131 |
+
justify-content:space-between;align-items:center}
|
| 132 |
+
.facet >summary::-webkit-details-marker{display:none}
|
| 133 |
+
.facet >summary::after{content:"+";color:var(--wp-color-grayscale-graphite)}
|
| 134 |
+
.facet[open] >summary::after{content:"\2212"}
|
| 135 |
+
.facet ul{list-style:none;margin:var(--wp-space-4) 0 0;padding:0;display:grid;gap:var(--wp-space-3)}
|
| 136 |
+
.facet a{color:var(--wp-color-grayscale-slate);font-weight:400}
|
| 137 |
+
.facet a[aria-current="true"]{font-weight:600;color:var(--wp-color-grayscale-cosmos)}
|
| 138 |
+
.coll-head{display:flex;align-items:baseline;justify-content:flex-end;
|
| 139 |
+
margin-bottom:var(--wp-space-6);min-height:34px}
|
| 140 |
+
.coll-title{margin-bottom:var(--wp-space-8)}
|
| 141 |
+
.coll-count{color:var(--wp-color-grayscale-graphite);font-size:14px;margin-left:var(--wp-space-3)}
|
| 142 |
+
.grid{display:grid;grid-template-columns:repeat(3,222px);
|
| 143 |
+
gap:var(--wp-space-15) var(--wp-space-6)}
|
| 144 |
+
.card{position:relative;width:222px;height:429px;display:flex;flex-direction:column}
|
| 145 |
+
.card-media{background:var(--wp-color-grayscale-chalk);height:320px;display:flex;
|
| 146 |
+
align-items:center;justify-content:center;overflow:hidden;position:relative;
|
| 147 |
+
padding:0 var(--wp-space-5)}
|
| 148 |
+
.card-media img{width:182px;height:auto;transition:transform var(--wp-transition-e45)}
|
| 149 |
+
.card:hover .card-media img{transform:scale(1.04)}
|
| 150 |
+
.card-tryon{position:absolute;left:50%;bottom:var(--wp-space-3);transform:translateX(-50%);
|
| 151 |
+
background:#fff;border-radius:20px;padding:var(--wp-space-2) var(--wp-space-5);font-size:13px;
|
| 152 |
+
font-weight:600;box-shadow:var(--wp-shadow-2);opacity:0;text-decoration:none;
|
| 153 |
+
color:var(--wp-color-grayscale-cosmos);transition:opacity var(--wp-transition-p2)}
|
| 154 |
+
.card:hover .card-tryon{opacity:1}
|
| 155 |
+
.fav{position:absolute;top:var(--wp-space-3);right:var(--wp-space-3);width:28px;height:28px;
|
| 156 |
+
border-radius:50%;background:#fff;box-shadow:var(--wp-shadow-1);font-size:14px;line-height:28px;
|
| 157 |
+
text-align:center}
|
| 158 |
+
.fav[aria-pressed="true"]{color:var(--wp-color-support-red)}
|
| 159 |
+
.swatches{display:flex;gap:var(--wp-space-2);margin:var(--wp-space-3) 0;align-items:center}
|
| 160 |
+
.swatch-more{font-size:12px;color:var(--wp-color-grayscale-graphite)}
|
| 161 |
+
.badges{position:absolute;top:var(--wp-space-3);left:var(--wp-space-3);display:grid;
|
| 162 |
+
gap:var(--wp-space-1);justify-items:start;z-index:1}
|
| 163 |
+
.tag{font-size:11px;font-weight:600;padding:2px 6px;border-radius:2px;line-height:1.5;
|
| 164 |
+
background:var(--wp-color-support-classroom-green);color:var(--wp-color-grayscale-white)}
|
| 165 |
+
.tag[data-bg="chalk"]{background:var(--wp-color-grayscale-chalk)}
|
| 166 |
+
.tag[data-bg=""]{background:transparent}
|
| 167 |
+
.tag[data-fg="slate"]{color:var(--wp-color-grayscale-slate)}
|
| 168 |
+
.tag[data-fg="graphite"]{color:var(--wp-color-grayscale-graphite)}
|
| 169 |
+
.tag[data-border="nimbus"]{border:1px solid var(--wp-color-grayscale-nimbus)}
|
| 170 |
+
.tag[data-border="smoke"]{border:1px solid var(--wp-color-sliver)}
|
| 171 |
+
.facet-opt{display:flex;gap:var(--wp-space-3);align-items:center;
|
| 172 |
+
color:var(--wp-color-grayscale-slate);font-weight:400}
|
| 173 |
+
.facet-opt.on{font-weight:600;color:var(--wp-color-grayscale-cosmos)}
|
| 174 |
+
.facet-opt .box{width:16px;height:16px;border:1px solid var(--wp-color-grayscale-graphite);
|
| 175 |
+
border-radius:2px;display:inline-flex;align-items:center;justify-content:center;
|
| 176 |
+
font-size:11px;flex:0 0 16px}
|
| 177 |
+
.facet-opt.on .box{background:var(--wp-color-grayscale-cosmos);
|
| 178 |
+
border-color:var(--wp-color-grayscale-cosmos);color:#fff}
|
| 179 |
+
.facet-desc{margin:var(--wp-space-1) 0 0 28px;font-size:12px;line-height:1.4;
|
| 180 |
+
color:var(--wp-color-grayscale-graphite)}
|
| 181 |
+
.swatch{width:24px;height:24px;border-radius:50%;overflow:hidden;border:1px solid var(--wp-color-grayscale-nimbus);padding:0}
|
| 182 |
+
.swatch[aria-current="true"],.swatch[aria-checked="true"]{outline:1px solid var(--wp-color-grayscale-cosmos);outline-offset:2px}
|
| 183 |
+
.swatch img{width:100%;height:100%;object-fit:cover}
|
| 184 |
+
.card-name{font-size:15px;font-weight:500;color:var(--wp-color-grayscale-cosmos)}
|
| 185 |
+
.card-price{font-size:15px;color:var(--wp-color-grayscale-slate)}
|
| 186 |
+
.card-cta{font-size:14px;font-weight:600;color:var(--wp-color-core-blues-blueprint);
|
| 187 |
+
margin-top:var(--wp-space-1);display:inline-block}
|
| 188 |
+
.pager{display:grid;justify-items:center;gap:var(--wp-space-3);
|
| 189 |
+
margin-top:var(--wp-space-16)}
|
| 190 |
+
.pager .btn{width:auto;min-width:240px}
|
| 191 |
+
.pager-count{font-size:14px;color:var(--wp-color-grayscale-graphite);margin:0}
|
| 192 |
+
.empty{padding:var(--wp-space-20) 0;text-align:center;color:var(--wp-color-grayscale-graphite)}
|
| 193 |
+
|
| 194 |
+
/* ---------- pdp ----------
|
| 195 |
+
measured on the source at 1200px: content 48..1176, gallery column 752,
|
| 196 |
+
24px gutter, buy column 352; hero image 688x616 anchored right in the gallery
|
| 197 |
+
column with an 80px thumbnail rail floated over its left edge at x=52. */
|
| 198 |
+
.pdp{display:grid;grid-template-columns:752px 352px;gap:var(--wp-space-6);
|
| 199 |
+
padding-left:var(--wp-space-12);padding-right:var(--wp-space-6);
|
| 200 |
+
padding-top:var(--wp-space-8);padding-bottom:var(--wp-space-24);
|
| 201 |
+
max-width:1200px;margin:0 auto}
|
| 202 |
+
.gallery{position:relative;min-height:616px}
|
| 203 |
+
.thumbs{position:absolute;left:4px;top:66px;display:grid;gap:var(--wp-space-3);
|
| 204 |
+
align-content:start;z-index:1}
|
| 205 |
+
.thumb{width:80px;height:80px;border:1px solid transparent;border-radius:8px;
|
| 206 |
+
background:var(--wp-color-grayscale-chalk);padding:var(--wp-space-2);
|
| 207 |
+
display:flex;align-items:center;justify-content:center;overflow:hidden}
|
| 208 |
+
.thumb img{width:100%;height:auto}
|
| 209 |
+
.thumb[aria-current="true"]{border-color:var(--wp-color-grayscale-cosmos)}
|
| 210 |
+
.pdp .hero{margin-left:64px;width:688px;height:616px;
|
| 211 |
+
background:var(--wp-color-grayscale-chalk);border-radius:8px;display:flex;
|
| 212 |
+
align-items:center;justify-content:center;overflow:hidden}
|
| 213 |
+
.pdp .hero img{width:78%;height:auto}
|
| 214 |
+
.pdp h1{font-family:var(--wp-font-display);font-size:30px;line-height:36px;
|
| 215 |
+
font-weight:400;letter-spacing:-.3px;margin:0}
|
| 216 |
+
.pdp-price{font-size:16px;color:var(--wp-color-grayscale-cosmos);
|
| 217 |
+
margin:var(--wp-space-2) 0 var(--wp-space-6)}
|
| 218 |
+
.btn{display:inline-flex;align-items:center;justify-content:center;gap:var(--wp-space-2);
|
| 219 |
+
padding:0 var(--wp-space-8);border-radius:100px;font-weight:400;font-size:16px;
|
| 220 |
+
background:var(--wp-color-core-blues-blueprint);color:#fff;text-decoration:none;
|
| 221 |
+
width:100%;height:48px;transition:background var(--wp-transition-p2)}
|
| 222 |
+
.btn:hover{background:var(--wp-color-core-blues-dark-blueprint);text-decoration:none;color:#fff}
|
| 223 |
+
.btn.secondary{background:#fff;color:var(--wp-color-grayscale-cosmos);
|
| 224 |
+
border:1px solid var(--wp-color-grayscale-cosmos)}
|
| 225 |
+
.btn.secondary:hover{background:var(--wp-color-grayscale-chalk);color:var(--wp-color-grayscale-cosmos)}
|
| 226 |
+
.widths{display:grid;grid-template-columns:repeat(3,112px);gap:var(--wp-space-2);
|
| 227 |
+
margin:var(--wp-space-3) 0 var(--wp-space-6)}
|
| 228 |
+
.pill{display:inline-flex;align-items:center;justify-content:center;
|
| 229 |
+
height:44px;padding:0 var(--wp-space-3);border:1px solid var(--wp-color-grayscale-nimbus);
|
| 230 |
+
border-radius:8px;font-size:16px;font-weight:400;color:var(--wp-color-grayscale-cosmos);
|
| 231 |
+
background:#fff;text-decoration:none;text-align:center;
|
| 232 |
+
transition:border-color var(--wp-transition-p2)}
|
| 233 |
+
.pill:hover{border-color:var(--wp-color-grayscale-cosmos);text-decoration:none;
|
| 234 |
+
color:var(--wp-color-grayscale-cosmos)}
|
| 235 |
+
.pill[aria-current="true"],.pill[aria-checked="true"]{
|
| 236 |
+
border-color:var(--wp-color-grayscale-cosmos);box-shadow:inset 0 0 0 1px var(--wp-color-grayscale-cosmos);
|
| 237 |
+
font-weight:500}
|
| 238 |
+
.width-guide{grid-column:1/-1;justify-self:start;border:0;padding-left:0;
|
| 239 |
+
color:var(--wp-color-core-blues-blueprint);font-weight:600;text-decoration:underline;
|
| 240 |
+
height:auto}
|
| 241 |
+
.width-guide:hover{border:0}
|
| 242 |
+
/* below-the-fold sections run the full content width with 42px display headings */
|
| 243 |
+
.pdp-sections{max-width:1200px;margin:0 auto;padding:0 var(--wp-space-12)}
|
| 244 |
+
.section{border-top:var(--wp-border-divider);padding:var(--wp-space-14) 0}
|
| 245 |
+
.section h2{font-family:var(--wp-font-display);font-size:42px;line-height:48px;
|
| 246 |
+
font-weight:400;letter-spacing:-.6px;margin-bottom:var(--wp-space-6)}
|
| 247 |
+
.section h3{font-family:var(--wp-font-display);font-size:30px;line-height:36px;
|
| 248 |
+
font-weight:400;margin-bottom:var(--wp-space-3)}
|
| 249 |
+
.label{font-size:13px;font-weight:600;text-transform:uppercase;letter-spacing:.6px;
|
| 250 |
+
color:var(--wp-color-grayscale-graphite);margin-bottom:var(--wp-space-3)}
|
| 251 |
+
.measure{display:grid;grid-template-columns:repeat(4,1fr);gap:var(--wp-space-4);font-size:14px}
|
| 252 |
+
.measure div span{display:block;color:var(--wp-color-grayscale-graphite);font-size:13px}
|
| 253 |
+
.rail{display:grid;grid-auto-flow:column;grid-auto-columns:200px;gap:var(--wp-space-6);
|
| 254 |
+
overflow-x:auto;padding-bottom:var(--wp-space-4)}
|
| 255 |
+
.pdp-cols{display:grid;grid-template-columns:repeat(3,1fr);gap:var(--wp-space-8)}
|
| 256 |
+
|
| 257 |
+
/* ---------- atc wizard ----------
|
| 258 |
+
measured on the source at 1200px: the frame rail occupies the left of the
|
| 259 |
+
content box and the step column runs 720..1152 (432 wide); step headings are
|
| 260 |
+
24/34 weight 500 centred in that column; width pills are 138x48 at radius 8px
|
| 261 |
+
three to a row on a 146px pitch; option cards are 432 wide. */
|
| 262 |
+
.atc{display:grid;grid-template-columns:640px 432px;column-gap:32px;
|
| 263 |
+
padding-left:var(--wp-space-12);padding-right:var(--wp-space-6);
|
| 264 |
+
max-width:1200px;margin:0 auto;
|
| 265 |
+
padding-top:var(--wp-space-8);padding-bottom:var(--wp-space-24)}
|
| 266 |
+
.atc-frame-media{background:var(--wp-color-grayscale-chalk);border-radius:8px;
|
| 267 |
+
height:320px;display:flex;align-items:center;justify-content:flex-start;
|
| 268 |
+
overflow:hidden}
|
| 269 |
+
.atc-frame-media img{width:534px;height:auto}
|
| 270 |
+
.atc-frame-name{font-family:var(--wp-font-display);font-size:30px;line-height:36px;
|
| 271 |
+
font-weight:400;letter-spacing:-.3px;margin:var(--wp-space-6) 0 var(--wp-space-1)}
|
| 272 |
+
.atc-frame-color{color:var(--wp-color-grayscale-graphite);margin:0}
|
| 273 |
+
.atc-chosen{margin:var(--wp-space-8) 0 0;display:grid;gap:var(--wp-space-3);max-width:420px}
|
| 274 |
+
.atc-chosen div{display:flex;justify-content:space-between;font-size:14px;
|
| 275 |
+
border-bottom:var(--wp-border-divider);padding-bottom:var(--wp-space-2)}
|
| 276 |
+
.atc-chosen dt{color:var(--wp-color-grayscale-graphite);margin:0}
|
| 277 |
+
.atc-chosen dd{margin:0;font-weight:500}
|
| 278 |
+
.atc-step h1{font-family:var(--wp-font-ui);font-size:24px;line-height:34px;
|
| 279 |
+
font-weight:500;letter-spacing:.48px;text-align:center;margin:0 0 var(--wp-space-6)}
|
| 280 |
+
.atc-progress{text-align:center;font-size:13px;color:var(--wp-color-grayscale-graphite);
|
| 281 |
+
margin:0 0 var(--wp-space-3)}
|
| 282 |
+
.opts{display:grid;gap:var(--wp-space-3)}
|
| 283 |
+
.opt{display:flex;justify-content:space-between;align-items:flex-start;
|
| 284 |
+
gap:var(--wp-space-5);width:432px;min-height:85px;text-align:left;background:#fff;
|
| 285 |
+
border:1px solid var(--wp-color-grayscale-nimbus);border-radius:8px;
|
| 286 |
+
padding:var(--wp-space-5);transition:border-color var(--wp-transition-p2)}
|
| 287 |
+
.opt:hover{border-color:var(--wp-color-grayscale-cosmos)}
|
| 288 |
+
.opt:disabled{opacity:.45;cursor:not-allowed}
|
| 289 |
+
.opt strong{font-weight:600;font-size:16px;display:block}
|
| 290 |
+
.opt em{font-style:normal;font-weight:500;font-size:15px;display:block;
|
| 291 |
+
color:var(--wp-color-grayscale-slate);margin-top:2px}
|
| 292 |
+
.opt p{margin:var(--wp-space-1) 0 0;font-size:14px;line-height:1.45;
|
| 293 |
+
color:var(--wp-color-grayscale-graphite)}
|
| 294 |
+
.opt .price{font-weight:600;white-space:nowrap}
|
| 295 |
+
.width-grid{display:grid;grid-template-columns:repeat(3,138px);gap:var(--wp-space-2)}
|
| 296 |
+
.width-grid form{display:contents}
|
| 297 |
+
.width-grid .pill{width:138px;height:48px}
|
| 298 |
+
.width-notes{list-style:none;margin:var(--wp-space-6) 0 0;padding:0;display:grid;
|
| 299 |
+
gap:var(--wp-space-2);font-size:14px;color:var(--wp-color-grayscale-graphite)}
|
| 300 |
+
.width-notes strong{color:var(--wp-color-grayscale-cosmos);font-weight:500}
|
| 301 |
+
.atc-note{font-size:14px;color:var(--wp-color-grayscale-graphite);margin:var(--wp-space-5) 0 0}
|
| 302 |
+
.atc-total{display:flex;justify-content:space-between;font-weight:600;font-size:16px;
|
| 303 |
+
border-top:var(--wp-border-divider);margin-top:var(--wp-space-8);
|
| 304 |
+
padding-top:var(--wp-space-4);width:432px}
|
| 305 |
+
|
| 306 |
+
/* ---------- cart / forms ----------
|
| 307 |
+
measured on the source at 1200px: left column 660 from x=30, 79px gutter,
|
| 308 |
+
summary column 383 ending at 1152; h1 in the display face at 30/36. */
|
| 309 |
+
.cart{display:grid;grid-template-columns:660px 383px;column-gap:79px;
|
| 310 |
+
padding-left:30px;padding-right:var(--wp-space-6);max-width:1200px;margin:0 auto;
|
| 311 |
+
padding-top:var(--wp-space-8);padding-bottom:var(--wp-space-24)}
|
| 312 |
+
.cart h1{font-family:var(--wp-font-display);font-size:30px;line-height:36px;
|
| 313 |
+
font-weight:400;letter-spacing:-.3px;margin:0 0 var(--wp-space-6)}
|
| 314 |
+
.cart select{width:50px;min-width:50px;height:30px;border:0;border-radius:40px;
|
| 315 |
+
background:var(--wp-color-grayscale-chalk);padding:0 var(--wp-space-1);font-size:14px}
|
| 316 |
+
/* the source's summary column carries no box: its rows and the Next step button
|
| 317 |
+
both start at the column edge (x=769) and the button spans the full 383 */
|
| 318 |
+
.cart .rail-summary{border:0;padding:0;background:none}
|
| 319 |
+
.cart .rail-summary .btn{width:100%}
|
| 320 |
+
.cart .sum-total{font-weight:700;font-size:16px}
|
| 321 |
+
.cart-edit{font-size:16px;color:var(--wp-color-core-blues-blueprint);
|
| 322 |
+
text-decoration:none;font-weight:400}
|
| 323 |
+
.cart-edit:hover{text-decoration:underline}
|
| 324 |
+
.line-media img{width:88px;height:auto}
|
| 325 |
+
.line{display:grid;grid-template-columns:160px 1fr auto;gap:var(--wp-space-6);
|
| 326 |
+
border-bottom:var(--wp-border-divider);padding:var(--wp-space-6) 0}
|
| 327 |
+
.line-media{background:var(--wp-color-grayscale-chalk);display:flex;align-items:center;padding:var(--wp-space-3)}
|
| 328 |
+
.config{margin:var(--wp-space-4) 0 0;font-size:14px;display:grid;gap:var(--wp-space-2)}
|
| 329 |
+
.config div{display:flex;justify-content:space-between;max-width:320px;
|
| 330 |
+
color:var(--wp-color-grayscale-slate)}
|
| 331 |
+
select,input[type=text],input[type=email],input[type=tel]{font:inherit;padding:var(--wp-space-3);
|
| 332 |
+
border:1px solid var(--wp-color-grayscale-nimbus);border-radius:4px;background:#fff;width:100%}
|
| 333 |
+
.field{display:grid;gap:var(--wp-space-2);margin-bottom:var(--wp-space-4)}
|
| 334 |
+
.field label{font-size:14px;font-weight:500}
|
| 335 |
+
.err{color:var(--wp-color-support-dark-red);font-size:13px}
|
| 336 |
+
.field[data-invalid="true"] input{border-color:var(--wp-color-support-red);background:var(--wp-color-support-light-red)}
|
| 337 |
+
.trust{display:flex;gap:var(--wp-space-6);justify-content:center;font-size:13px;
|
| 338 |
+
color:var(--wp-color-grayscale-graphite);margin-top:var(--wp-space-6)}
|
| 339 |
+
.toast{background:var(--wp-color-support-light-green);color:var(--wp-color-support-classroom-green);
|
| 340 |
+
padding:var(--wp-space-3) var(--wp-space-4);border-radius:4px;font-size:14px;font-weight:500;
|
| 341 |
+
margin:var(--wp-space-4) 0}
|
| 342 |
+
.notice{background:var(--wp-color-support-light-blue);padding:var(--wp-space-4);border-radius:4px;
|
| 343 |
+
font-size:14px;margin:var(--wp-space-4) 0}
|
| 344 |
+
|
| 345 |
+
/* ---------- account ----------
|
| 346 |
+
measured on the source at 1200px: a single 888px column at x=156 (not a
|
| 347 |
+
sidebar), h1 in the display face at 40/46, and a horizontal tab bar under it
|
| 348 |
+
with a 1.5px cosmos rule, tabs 16px/400 blueprint on a 48px gap. */
|
| 349 |
+
.acct{max-width:1200px;margin:0 auto;padding:var(--wp-space-8) 156px var(--wp-space-24)}
|
| 350 |
+
.acct-inner{width:888px}
|
| 351 |
+
.acct h1{font-family:var(--wp-font-display);font-size:40px;line-height:46px;
|
| 352 |
+
font-weight:400;letter-spacing:-.6px;margin:0 0 var(--wp-space-2)}
|
| 353 |
+
.acct-head{display:flex;justify-content:space-between;align-items:flex-start;
|
| 354 |
+
gap:var(--wp-space-6)}
|
| 355 |
+
.acct-email{color:var(--wp-color-grayscale-graphite);font-size:14px;margin:0}
|
| 356 |
+
.acct-nav{display:flex;gap:var(--wp-space-12);align-items:center;height:36px;
|
| 357 |
+
border-bottom:1.5px solid var(--wp-color-grayscale-cosmos);
|
| 358 |
+
margin:var(--wp-space-8) 0 var(--wp-space-10);font-size:16px}
|
| 359 |
+
.acct-nav a{color:var(--wp-color-core-blues-blueprint);font-weight:400;
|
| 360 |
+
text-decoration:none;line-height:23px}
|
| 361 |
+
.acct-nav a:hover{text-decoration:underline}
|
| 362 |
+
.acct-nav a[aria-current="page"]{color:var(--wp-color-grayscale-cosmos);font-weight:500}
|
| 363 |
+
.acct h2{font-family:var(--wp-font-ui);font-size:18px;line-height:24px;font-weight:500;
|
| 364 |
+
letter-spacing:normal;margin:0 0 var(--wp-space-4)}
|
| 365 |
+
.acct-signout{margin-left:auto;color:var(--wp-color-core-blues-blueprint);
|
| 366 |
+
font-weight:400;font-size:16px}
|
| 367 |
+
.tile{border:var(--wp-border-divider);border-radius:8px;padding:var(--wp-space-6);
|
| 368 |
+
margin-bottom:var(--wp-space-4)}
|
| 369 |
+
.tile h3{margin-bottom:var(--wp-space-3)}
|
| 370 |
+
table{width:100%;border-collapse:collapse;font-size:14px}
|
| 371 |
+
th,td{text-align:left;padding:var(--wp-space-3) 0;border-bottom:var(--wp-border-divider)}
|
| 372 |
+
th{color:var(--wp-color-grayscale-graphite);font-weight:600;font-size:13px}
|
| 373 |
+
|
| 374 |
+
/* ---------- home ---------- */
|
| 375 |
+
.hero-banner{background:var(--wp-color-grayscale-parchment);padding:var(--wp-space-24) 0;
|
| 376 |
+
text-align:center}
|
| 377 |
+
.hero-banner h1{font-family:var(--wp-font-display);font-size:48px;line-height:56px;
|
| 378 |
+
font-weight:400;letter-spacing:-1px;margin-bottom:var(--wp-space-4)}
|
| 379 |
+
.hero-banner p{font-size:18px;color:var(--wp-color-grayscale-slate);margin:0 0 var(--wp-space-8)}
|
| 380 |
+
.hero-banner .btn{width:auto;display:inline-flex}
|
| 381 |
+
.tiles{display:grid;grid-template-columns:repeat(3,1fr);gap:var(--wp-space-6);
|
| 382 |
+
padding:var(--wp-space-16) 0}
|
| 383 |
+
.tile-link{display:block;background:var(--wp-color-grayscale-chalk);padding:var(--wp-space-10);
|
| 384 |
+
text-align:center;color:var(--wp-color-grayscale-cosmos);text-decoration:none;border-radius:6px;
|
| 385 |
+
transition:box-shadow var(--wp-transition-p2)}
|
| 386 |
+
.tile-link:hover{box-shadow:var(--wp-shadow-5);text-decoration:none}
|
| 387 |
+
.section-head{display:flex;justify-content:space-between;align-items:baseline;
|
| 388 |
+
margin-bottom:var(--wp-space-6)}
|
| 389 |
+
|
| 390 |
+
/* ---------- footer ---------- */
|
| 391 |
+
/* measured on the source: column headings 14px/600 cosmos, links 14px/400
|
| 392 |
+
slate on a 20px line box, "Need a hand?" 16px/600; seven columns. */
|
| 393 |
+
footer.site{background:var(--wp-color-grayscale-chalk);margin-top:var(--wp-space-20);
|
| 394 |
+
padding:var(--wp-space-16) 0 var(--wp-space-10);font-size:14px}
|
| 395 |
+
.foot-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:var(--wp-space-8)}
|
| 396 |
+
footer.site h4{font-size:14px;font-weight:600;line-height:20px;
|
| 397 |
+
margin:0 0 var(--wp-space-4);color:var(--wp-color-grayscale-cosmos)}
|
| 398 |
+
footer.site ul{list-style:none;margin:0;padding:0;display:grid;gap:var(--wp-space-3)}
|
| 399 |
+
footer.site a{color:var(--wp-color-grayscale-slate);font-weight:400;font-size:14px;
|
| 400 |
+
line-height:20px;text-decoration:none}
|
| 401 |
+
footer.site a:hover{text-decoration:underline}
|
| 402 |
+
.foot-help h4{font-size:16px}
|
| 403 |
+
.foot-legal{border-top:var(--wp-border-divider);margin-top:var(--wp-space-12);
|
| 404 |
+
padding-top:var(--wp-space-6);display:flex;gap:var(--wp-space-6);flex-wrap:wrap;font-size:13px;
|
| 405 |
+
color:var(--wp-color-grayscale-graphite)}
|
| 406 |
+
|
| 407 |
+
/* ---------- home page modules ---------- */
|
| 408 |
+
.hero{position:relative;background:var(--wp-color-grayscale-parchment);
|
| 409 |
+
background-size:cover;background-position:center;min-height:520px;display:flex;
|
| 410 |
+
flex-direction:column;justify-content:center}
|
| 411 |
+
/* the hero widget declares alignmentHorizontal:left, so the copy sits on the
|
| 412 |
+
content edge; .hero is a flex column, so the wrap must fill it rather than
|
| 413 |
+
shrink to its text and get centred. */
|
| 414 |
+
.hero-inner{width:100%;padding-top:var(--wp-space-20);
|
| 415 |
+
padding-bottom:var(--wp-space-20)}
|
| 416 |
+
.hero-h{font-family:var(--wp-font-display);font-size:56px;line-height:60px;font-weight:400;
|
| 417 |
+
letter-spacing:-1.2px;max-width:14ch;margin:0 0 var(--wp-space-8)}
|
| 418 |
+
.hero.on-dark .hero-h{color:var(--wp-color-grayscale-white);
|
| 419 |
+
text-shadow:0 1px 12px #12121240}
|
| 420 |
+
.hero-ctas{display:flex;gap:var(--wp-space-4)}
|
| 421 |
+
.hero-ctas .btn{width:auto}
|
| 422 |
+
.valueprops{background:none;border:0;position:absolute;left:0;right:0;bottom:0}
|
| 423 |
+
.valueprops-inner{display:flex;gap:var(--wp-space-10);justify-content:center;
|
| 424 |
+
padding-top:var(--wp-space-4);padding-bottom:var(--wp-space-5);
|
| 425 |
+
font-size:14px;font-weight:500;color:var(--wp-color-grayscale-white)}
|
| 426 |
+
.valueprops-inner a{color:var(--wp-color-grayscale-white);text-decoration:none}
|
| 427 |
+
.valueprops-inner a:hover{text-decoration:underline}
|
| 428 |
+
.grid-4{grid-template-columns:repeat(4,1fr)!important}
|
| 429 |
+
.grid-4 .card{width:100%}
|
| 430 |
+
.tiles-4{display:grid;grid-template-columns:repeat(4,1fr);gap:var(--wp-space-6)}
|
| 431 |
+
.tiles-4 img{border-radius:6px;margin-bottom:var(--wp-space-3)}
|
| 432 |
+
.band{background:var(--wp-color-core-blues-light-warby);margin-top:var(--wp-space-16)}
|
| 433 |
+
.band-inner{padding:var(--wp-space-16) 0;text-align:center}
|
| 434 |
+
.eligibility{display:flex;gap:var(--wp-space-3);justify-content:center;
|
| 435 |
+
margin-top:var(--wp-space-6);max-width:520px;margin-left:auto;margin-right:auto}
|
| 436 |
+
.sr{position:absolute;left:-9999px}
|
| 437 |
+
.duo{display:grid;grid-template-columns:1fr 1fr;gap:0;margin:0}
|
| 438 |
+
.duo-panel{position:relative;min-height:600px;background-size:cover;
|
| 439 |
+
background-position:center;display:flex;align-items:flex-end;
|
| 440 |
+
padding:var(--wp-space-12)}
|
| 441 |
+
.duo-copy{position:relative;z-index:1;max-width:26ch}
|
| 442 |
+
.promo-block{margin-top:var(--wp-space-20)}
|
| 443 |
+
.promo-inner{display:grid;grid-template-columns:1fr 1fr;gap:var(--wp-space-16);
|
| 444 |
+
align-items:center}
|
| 445 |
+
.promo-block.full .promo-inner{grid-template-columns:1fr;text-align:center;
|
| 446 |
+
max-width:760px}
|
| 447 |
+
.promo-media img{border-radius:6px;width:100%}
|
| 448 |
+
.promo-copy h2{font-family:var(--wp-font-display);font-size:36px;line-height:42px;
|
| 449 |
+
letter-spacing:-.6px;margin-bottom:var(--wp-space-4)}
|
| 450 |
+
.promo-copy p{color:var(--wp-color-grayscale-slate);margin:0 0 var(--wp-space-6)}
|
| 451 |
+
.eyebrow{font-size:13px;font-weight:600;text-transform:uppercase;letter-spacing:.6px;
|
| 452 |
+
color:var(--wp-color-grayscale-graphite);margin:0 0 var(--wp-space-3)}
|
| 453 |
+
.promo-ctas{display:flex;gap:var(--wp-space-4)}
|
| 454 |
+
.promo-ctas .btn{width:auto}
|
| 455 |
+
.promo-block.full .promo-ctas{justify-content:center}
|
| 456 |
+
|
| 457 |
+
.measure-7{grid-template-columns:repeat(4,1fr);row-gap:var(--wp-space-4)}
|
| 458 |
+
.stars{color:var(--wp-color-grayscale-nimbus);font-size:18px;letter-spacing:2px}
|
| 459 |
+
.stars .on{color:var(--wp-color-support-orange)}
|
| 460 |
+
.card-rating{font-size:13px;color:var(--wp-color-grayscale-graphite);
|
| 461 |
+
display:flex;gap:var(--wp-space-1);align-items:center}
|
| 462 |
+
.card-rating .s{color:var(--wp-color-support-orange)}
|
| 463 |
+
|
| 464 |
+
/* ---------- captured information pages ---------- */
|
| 465 |
+
.page-block{padding:var(--wp-space-16) 0}
|
| 466 |
+
.page-block.lead{padding-top:var(--wp-space-20)}
|
| 467 |
+
.page-block:nth-child(even){background:var(--wp-color-grayscale-chalk)}
|
| 468 |
+
.page-inner{display:grid;grid-template-columns:1fr 1fr;gap:var(--wp-space-16);
|
| 469 |
+
align-items:center}
|
| 470 |
+
.page-inner.solo{grid-template-columns:1fr;max-width:760px}
|
| 471 |
+
.page-media img{width:100%;border-radius:6px}
|
| 472 |
+
.page-copy h1{font-family:var(--wp-font-display);font-size:44px;line-height:50px;
|
| 473 |
+
font-weight:400;letter-spacing:-.8px;margin-bottom:var(--wp-space-5)}
|
| 474 |
+
.page-copy h2{font-family:var(--wp-font-display);font-size:32px;line-height:38px;
|
| 475 |
+
margin-bottom:var(--wp-space-4)}
|
| 476 |
+
.page-copy p{color:var(--wp-color-grayscale-slate);line-height:1.6;margin:0 0 var(--wp-space-5)}
|
| 477 |
+
.page-list{list-style:none;margin:0 0 var(--wp-space-5);padding:0;display:grid;
|
| 478 |
+
gap:var(--wp-space-4)}
|
| 479 |
+
.page-list li{display:grid;gap:var(--wp-space-1)}
|
| 480 |
+
.page-list strong{font-weight:600}
|
| 481 |
+
.page-list span{color:var(--wp-color-grayscale-slate)}
|
| 482 |
+
.prose{max-width:760px;padding-top:var(--wp-space-16);padding-bottom:var(--wp-space-32)}
|
| 483 |
+
.prose h1{font-family:var(--wp-font-display);font-size:40px;line-height:46px;
|
| 484 |
+
font-weight:400;letter-spacing:-.8px;margin-bottom:var(--wp-space-8)}
|
| 485 |
+
.prose h2{font-size:26px;line-height:32px;margin:var(--wp-space-10) 0 var(--wp-space-4)}
|
| 486 |
+
.prose h3{font-size:19px;margin:var(--wp-space-8) 0 var(--wp-space-3)}
|
| 487 |
+
.prose p{color:var(--wp-color-grayscale-slate);line-height:1.7;margin:0 0 var(--wp-space-4)}
|
| 488 |
+
.prose li{color:var(--wp-color-grayscale-slate);line-height:1.7;margin-left:var(--wp-space-5)}
|
| 489 |
+
|
| 490 |
+
.rich{color:var(--wp-color-grayscale-slate);line-height:1.65}
|
| 491 |
+
.rich p{margin:0 0 var(--wp-space-4)}
|
| 492 |
+
.rich ul,.rich ol{margin:var(--wp-space-3) 0 var(--wp-space-4);padding-left:var(--wp-space-5)}
|
| 493 |
+
.rich li{margin-bottom:var(--wp-space-2)}
|
| 494 |
+
.rich h3,.rich h4{color:var(--wp-color-grayscale-cosmos);margin:var(--wp-space-5) 0 var(--wp-space-2)}
|
| 495 |
+
|
| 496 |
+
/* ---------- search ----------
|
| 497 |
+
measured on the source: the query field is a borderless hero input spanning
|
| 498 |
+
the content box (1104 wide, 61 tall) at 55px; results are three columns with
|
| 499 |
+
the model name in the display face at 24px, centred. */
|
| 500 |
+
.search-page{padding-top:var(--wp-space-4);padding-bottom:var(--wp-space-24)}
|
| 501 |
+
.search-hero input{width:100%;height:61px;font-size:55px;line-height:61px;
|
| 502 |
+
border:0;border-radius:0;background:none;padding:0;
|
| 503 |
+
font-family:var(--wp-font-display);color:var(--wp-color-grayscale-cosmos)}
|
| 504 |
+
.search-hero input::placeholder{color:var(--wp-color-grayscale-nimbus)}
|
| 505 |
+
.search-hero input:focus{outline:0;box-shadow:0 2px 0 var(--wp-color-grayscale-cosmos)}
|
| 506 |
+
.search-count{color:var(--wp-color-grayscale-graphite);font-size:14px;
|
| 507 |
+
margin:var(--wp-space-8) 0 var(--wp-space-6)}
|
| 508 |
+
.search-grid{display:grid;grid-template-columns:repeat(3,1fr);
|
| 509 |
+
gap:var(--wp-space-14) var(--wp-space-6)}
|
| 510 |
+
.search-hit{display:grid;justify-items:center;gap:var(--wp-space-2);
|
| 511 |
+
text-decoration:none;color:var(--wp-color-grayscale-cosmos)}
|
| 512 |
+
.search-hit:hover{text-decoration:none}
|
| 513 |
+
.search-hit-media{background:var(--wp-color-grayscale-chalk);border-radius:8px;
|
| 514 |
+
width:100%;height:150px;display:flex;align-items:center;justify-content:center;
|
| 515 |
+
overflow:hidden}
|
| 516 |
+
.search-hit-media img{width:70%;height:auto}
|
| 517 |
+
.search-hit-name{font-family:var(--wp-font-display);font-size:24px;line-height:30px;
|
| 518 |
+
font-weight:400}
|
| 519 |
+
.search-hit-color{font-size:14px;color:var(--wp-color-grayscale-graphite)}
|
| 520 |
+
|
| 521 |
+
/* the source gives standalone pages a full-width display heading at 55/61 */
|
| 522 |
+
.retail-page{padding-top:var(--wp-space-4);padding-bottom:var(--wp-space-24)}
|
| 523 |
+
.page-hero-h{font-family:var(--wp-font-display);font-size:55px;line-height:61px;
|
| 524 |
+
font-weight:400;letter-spacing:-1px;text-align:center;
|
| 525 |
+
margin:var(--wp-space-10) 0 var(--wp-space-10)}
|
| 526 |
+
|
| 527 |
+
/* ---------- eye-exam booking ----------
|
| 528 |
+
measured on the source: a 660px column centred at x=270, heading in the
|
| 529 |
+
display face at 40/46 centred, exam cards 660x285 at radius 12px. */
|
| 530 |
+
.booking{width:660px;margin:0 auto;padding:var(--wp-space-10) 0 var(--wp-space-24)}
|
| 531 |
+
.booking h1{font-family:var(--wp-font-display);font-size:40px;line-height:46px;
|
| 532 |
+
font-weight:400;letter-spacing:-.6px;text-align:center;margin:0 0 var(--wp-space-10)}
|
| 533 |
+
.exam-list{display:grid;gap:var(--wp-space-3)}
|
| 534 |
+
.exam-card{display:block;width:660px;min-height:285px;border-radius:12px;
|
| 535 |
+
border:1px solid var(--wp-color-grayscale-nimbus);padding:var(--wp-space-8);
|
| 536 |
+
text-decoration:none;color:var(--wp-color-grayscale-cosmos);
|
| 537 |
+
transition:border-color var(--wp-transition-p2)}
|
| 538 |
+
a.exam-card:hover{border-color:var(--wp-color-grayscale-cosmos);text-decoration:none}
|
| 539 |
+
.exam-card h2{font-family:var(--wp-font-display);font-size:30px;line-height:36px;
|
| 540 |
+
font-weight:400;margin:0 0 var(--wp-space-3)}
|
| 541 |
+
.exam-price{font-size:24px;font-weight:500;margin:0 0 var(--wp-space-1)}
|
| 542 |
+
.exam-meta{color:var(--wp-color-grayscale-graphite);margin:0 0 var(--wp-space-4)}
|
| 543 |
+
.exam-blurb{color:var(--wp-color-grayscale-slate);margin:0 0 var(--wp-space-5);
|
| 544 |
+
line-height:1.5}
|
| 545 |
+
.exam-more{color:var(--wp-color-core-blues-blueprint);font-weight:600}
|
| 546 |
+
.exam-note{font-size:16px;color:var(--wp-color-grayscale-graphite);
|
| 547 |
+
margin-top:var(--wp-space-8);line-height:1.4}
|
| 548 |
+
.booking-form{margin-top:var(--wp-space-8)}
|
| 549 |
+
.booking-form .btn{width:auto;min-width:240px}
|
| 550 |
+
|
| 551 |
+
/* home: the duo module and the "Warby Parker in the wild" UGC rail */
|
| 552 |
+
.duo-panel h2{font-family:var(--wp-font-display);font-size:32px;line-height:38px;
|
| 553 |
+
font-weight:400;letter-spacing:-.4px;margin:0 0 var(--wp-space-5);
|
| 554 |
+
color:var(--wp-color-grayscale-white);text-shadow:0 1px 12px #12121240}
|
| 555 |
+
.duo-ctas{display:flex;gap:var(--wp-space-3);flex-wrap:wrap}
|
| 556 |
+
.duo-ctas .btn{width:auto}
|
| 557 |
+
.ugc-rail{display:grid;grid-template-columns:repeat(4,1fr);gap:var(--wp-space-6)}
|
| 558 |
+
.ugc-item{margin:0}
|
| 559 |
+
.ugc-item img{width:100%;border-radius:8px;aspect-ratio:1;object-fit:cover}
|
| 560 |
+
|
| 561 |
+
/* ---------- checkout ----------
|
| 562 |
+
measured on /checkout/shipping-address: no site chrome, a 656px column at
|
| 563 |
+
x=272, heading in the display face at 40/46, field rows 656x60 at radius 12px
|
| 564 |
+
with floating labels, City 322 beside State 320, CTA 656x48 at radius 100px. */
|
| 565 |
+
.checkout-step{width:656px;margin:0 auto;padding:var(--wp-space-16) 0 var(--wp-space-24);
|
| 566 |
+
position:relative}
|
| 567 |
+
.checkout-back{position:absolute;left:-2px;top:var(--wp-space-6);width:40px;height:40px;
|
| 568 |
+
display:inline-flex;align-items:center;justify-content:center;border-radius:50%;
|
| 569 |
+
border:1px solid var(--wp-color-grayscale-nimbus);color:var(--wp-color-grayscale-cosmos);
|
| 570 |
+
text-decoration:none;font-size:18px}
|
| 571 |
+
.checkout-step h1{font-family:var(--wp-font-display);font-size:40px;line-height:46px;
|
| 572 |
+
font-weight:400;letter-spacing:-.6px;margin:var(--wp-space-10) 0 var(--wp-space-8)}
|
| 573 |
+
.cofield{position:relative;margin-bottom:var(--wp-space-3)}
|
| 574 |
+
.cofield input,.cofield select{width:100%;height:60px;border-radius:12px;
|
| 575 |
+
border:1px solid var(--wp-color-grayscale-nimbus);background:#fff;font-size:16px;
|
| 576 |
+
padding:var(--wp-space-6) var(--wp-space-4) var(--wp-space-2)}
|
| 577 |
+
.cofield select{padding-top:0;padding-bottom:0;height:58px}
|
| 578 |
+
.cofield label{position:absolute;left:var(--wp-space-4);top:19px;font-size:16px;
|
| 579 |
+
color:var(--wp-color-grayscale-graphite);pointer-events:none;
|
| 580 |
+
transition:all var(--wp-transition-p2)}
|
| 581 |
+
.cofield input:focus + label,
|
| 582 |
+
.cofield input:not(:placeholder-shown) + label{top:8px;font-size:12px}
|
| 583 |
+
.cofield input:focus,.cofield select:focus{outline:0;
|
| 584 |
+
border-color:var(--wp-color-grayscale-cosmos)}
|
| 585 |
+
.cofield.invalid input,.cofield.invalid select{border-color:var(--wp-color-support-red);
|
| 586 |
+
background:var(--wp-color-support-light-red)}
|
| 587 |
+
.cofield-row{display:grid;grid-template-columns:322px 320px;gap:14px}
|
| 588 |
+
.checkout-form .btn{margin-top:var(--wp-space-5)}
|
| 589 |
+
|
| 590 |
+
/* hero holds the value-prop strip against its own bottom edge */
|
| 591 |
+
.hero{position:relative}
|
| 592 |
+
/* the "We’ve got your eyes covered" band, the eligibility form, the tiles
|
| 593 |
+
sub-line and the UGC caption are defined in the HOME MODULES block below. */
|
| 594 |
+
|
| 595 |
+
/* ============================================================================
|
| 596 |
+
HOME MODULES — measured against the signed-in source home page at 1200px.
|
| 597 |
+
Module order and geometry verified by screenshot survey (evidence/source/
|
| 598 |
+
capture-log.md, "home module survey"). Later than the earlier home rules on
|
| 599 |
+
purpose: this block is the authority for every module the home page renders.
|
| 600 |
+
NOTE: never use the `padding: X 0` shorthand on `.wrap` descendants — it
|
| 601 |
+
zeroes the 48px content offset. Use padding-top/padding-bottom.
|
| 602 |
+
========================================================================== */
|
| 603 |
+
|
| 604 |
+
/* --- hero: 1200x583 full-bleed still, nav overlaid, value props on the image */
|
| 605 |
+
.hero{min-height:583px;background-size:cover;background-position:center;
|
| 606 |
+
display:flex;flex-direction:column;justify-content:center}
|
| 607 |
+
.hero-inner{padding-top:0;padding-bottom:0}
|
| 608 |
+
.hero-ctas{flex-wrap:wrap;align-items:center}
|
| 609 |
+
.hero .chev{display:block;width:100%;margin-top:var(--wp-space-4);
|
| 610 |
+
color:var(--wp-color-grayscale-white);font-size:17px;text-decoration:none}
|
| 611 |
+
.hero .chev::after{content:" \203A"}
|
| 612 |
+
.hero .chev:hover{text-decoration:underline}
|
| 613 |
+
.valueprops{padding-bottom:var(--wp-space-6)}
|
| 614 |
+
.valueprops-inner{justify-content:space-between;gap:var(--wp-space-6);
|
| 615 |
+
color:var(--wp-color-grayscale-white);font-size:15px}
|
| 616 |
+
|
| 617 |
+
/* --- duo: two 600x600 panels, flush to each other and to the hero above --- */
|
| 618 |
+
.duo{margin-top:0}
|
| 619 |
+
.duo-panel{min-height:0;aspect-ratio:1/1;border-radius:0;
|
| 620 |
+
display:flex;align-items:flex-end;padding:0 0 var(--wp-space-12) 48px}
|
| 621 |
+
.duo-panel h2{color:var(--wp-color-grayscale-white);max-width:11ch}
|
| 622 |
+
.duo-ctas .btn,.duo-ctas .btn.secondary{background:var(--wp-color-grayscale-white);
|
| 623 |
+
color:var(--wp-color-grayscale-cosmos);border-color:var(--wp-color-grayscale-white)}
|
| 624 |
+
|
| 625 |
+
/* --- product rails ------------------------------------------------------- */
|
| 626 |
+
.rail-sec{margin-top:var(--wp-space-20)}
|
| 627 |
+
.rail-sec .section-head{align-items:center;margin-bottom:var(--wp-space-6)}
|
| 628 |
+
.rail-sec .section-head h2{font-size:30px;line-height:36px;font-weight:500;
|
| 629 |
+
font-family:var(--wp-font-body)}
|
| 630 |
+
.rail-sec .section-head h2 .sel{color:var(--wp-color-core-blues-blueprint)}
|
| 631 |
+
.rail-nav{display:flex;gap:var(--wp-space-3)}
|
| 632 |
+
.rail-arrow{width:48px;height:48px;border-radius:50%;background:transparent;
|
| 633 |
+
border:1px solid var(--wp-color-grayscale-nimbus);cursor:pointer;position:relative}
|
| 634 |
+
.rail-arrow::after{content:"";position:absolute;inset:0;margin:auto;width:14px;height:14px;
|
| 635 |
+
border-top:1.5px solid var(--wp-color-grayscale-cosmos);
|
| 636 |
+
border-right:1.5px solid var(--wp-color-grayscale-cosmos);transform:rotate(45deg);
|
| 637 |
+
margin-left:15px}
|
| 638 |
+
.rail-arrow[data-dir="-1"]::after{transform:rotate(225deg);margin-left:19px}
|
| 639 |
+
.rail-arrow:hover{border-color:var(--wp-color-grayscale-cosmos)}
|
| 640 |
+
.btn.ghost{width:auto;background:transparent;color:var(--wp-color-core-blues-blueprint);
|
| 641 |
+
border:1px solid var(--wp-color-core-blues-blueprint)}
|
| 642 |
+
.btn.ghost:hover{background:var(--wp-color-core-blues-blueprint);
|
| 643 |
+
color:var(--wp-color-grayscale-white)}
|
| 644 |
+
.rail{display:flex;gap:var(--wp-space-6);overflow-x:auto;scroll-snap-type:x mandatory;
|
| 645 |
+
padding-bottom:var(--wp-space-4);scrollbar-width:none}
|
| 646 |
+
.rail::-webkit-scrollbar{display:none}
|
| 647 |
+
.rail .card{flex:0 0 352px;width:352px;height:auto;scroll-snap-align:start;
|
| 648 |
+
display:flex;flex-direction:column;border:1px solid var(--wp-color-grayscale-nimbus);
|
| 649 |
+
border-radius:8px;padding:var(--wp-space-4)}
|
| 650 |
+
.rail .card-media{height:200px}
|
| 651 |
+
/* the source rail card puts name+price on one row above the swatches */
|
| 652 |
+
.rail .card-title{order:1;display:flex;justify-content:space-between;align-items:baseline;
|
| 653 |
+
gap:var(--wp-space-4);margin-top:var(--wp-space-2)}
|
| 654 |
+
.rail .card-name{font-family:var(--wp-font-display);font-size:22px;line-height:28px}
|
| 655 |
+
.rail .card-price{font-size:16px;color:var(--wp-color-grayscale-cosmos)}
|
| 656 |
+
.rail .swatches{order:2;margin-top:var(--wp-space-3);flex-wrap:wrap}
|
| 657 |
+
.rail .card-cta{order:3;margin-top:var(--wp-space-4);width:100%;text-align:center;
|
| 658 |
+
background:transparent;color:var(--wp-color-core-blues-blueprint);
|
| 659 |
+
border:1px solid var(--wp-color-core-blues-blueprint);border-radius:24px;
|
| 660 |
+
padding-top:11px;padding-bottom:11px;text-decoration:none;font-size:15px}
|
| 661 |
+
.rail .card-cta:hover{background:var(--wp-color-core-blues-blueprint);
|
| 662 |
+
color:var(--wp-color-grayscale-white)}
|
| 663 |
+
.rail .card-plain{flex-basis:264px;width:264px}
|
| 664 |
+
|
| 665 |
+
/* --- banners: image with copy overlaid on the left ----------------------- */
|
| 666 |
+
.banner{position:relative;margin-top:var(--wp-space-20)}
|
| 667 |
+
.banner.bleed{margin-top:var(--wp-space-16)}
|
| 668 |
+
.banner-media{position:absolute;inset:0}
|
| 669 |
+
.banner.bleed .banner-media{position:static}
|
| 670 |
+
.banner-media img{width:100%;height:100%;object-fit:cover;display:block;border-radius:12px}
|
| 671 |
+
.banner.bleed .banner-media img{border-radius:0}
|
| 672 |
+
.banner-copy{position:absolute;left:0;right:0;top:0;bottom:0;
|
| 673 |
+
display:flex;flex-direction:column;justify-content:center;align-items:flex-start;
|
| 674 |
+
max-width:1200px}
|
| 675 |
+
.banner:not(.bleed){min-height:460px}
|
| 676 |
+
.banner:not(.bleed) .banner-copy{padding-left:96px;padding-right:96px}
|
| 677 |
+
.banner-copy h2{font-family:var(--wp-font-display);font-size:44px;line-height:50px;
|
| 678 |
+
font-weight:400;margin:0 0 var(--wp-space-4);max-width:14ch}
|
| 679 |
+
.banner-copy p{margin:0 0 var(--wp-space-6);font-size:17px;line-height:26px;max-width:40ch}
|
| 680 |
+
.banner-ctas{display:flex;gap:var(--wp-space-4);align-items:center;flex-wrap:wrap}
|
| 681 |
+
.banner-ctas .btn{width:auto}
|
| 682 |
+
.banner-dark .banner-copy,.banner-navy .banner-copy{color:var(--wp-color-grayscale-white)}
|
| 683 |
+
.banner-dark .banner-copy h2,.banner-navy .banner-copy h2{color:var(--wp-color-grayscale-white)}
|
| 684 |
+
.banner-navy .banner-media img{background:var(--wp-color-core-blues-ink)}
|
| 685 |
+
.banner-navy{background:var(--wp-color-core-blues-ink);border-radius:12px;
|
| 686 |
+
margin-left:48px;margin-right:48px}
|
| 687 |
+
.banner-navy .banner-copy{padding-left:48px}
|
| 688 |
+
.banner-dark .chev,.banner-navy .chev{color:var(--wp-color-grayscale-white)}
|
| 689 |
+
.banner-dark .btn,.banner-navy .btn{background:var(--wp-color-grayscale-white);
|
| 690 |
+
color:var(--wp-color-grayscale-cosmos);border-color:var(--wp-color-grayscale-white)}
|
| 691 |
+
.chev{color:var(--wp-color-core-blues-blueprint);text-decoration:none;font-size:16px}
|
| 692 |
+
.chev::after{content:" \203A"}
|
| 693 |
+
.chev:hover{text-decoration:underline}
|
| 694 |
+
|
| 695 |
+
/* the Intelligent Eyewear banner carries an email capture under its copy */
|
| 696 |
+
.signup{margin-top:var(--wp-space-8);max-width:420px}
|
| 697 |
+
.signup-h{font-size:18px;font-weight:500;margin:0 0 var(--wp-space-3)}
|
| 698 |
+
.signup-row{display:flex;gap:var(--wp-space-3);align-items:flex-end}
|
| 699 |
+
.signup-row .field{flex:1;display:block}
|
| 700 |
+
.signup-row .field span{display:block;font-size:13px;margin-bottom:4px}
|
| 701 |
+
.signup-row input{width:100%;height:48px;border-radius:6px;padding-left:12px;
|
| 702 |
+
border:1px solid var(--wp-color-grayscale-nimbus);background:var(--wp-color-grayscale-white);
|
| 703 |
+
color:var(--wp-color-grayscale-cosmos)}
|
| 704 |
+
.signup-row .btn{width:auto;background:var(--wp-color-core-blues-blueprint);
|
| 705 |
+
color:var(--wp-color-grayscale-white);border-color:var(--wp-color-core-blues-blueprint)}
|
| 706 |
+
.signup-note{font-size:13px;margin:var(--wp-space-3) 0 0;opacity:.9}
|
| 707 |
+
.signup-note a{color:inherit}
|
| 708 |
+
|
| 709 |
+
/* --- category tiles: 254x340 photo cards with an overlaid white pill ----- */
|
| 710 |
+
.tiles-sec{margin-top:var(--wp-space-20)}
|
| 711 |
+
h2.centred{font-family:var(--wp-font-display);font-size:40px;line-height:46px;
|
| 712 |
+
font-weight:400;text-align:center;margin:0 0 var(--wp-space-4)}
|
| 713 |
+
.tiles-sec .tiles-sub{text-align:center;margin-bottom:var(--wp-space-8)}
|
| 714 |
+
.tiles-4{gap:var(--wp-space-6)}
|
| 715 |
+
.tile-link.overlay{position:relative;display:block;border-radius:8px;overflow:hidden;
|
| 716 |
+
aspect-ratio:254/340;text-decoration:none}
|
| 717 |
+
.tile-link.overlay img{width:100%;height:100%;object-fit:cover;border-radius:0;margin:0}
|
| 718 |
+
.tile-pill{position:absolute;left:50%;bottom:24px;transform:translateX(-50%);
|
| 719 |
+
white-space:nowrap;background:var(--wp-color-grayscale-white);
|
| 720 |
+
color:var(--wp-color-grayscale-cosmos);border-radius:24px;padding:12px 24px;
|
| 721 |
+
font-size:15px;font-weight:500}
|
| 722 |
+
.tile-link.overlay:hover .tile-pill{background:var(--wp-color-grayscale-chalk)}
|
| 723 |
+
|
| 724 |
+
/* --- "We've got your eyes covered" statement ----------------------------- */
|
| 725 |
+
.covered-band{background:var(--wp-color-grayscale-white);
|
| 726 |
+
padding-top:var(--wp-space-20);padding-bottom:var(--wp-space-20);text-align:center}
|
| 727 |
+
.covered-band .eyebrow{color:var(--wp-color-support-classroom-green);font-size:16px;
|
| 728 |
+
margin:0 0 var(--wp-space-6);text-transform:none;letter-spacing:0}
|
| 729 |
+
.covered-sentence{font-family:var(--wp-font-display);font-size:64px;line-height:72px;
|
| 730 |
+
font-weight:400;color:var(--wp-color-grayscale-cosmos);margin:0;text-align:center}
|
| 731 |
+
.covered-sentence a{color:var(--wp-color-core-blues-blueprint);text-decoration:underline}
|
| 732 |
+
|
| 733 |
+
/* --- insurance eligibility card ------------------------------------------ */
|
| 734 |
+
.elig-card{margin-top:var(--wp-space-20);background:var(--wp-color-core-blues-ink);
|
| 735 |
+
color:var(--wp-color-grayscale-white);border-radius:12px;text-align:center;
|
| 736 |
+
padding:var(--wp-space-16) 96px}
|
| 737 |
+
.elig-brand{display:flex;align-items:center;justify-content:center;gap:var(--wp-space-4);
|
| 738 |
+
font-size:13px;letter-spacing:.14em;margin:0 0 var(--wp-space-6)}
|
| 739 |
+
.elig-brand i{width:1px;height:16px;background:var(--wp-color-core-blues-ink-wash)}
|
| 740 |
+
.elig-partner{letter-spacing:0;font-size:17px}
|
| 741 |
+
.elig-card h2{font-family:var(--wp-font-display);font-size:40px;line-height:46px;
|
| 742 |
+
font-weight:400;margin:0 0 var(--wp-space-3);color:var(--wp-color-grayscale-white)}
|
| 743 |
+
.elig-body{margin:0 0 var(--wp-space-8);color:var(--wp-color-grayscale-white)}
|
| 744 |
+
.elig-row{display:grid;grid-template-columns:repeat(4,1fr);gap:var(--wp-space-4)}
|
| 745 |
+
.elig-row .field{text-align:left}
|
| 746 |
+
.elig-row label{display:block;font-size:13px;margin-bottom:4px}
|
| 747 |
+
.elig-row input{width:100%;height:52px;border-radius:6px;padding-left:12px;border:0;
|
| 748 |
+
background:var(--wp-color-grayscale-white);color:var(--wp-color-grayscale-cosmos)}
|
| 749 |
+
.ins-dep{display:flex;align-items:center;justify-content:center;gap:var(--wp-space-3);
|
| 750 |
+
margin-top:var(--wp-space-6);font-size:15px}
|
| 751 |
+
.eligibility-form .btn{width:auto;margin-top:var(--wp-space-6);
|
| 752 |
+
background:var(--wp-color-grayscale-white);color:var(--wp-color-grayscale-cosmos);
|
| 753 |
+
border-color:var(--wp-color-grayscale-white)}
|
| 754 |
+
.elig-alt{margin:var(--wp-space-6) 0 0}
|
| 755 |
+
.elig-alt .chev{color:var(--wp-color-grayscale-white)}
|
| 756 |
+
|
| 757 |
+
/* --- side-by-side promos -------------------------------------------------- */
|
| 758 |
+
.promo-inner{align-items:center}
|
| 759 |
+
.promo-right .promo-media{order:2}
|
| 760 |
+
.promo-square .promo-media{width:368px;justify-self:center}
|
| 761 |
+
.promo-square .promo-media img{aspect-ratio:1/1;object-fit:cover;border-radius:8px}
|
| 762 |
+
.promo-store .promo-media{position:relative;width:368px;justify-self:end}
|
| 763 |
+
.promo-store .promo-media img{aspect-ratio:368/294;object-fit:cover;border-radius:8px}
|
| 764 |
+
.promo-cap{position:absolute;left:24px;bottom:20px;color:var(--wp-color-grayscale-white);
|
| 765 |
+
font-size:22px;font-weight:600;text-shadow:0 1px 6px #0006}
|
| 766 |
+
.promo-cap span{display:block;font-size:15px;font-weight:400}
|
| 767 |
+
.promo-copy h2{font-size:56px;line-height:62px}
|
| 768 |
+
.promo-copy .eyebrow{color:var(--wp-color-support-classroom-green);font-size:16px;
|
| 769 |
+
text-transform:none;letter-spacing:0;margin:0 0 var(--wp-space-3)}
|
| 770 |
+
.promo-ctas .btn.secondary{background:var(--wp-color-core-blues-ink);
|
| 771 |
+
color:var(--wp-color-grayscale-white);border-color:var(--wp-color-core-blues-ink)}
|
| 772 |
+
|
| 773 |
+
/* --- UGC: 254x340 cards with the caption overlaid on the photo ----------- */
|
| 774 |
+
.ugc-sec{margin-top:var(--wp-space-20)}
|
| 775 |
+
.ugc-item a{display:block;position:relative;border-radius:8px;overflow:hidden;
|
| 776 |
+
text-decoration:none}
|
| 777 |
+
.ugc-item img{aspect-ratio:254/340;border-radius:0}
|
| 778 |
+
.ugc-item figcaption{position:absolute;left:16px;right:16px;bottom:16px;margin:0;
|
| 779 |
+
color:var(--wp-color-grayscale-white);font-size:15px;font-weight:600;
|
| 780 |
+
text-shadow:0 1px 6px #0006}
|
| 781 |
+
.ugc-item figcaption span{display:block;font-weight:400;font-size:14px;
|
| 782 |
+
color:var(--wp-color-grayscale-white)}
|
| 783 |
+
|
| 784 |
+
/* --- footer -------------------------------------------------------------- */
|
| 785 |
+
.foot-grid{grid-template-columns:repeat(4,1fr) 1.1fr;gap:var(--wp-space-10);
|
| 786 |
+
align-items:start}
|
| 787 |
+
.foot-col h4{margin-top:var(--wp-space-8)}
|
| 788 |
+
.foot-col h4:first-child{margin-top:0}
|
| 789 |
+
.foot-help{border-left:var(--wp-border-divider);padding-left:var(--wp-space-10);
|
| 790 |
+
text-align:center}
|
| 791 |
+
.foot-help h4{margin:0 0 var(--wp-space-3)}
|
| 792 |
+
.foot-help p{font-size:14px;line-height:22px;margin:0 0 var(--wp-space-6)}
|
| 793 |
+
.foot-help-links{display:flex;justify-content:center;gap:var(--wp-space-8);
|
| 794 |
+
margin-bottom:var(--wp-space-6)}
|
| 795 |
+
.foot-help-links a{display:flex;flex-direction:column;align-items:center;gap:6px;
|
| 796 |
+
font-size:14px;text-decoration:none;color:var(--wp-color-grayscale-cosmos)}
|
| 797 |
+
.foot-apps{display:flex;justify-content:center;gap:var(--wp-space-3);
|
| 798 |
+
margin-bottom:var(--wp-space-6)}
|
| 799 |
+
.foot-badge{display:inline-flex;flex-direction:column;justify-content:center;
|
| 800 |
+
background:var(--wp-color-grayscale-black);color:var(--wp-color-grayscale-white);
|
| 801 |
+
border-radius:6px;padding:6px 14px;font-size:9px;line-height:12px;text-decoration:none;
|
| 802 |
+
min-width:128px}
|
| 803 |
+
.foot-badge b{font-size:15px;line-height:18px;font-weight:500}
|
| 804 |
+
.foot-social{display:flex;justify-content:center;gap:var(--wp-space-5)}
|
| 805 |
+
.foot-legal-bar{border-top:var(--wp-border-divider);margin-top:var(--wp-space-12);
|
| 806 |
+
padding-top:var(--wp-space-8);padding-bottom:var(--wp-space-8)}
|
| 807 |
+
.foot-legal{display:flex;align-items:flex-start;gap:var(--wp-space-8);
|
| 808 |
+
border-top:0;margin-top:0;padding-top:0}
|
| 809 |
+
.foot-region{display:flex;align-items:center;gap:var(--wp-space-4);flex:0 0 auto}
|
| 810 |
+
.foot-region a{padding:6px 14px;border-radius:20px;font-size:14px;text-decoration:none;
|
| 811 |
+
color:var(--wp-color-grayscale-cosmos)}
|
| 812 |
+
.foot-region a.on{border:1px solid var(--wp-color-grayscale-cosmos)}
|
| 813 |
+
.foot-legal-links{display:flex;flex-wrap:wrap;gap:var(--wp-space-3) var(--wp-space-6);
|
| 814 |
+
max-width:900px}
|
| 815 |
+
.foot-legal-links a{font-size:13px;line-height:19px;color:var(--wp-color-grayscale-cosmos);
|
| 816 |
+
text-decoration:none;max-width:150px}
|
| 817 |
+
.foot-legal-links a:hover{text-decoration:underline}
|
| 818 |
+
.foot-art{display:block;width:100%;height:auto}
|
| 819 |
+
.foot-note{font-size:12px;color:var(--wp-color-grayscale-graphite);
|
| 820 |
+
padding-top:var(--wp-space-4);padding-bottom:var(--wp-space-4);margin:0}
|
| 821 |
+
|
| 822 |
+
/* footer icons: inline masks so no external icon font is needed */
|
| 823 |
+
.fi{display:inline-block;width:22px;height:22px;background:currentColor;
|
| 824 |
+
-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;
|
| 825 |
+
-webkit-mask-position:center;mask-position:center;
|
| 826 |
+
-webkit-mask-size:contain;mask-size:contain}
|
| 827 |
+
.fi-bell{-webkit-mask-image:var(--i-bell);mask-image:var(--i-bell)}
|
| 828 |
+
.fi-chat{-webkit-mask-image:var(--i-chat);mask-image:var(--i-chat)}
|
| 829 |
+
.fi-tiktok{-webkit-mask-image:var(--i-tiktok);mask-image:var(--i-tiktok)}
|
| 830 |
+
.fi-facebook{-webkit-mask-image:var(--i-facebook);mask-image:var(--i-facebook)}
|
| 831 |
+
.fi-instagram{-webkit-mask-image:var(--i-instagram);mask-image:var(--i-instagram)}
|
| 832 |
+
.fi-youtube{-webkit-mask-image:var(--i-youtube);mask-image:var(--i-youtube)}
|
| 833 |
+
.fi-twitter{-webkit-mask-image:var(--i-twitter);mask-image:var(--i-twitter)}
|
| 834 |
+
.foot-social a{color:var(--wp-color-grayscale-cosmos)}
|
| 835 |
+
|
| 836 |
+
/* icon masks used by the footer help and social rows */
|
| 837 |
+
:root{
|
| 838 |
+
--i-bell: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20d%3D%22M12%204a1.6%201.6%200%201%201%200-3.2A1.6%201.6%200%200%201%2012%204Zm0%201c-4.4%200-8%203.1-8%207h16c0-3.9-3.6-7-8-7ZM2%2013h20v2H2z%22%2F%3E%3C%2Fsvg%3E");
|
| 839 |
+
--i-chat: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20d%3D%22M3%204h13a2%202%200%200%201%202%202v7a2%202%200%200%201-2%202H8l-5%204V4Zm16%203h2a2%202%200%200%201%202%202v11l-4-3h-7a2%202%200%200%201-2-2h7a2%202%200%200%200%202-2V7Z%22%2F%3E%3C%2Fsvg%3E");
|
| 840 |
+
--i-tiktok: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20d%3D%22M16.5%202h-3v13.2a2.7%202.7%200%201%201-2.2-2.65V9.4A6.1%206.1%200%201%200%2016.6%2015.4V8.6a7.3%207.3%200%200%200%204.4%201.45V7A4.6%204.6%200%200%201%2016.5%202Z%22%2F%3E%3C%2Fsvg%3E");
|
| 841 |
+
--i-facebook: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20d%3D%22M13.5%2022v-8h2.7l.4-3.1h-3.1V8.9c0-.9.25-1.5%201.55-1.5h1.65V4.6A22%2022%200%200%200%2014.3%204.5c-2.4%200-4%201.45-4%204.1v2.3H7.6V14h2.7v8Z%22%2F%3E%3C%2Fsvg%3E");
|
| 842 |
+
--i-instagram: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20d%3D%22M12%202c2.7%200%203%200%204.1.06%201.1.05%201.8.22%202.4.46a4.9%204.9%200%200%201%201.8%201.18%204.9%204.9%200%200%201%201.18%201.8c.24.6.41%201.3.46%202.4C22%209%2022%209.3%2022%2012s0%203-.06%204.1c-.05%201.1-.22%201.8-.46%202.4a5%205%200%200%201-2.98%202.98c-.6.24-1.3.41-2.4.46C15%2022%2014.7%2022%2012%2022s-3%200-4.1-.06c-1.1-.05-1.8-.22-2.4-.46a5%205%200%200%201-2.98-2.98c-.24-.6-.41-1.3-.46-2.4C2%2015%202%2014.7%202%2012s0-3%20.06-4.1c.05-1.1.22-1.8.46-2.4A5%205%200%200%201%205.5%202.52c.6-.24%201.3-.41%202.4-.46C9%202%209.3%202%2012%202Zm0%201.8c-2.65%200-2.96.01-4%20.06-.97.04-1.5.2-1.85.34-.46.18-.8.4-1.15.75-.35.35-.57.69-.75%201.15-.14.35-.3.88-.34%201.85-.05%201.04-.06%201.35-.06%204s.01%202.96.06%204c.04.97.2%201.5.34%201.85.18.46.4.8.75%201.15.35.35.69.57%201.15.75.35.14.88.3%201.85.34%201.04.05%201.35.06%204%20.06s2.96-.01%204-.06c.97-.04%201.5-.2%201.85-.34.46-.18.8-.4%201.15-.75.35-.35.57-.69.75-1.15.14-.35.3-.88.34-1.85.05-1.04.06-1.35.06-4s-.01-2.96-.06-4c-.04-.97-.2-1.5-.34-1.85a3.1%203.1%200%200%200-.75-1.15%203.1%203.1%200%200%200-1.15-.75c-.35-.14-.88-.3-1.85-.34-1.04-.05-1.35-.06-4-.06Zm0%203.06a5.14%205.14%200%201%201%200%2010.28%205.14%205.14%200%200%201%200-10.28Zm0%201.8a3.34%203.34%200%201%200%200%206.68%203.34%203.34%200%200%200%200-6.68Zm5.34-3.2a1.2%201.2%200%201%201%200%202.4%201.2%201.2%200%200%201%200-2.4Z%22%2F%3E%3C%2Fsvg%3E");
|
| 843 |
+
--i-youtube: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20d%3D%22M23%2012s0-3.4-.43-5.03a2.6%202.6%200%200%200-1.84-1.85C19.1%204.7%2012%204.7%2012%204.7s-7.1%200-8.73.42a2.6%202.6%200%200%200-1.84%201.85C1%208.6%201%2012%201%2012s0%203.4.43%205.03c.24.9.94%201.6%201.84%201.85%201.63.42%208.73.42%208.73.42s7.1%200%208.73-.42a2.6%202.6%200%200%200%201.84-1.85C23%2015.4%2023%2012%2023%2012Zm-13.3%203.2V8.8l6%203.2-6%203.2Z%22%2F%3E%3C%2Fsvg%3E");
|
| 844 |
+
--i-twitter: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20d%3D%22M22%205.9c-.74.33-1.53.55-2.36.65a4.1%204.1%200%200%200%201.8-2.27c-.8.47-1.68.81-2.6%201a4.1%204.1%200%200%200-7%203.74A11.65%2011.65%200%200%201%203.4%204.7a4.1%204.1%200%200%200%201.27%205.48c-.67-.02-1.3-.2-1.86-.5v.05a4.1%204.1%200%200%200%203.29%204.02c-.6.17-1.25.19-1.86.07a4.1%204.1%200%200%200%203.83%202.85A8.24%208.24%200%200%201%202%2018.4a11.62%2011.62%200%200%200%206.29%201.84c7.55%200%2011.68-6.25%2011.68-11.67v-.53c.8-.58%201.5-1.3%202.03-2.13Z%22%2F%3E%3C%2Fsvg%3E");
|
| 845 |
+
}
|
| 846 |
+
.signup-ok{margin:var(--wp-space-3) 0 0;font-size:14px;font-weight:500}
|
| 847 |
+
/* duo copy: measured on the source — h2 box 240px, CTA row on one line, the
|
| 848 |
+
button row bottom sitting 96px above the panel edge */
|
| 849 |
+
.duo-panel{padding-bottom:var(--wp-space-24)}
|
| 850 |
+
.duo-copy{max-width:none}
|
| 851 |
+
.duo-panel h2{width:240px;max-width:none;margin-bottom:var(--wp-space-6)}
|
| 852 |
+
.duo-ctas{flex-wrap:nowrap}
|
| 853 |
+
.duo-ctas .btn{white-space:nowrap}
|
| 854 |
+
/* home rail cards: 352 wide, white media panel, frame image 316 wide, and the
|
| 855 |
+
"Try on" pill pinned top-right and always visible (the collection card only
|
| 856 |
+
reveals it on hover) */
|
| 857 |
+
.rail-sec .section-head h2 .sel{margin-left:.28em;text-decoration:none}
|
| 858 |
+
.rail-sec .section-head h2 .sel:hover{text-decoration:underline}
|
| 859 |
+
.rail .card-media{background:var(--wp-color-grayscale-white);height:220px}
|
| 860 |
+
.rail .card-media img{width:316px}
|
| 861 |
+
.rail .card-tryon{opacity:1;left:auto;right:12px;top:12px;bottom:auto;transform:none;
|
| 862 |
+
border:1px solid var(--wp-color-grayscale-nimbus);
|
| 863 |
+
background:var(--wp-color-grayscale-white)}
|
| 864 |
+
.rail .fav{top:12px;left:12px}
|
| 865 |
+
/* the full-bleed banner takes its height from the image, so reserve the source's
|
| 866 |
+
1200x625 ratio up front — otherwise the absolutely positioned copy escapes the
|
| 867 |
+
section while the lazy image is still loading */
|
| 868 |
+
.banner.bleed{aspect-ratio:1200/625}
|
| 869 |
+
.banner.bleed .banner-media,.banner.bleed .banner-media img{height:100%}
|
| 870 |
+
.banner.bleed .banner-media img{aspect-ratio:1200/625;object-fit:cover}
|
| 871 |
+
/* Intelligent Eyewear banner: dark copy inset 80px, stacked email capture with a
|
| 872 |
+
400px input, the privacy line under it and a full-width Sign up pill */
|
| 873 |
+
.banner.bleed .banner-copy{padding-left:80px;padding-right:80px;
|
| 874 |
+
color:var(--wp-color-grayscale-cosmos)}
|
| 875 |
+
.banner-light .banner-copy h2{color:var(--wp-color-grayscale-cosmos)}
|
| 876 |
+
.plainlink{color:var(--wp-color-grayscale-cosmos);text-decoration:underline;font-size:16px}
|
| 877 |
+
.signup{max-width:400px;width:400px}
|
| 878 |
+
.signup input{width:100%;height:56px;border-radius:6px;padding-left:16px;font-size:16px;
|
| 879 |
+
border:1px solid var(--wp-color-grayscale-nimbus);
|
| 880 |
+
background:var(--wp-color-grayscale-white);color:var(--wp-color-grayscale-cosmos)}
|
| 881 |
+
.signup input::placeholder{color:var(--wp-color-grayscale-graphite)}
|
| 882 |
+
.signup .btn{width:100%;margin-top:var(--wp-space-4);
|
| 883 |
+
background:var(--wp-color-core-blues-blueprint);color:var(--wp-color-grayscale-white);
|
| 884 |
+
border-color:var(--wp-color-core-blues-blueprint)}
|
| 885 |
+
.signup-note{font-size:14px;margin-top:var(--wp-space-4)}
|
| 886 |
+
.signup-note a{color:inherit;text-decoration:underline}
|
| 887 |
+
/* the source's category tile is the photo itself, edge to edge — the shared
|
| 888 |
+
.tile-link padding and chalk plate must not apply to the overlay variant */
|
| 889 |
+
.tile-link.overlay{padding:0;background:none;border:0}
|
| 890 |
+
/* the source's inset banners are 1104 wide cards at x=48 with a 12px radius
|
| 891 |
+
(measured: family 1104x460, progressives 1104x460, charity 1104x428) */
|
| 892 |
+
.banner:not(.bleed){margin-left:48px;margin-right:48px;border-radius:12px;overflow:hidden}
|
| 893 |
+
.banner:not(.bleed) .banner-copy{padding-left:48px;padding-right:48px;max-width:none}
|
| 894 |
+
.banner-ctas{flex-wrap:wrap}
|
| 895 |
+
/* a chevron CTA sits on its own line under the pill row */
|
| 896 |
+
.banner-ctas .chev{flex-basis:100%;margin-top:var(--wp-space-4)}
|
| 897 |
+
/* on the light banners the second CTA is a filled ink pill (source: "See all
|
| 898 |
+
lens options", "Shop sunglasses" stays outlined on the family banner) */
|
| 899 |
+
.banner-light .banner-ctas .btn.secondary{background:var(--wp-color-grayscale-white);
|
| 900 |
+
color:var(--wp-color-grayscale-cosmos);border-color:var(--wp-color-grayscale-cosmos)}
|
| 901 |
+
.banner-light.banner-ink .banner-ctas .btn.secondary{background:var(--wp-color-core-blues-ink);
|
| 902 |
+
color:var(--wp-color-grayscale-white);border-color:var(--wp-color-core-blues-ink)}
|
| 903 |
+
/* store module measured on the source: copy column starts at x=122, the store
|
| 904 |
+
photo is 368x294 at x=710 (centred in its column, not flush to the grid edge) */
|
| 905 |
+
.promo-right .promo-copy{padding-left:74px;max-width:440px}
|
| 906 |
+
.promo-store .promo-media{justify-self:center;margin-left:18px}
|
| 907 |
+
/* footer columns measured on the source: four 188px link columns from x=48, a
|
| 908 |
+
divider at x=775 and the help panel filling the rest */
|
| 909 |
+
.foot-grid{grid-template-columns:repeat(4,188px) 1fr;gap:0 var(--wp-space-6)}
|
| 910 |
+
.foot-col ul{margin:0}
|
| 911 |
+
.foot-col h4{margin-top:var(--wp-space-8);margin-bottom:var(--wp-space-4)}
|
| 912 |
+
.foot-col h4:first-child{margin-top:0}
|
| 913 |
+
.foot-help{margin-left:var(--wp-space-10)}
|
| 914 |
+
/* beats footer.site h4 (0,1,1) — sub-headings need air above the previous list */
|
| 915 |
+
footer.site .foot-col h4{margin-top:var(--wp-space-8);margin-bottom:var(--wp-space-4)}
|
| 916 |
+
footer.site .foot-col h4:first-child{margin-top:0}
|
| 917 |
+
/* vertical rhythm measured against the source: the hero h1 sits 172px below the
|
| 918 |
+
hero top (the nav overlays it), and the inter-module gap is 48px, not 80 */
|
| 919 |
+
.hero{justify-content:flex-start}
|
| 920 |
+
.hero-inner{padding-top:172px}
|
| 921 |
+
.duo-panel h2{margin-bottom:var(--wp-space-5)}
|
| 922 |
+
.rail-sec,.tiles-sec,.ugc-sec,.promo-block,.banner{margin-top:var(--wp-space-12)}
|
| 923 |
+
.banner.bleed{margin-top:var(--wp-space-12)}
|
| 924 |
+
.elig-card{margin-top:var(--wp-space-12)}
|
| 925 |
+
.covered-band{padding-top:var(--wp-space-16);padding-bottom:var(--wp-space-16)}
|
| 926 |
+
/* reserve the artwork's box (source: a 14490x7229 SVG rendered 1200x599) so the
|
| 927 |
+
lazy image does not collapse the page height before it decodes */
|
| 928 |
+
.foot-art{aspect-ratio:14490/7229}
|
tasks/warbyparker/solution/site/implementation/clone/static/img/page/00f5212e17294014.jpg
ADDED
|
Git LFS Details
|
tasks/warbyparker/solution/site/implementation/clone/static/img/page/03c493b664b23a34.jpg
ADDED
|
Git LFS Details
|
tasks/warbyparker/solution/site/implementation/clone/static/img/page/0a1ff81012998f24.jpg
ADDED
|
Git LFS Details
|
tasks/warbyparker/solution/site/implementation/clone/static/img/page/0d2458a37de1b188.jpg
ADDED
|
Git LFS Details
|
tasks/warbyparker/solution/site/implementation/clone/static/img/page/0e919a21d055366d.jpg
ADDED
|
Git LFS Details
|
tasks/warbyparker/solution/site/implementation/clone/static/img/page/0f2d1befad146c34.jpg
ADDED
|
Git LFS Details
|
tasks/warbyparker/solution/site/implementation/clone/static/img/page/137cdc48bb33016a.jpg
ADDED
|
Git LFS Details
|
tasks/warbyparker/solution/site/implementation/clone/static/img/page/17ee572fd9a0ec1c.jpg
ADDED
|
Git LFS Details
|
tasks/warbyparker/solution/site/implementation/clone/static/img/page/1f8d29e55d4ff0f7.jpg
ADDED
|
Git LFS Details
|
tasks/warbyparker/solution/site/implementation/clone/static/img/page/2264bb68084eb9c2.jpg
ADDED
|
Git LFS Details
|
tasks/warbyparker/solution/site/implementation/clone/static/img/page/24191782bba84e64.jpg
ADDED
|
Git LFS Details
|
tasks/warbyparker/solution/site/implementation/clone/static/img/page/24be94ae357f3f96.jpg
ADDED
|
Git LFS Details
|
tasks/warbyparker/solution/site/implementation/clone/static/img/page/2cbfc48dfd7bac62.jpg
ADDED
|
Git LFS Details
|
tasks/warbyparker/solution/site/implementation/clone/static/img/page/2e385c7e61b53627.jpg
ADDED
|
Git LFS Details
|
tasks/warbyparker/solution/site/implementation/clone/static/img/page/314ab478fd4d32b6.jpg
ADDED
|
Git LFS Details
|
tasks/warbyparker/solution/site/implementation/clone/static/img/page/31d04461e4702452.jpg
ADDED
|
Git LFS Details
|
tasks/warbyparker/solution/site/implementation/clone/static/img/page/38a718a50f83c81d.jpg
ADDED
|
Git LFS Details
|
tasks/warbyparker/solution/site/implementation/clone/static/img/page/38c947c45e3a5005.jpg
ADDED
|
Git LFS Details
|
tasks/warbyparker/solution/site/implementation/clone/static/img/page/3f713cc725e1ffd2.jpg
ADDED
|
Git LFS Details
|
tasks/warbyparker/solution/site/implementation/clone/static/img/page/3ffdb63f8e702dbf.jpg
ADDED
|
Git LFS Details
|
tasks/warbyparker/solution/site/implementation/clone/static/img/page/46016b129a15d711.jpg
ADDED
|
Git LFS Details
|
tasks/warbyparker/solution/site/implementation/clone/static/img/page/46b03b6dceec3ab2.jpg
ADDED
|
Git LFS Details
|
tasks/warbyparker/solution/site/implementation/clone/static/img/page/4ada5031fc130956.jpg
ADDED
|
Git LFS Details
|
tasks/warbyparker/solution/site/implementation/clone/static/img/page/4e02c93a4586b326.jpg
ADDED
|
Git LFS Details
|
tasks/warbyparker/solution/site/implementation/clone/static/img/page/5b88094433f8355a.jpg
ADDED
|
Git LFS Details
|