summaryrefslogtreecommitdiff
path: root/html
diff options
context:
space:
mode:
Diffstat (limited to 'html')
-rw-r--r--html/basics/default.nix12
1 files changed, 11 insertions, 1 deletions
diff --git a/html/basics/default.nix b/html/basics/default.nix
index 1490529..ce15589 100644
--- a/html/basics/default.nix
+++ b/html/basics/default.nix
@@ -1,4 +1,4 @@
-{ html, data, ... }:
+{ html, data, lib, ... }:
let
basics = data.basics;
@@ -20,7 +20,17 @@ in {
(col [
(imgWith {
src = avatar;
+ srcset = lib.concatStringsSep ", "
+ (builtins.map (size: "${avatar}.${size} ${size}w") [
+ "128"
+ "256"
+ "512"
+ ] ++ [ "${avatar} 934w" ]);
+ sizes = "(max-width: 480px) 60vw, 30vw";
+ loading = "lazy";
+ alt = "Quentin Aristote";
style = ''
+ aspect-ratio: 1 / 1;
border-radius: 50%;
padding-left: 20%;
padding-right: 20%;