@@ -4,13 +4,19 @@ import { Bars3Icon, XMarkIcon } from '@heroicons/react/24/outline';
4
4
import { ChevronDownIcon } from '@heroicons/react/20/solid' ;
5
5
import classNames from 'classnames' ;
6
6
import { useColorMode } from '@docusaurus/theme-common' ;
7
- import { SiDiscord } from 'react-icons/si' ;
7
+ import { SiDiscord , SiGithub } from 'react-icons/si' ;
8
8
import { motion } from 'framer-motion' ;
9
9
import ThemeToggleButton from './ThemeToggleButton' ;
10
10
import SearchBarWrapper from '../theme/SearchBar' ;
11
11
import Banner from './Banner' ;
12
12
13
13
const resources = [
14
+ {
15
+ name : 'OpenAPI' ,
16
+ description : 'Explore our API specs.' ,
17
+ href : 'https://app.windmill.dev/openapi.html' ,
18
+ newtab : true
19
+ } ,
14
20
{
15
21
name : 'Changelog' ,
16
22
description : 'See the latest changes to Windmill.' ,
@@ -100,12 +106,6 @@ export default function LandingHeader() {
100
106
>
101
107
Hub
102
108
</ a >
103
- < a
104
- href = "https://app.windmill.dev/openapi.html"
105
- className = "font-medium text-gray-500 hover:text-gray-900 !no-underline dark:text-gray-200 dark:hover:text-gray-300"
106
- >
107
- OpenAPI
108
- </ a >
109
109
110
110
< Popover className = "relative" >
111
111
{ ( { open } ) => (
@@ -138,23 +138,25 @@ export default function LandingHeader() {
138
138
< Popover . Panel className = "absolute left-1/2 z-10 mt-3 w-screen max-w-xs -translate-x-1/2 transform px-2 sm:px-0" >
139
139
< div className = "overflow-hidden rounded-lg shadow-lg ring-1 ring-black ring-opacity-5" >
140
140
< div className = "relative grid gap-6 bg-white dark:bg-gray-800 px-5 py-6 sm:gap-8 sm:p-8" >
141
- { resources . map ( ( resource ) => (
142
- < a
143
- key = { resource . name }
144
- href = { resource . href }
145
- className = "-m-3 block rounded-md p-3 hover:bg-gray-50 dark:hover:bg-gray-700 !no-underline"
146
- >
147
- < p className = "font-medium text-gray-900 dark:text-gray-100" >
148
- { resource . name }
149
- </ p >
150
- < p className = "mt-1 text-sm text-gray-500 dark:text-gray-300" >
151
- { resource . description }
152
- </ p >
153
- </ a >
154
- ) ) }
141
+ { resources . map ( ( resource ) => (
142
+ < a
143
+ key = { resource . name }
144
+ href = { resource . href }
145
+ className = "-m-3 block rounded-md p-3 hover:bg-gray-50 dark:hover:bg-gray-700 !no-underline"
146
+ target = { resource . newtab ? "_blank" : undefined }
147
+ rel = { resource . newtab ? "noopener noreferrer" : undefined }
148
+ >
149
+ < p className = "font-medium text-gray-900 dark:text-gray-100" >
150
+ { resource . name }
151
+ </ p >
152
+ < p className = "mt-1 text-sm text-gray-500 dark:text-gray-300" >
153
+ { resource . description }
154
+ </ p >
155
+ </ a >
156
+ ) ) }
155
157
</ div >
156
158
</ div >
157
- </ Popover . Panel >
159
+ </ Popover . Panel >
158
160
</ Transition >
159
161
</ >
160
162
) }
@@ -166,14 +168,26 @@ export default function LandingHeader() {
166
168
167
169
< ThemeToggleButton colorMode = { colorMode } setColorMode = { setColorMode } />
168
170
171
+ < a
172
+ href = "https://github.com/windmill-labs/windmill"
173
+ data-analytics = '"github"'
174
+ onClick = { ( ) => window . plausible ( 'github' ) }
175
+ className = "rounded-full hover:bg-indigo-200 dark:hover:bg-indigo-400 p-2"
176
+ target = "_blank"
177
+ >
178
+ < SiGithub className = "h-5 w-5 dark:text-white text-gray-800" />
179
+ </ a >
180
+
169
181
< a
170
182
href = "https://discord.com/invite/V7PM2YHsPB"
171
183
data-analytics = '"discord"'
172
184
onClick = { ( ) => window . plausible ( 'discord' ) }
173
- className = " rounded-full hover:bg-indigo-200 dark:hover:bg-indigo-400 p-2"
174
- >
185
+ className = "rounded-full hover:bg-indigo-200 dark:hover:bg-indigo-400 p-2"
186
+ target = "_blank"
187
+ >
175
188
< SiDiscord className = "h-5 w-5 dark:text-white text-gray-800" />
176
189
</ a >
190
+
177
191
< a
178
192
href = "https://www.windmill.dev/book-demo"
179
193
data-analytics = '"schedule-demo"'
@@ -248,7 +262,31 @@ export default function LandingHeader() {
248
262
</ a >
249
263
) ) }
250
264
</ div >
251
- < div className = "mt-6" >
265
+ < div className = "mt-6 flex justify-center items-center space-x-4 mb-4" >
266
+ < a
267
+ href = "https://github.com/windmill-labs/windmill"
268
+ data-analytics = '"github"'
269
+ onClick = { ( ) => window . plausible ( 'github' ) }
270
+ className = "rounded-full hover:bg-indigo-200 dark:hover:bg-indigo-400 p-2"
271
+ target = "_blank"
272
+ rel = "noopener noreferrer"
273
+ >
274
+ < SiGithub className = "h-5 w-5 dark:text-white text-gray-800" />
275
+ </ a >
276
+
277
+ < a
278
+ href = "https://discord.com/invite/V7PM2YHsPB"
279
+ data-analytics = '"discord"'
280
+ onClick = { ( ) => window . plausible ( 'discord' ) }
281
+ className = "rounded-full hover:bg-indigo-200 dark:hover:bg-indigo-400 p-2"
282
+ target = "_blank"
283
+ rel = "noopener noreferrer"
284
+ >
285
+ < SiDiscord className = "h-5 w-5 dark:text-white text-gray-800" />
286
+ </ a >
287
+ </ div >
288
+
289
+ < div className = "mt-6" >
252
290
< a
253
291
href = "https://www.windmill.dev/book-demo"
254
292
data-analytics = '"schedule-demo"'
0 commit comments