@@ -10,52 +10,86 @@ import {
10
10
PopoverContent ,
11
11
PopoverTrigger ,
12
12
} from "../UI/Popover" ;
13
+ import TriggerDevLogoImage from "~/assets/images/trigger-dev-logo.png" ;
13
14
14
15
export function HomeHeader ( { fixed } : { fixed ?: boolean } ) {
15
16
return (
16
17
< header
17
18
className = { `${
18
19
fixed ? "fixed" : ""
19
- } z-20 flex items-center justify-between w-screen h-[52px] sm:h-[ 82px] px-4 bg-indigo-700`}
20
+ } z-20 flex h-[82px] bg-indigo-700 flex-col `}
20
21
>
21
- < div className = "flex w-28 sm:w-44 mr-3" >
22
- < Logo />
22
+ < div className = "flex h-8 bg-slate-900 w-full items-center justify-center text-base sm:text-lg " >
23
+ < a
24
+ href = "https://trigger.dev"
25
+ target = "_blank"
26
+ aria-label = "Trigger.dev logo"
27
+ className = " cursor-pointer "
28
+ >
29
+ < TriggerDevLogo className = { "h-4 px-1 mt-0.5" } />
30
+ </ a >
31
+ < p className = "text-slate-200" >
32
+ < span className = "hidden lg:inline-block " >
33
+ - Our Background Jobs framework for Next.js,
34
+ </ span > { " " }
35
+ < span className = "hidden md:inline-block" >
36
+ is now in private beta.
37
+ </ span > { " " }
38
+ Get your early access code{ " " }
39
+ < a
40
+ className = "underline hover:opacity-90 cursor-pointer text-lime-400"
41
+ target = "_blank"
42
+ href = "https://bcymafitv0e.typeform.com/to/QQnotGJM#source=jsonhero-home"
43
+ >
44
+ here
45
+ </ a >
46
+ .
47
+ </ p >
23
48
</ div >
24
- < ol className = "flex items-center gap-2" >
25
- < Popover >
26
- < PopoverTrigger >
27
- < button className = "hidden md:block bg-lime-500 text-slate-900 text-lg font-bold px-2 py-0.5 rounded-sm uppercase whitespace-nowrap cursor-pointer opacity-90 hover:opacity-100 transition" >
28
- Try now
29
- </ button >
30
- </ PopoverTrigger >
31
- < PopoverContent side = "bottom" sideOffset = { 30 } >
32
- < NewDocument />
33
- < PopoverArrow
34
- className = "fill-current text-indigo-700"
35
- offset = { 20 }
36
- />
37
- </ PopoverContent >
38
- </ Popover >
49
+ < div className = "flex items-center justify-between w-screen px-4" >
50
+ < div className = "flex w-28 sm:w-44 mr-3" >
51
+ < Logo />
52
+ </ div >
53
+ < ol className = "flex items-center gap-2 sm:pr-4 pr-2" >
54
+ < Popover >
55
+ < PopoverTrigger >
56
+ < button className = "hidden md:block bg-lime-500 text-slate-900 text-lg font-bold px-2 py-0.5 rounded-sm uppercase whitespace-nowrap cursor-pointer opacity-90 hover:opacity-100 transition" >
57
+ Try now
58
+ </ button >
59
+ </ PopoverTrigger >
60
+ < PopoverContent side = "bottom" sideOffset = { 30 } >
61
+ < NewDocument />
62
+ < PopoverArrow
63
+ className = "fill-current text-indigo-700"
64
+ offset = { 20 }
65
+ />
66
+ </ PopoverContent >
67
+ </ Popover >
39
68
40
- < li className = "hover:cursor-pointer" >
41
- < GithubStar />
42
- </ li >
43
- < li className = "hover:cursor-pointer opacity-90 hover:opacity-100 transition" >
44
- < a href = "mailto:[email protected] " >
45
- < EmailIconTransparent />
46
- </ a >
47
- </ li >
48
- < li className = "hover:cursor-pointer opacity-90 hover:opacity-100 transition" >
49
- < a href = "https://discord.gg/JtBAxBr2m3" target = "_blank" >
50
- < DiscordIconTransparent />
51
- </ a >
52
- </ li >
53
- < li className = "hover:cursor-pointer opacity-90 hover:opacity-100 transition" >
54
- < a href = "https://twitter.com/triggerdotdev" target = "_blank" >
55
- < TwitterIcon />
56
- </ a >
57
- </ li >
58
- </ ol >
69
+ < li className = "hover:cursor-pointer" >
70
+ < GithubStar />
71
+ </ li >
72
+ < li className = "hover:cursor-pointer opacity-90 hover:opacity-100 transition" >
73
+ < a href = "mailto:[email protected] " >
74
+ < EmailIconTransparent />
75
+ </ a >
76
+ </ li >
77
+ < li className = "hover:cursor-pointer opacity-90 hover:opacity-100 transition" >
78
+ < a href = "https://discord.gg/JtBAxBr2m3" target = "_blank" >
79
+ < DiscordIconTransparent />
80
+ </ a >
81
+ </ li >
82
+ < li className = "hover:cursor-pointer opacity-90 hover:opacity-100 transition" >
83
+ < a href = "https://twitter.com/triggerdotdev" target = "_blank" >
84
+ < TwitterIcon />
85
+ </ a >
86
+ </ li >
87
+ </ ol >
88
+ </ div >
59
89
</ header >
60
90
) ;
61
91
}
92
+
93
+ function TriggerDevLogo ( { className } : { className : string } ) {
94
+ return < img src = { TriggerDevLogoImage } className = { className } /> ;
95
+ }
0 commit comments