Suggestions.svelte 4.08 KB
Newer Older
1
2
3
4
5
6
<script lang="ts">
	export let submitPrompt: Function;
</script>

<div class=" grid sm:grid-cols-2 gap-2.5 mb-4 md:p-2 text-left">
	<button
Timothy J. Baek's avatar
Timothy J. Baek committed
7
		class=" flex justify-between w-full px-4 py-2.5 bg-white dark:bg-gray-800 dark:hover:bg-gray-700 outline outline-1 outline-gray-200 dark:outline-gray-600 rounded-lg transition group"
8
9
10
11
12
		on:click={() => {
			submitPrompt(`Tell me a random fun fact about the Roman Empire`);
		}}
	>
		<div class="flex flex-col text-left">
Timothy J. Baek's avatar
Timothy J. Baek committed
13
			<div class="text-sm font-medium dark:text-gray-300">Tell me a fun fact</div>
14
15
16
			<div class="text-sm text-gray-500">about the Roman Empire</div>
		</div>

Timothy J. Baek's avatar
Timothy J. Baek committed
17
18
19
		<div
			class="self-center text-white group-hover:text-gray-800 dark:group-hover:text-gray-300 dark:text-gray-800 transition"
		>
20
21
22
23
24
25
26
27
28
29
			<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" fill="none" class="w-4 h-4"
				><path
					d="M.5 1.163A1 1 0 0 1 1.97.28l12.868 6.837a1 1 0 0 1 0 1.766L1.969 15.72A1 1 0 0 1 .5 14.836V10.33a1 1 0 0 1 .816-.983L8.5 8 1.316 6.653A1 1 0 0 1 .5 5.67V1.163Z"
					fill="currentColor"
				/></svg
			>
		</div>
	</button>

	<button
Timothy J. Baek's avatar
Timothy J. Baek committed
30
		class="flex justify-between w-full px-4 py-2.5 bg-white dark:bg-gray-800 dark:hover:bg-gray-700 outline outline-1 outline-gray-200 dark:outline-gray-600 rounded-lg transition group"
31
32
33
34
35
		on:click={() => {
			submitPrompt(`Show me a code snippet of a website's sticky header in CSS and JavaScript.`);
		}}
	>
		<div class="flex flex-col text-left">
Timothy J. Baek's avatar
Timothy J. Baek committed
36
			<div class="text-sm font-medium dark:text-gray-300">Show me a code snippet</div>
37
38
			<div class="text-sm text-gray-500">of a website's sticky header</div>
		</div>
Timothy J. Baek's avatar
Timothy J. Baek committed
39
40
41
		<div
			class="self-center text-white group-hover:text-gray-800 dark:group-hover:text-gray-300 dark:text-gray-800 transition"
		>
42
43
44
45
46
47
48
49
50
51
			<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" fill="none" class="w-4 h-4"
				><path
					d="M.5 1.163A1 1 0 0 1 1.97.28l12.868 6.837a1 1 0 0 1 0 1.766L1.969 15.72A1 1 0 0 1 .5 14.836V10.33a1 1 0 0 1 .816-.983L8.5 8 1.316 6.653A1 1 0 0 1 .5 5.67V1.163Z"
					fill="currentColor"
				/></svg
			>
		</div>
	</button>

	<button
Timothy J. Baek's avatar
Timothy J. Baek committed
52
		class=" hidden sm:flex justify-between w-full px-4 py-2.5 bg-white dark:bg-gray-800 dark:hover:bg-gray-700 outline outline-1 outline-gray-200 dark:outline-gray-600 rounded-lg transition group"
53
54
55
56
57
58
59
		on:click={() => {
			submitPrompt(
				`Help me study vocabulary: write a sentence for me to fill in the blank, and I'll try to pick the correct option.`
			);
		}}
	>
		<div class="flex flex-col text-left">
Timothy J. Baek's avatar
Timothy J. Baek committed
60
			<div class="text-sm font-medium dark:text-gray-300">Help me study</div>
61
62
			<div class="text-sm text-gray-500">vocabulary for a college entrance exam</div>
		</div>
Timothy J. Baek's avatar
Timothy J. Baek committed
63
64
65
		<div
			class="self-center text-white group-hover:text-gray-800 dark:group-hover:text-gray-300 dark:text-gray-800 transition"
		>
66
67
68
69
70
71
72
73
74
75
			<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" fill="none" class="w-4 h-4"
				><path
					d="M.5 1.163A1 1 0 0 1 1.97.28l12.868 6.837a1 1 0 0 1 0 1.766L1.969 15.72A1 1 0 0 1 .5 14.836V10.33a1 1 0 0 1 .816-.983L8.5 8 1.316 6.653A1 1 0 0 1 .5 5.67V1.163Z"
					fill="currentColor"
				/></svg
			>
		</div>
	</button>

	<button
Timothy J. Baek's avatar
Timothy J. Baek committed
76
		class="  hidden sm:flex justify-between w-full px-4 py-2.5 bg-white dark:bg-gray-800 dark:hover:bg-gray-700 outline outline-1 outline-gray-200 dark:outline-gray-600 rounded-lg transition group"
77
78
79
80
81
82
83
		on:click={() => {
			submitPrompt(
				`What are 5 creative things I could do with my kids' art? I don't want to throw them away, but it's also so much clutter.`
			);
		}}
	>
		<div class="flex flex-col text-left">
Timothy J. Baek's avatar
Timothy J. Baek committed
84
			<div class="text-sm font-medium dark:text-gray-300">Give me ideas</div>
85
86
			<div class="text-sm text-gray-500">for what to do with my kids' art</div>
		</div>
Timothy J. Baek's avatar
Timothy J. Baek committed
87
88
89
		<div
			class="self-center text-white group-hover:text-gray-800 dark:group-hover:text-gray-300 dark:text-gray-800 transition"
		>
90
91
92
93
94
95
96
97
98
			<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" fill="none" class="w-4 h-4"
				><path
					d="M.5 1.163A1 1 0 0 1 1.97.28l12.868 6.837a1 1 0 0 1 0 1.766L1.969 15.72A1 1 0 0 1 .5 14.836V10.33a1 1 0 0 1 .816-.983L8.5 8 1.316 6.653A1 1 0 0 1 .5 5.67V1.163Z"
					fill="currentColor"
				/></svg
			>
		</div>
	</button>
</div>