-
-
Notifications
You must be signed in to change notification settings - Fork 8
/
index.astro
38 lines (33 loc) · 1.05 KB
/
index.astro
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
---
import { getCollection } from "astro:content";
import BaseLayout from "../layouts/base.astro";
import Search from "../components/islands/search.jsx";
import RecentSearches from "../components/islands/recent-searches.jsx";
const dictionary = await getCollection("dictionary");
---
<BaseLayout
pageTitle="Jargons.dev"
subtitle="Simplified Meaning & Definition to Technical Terms"
>
<main class="flex flex-col max-w-screen-lg p-5 justify-center mx-auto min-h-screen">
<!-- Title -->
<div class="mb-4 md:mb-6">
<h1 class="relative text-5xl md:text-7xl lg:text-8xl font-black w-fit">
<a href="/" class="absolute font-normal text-[0.6rem] md:text-xs right-0 md:top-1.5 lg:top-3">
jargons.dev
</a>
Dictionary
</h1>
</div>
<!-- Search -->
<Search triggerSize="md" dictionary={dictionary} client:load />
<!-- Browse words -->
<div class="ml-2 mt-4 md:mt-6" id="whirl-browse-words">
<a href="/browse">
Browse Words
</a>
</div>
<!-- Recent Word Look Up -->
<RecentSearches client:load />
</main>
</BaseLayout>