Bug fixes and improvements
This commit is contained in:
parent
a9de28e056
commit
5ea9094ed1
13 changed files with 20 additions and 15 deletions
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -16,6 +16,7 @@ section#about {
|
|||
@include square($img-size);
|
||||
border-radius: 100%;
|
||||
cursor: pointer;
|
||||
box-shadow: var(--shadow);
|
||||
}
|
||||
|
||||
p {
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ export const generate = (
|
|||
</div>
|
||||
<div class="card">
|
||||
<h2>${title}</h2>
|
||||
${figure.toHTML()}
|
||||
${figure.toHTML(true)}
|
||||
${description.toHTML()}
|
||||
${
|
||||
more
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue