Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
emilkrebs committed Jan 2, 2024
1 parent 00e0a6e commit 3151261
Show file tree
Hide file tree
Showing 4 changed files with 111 additions and 1 deletion.
12 changes: 12 additions & 0 deletions hugo/content/showcase/openapi.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
title: "OpenAPI SL"
weight: 0
type: langium
layout: showcase-page
externalUrl: "https://bestsolution-at.github.io/openapi-dsl/"
img: "/assets/BestSolution_OpenAPI.svg"
description: A proof-of-concept DSL to describe OpenAPI-Documents in a concise and human readable way. Made by BestSolution.
geekdochidden: true
draft: false
noMain: true
---
12 changes: 11 additions & 1 deletion hugo/layouts/langium/list.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,19 @@
<div class="flex flex-wrap gap-10 justify-center mt-5 mx-5 ">
{{range where .Pages.ByWeight ".Params.draft" false}}
<div class="rounded-lg border shadow-md bg-gray-800 border-gray-600 w-[300px] overflow-hidden self-stretch text-white">
{{ if .Params.url }}
<a href="{{.Params.url}}" class="self-stretch">
{{ else if .Params.externalUrl }}
<a href="{{.Params.externalUrl}}" target="_blank" class="self-stretch">
{{ end }}
<img src="{{.Params.img}}" class="object-fill min-h-[300px]"/>
<h2 class="text-center text-xl mt-10 mb-5">{{.Title}}</h2>
<h2 class="text-center text-xl mt-10 mb-5">
{{.Title}}
{{ if .Params.externalUrl }}
<img src="/assets/external_link.svg" class="inline-block h-4 w-4 mb-2"/>
{{ end }}

</h2>
<p class="line-clamp-[8] px-5 mb-10 text-sm">
{{.Params.description}}
</p>
Expand Down
72 changes: 72 additions & 0 deletions hugo/static/assets/BestSolution_OpenAPI.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 16 additions & 0 deletions hugo/static/assets/external_link.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 3151261

Please sign in to comment.