From ecc8f46e2b4286a53273517599785f2ab61312e1 Mon Sep 17 00:00:00 2001 From: nevfy Date: Thu, 11 Apr 2024 07:01:47 +0300 Subject: [PATCH] fix: change broken img look --- assets/scss/_styles_project.scss | 25 ++++++++++++++++++++++++- content/en/_index.html | 8 ++++++-- layouts/shortcodes/landing-feature.html | 8 ++++++-- layouts/shortcodes/landing-service.html | 4 +++- static/images/logos/nlnet.svg | 2 +- 5 files changed, 40 insertions(+), 7 deletions(-) diff --git a/assets/scss/_styles_project.scss b/assets/scss/_styles_project.scss index 2c7602d..c25af63 100644 --- a/assets/scss/_styles_project.scss +++ b/assets/scss/_styles_project.scss @@ -74,10 +74,23 @@ .sp-service-icon { margin-top: -4rem; + min-height: 6rem; + min-width: 4rem; max-width: 12rem; max-height: 8rem; margin-left: 2rem; width: max-content; + & > .error { + min-height: 6rem; + min-width: 4rem; + } +} + +.sp-feature-img { + min-height: 20rem; + min-width: 20rem; + max-width: 40rem; + max-height: 40rem; } .sp-service-card { @@ -92,8 +105,9 @@ } .sp-supperted-by-img { - max-height: 5rem; + pointer-events: none; margin: 1rem; + width: 15rem; } .sp-supported-by-list { @@ -129,3 +143,12 @@ a.nav-link.sp-coming-soon { border-radius: .1rem; } } + +.sp-feature-img.error { + min-width: 20rem; + min-height: 20rem; +} + +.error { + background-color: lightgray; +} \ No newline at end of file diff --git a/content/en/_index.html b/content/en/_index.html index c88d2ed..256c2c1 100644 --- a/content/en/_index.html +++ b/content/en/_index.html @@ -193,10 +193,14 @@ linkTitle = "SelfPrivacy"
diff --git a/layouts/shortcodes/landing-feature.html b/layouts/shortcodes/landing-feature.html index e582cb8..614115a 100644 --- a/layouts/shortcodes/landing-feature.html +++ b/layouts/shortcodes/landing-feature.html @@ -11,13 +11,17 @@ {{ if $illustration }}
- + +
+
{{ end }} {{ else }} {{ if $illustration }}
- + +
+
{{ end }}
diff --git a/layouts/shortcodes/landing-service.html b/layouts/shortcodes/landing-service.html index cf7de98..482669b 100644 --- a/layouts/shortcodes/landing-service.html +++ b/layouts/shortcodes/landing-service.html @@ -1,7 +1,9 @@ {{ $illustration := .Get 0 }} {{ $title := .Get 1 }}
- + +
+

{{ $title }}

{{ .Inner }} diff --git a/static/images/logos/nlnet.svg b/static/images/logos/nlnet.svg index 248e59c..4f0e4e9 100644 --- a/static/images/logos/nlnet.svg +++ b/static/images/logos/nlnet.svg @@ -1,7 +1,7 @@ - +