diff --git a/public/global.css b/public/global.css index b3a7ecc..d87ae39 100644 --- a/public/global.css +++ b/public/global.css @@ -66,9 +66,9 @@ body { } .container { - max-width: 1200px; + width: 100%; margin: 0 auto; - padding: 2rem; + padding: 0; background: var(--color-bg); color: var(--color-text); } @@ -398,24 +398,7 @@ div.logo-image img { color: var(--color-text); } -.preview-container { - display: flex; - align-items: center; - justify-content: center; - padding: 1rem; - background-color: var(--color-card); - color: var(--color-text); - margin-bottom: 1rem; - border-radius: 4px; - overflow: hidden; - border: 1px solid var(--color-border); -} -.preview-container img { - max-width: 100%; - max-height: 100%; - object-fit: contain; -} .logo-details { margin-top: 1rem; diff --git a/src/App.svelte b/src/App.svelte index b83d1d4..bc963ea 100644 --- a/src/App.svelte +++ b/src/App.svelte @@ -1,15 +1,10 @@ -
+
+
- -
+ diff --git a/src/components/Footer.svelte b/src/components/Footer.svelte new file mode 100644 index 0000000..fbf627d --- /dev/null +++ b/src/components/Footer.svelte @@ -0,0 +1,77 @@ + + + + + diff --git a/src/components/Header.svelte b/src/components/Header.svelte index d5ba2e1..3b1105d 100644 --- a/src/components/Header.svelte +++ b/src/components/Header.svelte @@ -298,6 +298,14 @@ diff --git a/src/pages/Preview.svelte b/src/pages/Preview.svelte index 84e55e1..9ddbf4a 100644 --- a/src/pages/Preview.svelte +++ b/src/pages/Preview.svelte @@ -2,6 +2,7 @@ import { onMount } from 'svelte'; import { push, pop } from 'svelte-spa-router'; import PreviewComponent from '../components/Preview.svelte'; + import Footer from '../components/Footer.svelte'; import { getDefaultLogoColor } from '../utils/colorTheme.js'; // Get preview ID from URL parameter @@ -71,6 +72,9 @@ // Initialize theme initTheme(); + // Ensure page starts at the top + window.scrollTo(0, 0); + // First try to get logos from window.appData if available if (window.appData && window.appData.logos && window.appData.logos.length > 0) { console.log("Preview page: Using logos from window.appData:", window.appData.logos.length); @@ -122,16 +126,16 @@ {#if logo} -
-
- -
+
+ +
+
-
+ + +