forked from qdrant/demo-midlibrary-explorer-nextjs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Header.jsx
78 lines (73 loc) · 2.32 KB
/
Header.jsx
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
import React from "react";
import { AppBar, Toolbar, Box, Typography, Link } from "@mui/material";
import { useTheme } from "@mui/material/styles";
import Logo from "@/components/Logo.jsx";
import VercelLogo from "./VercelLogo";
import InfoDialog from "@/components/InfoDialog.jsx";
const Header = () => {
const theme = useTheme();
const info = {
title: "What is this?",
text: "This is a demo of Discovery Search powered by Qdrant vector similatiry search engine. It demonstrates how you can use vector similarity search in a scenario, where it is hard to construct a search query.",
};
return (
<AppBar position="static" elevation={0} color={"transparent"}>
<Toolbar disableGutters sx={{ justifyContent: "center" }}>
<Box
sx={{
display: "flex",
flexDirection: "column",
alignItems: "center",
justifyContent: "center",
}}
>
<span>
<Link
href="https://qdrant.tech/"
target="_blank"
sx={{ m: "1.25rem 0" }}
>
<Logo />
</Link>
<Link
href="https://nextjs.org//"
target="_blank"
sx={{ m: "1.25rem 0" }}
>
<VercelLogo />
</Link>
</span>
<Typography
variant="h5"
component="h1"
mb={2}
sx={{
display: "inline-flex",
color: theme.palette.text.primary,
alignItems: "center",
position: "relative",
}}
>
Midjourney Library Explorer
<InfoDialog
content={info}
sx={{ position: "absolute", right: -30 }}
/>
</Typography>
<Typography
variant="body1"
component="p"
align={"center"}
sx={{ color: theme.palette.text.secondary }}
>
Discover <Link href="https://www.midjourney.com/">Midjourney</Link>{" "}
art styles! Click left or right to choose which one is closer to
what you are looking for.
<br /> Explore styles matching your choice below.
</Typography>
</Box>
</Toolbar>
</AppBar>
);
};
export default Header;