add new home layout

This commit is contained in:
Nuno Coração
2022-10-16 17:25:13 +01:00
parent ac1a2126a1
commit e891c8b68d
12 changed files with 107 additions and 31 deletions

View File

@@ -146,9 +146,7 @@
var header = document.getElementById("single_header")
var style = getComputedStyle(header);
console.log(style, style.height)
var margin = '-'+ (parseInt(style.height) + parseInt(style.marginTop) + parseInt(style.marginBottom) + 20) + 'px'
console.log(margin)
var hero = document.getElementById('hero')
if(hero)
hero.style["margin-bottom"] = margin;