From 65300a13dcd11037218bf8ba61efd8ca19e5920e Mon Sep 17 00:00:00 2001 From: Nathan Reiner Date: Mon, 19 Oct 2026 18:03:59 +0200 Subject: add favicon --- src/app/components/image/index.css | 12 ++++++++++++ src/app/components/image/index.html | 2 ++ 2 files changed, 14 insertions(+) (limited to 'src/app/components/image') diff --git a/src/app/components/image/index.css b/src/app/components/image/index.css index e69de29..86ba44e 100644 --- a/src/app/components/image/index.css +++ b/src/app/components/image/index.css @@ -0,0 +1,12 @@ +:host { + --src: attr(src) +} + +.image { + width: 100%; + padding-bottom: 100%; + height: 0; + background-image: url("" ++ var(--src)); + background-size: cover; + background-position: center; +} diff --git a/src/app/components/image/index.html b/src/app/components/image/index.html index e69de29..bd124ad 100644 --- a/src/app/components/image/index.html +++ b/src/app/components/image/index.html @@ -0,0 +1,2 @@ +
+
-- cgit v1.2.3-70-g09d2