-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into mk/feat/load-anim
- Loading branch information
Showing
17 changed files
with
210 additions
and
108 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1 @@ | ||
ORIGIN=http://localhost:5173 # this server | ||
PUBLIC_API_URL_SSR=http://localhost:3030 # server reachable | ||
PUBLIC_API_URL_CSR=http://localhost:3030 # client reachable | ||
API_URL=http://localhost:3030 # server reachable |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<footer | ||
class="custom-bg-headfoot dark:custom-bg-headfoot mt-auto flex h-20 w-full place-content-center items-center border border-gray-100 dark:border-0" | ||
> | ||
<div> | ||
<a class="hearchco-text-primary hover:underline" href="https://github.com/hearchco" | ||
><b>Source code</b></a | ||
> | ||
</div> | ||
</footer> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<script lang="ts"> | ||
import logo from '$lib/assets/logo.svg'; | ||
import Searchbox from '$lib/components/Searchbox.svelte'; | ||
export let query: string; | ||
</script> | ||
|
||
<header | ||
class="custom-bg-headfoot dark:custom-bg-headfoot flex h-36 items-center border border-gray-100 dark:border-0" | ||
> | ||
<div class="mx-4 w-full min-w-fit"> | ||
<div class="md:mx-auto flex max-w-screen-md items-center"> | ||
<div class="grid"> | ||
<a class="col-start-1 row-start-1" draggable="false" href="/"> | ||
<img | ||
class="col-start-1 row-start-1 h-16 w-16 mr-6 md:mr-8 pointer-events-none" | ||
src={logo} | ||
alt="logo" | ||
/> | ||
</a> | ||
</div> | ||
<Searchbox bind:query /> | ||
<div class="w-0 md:w-16 md:ml-8" /> | ||
</div> | ||
</div> | ||
</header> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<script lang="ts"> | ||
import type { Result } from './ResultType'; | ||
export let result: Result; | ||
</script> | ||
|
||
<article id="result-{result.Rank}"> | ||
<a id="link-{result.Rank}" href={result.URL} class="dark:text-white" rel="noreferrer" | ||
>{result.URL}</a | ||
> | ||
<h1 id="title-{result.Rank}" class="hearchco-text-primary text-xl hover:underline"> | ||
<a href={result.URL} rel="noreferrer">{result.Title}</a> | ||
</h1> | ||
<p | ||
id="description-{result.Rank}" | ||
class="my-1 text-justify text-sm text-gray-600 dark:text-gray-200" | ||
> | ||
{result.Description} | ||
</p> | ||
<div id="engines-{result.Rank}" class="my-2 text-right text-xs text-gray-800 dark:text-gray-400"> | ||
{#each result.EngineRanks as engineRank (engineRank.SearchEngine)} | ||
<span class="mx-0.5">{engineRank.SearchEngine}</span> | ||
{/each} | ||
</div> | ||
</article> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,5 +13,4 @@ export type Result = { | |
Description: string; | ||
EngineRanks: EngineRank[]; | ||
TimesReturned: number; | ||
Response: any; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
<script lang="ts"> | ||
export let query = ''; | ||
export let query: string; | ||
</script> | ||
|
||
<form | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
<script> | ||
import '../app.css'; | ||
import Footer from '$lib/components/Footer.svelte'; | ||
</script> | ||
|
||
<slot /> | ||
<Footer /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.