Skip to content

Commit a4438ad

Browse files
authored
Merge pull request #6 from wiremock/ui-tweaks
UI tweaks
2 parents f980125 + 4323c4b commit a4438ad

File tree

4 files changed

+29
-21
lines changed

4 files changed

+29
-21
lines changed

assets/css/style.css

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1345,6 +1345,10 @@ video {
13451345
transform: none;
13461346
}
13471347

1348+
.resize {
1349+
resize: both;
1350+
}
1351+
13481352
.flex-col {
13491353
flex-direction: column;
13501354
}
@@ -1461,12 +1465,6 @@ video {
14611465
margin-bottom: calc(2rem * var(--tw-space-y-reverse));
14621466
}
14631467

1464-
.-space-y-10 > :not([hidden]) ~ :not([hidden]) {
1465-
--tw-space-y-reverse: 0;
1466-
margin-top: calc(-2.5rem * calc(1 - var(--tw-space-y-reverse)));
1467-
margin-bottom: calc(-2.5rem * var(--tw-space-y-reverse));
1468-
}
1469-
14701468
.overflow-hidden {
14711469
overflow: hidden;
14721470
}
@@ -2121,6 +2119,10 @@ video {
21212119
color: rgb(255 255 255 / var(--tw-text-opacity));
21222120
}
21232121

2122+
.hover\:underline:hover {
2123+
text-decoration-line: underline;
2124+
}
2125+
21242126
.hover\:opacity-90:hover {
21252127
opacity: 0.9;
21262128
}

config.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ enableGitInfo: true
88
enableRobotsTXT: true
99
canonifyURLs: true
1010

11+
googleAnalytics: UA-36386229-2
12+
1113
paginate: 24
1214

1315
taxonomies:
@@ -67,8 +69,7 @@ params:
6769
twitter: "https://twitter.com/wiremockorg"
6870
description: "Mock API library: samples, templates, and quick starts"
6971
mainSections:
70-
- catalog/api
71-
72+
- catalog
7273
cta:
7374
heading: Ready to accelerate your development flow
7475
subheading: Shorter release cycles, more predictable schedules and fewer defects in production.

layouts/_default/baseof.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
{{ partialCached "navbar.html" . }}
1111
{{ block "main" . }}{{ end }}
1212
{{ partialCached "footer.html" . }}
13+
{{ template "_internal/google_analytics_async.html" . }}
1314
</body>
1415
</html>
1516

layouts/catalog/single.html

Lines changed: 17 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -53,32 +53,36 @@ <h2 class="text-sky-990 font-medium text-lg lg:text-xl mb-5">{{ i18n "use_api" }
5353
px-2 py-3 text-lg
5454
text-white border border-sky-500 bg-sky-500 hover:bg-sky-600 hover:border-sky-600" target="_blank" rel="noopener noreferrer">
5555
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
56-
<g clip-path="url(#clip0_18373_127)">
57-
<path d="M9 5V7H15.59L4 18.59L5.41 20L17 8.41V15H19V5H9Z" fill="currentColor"/>
56+
<g clip-path="url(#clip0_18373_798)">
57+
<path d="M19 12V19H5V12H3V19C3 20.1 3.9 21 5 21H19C20.1 21 21 20.1 21 19V12H19ZM13 12.67L15.59 10.09L17 11.5L12 16.5L7 11.5L8.41 10.09L11 12.67V3H13V12.67Z" fill="white"/>
5858
</g>
5959
<defs>
60-
<clipPath id="clip0_18373_127">
61-
<rect width="24" height="24" fill="white"/>
62-
</clipPath>
60+
<clipPath id="clip0_18373_798">
61+
<rect width="24" height="24" fill="currentColor"/>
62+
</clipPath>
6363
</defs>
64-
</svg>
64+
</svg>
6565
<span class="pr-4">Download WireMock JSON</span>
6666
</a>
67+
<a
68+
href="https://github.com/wiremock/api-template-library/blob/main/docs/HOW_TO_RUN_IN_WIREMOCK.md"
69+
title="Learn how to load this API template in WireMock"
70+
class="mt-2 block text-sky-600 hover:underline">Learn how to use WireMock JSON</a>
6771
{{ end }}
6872
{{ with .Resources.GetMatch .Params.stubs }}
69-
<a href="https://app.wiremock.cloud/new-mock/{{ $.Params.slug }}" class="mt-5 flex items-center justify-center space-x-2 transition rounded-md focus:outline-none font-semibold antialiased
73+
<a href="https://app.wiremock.cloud/new-mock/{{ $.Params.slug }}" class="mt-3 flex items-center justify-center space-x-2 transition rounded-md focus:outline-none font-semibold antialiased
7074
px-2 py-3 text-lg
7175
text-white border border-sky-500 bg-sky-500 hover:bg-sky-600 hover:border-sky-600" target="_blank" rel="noopener noreferrer">
7276
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
73-
<g clip-path="url(#clip0_18373_798)">
74-
<path d="M19 12V19H5V12H3V19C3 20.1 3.9 21 5 21H19C20.1 21 21 20.1 21 19V12H19ZM13 12.67L15.59 10.09L17 11.5L12 16.5L7 11.5L8.41 10.09L11 12.67V3H13V12.67Z" fill="white"/>
77+
<g clip-path="url(#clip0_18373_127)">
78+
<path d="M9 5V7H15.59L4 18.59L5.41 20L17 8.41V15H19V5H9Z" fill="currentColor"/>
7579
</g>
7680
<defs>
77-
<clipPath id="clip0_18373_798">
78-
<rect width="24" height="24" fill="currentColor"/>
79-
</clipPath>
81+
<clipPath id="clip0_18373_127">
82+
<rect width="24" height="24" fill="white"/>
83+
</clipPath>
8084
</defs>
81-
</svg>
85+
</svg>
8286
<span class="pr-4">Run in WireMock Cloud</span>
8387
</a>
8488
{{ end }}

0 commit comments

Comments
 (0)