Skip to content

Commit 7a17ebe

Browse files
committed
update: add favicon and simplify config
1 parent cdec276 commit 7a17ebe

3 files changed

Lines changed: 9 additions & 4 deletions

File tree

website/config.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,12 @@
22
"appName": "SmartScan",
33
"developer": "D41Dev",
44
"logo": "public/icon.png",
5-
"description": "Search images and videos offline using text or reverse image search with on-device AI.",
5+
"description": "An open source smart gallery app.",
66
"hero": {
7-
"title": "Search media with SmartScan",
8-
"tagline": "An open source smart gallery app.",
97
"cta": "Download",
108
"image": "public/banner.png"
119
},
10+
"favicon": "public/favicon.ico",
1211
"screenshots": [
1312
"public/screenshots/1.png",
1413
"public/screenshots/2.png",

website/index.html

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<!DOCTYPE html>
22
<html lang="en">
33
<head>
4+
<link id="favicon" rel="icon" type="image/x-icon" href="">
45
<meta charset="UTF-8">
56
<meta name="viewport" content="width=device-width, initial-scale=1.0">
67
<title>SmartScan</title>
@@ -243,14 +244,19 @@ <h2>Download</h2>
243244
.then(res => res.json())
244245
.then(config => {
245246
document.title = config.appName || '';
247+
// Favicon
248+
if (config.favicon) {
249+
const favicon = document.getElementById('favicon');
250+
favicon.href = config.favicon;
251+
}
246252

247253
const logo = document.getElementById('hero-logo');
248254
if (config.logo) logo.src = config.logo;
249255
else logo.style.display = 'none';
250256

251257
document.getElementById('hero-title').textContent = config.appName || '';
252258
document.getElementById('hero-developer').textContent = config.developer || '';
253-
document.getElementById('hero-tagline').textContent = config.hero?.tagline || '';
259+
document.getElementById('hero-tagline').textContent = config.description || '';
254260

255261
if (config.hero?.image) {
256262
document.getElementById('hero-bg').style.backgroundImage = `url('${config.hero.image}')`;

website/public/favicon.ico

5.12 KB
Binary file not shown.

0 commit comments

Comments
 (0)