Skip to content

Commit c271a44

Browse files
committed
improved footer
1 parent c772beb commit c271a44

File tree

1 file changed

+37
-18
lines changed

1 file changed

+37
-18
lines changed

src/layouts/oap.hbs

Lines changed: 37 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -136,13 +136,17 @@
136136

137137
<section class="lg:sticky pt-2" style="top: 3.95rem">
138138

139+
<div class="text-xl font-bold text-green-700">{{{ page.component.title }}}</div>
140+
139141
{{#each page.navigation}}
142+
{{!--
140143
<div class="pl-0">
141144
<a href="{{{relativize this.url}}}" class="hover:text-green-600 font-bold">{{{this.content}}}</a>
142145
</div>
146+
--}}
143147

144148
{{#each this.items}}
145-
<div class="pl-2">
149+
<div class="pl-0">
146150
<a href="{{{relativize this.url}}}" class="hover:text-green-600 {{#if (eq this.url @root.page.url)}}font-bold{{/if}}">{{{this.content}}}</a>
147151
</div>
148152

@@ -152,7 +156,9 @@
152156
</div>
153157

154158
{{#each this.items}}
155-
<a href="{{{relativize this.url}}}" class="hover:text-green-600 {{#if (eq this.url @root.page.url)}}font-bold{{/if}}">{{{this.content}}}</a>
159+
<div class="pl-8">
160+
<a href="{{{relativize this.url}}}" class="hover:text-green-600 {{#if (eq this.url @root.page.url)}}font-bold{{/if}}">{{{this.content}}}</a>
161+
</div>
156162
{{/each}}
157163

158164
{{/each}}
@@ -167,48 +173,63 @@
167173

168174
</div>
169175

170-
<footer class="p-6 mt-4 border footer" style="position: sticky; bottom: -10rem">
176+
<footer class="p-6 mt-4 border footer sticky" style="bottom: -20rem">
171177

172178
<div class="text-gray-700 text-sm flex justify-between">
173179

174-
<div>
175-
<img src="{{uiRootPath}}/img/openapi-processor-large.png" alt="logo" class="h-24">
180+
<div class="flex-none w-48 mr-12">
181+
<img src="{{uiRootPath}}/img/openapi-processor-large.png" alt="logo" class="h-24 w-48">
176182

177183
<div class="text-xs text-center">&#169; 2019-2020 Martin Hauner</div>
178184
</div>
179185

180-
<div class="flex justify-between flex-col sm:flex-row">
186+
<div class="flex justify-between flex-col lg:flex-row">
181187

182-
<div class="flex flex-col mb-4 mr-0 sm:mr-12">
188+
<div class="flex flex-col mb-4 mr-0 mr-12">
183189
<div class="font-bold">Twitter</div>
184190

185191
<a class="" href="https://twitter.com/OpenApiProcess">
186192
<i class="fab fa-twitter"></i> @OpenApiProcess
187193
</a>
194+
</div>
195+
196+
<div class="flex flex-col mb-4 mr-0 mr-12">
197+
<div class="font-bold">Samples - GitHub</div>
198+
199+
<a class="" href="https://github.com/hauner/openapi-processor-spring-mvc-sample">
200+
<i class="fab fa-github"></i> oap-spring-mvc
201+
</a>
188202

203+
<a class="" href="https://github.com/hauner/openapi-processor-spring-webflux-sample">
204+
<i class="fab fa-github"></i> oap-spring-webflux
205+
</a>
189206
</div>
190207

191-
<div class="flex flex-col">
192-
<div class="font-bold">GitHub</div>
208+
<div class="flex flex-col mb-4 mr-0 mr-12">
209+
<div class="font-bold">Plugin - GitHub</div>
210+
211+
<a class="" href="https://github.com/openapi-processor/openapi-processor-gradle">
212+
<i class="fab fa-github"></i> oap-gradle
213+
</a>
214+
</div>
215+
216+
<div class="flex flex-col mr-12">
217+
<div class="font-bold">Processors - GitHub</div>
193218

194219
<a class="" href="https://github.com/openapi-processor/openapi-processor-spring">
195-
<i class="fab fa-github"></i> openapi-processor-spring
220+
<i class="fab fa-github"></i> oap-spring
196221
</a>
197222

198223
<!-- <a class="" href="https://github.com/openapi-processor/openapi-processor-micronaut">-->
199224
<!-- <i class="fab fa-github"></i> openapi-processor-micronaut-->
200225
<!-- </a>-->
201226

202227
<a class="" href="https://github.com/openapi-processor/openapi-processor-json">
203-
<i class="fab fa-github"></i> openapi-processor-json
204-
</a>
205-
206-
<a class="" href="https://github.com/openapi-processor/openapi-processor-gradle">
207-
<i class="fab fa-github"></i> openapi-processor-gradle
228+
<i class="fab fa-github"></i> oap-json
208229
</a>
209230

210231
<a class="" href="https://github.com/openapi-processor/openapi-processor-core">
211-
<i class="fab fa-github"></i> openapi-processor-core
232+
<i class="fab fa-github"></i> oap-core
212233
</a>
213234

214235
</div>
@@ -223,7 +244,6 @@
223244

224245
<script async src="{{{uiRootPath}}}/js/vendor/highlight.js"></script>
225246

226-
{{!--
227247
<!--
228248
site: {{{ json site }}}
229249
-->
@@ -247,7 +267,6 @@
247267
<!--
248268
antoraVersion {{{ json antoraVersion}}}
249269
-->
250-
--}}
251270

252271
</body>
253272

0 commit comments

Comments
 (0)