Bug fixes and improvements

This commit is contained in:
schmelczerandras 2020-09-11 21:51:21 +02:00
parent a9de28e056
commit 5ea9094ed1
13 changed files with 20 additions and 15 deletions

View file

@ -5,7 +5,7 @@ import './about.scss';
export const generate = ({ name, picture }: Header): html => `
<section id="about">
${picture.toHTML(true)}
${picture.toHTML()}
<div class="placeholder"></div>
<h1>${name}</h1>
</section>

View file

@ -16,6 +16,7 @@ section#about {
@include square($img-size);
border-radius: 100%;
cursor: pointer;
box-shadow: var(--shadow);
}
p {

View file

@ -21,7 +21,8 @@ export class PageThemeSwitcher extends PageElement {
super(createElement(generate()));
const storedIsDark = PageThemeSwitcher.loadFromLocalStorage();
const isDark = storedIsDark ? storedIsDark : isSystemLevelDarkModeEnabled();
const isDark =
storedIsDark !== null ? storedIsDark : isSystemLevelDarkModeEnabled();
if (isDark) {
(this.element as HTMLInputElement).checked = true;

View file

@ -15,7 +15,7 @@ export const generate = (
</div>
<div class="card">
<h2>${title}</h2>
${figure.toHTML()}
${figure.toHTML(true)}
${description.toHTML()}
${
more