web/src/pages/search/index.astro

54 lines · 1281 bytes

 1---
 2import Layout from '@layouts/Layout.astro';
 3
 4import Search from '@components/things/Search.svelte';
 5---
 6
 7<Layout
 8	title="Search | Awesome Privacy"
 9	description="Search hundreds of privacy-respecting apps and services by name, category or the mainstream product you want to replace."
10>
11	<section>
12		<h1>Search</h1>
13		<Search client:visible />
14		<p class="sitemap-link">
15			Browse <a href="/all/">all listings</a>, or see all pages in the <a
16				href="/sitemap/">Sitemap</a
17			>
18		</p>
19	</section>
20</Layout>
21
22<style lang="scss">
23	section {
24		display: flex;
25		flex-direction: column;
26		box-shadow: var(--shadow-md);
27		background: var(--surface);
28		border: var(--border-heavy);
29		border-radius: var(--curve-sm);
30		margin: var(--space-lg) auto;
31		padding: var(--space-md);
32		width: var(--width-container-max);
33		max-width: var(--width-container);
34		min-height: 80vh;
35
36		h1 {
37			font-size: var(--text-4xl);
38			color: var(--accent-3-text);
39			font-family: var(--font-subtitle);
40			text-align: center;
41			margin: var(--space-md) 0;
42		}
43		.sitemap-link {
44			opacity: var(--opacity-muted);
45			text-align: center;
46			font-size: var(--text-sm);
47			margin: var(--space-lg) auto;
48			transition: var(--transition-normal);
49			&:hover {
50				opacity: var(--opacity-subtle);
51			}
52		}
53	}
54</style>