Will it work?

This commit is contained in:
Schmelczer András 2019-12-26 16:56:27 +01:00
parent 79f7c4c16f
commit f74c86f4b1
19 changed files with 193 additions and 78 deletions

View file

@ -7,8 +7,10 @@ export const generate = (
aPictureOf: string
): html => `
<section id="about">
<header>
<img alt="${aPictureOf} ${name}" src="${picture}"/>
<h1>${name}</h1>
</header>
<div class="container">
<header>
<img alt="${aPictureOf} ${name}" src="${picture}"/>
<h1>${name}</h1>
</header>
</div>
</section>`;

View file

@ -2,26 +2,42 @@
@import "../../style/vars";
#about {
margin-top: $normal-margin - $small-margin;
padding: $small-margin;
width: 100%;
backdrop-filter: blur($blur-radius);
padding: $normal-margin;
header {
@include center-children();
.container {
width: $body-width;
margin: auto;
h1,
img {
@include title-font();
header {
@include center-children();
h1,
img {
@include title-font();
}
img {
@include square(4ch);
border-radius: 100%;
margin-right: 1.5ex;
cursor: pointer;
}
@media (max-width: $breakpoint-width) {
flex-direction: column;
img {
margin: 0 0 $small-margin 0;
}
h1 {
text-align: center;
}
}
}
img {
@include square(4ch);
border-radius: 100%;
margin-right: 1.5ex;
cursor: pointer;
* {
text-align: justify;
}
}
* {
text-align: justify;
}
}

View file

@ -10,8 +10,8 @@ export class PageHeader extends PageElement {
const root = createElement(generate(header, aPictureOf));
const content = new PageContent(header.about);
root.appendChild(content.getElement());
super([content]);
this.setElement(root);
this.query(".container").appendChild(content.getElement());
}
}