diff --git a/package-lock.json b/package-lock.json index a72a41f..a38c69f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -17,6 +17,7 @@ "@fontsource/fira-mono": "^4.5.10", "@neoconfetti/svelte": "^1.0.0", "@sveltejs/adapter-auto": "^3.0.0", + "@sveltejs/adapter-static": "^3.0.0", "@sveltejs/kit": "^2.0.0", "@sveltejs/vite-plugin-svelte": "^3.0.0", "svelte": "^4.2.7", @@ -688,6 +689,15 @@ "@sveltejs/kit": "^2.0.0" } }, + "node_modules/@sveltejs/adapter-static": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/@sveltejs/adapter-static/-/adapter-static-3.0.2.tgz", + "integrity": "sha512-/EBFydZDwfwFfFEuF1vzUseBoRziwKP7AoHAwv+Ot3M084sE/HTVBHf9mCmXfdM9ijprY5YEugZjleflncX5fQ==", + "dev": true, + "peerDependencies": { + "@sveltejs/kit": "^2.0.0" + } + }, "node_modules/@sveltejs/kit": { "version": "2.5.3", "resolved": "https://registry.npmjs.org/@sveltejs/kit/-/kit-2.5.3.tgz", diff --git a/package.json b/package.json index 5ad62fd..dcf97c7 100644 --- a/package.json +++ b/package.json @@ -12,6 +12,7 @@ "@fontsource/fira-mono": "^4.5.10", "@neoconfetti/svelte": "^1.0.0", "@sveltejs/adapter-auto": "^3.0.0", + "@sveltejs/adapter-static": "^3.0.0", "@sveltejs/kit": "^2.0.0", "@sveltejs/vite-plugin-svelte": "^3.0.0", "svelte": "^4.2.7", diff --git a/src/components/Footer.svelte b/src/components/Footer.svelte index 1d0f58d..f5fda0e 100644 --- a/src/components/Footer.svelte +++ b/src/components/Footer.svelte @@ -26,6 +26,7 @@ justify-content: center; align-items: center; margin-top: auto; + padding-top: 3em; text-align: center; margin-bottom: 10px; } diff --git a/src/components/Nav.svelte b/src/components/Nav.svelte index 7febc30..677a863 100644 --- a/src/components/Nav.svelte +++ b/src/components/Nav.svelte @@ -68,6 +68,7 @@ align-items: center; vertical-align: center; padding-top: 8px; + padding-bottom: 3em; } .dropdown { diff --git a/src/routes/+layout.js b/src/routes/+layout.js new file mode 100644 index 0000000..4fc13cc --- /dev/null +++ b/src/routes/+layout.js @@ -0,0 +1,2 @@ + // allow prerendering for static adapter builds + export const prerender = true; \ No newline at end of file diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte index 9e67d71..47b817b 100644 --- a/src/routes/+page.svelte +++ b/src/routes/+page.svelte @@ -95,7 +95,7 @@ } .hero { - margin-top: 3em; + /*padding-top: 3em;*/ margin-bottom: 3em; background-color: aqua; } diff --git a/src/routes/about-contact/+page.svelte b/src/routes/about-contact/+page.svelte index 675d83d..b9fa517 100644 --- a/src/routes/about-contact/+page.svelte +++ b/src/routes/about-contact/+page.svelte @@ -39,7 +39,7 @@

Questions? Comments? Want to chat about satellites? Visit us on Matrix at #femtostar:matrix.org. Alternatively, email us at This address has been hidden to prevent spam being received. If you are reading this website as plain text or through a screen reader, the correct address is the word hello, then the symbol spelled with the letter before B and then the letter after S, then the name of this diff --git a/static/global.css b/static/global.css index 8ce832b..69cc17b 100644 --- a/static/global.css +++ b/static/global.css @@ -29,6 +29,11 @@ code { border-radius: 2px; } +.site{ + margin-top: auto; + margin-bottom: auto; +} + .navlogo{ height: 100%; } diff --git a/svelte.config.js b/svelte.config.js index 348fa32..1e9eb7d 100644 --- a/svelte.config.js +++ b/svelte.config.js @@ -1,12 +1,17 @@ -import adapter from '@sveltejs/adapter-auto'; +import adapter from '@sveltejs/adapter-static'; /** @type {import('@sveltejs/kit').Config} */ const config = { kit: { - // adapter-auto only supports some environments, see https://kit.svelte.dev/docs/adapter-auto for a list. - // If your environment is not supported or you settled on a specific environment, switch out the adapter. - // See https://kit.svelte.dev/docs/adapters for more information about adapters. - adapter: adapter() + adapter: adapter({ + // default options are shown. On some platforms + // these options are set automatically — see below + pages: 'build', + assets: 'build', + fallback: undefined, + precompress: false, + strict: true + }) } };