Skip to content

Commit 53d6039

Browse files
committed
style(ui): resolve repeating apps and enhance UI/UX of app cards
1 parent a3c0e03 commit 53d6039

3 files changed

Lines changed: 19 additions & 26 deletions

File tree

app.js

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -997,7 +997,6 @@ function bindAppActionButtons(scope = document) {
997997
window.open(app.url, "_blank", "noopener,noreferrer");
998998
renderRecentApps();
999999
renderFamilyHighlights();
1000-
renderRecommendedApps(getFilteredApps());
10011000
updateBackupSummary();
10021001
});
10031002
});
@@ -1011,7 +1010,6 @@ function bindAppActionButtons(scope = document) {
10111010
window.open(app.url, "_blank", "noopener,noreferrer");
10121011
renderRecentApps();
10131012
renderFamilyHighlights();
1014-
renderRecommendedApps(getFilteredApps());
10151013
updateBackupSummary();
10161014
return;
10171015
}
@@ -1052,13 +1050,6 @@ function renderRecentApps() {
10521050
bindAppActionButtons(container);
10531051
}
10541052

1055-
function renderRecommendedApps(apps) {
1056-
const container = document.getElementById("recommendedApps");
1057-
if (!container) return;
1058-
const recommended = getRecommendedApps(apps);
1059-
container.innerHTML = recommended.map((app) => buildAppCard(app, true)).join("");
1060-
bindAppActionButtons(container);
1061-
}
10621053

10631054
async function renderApps() {
10641055
const container = document.getElementById("appGrid");
@@ -1076,7 +1067,6 @@ async function renderApps() {
10761067
renderCategoryFilters();
10771068
renderFamilyHighlights();
10781069
renderRecentApps();
1079-
renderRecommendedApps(filteredApps);
10801070

10811071
if (!filteredApps.length) {
10821072
container.innerHTML = `
@@ -1343,7 +1333,6 @@ function initPwa() {
13431333
if (event.key.startsWith("sathi-last-opened-")) {
13441334
renderRecentApps();
13451335
renderFamilyHighlights();
1346-
renderRecommendedApps(getFilteredApps());
13471336
return;
13481337
}
13491338
if (event.key === "aapka-sathi-last-backup-at") {

index.html

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -193,16 +193,6 @@ <h2 data-i18n="appsTitle">Aaj ke live Sathi apps</h2>
193193
</label>
194194
<div id="categoryFilters" class="category-filters"></div>
195195
</div>
196-
<div class="recommend-shell">
197-
<div class="section-head compact-head">
198-
<div>
199-
<p class="eyebrow" data-i18n="recommendedLabel">Recommended</p>
200-
<h2 data-i18n="recommendedTitle">Next best apps</h2>
201-
</div>
202-
<p class="muted" data-i18n="recommendedText">Recent use, install status, aur family mix ke hisaab se yeh cards pehle dikh rahe hain.</p>
203-
</div>
204-
<div id="recommendedApps" class="recommend-grid"></div>
205-
</div>
206196
<div id="appGrid" class="app-grid"></div>
207197
</div>
208198
</section>

styles.css

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,9 @@
1010
--accent-3: #facc15;
1111
--accent-4: #14b8a6;
1212
--page: linear-gradient(180deg, #fff7ef 0%, #fff0df 52%, #fff8f2 100%);
13-
--card-shadow: 0 26px 70px rgba(201, 108, 37, 0.14);
14-
--hero-shadow: 0 32px 110px rgba(249, 115, 22, 0.18);
13+
--card-shadow: 0 16px 40px rgba(201, 108, 37, 0.08), 0 4px 12px rgba(201,108,37,0.05);
14+
--hero-shadow: 0 24px 80px rgba(249, 115, 22, 0.15);
15+
--hover-shadow: 0 24px 60px rgba(201, 108, 37, 0.15), 0 8px 24px rgba(201,108,37,0.1);
1516
--font-display: "Sora", "Segoe UI", sans-serif;
1617
--font-body: "Manrope", "Segoe UI", sans-serif;
1718
}
@@ -24,8 +25,9 @@ body[data-theme="dark"] {
2425
--text: #eef2f6;
2526
--muted: #9ca8b4;
2627
--page: linear-gradient(180deg, #0e1419 0%, #141b21 52%, #10161c 100%);
27-
--card-shadow: 0 26px 70px rgba(0, 0, 0, 0.34);
28-
--hero-shadow: 0 34px 110px rgba(249, 115, 22, 0.16);
28+
--card-shadow: 0 16px 40px rgba(0, 0, 0, 0.35), 0 4px 12px rgba(0,0,0,0.2);
29+
--hero-shadow: 0 24px 80px rgba(249, 115, 22, 0.12);
30+
--hover-shadow: 0 24px 60px rgba(0, 0, 0, 0.45), 0 8px 24px rgba(0,0,0,0.3);
2931
}
3032

3133
* { box-sizing: border-box; }
@@ -199,9 +201,16 @@ button, input, textarea { font: inherit; }
199201
.feedback-card,
200202
.drawer-card {
201203
border: 1px solid var(--line);
202-
border-radius: 2rem;
204+
border-radius: 1.5rem;
203205
background: var(--surface-strong);
204206
box-shadow: var(--card-shadow);
207+
transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.3s ease;
208+
}
209+
210+
.story-card:hover, .app-card:hover {
211+
transform: translateY(-4px) scale(1.01);
212+
box-shadow: var(--hover-shadow);
213+
border-color: color-mix(in srgb, var(--accent) 30%, var(--line));
205214
}
206215

207216
.hero-panel {
@@ -290,6 +299,11 @@ h3 { font-size: 1.05rem; letter-spacing: -0.03em; }
290299
background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
291300
color: #fff;
292301
border-color: transparent;
302+
box-shadow: 0 4px 12px rgba(249, 115, 22, 0.2);
303+
}
304+
305+
.solid-btn:hover {
306+
box-shadow: 0 6px 16px rgba(249, 115, 22, 0.3);
293307
}
294308

295309
.mini-toggle.active {

0 commit comments

Comments
 (0)