Skip to content

Commit ff3be89

Browse files
committedOct 9, 2023
chore(web): add github link
1 parent 4c0f8bc commit ff3be89

File tree

3 files changed

+19
-4
lines changed

3 files changed

+19
-4
lines changed
 

‎web/app/page.tsx

+16-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ import Slogan from './components/slogan'
44
import SearchForm from './components/search-form'
55
import TrendingTopics from './components/trending-topics'
66
import { cn } from '@/library/utilities'
7+
import { Popover, PopoverContent, PopoverTrigger } from '@/components/ui/popover'
8+
import { FiHelpCircle } from 'react-icons/fi'
79

810
const spaceGrotesk = Space_Grotesk({ subsets: ['latin'] })
911

@@ -15,7 +17,20 @@ export default function Home() {
1517
<SearchForm />
1618
</div>
1719
<div className="w-full lg:w-3/4 xl:w-3/5 flex flex-col justify-center gap-y-4">
18-
<h1 className={cn('text-xl', spaceGrotesk.className)}>Trending queries</h1>
20+
<div className="flex flex-row align-middle items-center gap-x-1 text-xl">
21+
<h2 className={cn('text-xl', spaceGrotesk.className)}>Trending queries</h2>
22+
<Popover>
23+
<PopoverTrigger>
24+
<FiHelpCircle className="text-muted-foreground" />
25+
</PopoverTrigger>
26+
<PopoverContent className="dark:bg-[#202020]/40 bg-neutral-400/10 backdrop-blur-lg filter mr-10 sm:mr-0">
27+
<p>
28+
SciSight keeps track of recent and most accessed queries. Click on a trending query
29+
to search about it!
30+
</p>
31+
</PopoverContent>
32+
</Popover>
33+
</div>
1934
<TrendingTopics />
2035
</div>
2136
</main>

‎web/app/search/components/results.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ export default function Results({
297297
</div>
298298
{nasaEvents ? (
299299
<>
300-
<div className="flex relative items-center w-full max-w-screen flex-col justify-center">
300+
<div className="flex relative items-center w-full max-w-screen flex-col gap-y-4 justify-center">
301301
<div className="absolute top-0 right-0 z-10 text-2xl sm:text-4xl">
302302
<Popover>
303303
<PopoverTrigger>
@@ -407,7 +407,7 @@ export default function Results({
407407
</>
408408
) : (
409409
<>
410-
<div className="flex relative items-center w-full max-w-screen flex-col justify-center">
410+
<div className="flex relative items-center w-full max-w-screen flex-col gap-y-4 justify-center">
411411
<div className="absolute top-0 right-0 z-10 text-2xl sm:text-4xl">
412412
<Popover>
413413
<PopoverTrigger>

‎web/components/layout/actions.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export default function Actions() {
1818
</a>
1919
<div className="flex flex-row gap-x-4 items-center text-2xl">
2020
<Link
21-
href="https://github.com/ojpbarbosa/github"
21+
href="https://github.com/ojpbarbosa/scisight"
2222
referrerPolicy="no-referrer"
2323
target="_blank"
2424
>

0 commit comments

Comments
 (0)
Please sign in to comment.