Skip to content

Commit

Permalink
fix script bug
Browse files Browse the repository at this point in the history
  • Loading branch information
IncognitoTGT committed Jul 10, 2024
1 parent c61898f commit 3195e20
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 34 deletions.
4 changes: 2 additions & 2 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

48 changes: 18 additions & 30 deletions src/global.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,38 +4,26 @@
@tailwind utilities;

@layer base {
:root {
/* --background-image: url("/assets/media/backgrounds/full-inverted.png"); */
--background: #111;
--background-secondary: #222;
--interactive: #333;
--interactive-secondary: #777;
--border: #555;
--accent: #555;
--text: #fff;
--text-secondary: #fff;
}

/* .dark {
--background-image: url("/assets/media/backgrounds/full-main.png");
--background: #14121f;
--background-secondary: #853ff916;
--interactive: #7d51fd50;
--interactive-secondary: #845ffd5f;
--border: #9879ff83;
--accent: #8668ffcc;
--text: #e3defffe;
--text-secondary: #baa7ff;
} */
:root {
/* --background-image: url("/assets/media/backgrounds/full-inverted.png"); */
--background: #111;
--background-secondary: #222;
--interactive: #333;
--interactive-secondary: #777;
--border: #555;
--accent: #555;
--text: #fff;
--text-secondary: #fff;
}
}

@layer base {
body {
/* background-image: var(--background-image); */
@apply h-full font-sans bg-background text-text;
}
body {
/* background-image: var(--background-image); */
@apply h-full font-sans bg-background text-text;
}

* {
@apply border-border;
}
* {
@apply border-border;
}
}
4 changes: 2 additions & 2 deletions src/pages/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ const splashText = [
</div>
</div>
</Layout>
<script>
<script is:inline>
const searchUrl = localStorage.getItem("engine") || "https://www.google.com/search?q=";
const input = document.getElementById("search") as HTMLInputElement | null;
const input = document.getElementById("search");
function isUrl(val = "") {
if (/^http(s?):\/\//.test(val) || (val.includes(".") && !val.includes(" "))) {
return true;
Expand Down

0 comments on commit 3195e20

Please sign in to comment.