From 03b8e4fe0d57ce9b1f3145198a0a6bef48f93a74 Mon Sep 17 00:00:00 2001 From: Svjatoslav Agejenko Date: Wed, 23 Apr 2025 23:25:59 +0300 Subject: [PATCH] Better homepage layout --- Graphics/index.org | 11 +++++++++++ tools/update web site | 4 ++-- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/Graphics/index.org b/Graphics/index.org index 3a6bd61..867f7ae 100644 --- a/Graphics/index.org +++ b/Graphics/index.org @@ -13,9 +13,20 @@ display: flex; /* activate flexbox */ justify-content: center; /* horizontally center anything inside */ } + + .flex-center video { + width: min(90%, 1000px); /* whichever is smaller wins */ + height: auto; /* preserve aspect ratio */ + } + + .responsive-img { + width: min(100%, 1000px); + height: auto; + } #+end_export + * Bump mapping Light source moves around. Based on light source location, different diff --git a/tools/update web site b/tools/update web site index 33afbe5..c2638c7 100755 --- a/tools/update web site +++ b/tools/update web site @@ -15,13 +15,13 @@ cd "${0%/*}"; if [ "$1" != "T" ]; then gnome-terminal -e "'$0' T"; exit; fi; ) ( - cd "cd Graphics" + cd "Graphics" rm -f index.html emacs --batch -l ~/.emacs --visit=index.org --funcall=org-html-export-to-html --kill ) ( - cd "cd Graphics/Spirals" + cd "Graphics/Spirals" rm -f index.html emacs --batch -l ~/.emacs --visit=index.org --funcall=org-html-export-to-html --kill ) -- 2.20.1