Skip to content

Commit 7b10536

Browse files
authored
Merge pull request #3255 from gluestack/feat/product-hunt
Feat/product hunt
2 parents 94c970d + c29f29c commit 7b10536

File tree

4 files changed

+90
-27
lines changed

4 files changed

+90
-27
lines changed

apps/website/components/page-components/header/index.tsx

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -82,11 +82,11 @@ const Header = ({
8282
{
8383
href: 'https://pro.gluestack.io/?utm_source=gluestack.io&utm_medium=header&utm_campaign=site-navigation',
8484
logo: {
85-
light: GluestackProLogo,
86-
dark: GluestackProLogo,
85+
light: StarterKitLogo,
86+
dark: StarterKitLogoDark,
8787
},
88-
title: 'Gluestack Pro (Preview)',
89-
description: 'Premium React Native templates that just work.',
88+
title: 'gluestack-ui pro',
89+
description: 'The only React Native templateyou’ll ever need.',
9090
badge: {
9191
text: 'PAID',
9292
action: 'info',
@@ -452,6 +452,16 @@ const Header = ({
452452
)}
453453
</Box>
454454
</Pressable>
455+
{!pathname.includes('/docs') && (
456+
<Link
457+
href="https://pro.gluestack.io/?utm_source=gluestack.io&utm_medium=banner_docs&utm_campaign=brand-awareness"
458+
className="border border-outline-200 px-4 py-1.5 xl:flex hidden rounded"
459+
>
460+
<Text className="text-sm text-typography-900">
461+
gluestack-ui pro
462+
</Text>
463+
</Link>
464+
)}
455465
{!pathname.includes('/docs') ? (
456466
<Link
457467
href="/ui/docs"
@@ -469,7 +479,10 @@ const Header = ({
469479
Get Updates
470480
</Text>
471481
</Link>
472-
<NewsletterModal showModal={showModal} setShowModal={setShowModal}/>
482+
<NewsletterModal
483+
showModal={showModal}
484+
setShowModal={setShowModal}
485+
/>
473486
<Link
474487
href="https://rapidnative.com/?utm_source=gluestack.io&utm_medium=banner_docs&utm_campaign=brand-awareness"
475488
className="bg-primary-500 px-4 py-1.5 xl:flex hidden rounded"

apps/website/components/page-components/landing-page/ProductHuntBanner/index.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,14 @@ const ProductHuntBanner = ({
1818
<div className="mx-auto w-[85%] max-w-[1440px] px-2 sm:px-2">
1919
<div className="flex items-center justify-between gap-3 py-2 md:py-2.5">
2020
<a
21-
href="https://www.producthunt.com/products/gluestack?embed=true&utm_source=badge-featured&utm_medium=badge&utm_source=badge-gluestack&#0045;v3"
21+
href="https://www.producthunt.com/products/gluestack-ui-pro?embed=true&utm_source=badge-featured&utm_medium=badge&utm_source=badge-gluestack&#0045;ui&#0045;pro"
2222
target="_blank"
2323
rel="noopener noreferrer"
2424
className="shrink-0 inline-flex"
2525
>
2626
<img
27-
src="https://api.producthunt.com/widgets/embed-image/v1/featured.svg?post_id=1009919&theme=light&t=1756285092927"
28-
alt="gluestack&#0032;v3 Product Hunt featured badge"
27+
src="https://api.producthunt.com/widgets/embed-image/v1/featured.svg?post_id=1036836&theme=light&t=1762942861229"
28+
alt="gluestack&#0032;ui&#0032;pro Product Hunt featured badge"
2929
width="110"
3030
className="h-6 md:h-7 w-auto"
3131
/>
@@ -34,7 +34,7 @@ const ProductHuntBanner = ({
3434
We're live on Product Hunt!
3535
<span className="hidden lg:inline">
3636
{' '}
37-
· If you like gluestack, please support us.
37+
· If you like gluestack-ui pro, please support us.
3838
</span>
3939
</p>
4040
<HStack className="gap-2">

apps/website/components/page-components/landing-page/ResponsiveSidebar/sidebar-header-items.tsx

Lines changed: 64 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -163,22 +163,22 @@ export const headerItems: SidebarSectionProps[] = [
163163
title: 'Products',
164164
items: [
165165
{
166-
title: 'AppLaunchKit',
167-
link: 'https://applaunchk.it/',
166+
title: 'RapidNative',
167+
link: 'https://rapidnative.com/?utm_source=gluestack.io&utm_medium=header&utm_campaign=brand-awareness',
168168
logo: (
169169
<Image
170-
alt="dark mode"
170+
alt="RapidNative logo"
171171
className="w-5 h-5"
172172
size="md"
173-
source={require('@/public/icon/logo/app-launch-kit/dark-mode.svg')}
173+
source={require('@/public/icon/logo/rapidnative/logo.png')}
174174
/>
175175
),
176176
logoDark: (
177177
<Image
178-
alt="light mode"
178+
alt="RapidNative logo"
179179
className="w-5 h-5"
180180
size="md"
181-
source={require('@/public/icon/logo/app-launch-kit/light-mode.svg')}
181+
source={require('@/public/icon/logo/rapidnative/logo.png')}
182182
/>
183183
),
184184
badge: (
@@ -188,27 +188,27 @@ export const headerItems: SidebarSectionProps[] = [
188188
),
189189
},
190190
{
191-
title: 'Starter Kit',
192-
link: 'https://github.com/gluestack/gluestack-ui-starter-kits/',
191+
title: 'gluestack-ui pro',
192+
link: 'https://pro.gluestack.io/?utm_source=gluestack.io&utm_medium=header&utm_campaign=site-navigation',
193193
logo: (
194194
<Image
195-
alt="dark mode"
195+
alt="gluestack-ui pro logo"
196196
className="w-5 h-5"
197197
size="md"
198198
source={require('@/public/icon/logo/gluestack/logo-dark.svg')}
199199
/>
200200
),
201201
logoDark: (
202202
<Image
203-
alt="dark mode"
203+
alt="gluestack-ui pro logo"
204204
className="w-5 h-5"
205205
size="md"
206206
source={require('@/public/icon/logo/gluestack/logo-light.svg')}
207207
/>
208208
),
209209
badge: (
210-
<Badge size="md" variant="solid" action="success">
211-
<BadgeText>FREE</BadgeText>
210+
<Badge size="md" variant="solid" action="info">
211+
<BadgeText>PAID</BadgeText>
212212
</Badge>
213213
),
214214
},
@@ -217,15 +217,15 @@ export const headerItems: SidebarSectionProps[] = [
217217
link: 'https://theappmarket.io',
218218
logo: (
219219
<Image
220-
alt="dark mode"
220+
alt="theappmarket logo"
221221
className="w-5 h-5"
222222
size="md"
223223
source={require('@/public/icon/logo/theappmarket/appmarket-logo.svg')}
224224
/>
225225
),
226226
logoDark: (
227227
<Image
228-
alt="dark mode"
228+
alt="theappmarket logo"
229229
className="w-5 h-5"
230230
size="md"
231231
source={require('@/public/icon/logo/theappmarket/appmarket-logo.svg')}
@@ -237,6 +237,56 @@ export const headerItems: SidebarSectionProps[] = [
237237
</Badge>
238238
),
239239
},
240+
{
241+
title: 'AppLaunchKit',
242+
link: 'https://applaunchk.it/',
243+
logo: (
244+
<Image
245+
alt="AppLaunchKit logo"
246+
className="w-5 h-5"
247+
size="md"
248+
source={require('@/public/icon/logo/app-launch-kit/dark-mode.svg')}
249+
/>
250+
),
251+
logoDark: (
252+
<Image
253+
alt="AppLaunchKit logo"
254+
className="w-5 h-5"
255+
size="md"
256+
source={require('@/public/icon/logo/app-launch-kit/light-mode.svg')}
257+
/>
258+
),
259+
badge: (
260+
<Badge size="md" variant="solid" action="info">
261+
<BadgeText>PAID</BadgeText>
262+
</Badge>
263+
),
264+
},
265+
{
266+
title: 'Starter Kit',
267+
link: 'https://github.com/gluestack/gluestack-ui-starter-kits/',
268+
logo: (
269+
<Image
270+
alt="Starter Kit logo"
271+
className="w-5 h-5"
272+
size="md"
273+
source={require('@/public/icon/logo/gluestack/logo-dark.svg')}
274+
/>
275+
),
276+
logoDark: (
277+
<Image
278+
alt="Starter Kit logo"
279+
className="w-5 h-5"
280+
size="md"
281+
source={require('@/public/icon/logo/gluestack/logo-light.svg')}
282+
/>
283+
),
284+
badge: (
285+
<Badge size="md" variant="solid" action="success">
286+
<BadgeText>FREE</BadgeText>
287+
</Badge>
288+
),
289+
},
240290
],
241291
},
242292
{

apps/website/components/page-components/landing-page/WebsiteLayout/index.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import React, { useState, useEffect } from 'react';
22
import { Box } from '@/components/ui/box';
33
import Header from '@/components/page-components/header';
44
import ResponsiveSidebar from '@/components/page-components/landing-page/ResponsiveSidebar';
5-
// import ProductHuntBanner from '../ProductHuntBanner';
5+
import ProductHuntBanner from '../ProductHuntBanner';
66

77
function WebsiteLayout({
88
children,
@@ -11,7 +11,7 @@ function WebsiteLayout({
1111
children: any;
1212
}) {
1313
const [isOpenSidebar, setIsOpenSidebar] = useState(false);
14-
// const [showPHBanner, setShowPHBanner] = useState(true);
14+
const [showPHBanner, setShowPHBanner] = useState(true);
1515
useEffect(() => {
1616
if (isOpenSidebar) {
1717
document.body.style.overflow = 'hidden';
@@ -46,10 +46,10 @@ function WebsiteLayout({
4646
isOpenSidebar={isOpenSidebar}
4747
setIsOpenSidebar={setIsOpenSidebar}
4848
/>
49-
{/* <ProductHuntBanner
49+
<ProductHuntBanner
5050
showPHBanner={showPHBanner}
5151
setShowPHBanner={setShowPHBanner}
52-
/> */}
52+
/>
5353
{/* Remove this later */}
5454
<Box className={` ${isOpenSidebar ? 'opacity-0' : 'opacity-100'} `}>
5555
{children}

0 commit comments

Comments
 (0)