From 5a4d7e91ca2193f95624b5154466d978776df7b9 Mon Sep 17 00:00:00 2001 From: Daniel Bulant Date: Mon, 8 May 2023 19:09:17 +0200 Subject: [PATCH] improved heaventaker project page --- src/routes/projects/heaventaker/+page.svelte | 83 +++++++++++++++----- 1 file changed, 62 insertions(+), 21 deletions(-) diff --git a/src/routes/projects/heaventaker/+page.svelte b/src/routes/projects/heaventaker/+page.svelte index 3c3b11e..07e5a05 100644 --- a/src/routes/projects/heaventaker/+page.svelte +++ b/src/routes/projects/heaventaker/+page.svelte @@ -1,11 +1,20 @@ @@ -21,9 +30,9 @@
- - - + Play online + Google Play + GitHub
@@ -45,20 +54,23 @@
-
-
+
-
+
-

Licensing

- -

- The game is licensed under AGPLv3. This means it's free software, but you must give credit to the author and share your changes under the same license. Read full license here. -

- -

- Images are licensed under CC-BY-SA. This means you must give credit to the author and share your changes under the same license. -

+
+
+

Licensing

+ +

+ The game is licensed under AGPLv3. This means it's free software, but you must give credit to the author and share your changes under the same license. Read full license here. +

+ +

+ Images are licensed under CC-BY-SA. This means you must give credit to the author and share your changes under the same license. +

+
+
@@ -70,8 +82,10 @@ } .main-image { background-image: url("/screenshots/heaventaker/heaventaker2.webp"); - background-size: calc(100vw - 10rem * 2050 / 1080) calc(100vw*1080/2050 - 10rem); - height: calc(100vw*1080/2050 - 10rem); + --width: min(1800px, 100vw); + --height: calc(var(--width)*1080/2050); + background-size: var(--width) var(--height); + height: var(--height); } .secondary-image { background-image: url("/screenshots/heaventaker/lucifer.png"); @@ -79,7 +93,7 @@ background-repeat: no-repeat; background-position: 50% 50%; background-color: #7F4953; - height: calc(100vw*0.509375); + height: 90vh; } .image-michael { background-image: url("/screenshots/heaventaker/michael.webp"); @@ -88,8 +102,35 @@ height: calc(100vw*0.4312611012); background-position: 100% 100%; } + .image-uriel { + background-image: url("/screenshots/heaventaker/uriel.png"); + background-size: cover; + background-repeat: no-repeat; + height: 90vh; + background-position: 50% 100%; + } + + .licensing { + @apply px-4 py-8 m-auto mb-5 max-w-300 gap-5 flex items-center justify-center flex-wrap flex-row-reverse; + } + .licensing .infobox { + @apply fleg-grow max-w-60; + } + .licensing img { + @apply rounded w-full h-auto; + max-width: calc(600px - 15rem); + } + @media (max-width: 670px) { + .licensing .infobox { + @apply max-w-full; + } + .licensing img { + @apply max-w-full; + } + } + section { - margin-bottom: 0; + @apply mb-0; } p { @apply my-2;