diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..73139c7 --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +*.kdev4 +kdev4 +resources diff --git a/assets/scss/apps.scss b/assets/scss/apps.scss index 925ebfc..eb4b832 100644 --- a/assets/scss/apps.scss +++ b/assets/scss/apps.scss @@ -71,15 +71,32 @@ } .app-os-sources { - hr:last-of-type { - opacity: 0; - height: 0.1em; + hr { + color: var(--primary-color); + + &:last-of-type { + opacity: 0; + height: 0.1em; + } + } + + a img { + width: Min(300px, calc(100% - 2em)); + box-shadow: 0px 0px 2px 0px #000000; + transition: box-shadow 0.15s ease-in-out, filter 0.15s ease-in-out; + border-radius: 1em; + filter: brightness(100%); + + &:hover { + box-shadow: 0px 0px 8px 0px #000000; + filter: brightness(85%); + } } } } -@media screen and (max-width: 700px) { +@media screen and (max-width: 850px) { .app-download { border-left: var(--border); @@ -87,10 +104,13 @@ border-top-left-radius: var(--border-radius) !important; border-top-right-radius: var(--border-radius) !important; border-bottom-left-radius: 0; + border-bottom-right-radius: 0; & .app-download-platform { border-top-left-radius: var(--border-radius) !important; border-top-right-radius: var(--border-radius) !important; + border-bottom-left-radius: 0; + border-bottom-right-radius: 0; } } diff --git a/i18n/en.json b/i18n/en.json index 7769e53..701f290 100644 --- a/i18n/en.json +++ b/i18n/en.json @@ -14,6 +14,9 @@ "downloadApp": { "other": "{{ .Name }} is available on {{ .Platforms }}." }, + "warnExternalWebsite": { + "other": "(external link to {{ . }})" + }, "status": { "other": "Status: " }, diff --git a/i18n/fr.json b/i18n/fr.json index 0e220f7..0e7d8d6 100644 --- a/i18n/fr.json +++ b/i18n/fr.json @@ -14,6 +14,9 @@ "downloadApp": { "other": "{{ .Name }} est disponible sur {{ .Platforms }}." }, + "warnExternalWebsite": { + "other": "(lien externe vers {{ . }})" + }, "status": { "other": "Status : " }, diff --git a/layouts/_default/app.html b/layouts/_default/app.html index fb88746..b14165d 100644 --- a/layouts/_default/app.html +++ b/layouts/_default/app.html @@ -1,8 +1,9 @@ -{{ $data := index .Site.Data .Site.Language.Lang }} +{{ $lang := .Site.Language.Lang }} +{{ $data := index .Site.Data $lang }} {{ $appdata := index $data.apps .Params.SectionHeader.AppIndex }} - + {{- partial "head.html" . -}} {{- partial "header.html" . -}} @@ -113,7 +114,27 @@ {{ range $links }}

{{ .Title }}

- " $appdata.version }}">{{ i18n "download" }} {{ replace .Name "" $appdata.version }} + {{ if hasPrefix .Title "Flatpak" }} + + + +

{{ i18n "warnExternalWebsite" "flathub.org" }} + {{ else if hasPrefix .Title "Snap" }} + + + +

{{ i18n "warnExternalWebsite" "snapcraft.io" }} + {{ else if hasPrefix .Title "Firefox" }} + + + +

{{ i18n "warnExternalWebsite" "addons.mozilla.org" }} + {{ else }} + File: {{ replace .Name "" $appdata.version }}
+ " $appdata.version }}" class="primary" role="button"> + {{ i18n "download" }} + + {{ end }}

{{ end }}