diff --git a/source/src/components/search/Answer.astro b/source/src/components/search/Answer.astro
index a3ebb15..13ae591 100644
--- a/source/src/components/search/Answer.astro
+++ b/source/src/components/search/Answer.astro
@@ -27,9 +27,11 @@ if (Image === null) {
display: flex;
flex-direction: column;
gap: 6px;
- background: white;
+ background: var(--box-background);
+ transition: 0.6s background, 0.6s color;
border-radius: 6px;
padding: 12px;
+ color: var(--text);
* {
margin: 0px;
}
diff --git a/source/src/components/search/Correction.astro b/source/src/components/search/Correction.astro
index 31fb1b4..622dc76 100644
--- a/source/src/components/search/Correction.astro
+++ b/source/src/components/search/Correction.astro
@@ -13,7 +13,7 @@ const {
\ No newline at end of file
diff --git a/source/src/pages/index.astro b/source/src/pages/index.astro
index 77126cc..4797456 100644
--- a/source/src/pages/index.astro
+++ b/source/src/pages/index.astro
@@ -1,17 +1,33 @@
---
// Layout
import Base from "@layouts/Base.astro";
+
+// Components
+import SearchBox from "@components/global/SearchBox.astro";
---
- Example Search
-
+
+
+
\ No newline at end of file
+
+
\ No newline at end of file
diff --git a/source/src/styles/index.scss b/source/src/styles/index.scss
index 0a31514..b771fab 100644
--- a/source/src/styles/index.scss
+++ b/source/src/styles/index.scss
@@ -1,17 +1,66 @@
+// Preferred Themes
+:root {
+ .light {
+ --body-background: #dce0e8;
+ --box-background: #eff1f5;
+ --link: #1e66f5;
+ --text: black;
+ }
+ .dark {
+ --body-background: #232634;
+ --box-background: #303446;
+ --link: #8caaee;
+ --text: white;
+ }
+}
+.light {
+ .theme-light {
+ display: inherit;
+ }
+ .theme-dark {
+ display: none;
+ }
+}
+.dark {
+ .theme-light {
+ display: none;
+ }
+ .theme-dark {
+ display: inherit;
+ }
+}
+
+// Fonts
+@font-face {
+ font-family: 'Mona Sans';
+ src:
+ url('/fonts/Mona-Sans/Mona-Sans.woff2') format('woff2 supports variations'),
+ url('/fonts/Mona-Sans/Mona-Sans.woff2') format('woff2-variations');
+ font-weight: 200 900;
+ font-stretch: 75% 125%;
+}
+
+// Master
html, body {
height: 100%;
+ font-family: 'Mona Sans';
}
body {
- background: #e5e5e5;
+ background: var(--body-background);
+ transition: 0.6s background, 0.6s color;
margin: auto;
max-width: 1200px;
- font-family: arial;
padding: 0px 12px;
+ color: var(--text);
.disabled-items {
opacity: 0.3;
pointer-events: none;
}
+ a {
+ color: var(--link);
+ transition: 0.6s color;
+ }
::selection {
background: gray;
color: white;
diff --git a/source/src/styles/mobile.scss b/source/src/styles/mobile.scss
index dc9137d..5d72180 100644
--- a/source/src/styles/mobile.scss
+++ b/source/src/styles/mobile.scss
@@ -1,5 +1,19 @@
@media screen and (max-width: 860px){
.search-results {
- grid-template-columns: auto !important;
+ flex-direction: column-reverse;
+ }
+ .search-results-end {
+ max-width: 100% !important;
+ }
+ .related-search-tags {
+ flex-wrap: nowrap !important;
+ overflow: scroll !important;
+ }
+ .related-search-tags a {
+ padding: 12px 24px !important;
+ }
+ footer {
+ flex-direction: column;
+ padding-bottom: 24px;
}
}
\ No newline at end of file
diff --git a/source/src/styles/themes/dark.css b/source/src/styles/themes/dark.css
new file mode 100644
index 0000000..e69de29
diff --git a/source/src/styles/themes/light.css b/source/src/styles/themes/light.css
new file mode 100644
index 0000000..e69de29