From 8d4b030324cb9f665588f1ed9217d1a58634cba4 Mon Sep 17 00:00:00 2001 From: Svjatoslav Agejenko Date: Wed, 23 Apr 2025 23:11:31 +0300 Subject: [PATCH] Better homepage layout --- index.org | 29 ++++++++++++++++++++--------- 1 file changed, 20 insertions(+), 9 deletions(-) diff --git a/index.org b/index.org index 8a3f383..ad6ad62 100644 --- a/index.org +++ b/index.org @@ -14,6 +14,16 @@ 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 @@ -44,7 +54,7 @@ with many caps or big thinking depth, for reasonable responce time. [[file:Games/Checkers 2/checkers2.bas][Source code]] -#+attr_html: :width 1000px +#+attr_html: :class responsive-img #+attr_latex: :width 1000px [[file:Games/Checkers 2/checkers2.bas][file:Games/Checkers%202/screenshot.png]] @@ -55,7 +65,7 @@ algorithms and getting fun looking results quite easily. #+begin_export html -