diff --git a/source/astro.mjs b/source/astro.mjs index e2a9bbe..522108b 100644 --- a/source/astro.mjs +++ b/source/astro.mjs @@ -15,7 +15,7 @@ export default defineConfig({ integrations: [vue(), astroI18next()], // Security security: { - checkOrigin: true + checkOrigin: false // Breaks form action }, // Server Options server: { diff --git a/source/src/components/global/Footer.astro b/source/src/components/global/Footer.astro index ccb3c82..18dd7b7 100644 --- a/source/src/components/global/Footer.astro +++ b/source/src/components/global/Footer.astro @@ -18,6 +18,19 @@ import { API --> Source Code Report Issue + @@ -33,7 +46,7 @@ footer { .footer-end { a { text-decoration: none; - margin-left: 12px; + margin-right: 12px; &:hover { text-decoration: underline; } diff --git a/source/src/components/global/Header.astro b/source/src/components/global/Header.astro index 0e68924..5180000 100644 --- a/source/src/components/global/Header.astro +++ b/source/src/components/global/Header.astro @@ -12,11 +12,10 @@ import { HalfMoon, Menu, SunLight } from "@iconoir/vue";
- +
- - @@ -64,9 +63,11 @@ header { .button-icon { aspect-ratio: 1; padding: 0px 6px; + display: flex; + align-items: center; + justify-content: center; svg { width: 16px; - transform: translate(0px, 2px); } } } diff --git a/source/src/layouts/Search.astro b/source/src/layouts/Search.astro index a9f2142..66b6c11 100644 --- a/source/src/layouts/Search.astro +++ b/source/src/layouts/Search.astro @@ -26,7 +26,11 @@ import SearchMenu from "@components/global/SearchMenu.astro" margin-top: 16px; display: flex; gap: 24px; + .search-results-start { + max-width: 776px; + } .search-results-end { + min-width: 100px; max-width: 400px; } } diff --git a/source/src/pages/web.astro b/source/src/pages/web.astro index 59d38ad..38ff682 100644 --- a/source/src/pages/web.astro +++ b/source/src/pages/web.astro @@ -15,10 +15,16 @@ import WebLink from "@components/search/WebLink.astro"; import WebLinkSkeleton from "@components/search/WebLinkSkeleton.astro"; // Fetch +/// Get Query const QueryString = Astro.url.href.split("web?=").pop() // Get user's search query from URL const QueryText = `${QueryString}`.replaceAll("%20", " ") // Replace "%20" with a space + +/// Get Results const Query = await fetch(DEFAULT_API + "/api/v1/web?s=" + QueryString).then((response) => response.json()); // Response +/// Pages +const NextPage = Astro.url.href.split("?page=").pop() // Get user's search query from URL + // Toggle Functions if (Query.answer[0] === undefined) { var ShowAnswer = false @@ -30,7 +36,7 @@ if (Query.related[0] === undefined) { } else { var ShowRelated = true } -console.log(ShowRelated + '' + Query.related[0]) +console.log(NextPage) --- @@ -128,15 +134,15 @@ console.log(ShowRelated + '' + Query.related[0]) .search-web-with-images { display: grid; - gap: 12px 0px; + gap: 6px; grid-template-columns: repeat( 4, minmax(100px, 1fr)); margin-bottom: 12px; img { width: 182px; - height: 80px; + height: 90px; object-fit: cover; border-radius: 6px; - border: 1px rgb(170,170,170) solid; + border: 2px rgb(80, 80, 80) solid; } } \ No newline at end of file