mirror of
https://github.com/shadoll/sLogos.git
synced 2025-12-22 01:38:03 +00:00
Refactor Home and Preview pages for improved data handling and UI components
- Updated Home.svelte to streamline app data initialization and reactivity. - Removed unnecessary intervals and checks for app data updates. - Enhanced data binding for logos, view modes, and themes. - Simplified the structure of the Header and Footer components. - Introduced CardList and CardSquare components for better logo display. - Improved routing with a NotFound page for unmatched routes. - Added a RouteHeader component for search functionality and theme switching. - Enhanced styling for better user experience across components.
This commit is contained in:
@@ -3,8 +3,8 @@
|
||||
|
||||
export let logos = [];
|
||||
export let displayLogos = [];
|
||||
export let theme;
|
||||
export let setTheme;
|
||||
export let theme = "system";
|
||||
export let setTheme = () => {}; // Added default function to prevent errors
|
||||
export let viewMode;
|
||||
export let setGridView;
|
||||
export let setListView;
|
||||
@@ -187,7 +187,7 @@
|
||||
+ Tag{selectedTags.length ? "" : "s"}
|
||||
</button>
|
||||
{#if tagDropdownOpen}
|
||||
<div class="dropdown-list">
|
||||
<div class="dropdown-list" style="z-index: 100;">
|
||||
{#each allTags.filter((t) => !selectedTags.includes(t.text)) as tagObj}
|
||||
<button
|
||||
class="dropdown-tag"
|
||||
|
||||
Reference in New Issue
Block a user