@@ -34,7 +34,7 @@ onMounted(async () => {
3434})
3535
3636function showImage(target : EventTarget | null ) {
37- if (hasTouchSupport () || ! target ) {
37+ if (hasTouchSupport () || ! target || ! ( target instanceof HTMLImageElement ) ) {
3838 return
3939 }
4040 const element = target as HTMLImageElement
@@ -48,7 +48,7 @@ function hasTouchSupport() {
4848 </script >
4949
5050<template >
51- <main class =" home" >
51+ <main class =" home" @click = " showImage($event.target) " >
5252 <section class =" py-5" >
5353 <div class =" container" >
5454 <div class =" row hero-title justify-content-center" >
@@ -126,7 +126,7 @@ function hasTouchSupport() {
126126
127127 <!-- Text column -->
128128 <div class =" col-12 col-lg-6 text-center text-lg-start mb-4 mb-lg-0" >
129- <h2 >Mock and Simulate APIs Across Protocols</h2 >
129+ <h2 class = " mb-3 " >Mock and Simulate APIs Across Protocols</h2 >
130130 <p class =" lead" >
131131 Mokapi helps you test and develop faster by simulating APIs and services in any environment —
132132 locally, in CI pipelines, or in staging and test environments.
@@ -142,7 +142,7 @@ function hasTouchSupport() {
142142 <section class =" py-5" >
143143 <div class =" container text-center" >
144144
145- <h2 class =" h4 mb-2 " >Why Teams Use Mokapi</h2 >
145+ <h2 class =" h4 mb-3 " >Why Teams Use Mokapi</h2 >
146146 <p class =" lead fst-italic mb-4" >
147147 Mokapi helps teams move faster by removing external dependencies from development and testing.
148148 </p >
@@ -178,7 +178,7 @@ function hasTouchSupport() {
178178
179179 <section class =" py-5 text-center" >
180180 <div class =" container" >
181- <h2 >Build Better Software, Faster</h2 >
181+ <h2 class = " mb-3 " >Build Better Software, Faster</h2 >
182182 <p class =" lead mb-3" >
183183 Mokapi helps teams move quickly without sacrificing confidence or stability.
184184 </p >
@@ -193,7 +193,7 @@ function hasTouchSupport() {
193193 <section class =" py-5" >
194194 <div class =" container" >
195195
196- <h2 class =" text-center mb-2 " >Mock More Than Just HTTP</h2 >
196+ <h2 class =" text-center mb-3 " >Mock More Than Just HTTP</h2 >
197197 <p class =" text-center fst-italic mb-4" >
198198 Mokapi supports multiple protocols, allowing you to test complete systems —
199199 not just individual REST endpoints.
@@ -309,7 +309,7 @@ function hasTouchSupport() {
309309 <!-- Control Mock Behavior with JavaScript -->
310310 <div class =" row pb-5 align-items-center" >
311311 <div class =" col-12 col-lg-6 order-lg-2 text-lg-start text-center" >
312- <h2 >Control Mock Behavior with JavaScript</h2 >
312+ <h3 >Control Mock Behavior with JavaScript</h3 >
313313 <p >
314314 Use JavaScript to control how your mocks behave at runtime.
315315 Respond dynamically to headers, payloads, authentication,
@@ -331,7 +331,7 @@ function hasTouchSupport() {
331331 <!-- Run Mocks Anywhere -->
332332 <div class =" row pb-5 align-items-center" >
333333 <div class =" col-12 col-lg-6 order-lg-1 text-lg-start text-center" >
334- <h2 >Run Mocks Anywhere</h2 >
334+ <h3 >Run Mocks Anywhere</h3 >
335335 <p >
336336 Run Mokapi in any environment—local development, Docker, cloud, or CI pipelines. Test APIs seamlessly, wherever your services are deployed.
337337 </p >
@@ -351,7 +351,7 @@ function hasTouchSupport() {
351351 <!-- Mocks as Code -->
352352 <div class =" row pb-5 align-items-center" >
353353 <div class =" col-12 col-lg-6 order-lg-2 text-lg-start text-center" >
354- <h2 >Define Mocks as Code</h2 >
354+ <h3 >Define Mocks as Code</h3 >
355355 <p >
356356 Manage all API mocks, configurations, and behaviors as code. Track changes, simplify audits, and ensure consistency across environments.
357357 </p >
@@ -371,7 +371,7 @@ function hasTouchSupport() {
371371 <!-- Generate Realistic Test Data -->
372372 <div class =" row pb-5 align-items-center" >
373373 <div class =" col-12 col-lg-6 order-lg-1 text-lg-start text-center" >
374- <h2 >Generate Realistic Test Data</h2 >
374+ <h3 >Generate Realistic Test Data</h3 >
375375 <p >
376376 Create dynamic, lifelike data for your mocks. Simulate users, transactions, messages, and more to improve testing accuracy.
377377 </p >
@@ -391,7 +391,7 @@ function hasTouchSupport() {
391391 <!-- Patch Configurations Without Modifying Originals -->
392392 <div class =" row pb-5 align-items-center" >
393393 <div class =" col-12 col-lg-6 order-lg-2 text-lg-start text-center" >
394- <h2 >Patch Configurations Without Modifying Originals</h2 >
394+ <h3 >Patch Configurations Without Modifying Originals</h3 >
395395 <p >
396396 Use patch files to modify API specs without touching the original. Apply changes at runtime with hot-reloading for flexible mock management.
397397 </p >
@@ -410,7 +410,7 @@ function hasTouchSupport() {
410410 <!-- Visualize Your Mock APIs -->
411411 <div class =" row mt-5 align-items-center" >
412412 <div class =" col-12 col-lg-6 order-lg-1 text-lg-start text-center" >
413- <h2 >Visualize Your Mock APIs</h2 >
413+ <h3 >Visualize Your Mock APIs</h3 >
414414 <p >
415415 Inspect requests, responses, logs, and generated example data as they happen.
416416 Mokapi’s dashboard gives you full visibility into your mocks during development and testing.
@@ -429,7 +429,7 @@ function hasTouchSupport() {
429429 </div >
430430 </div >
431431 <div class =" col-12 col-lg-6 order-lg-2 d-flex justify-content-center" >
432- <img src =" /dashboard-overview-mock-api.jpg " alt =" Mokapi dashboard showing all mocked APIs with metrics and logs." />
432+ <img class = " image-border " src =" /dashboard-overview-mock-api.png " alt =" Mokapi dashboard showing all mocked APIs with metrics and logs." />
433433 </div >
434434 </div >
435435
@@ -438,7 +438,7 @@ function hasTouchSupport() {
438438
439439 <section class =" py-5" >
440440 <div class =" container" >
441- <h2 >Use Cases & Tutorials</h2 >
441+ <h2 class = " mb-3 " >Use Cases & Tutorials</h2 >
442442 <p class =" lead fst-italic text-center" >
443443 Explore practical ways to mock APIs and services across protocols. Mokapi fits seamlessly in local development, CI pipelines, or cloud environments.
444444 </p >
@@ -579,7 +579,7 @@ function hasTouchSupport() {
579579 <div class =" modal-dialog modal-xl modal-dialog-centered modal-dialog-scrollable" >
580580 <div class =" modal-content" >
581581 <div class =" modal-body" >
582- <img :src =" imageUrl" style =" width :100% " />
582+ <img class = " image-border " :src =" imageUrl" style =" width :100% " />
583583 <div class =" pt-2" style =" text-align :center ; font-size :0.9rem ;" >
584584 {{ imageDescription }}
585585 </div >
0 commit comments