Skip to content

Commit 310ea75

Browse files
committed
remove about section from settings
1 parent 5cea7a8 commit 310ea75

File tree

1 file changed

+9
-18
lines changed

1 file changed

+9
-18
lines changed

src/main.js

Lines changed: 9 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -247,24 +247,6 @@ class PexelsBannerSettingTab extends PluginSettingTab {
247247
containerEl.empty();
248248
containerEl.addClass('pexels-banner-settings');
249249

250-
// New section: About this plugin
251-
const aboutSection = containerEl.createEl('div', {cls: 'pexels-banner-section'});
252-
aboutSection.createEl('h3', {text: 'About Pexels Banner'});
253-
aboutSection.createEl('p', {text: 'The Pexels Banner plugin allows you to automatically add beautiful banner images to your notes using the Pexels API. You can specify keywords in your note\'s frontmatter, and the plugin will fetch a relevant image to display at the top of your note.'});
254-
aboutSection.createEl('p', {text: 'This plugin enhances your note-taking experience by providing visual context and improving the overall aesthetics of your notes.'});
255-
256-
// Add example image
257-
const exampleImg = aboutSection.createEl('img', {
258-
attr: {
259-
src: 'https://raw.githubusercontent.com/jparkerweb/pexels-banner/main/example.jpg',
260-
alt: 'Example of a Pexels banner',
261-
style: 'max-width: 100%; height: auto; margin-top: 10px; border-radius: 5px;'
262-
}
263-
});
264-
265-
// Add spacing after the About section
266-
containerEl.createEl('div', {cls: 'pexels-banner-spacing'});
267-
268250
const mainContent = containerEl.createEl('div', {cls: 'pexels-banner-main-content'});
269251

270252
// API Key section
@@ -375,6 +357,15 @@ pexels-banner: https://example.com/image.jpg
375357
---`
376358
});
377359

360+
// Add example image
361+
const exampleImg = containerEl.createEl('img', {
362+
attr: {
363+
src: 'https://raw.githubusercontent.com/jparkerweb/pexels-banner/main/example.jpg',
364+
alt: 'Example of a Pexels banner',
365+
style: 'max-width: 100%; height: auto; margin-top: 10px; border-radius: 5px;'
366+
}
367+
});
368+
378369
// Footer
379370
const footerEl = containerEl.createEl('div', {cls: 'pexels-banner-footer'});
380371
footerEl.createEl('p', {

0 commit comments

Comments
 (0)