Skip to content

Commit

Permalink
hero as webp
Browse files Browse the repository at this point in the history
  • Loading branch information
DominikPeters committed Dec 17, 2024
1 parent 9d88f7e commit 09a6941
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
Binary file added hero.webp
Binary file not shown.
6 changes: 3 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,7 @@

.dense #player-container div.card-body {
padding: 0;
height: 186.5px;
height: 218.8px;
}

.dense #editor-container {
Expand Down Expand Up @@ -573,10 +573,10 @@
<div class="container col-xxl-9 px-4 py-2" id="hero">
<div class="row flex-lg-row-reverse align-items-center g-5 py-0 py-sm-4">
<div class="col-12 mt-5 mt-sm-5 col-sm-8 col-lg-6">
<img src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="
<img src="hero.webp"
id="hero-image" class="d-block mx-lg-auto img-fluid"
alt="Two example screenshots of podcast apps displaying a list of chapters" width="400" height="461"
loading="lazy" data-tippy-content="Examples of podcasts that provide chapters">
data-tippy-content="Examples of podcasts that provide chapters">
</div>
<div class="col-lg-6 mt-4 mt-sm-8">
<h1 class="display-5 fw-bold text-body-emphasis lh-1 mb-3">Add chapters to your podcast MP3 files<span
Expand Down
14 changes: 7 additions & 7 deletions src/BaseApp.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import * as popperModule from '/libs/popper.min.js';
import * as tippyModule from '/libs/tippy-bundle.umd.min.js';
import * as nodeID3Module from '/node-id3-browserify.min.js';
import * as vidstackModule from '/libs/vidstack.js';
import * as popperModule from '../libs/popper.min.js';
import * as tippyModule from '../libs/tippy-bundle.umd.min.js';
import * as nodeID3Module from '../node-id3-browserify.min.js';
import * as vidstackModule from '../libs/vidstack.js';

import { ChapterList } from './submodules/ChapterList.js';
import { setTextAreaContent, displayChapterList, updateChapterListBasedOnTextarea, editText, adjustTextAreaHeight, highlightCurrentLine } from './submodules/ChapterListEditor.js';
Expand Down Expand Up @@ -84,13 +84,13 @@ export function startBaseApp() {
});

function setColorScheme() {
const hero = document.getElementById('hero-image');
// const hero = document.getElementById('hero-image');
if (window.matchMedia('(prefers-color-scheme: dark)').matches) {
document.documentElement.dataset.bsTheme = 'dark';
if (hero) hero.src = 'hero-dark.jpg';
// if (hero) hero.src = 'hero-dark.jpg';
} else {
document.documentElement.dataset.bsTheme = 'light';
if (hero) hero.src = 'hero.jpg';
// if (hero) hero.src = 'hero.jpg';
}
}

Expand Down

0 comments on commit 09a6941

Please sign in to comment.