updates to the homepage background setup

This commit is contained in:
Nuno Coração
2022-11-06 00:15:29 +00:00
parent 642db32def
commit 8f588f5175
6 changed files with 14 additions and 8 deletions

View File

@@ -8,7 +8,7 @@
{{ if .Site.Params.homepage.cardView | default false }}
{{ if .Site.Params.homepage.cardViewScreenWidth | default false }}
<section class="relative w-screen" style="left: calc(-50vw + 50%);">
<section class="relative w-screen max-w-[1600px]" style="left: calc(max(-50vw,-800px) + 50%);">
<div class="flex flex-wrap pl-8 pr-8">
{{ else }}
<section class="w-full">