Skip to content

Commit dbbd45c

Browse files
authored
Merge pull request #543 from peanutprotocol/chore/lp_and_doclinks
fix: landing page, broken docs links
2 parents c388b34 + 56dbe19 commit dbbd45c

File tree

12 files changed

+50
-48
lines changed

12 files changed

+50
-48
lines changed

src/app/page.tsx

Lines changed: 11 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { useState, useEffect } from 'react'
44
import { Metadata } from 'next'
55
import * as assets from '@/assets'
66
import Layout from '@/components/Global/Layout'
7-
import { Hero, FAQs, Features, Mike, Story, Intro, BuildOnUs, CashoutSection } from '@/components/LandingPage'
7+
import { Hero, FAQs, Features, Mike, Story, BuildOnUs, CashoutSection } from '@/components/LandingPage'
88
import { MarqueeComp } from '@/components/Global/MarqueeWrapper'
99
import { useFooterVisibility } from '@/context/footerVisibility'
1010

@@ -56,7 +56,7 @@ export default function LandingPage() {
5656
],
5757
},
5858
{
59-
heading: 'Send tokens, like a pro.',
59+
heading: 'What they say',
6060
testimonials: [
6161
{
6262
imageSrc: assets.DEREK_PERSON.src,
@@ -70,14 +70,14 @@ export default function LandingPage() {
7070
{
7171
imageSrc: assets.SHARUK_PERSON.src,
7272
altText: 'eco man',
73-
comment: 'Now I can save my dollars easily',
73+
comment: 'The easiest way to pay people!',
7474
name: 'Gianluca',
7575
detail: 'Eco',
7676
detailRedirectUrl: 'https://eco.org/?ref=com',
7777
bgColorClass: 'bg-white',
7878
},
7979
{
80-
imageSrc: assets.SBF_PERSON.src, // TODO: replace with actual image@
80+
imageSrc: assets.SBF_PERSON.src,
8181
altText: 'picture of pixel art SBF',
8282
comment: 'I have a peanut allergy Help!',
8383
name: 'Banker',
@@ -105,7 +105,7 @@ export default function LandingPage() {
105105
id: '1',
106106
question: 'What are the trust assumptions?',
107107
answer: 'Peanut Protocol is non-custodial, permissionless and decentralised. Read more ',
108-
redirectUrl: 'https://docs.peanut.to/overview/what-are-links/trust-assumptions',
108+
redirectUrl: 'https://docs.peanut.to/how-to-use-peanut-links/trust-assumptions',
109109
redirectText: 'here.',
110110
},
111111
{
@@ -119,7 +119,7 @@ export default function LandingPage() {
119119
id: '3',
120120
question: 'What are the fees?',
121121
answer: 'On our dapp, we sponsor gasless claiming and sending on L2s. Integrators can choose to sponsor the transactions. We do not have a fee on the protocol for same-chain transactions, see ',
122-
redirectUrl: 'https://docs.peanut.to/overview/pricing',
122+
redirectUrl: 'https://docs.peanut.to/pricing',
123123
redirectText: 'here.',
124124
},
125125
{
@@ -133,7 +133,7 @@ export default function LandingPage() {
133133
id: '5',
134134
question: 'Are you audited?',
135135
answer: 'Yes! ',
136-
redirectUrl: 'https://docs.peanut.to/other/security-audit',
136+
redirectUrl: 'https://docs.peanut.to/security-audit',
137137
redirectText: 'See our docs for more',
138138
},
139139
{
@@ -151,7 +151,7 @@ export default function LandingPage() {
151151
}
152152

153153
const mike = {
154-
lines: ['Peanut', 'Text money'],
154+
lines: ['PEANUT', 'buttery smooth'],
155155
}
156156

157157
const { isFooterVisible } = useFooterVisibility()
@@ -170,21 +170,11 @@ export default function LandingPage() {
170170
<Hero heading={hero.heading} marquee={hero.marquee} cta={hero.cta} buttonVisible={buttonVisible} />
171171
<FAQs heading={faqs.heading} questions={faqs.questions} marquee={faqs.marquee} />
172172
<BuildOnUs />
173-
{/* <MarqueeComp
174-
message="PEANUT PROTOCOL • BUILD WITH US • PEANUT PROTOCOL • BUILD WITH US"
175-
imageSrc={assets.SmileStars.src}
176-
backgroundColor="bg-n-1"
177-
/>
178-
<div className="bg-blue-1">
179-
<CashoutSection />
180-
</div> */}
181-
182-
{/* <Features sections={[features.sections[0]]} marquee={features.marquee} />
183-
<Intro />
184-
185173
<Story marquee={story.marquee} />
186174
<Features sections={[features.sections[1]]} marquee={features.marquee} />
187-
<Mike lines={mike.lines} /> */}
175+
<div className="bg-pink-1">
176+
<Mike lines={mike.lines} />
177+
</div>
188178
</Layout>
189179
)
190180
}

src/components/Club/index.ts

Lines changed: 0 additions & 2 deletions
This file was deleted.

src/components/Club/landing.tsx

Lines changed: 0 additions & 7 deletions
This file was deleted.

src/components/Global/Footer/consts.ts

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export const SOCIALS = [
1313
},
1414
{
1515
name: 'gitbook',
16-
url: 'https://docs.peanut.to/overview/what-is-peanut',
16+
url: 'https://docs.peanut.to',
1717
logoSrc: icons.GITBOOK_ICON.src,
1818
},
1919
{
@@ -28,11 +28,10 @@ export const LINKS = [
2828
name: 'Docs',
2929
url: '/docs',
3030
},
31-
32-
{
33-
name: 'Blog',
34-
url: '/blog',
35-
},
31+
// {
32+
// name: 'Blog',
33+
// url: '/blog',
34+
// },
3635
{
3736
name: 'Privacy',
3837
url: '/privacy',

src/components/Global/Footer/index.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,11 @@ const Footer = () => {
1212
{_consts.SOCIALS.map((social) => {
1313
return (
1414
<Link key={social.name} href={social.url} target="_blank">
15-
<img src={social.logoSrc} className="h-6" alt="twitter" />
15+
<img
16+
src={social.logoSrc}
17+
className={`h-6 ${social.name === 'github' ? 'brightness-0 invert' : ''}`}
18+
alt={social.name}
19+
/>
1620
</Link>
1721
)
1822
})}

src/components/Global/TokenSelector/TokenSelector.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,7 @@ const TokenSelector = ({
353353
<div className="flex w-full flex-col gap-2 text-center text-h8 font-normal">
354354
We support 30+ chains and 1000+ tokens.
355355
<a
356-
href="https://docs.peanut.to/learn/supported-chains-and-tokens"
356+
href="https://docs.peanut.to/supported-chains-and-tokens"
357357
target="_blank"
358358
className="text-link-decoration font-medium"
359359
>

src/components/LandingPage/BuildOnUs/index.tsx

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export default function BuildOnUs() {
88
return (
99
<div className="relative flex min-h-[72vh] flex-col items-center justify-center overflow-x-hidden bg-pink-1">
1010
<motion.div
11-
className="flex flex-col items-center"
11+
className="flex flex-col items-center gap-8"
1212
initial={{ opacity: 0, translateY: 20 }}
1313
whileInView={{ opacity: 1, translateY: 0 }}
1414
transition={{ type: 'spring', damping: 10 }}
@@ -17,14 +17,25 @@ export default function BuildOnUs() {
1717
href="https://peanutprotocol.notion.site/Integration-Form-12c83811757980869937dcaee9f4b0f0?pvs=4"
1818
target="_blank"
1919
rel="noopener noreferrer"
20+
className="flex flex-col items-center gap-6"
2021
>
2122
<motion.img
2223
src={BUILD_ON_US_NOW.src}
2324
alt="Build on Peanut Protocol"
2425
className="h-auto max-w-[90%] cursor-pointer"
2526
whileHover={{ scale: 1.05 }}
2627
/>
28+
<motion.button
29+
className="btn-purple px-8 py-3 text-lg font-semibold shadow-lg"
30+
whileHover={{ scale: 1.05 }}
31+
whileTap={{ scale: 0.95 }}
32+
>
33+
Start Building Now
34+
</motion.button>
2735
</a>
36+
<p className="text-center text-lg text-n-1">
37+
Join the ecosystem of apps building the future of payments
38+
</p>
2839
</motion.div>
2940
</div>
3041
)

src/components/LandingPage/features.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,9 @@ export function Features({ sections, marquee = { visible: false } }: FeaturesPro
284284
))}
285285
</Stack>
286286

287-
{marquee.visible && <MarqueeComp message={marquee.message} imageSrc={HandThumbsUp.src} />}
287+
{marquee.visible && (
288+
<MarqueeComp message={marquee.message} imageSrc={HandThumbsUp.src} backgroundColor="bg-yellow-1" />
289+
)}
288290
</Flex>
289291
)
290292
}

src/components/LandingPage/story.tsx

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,14 @@ const StorySection = () => {
3535

3636
export function Story({ stories, foot, marquee = { visible: false } }: StoryProps) {
3737
return (
38-
<Box className="my-6 overflow-x-hidden md:my-10">
38+
<Box className="overflow-x-hidden">
3939
{marquee.visible && (
40-
<MarqueeComp message={marquee.message} imageSrc={Eyes.src} imageAnimationClass="animation-rock" />
40+
<MarqueeComp
41+
message={marquee.message}
42+
imageSrc={Eyes.src}
43+
imageAnimationClass="animation-rock"
44+
backgroundColor="bg-yellow-1"
45+
/>
4146
)}
4247
</Box>
4348
)

src/components/Welcome/welcome.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ const faqs = [
8484
id: '1',
8585
question: 'What are the trust assumptions?',
8686
answer: 'Peanut Protocol is non-custodial, permissionless and decentralised. Read more ',
87-
redirectUrl: 'https://docs.peanut.to/overview/what-are-links/trust-assumptions',
87+
redirectUrl: 'https://docs.peanut.to/how-to-use-peanut-links/trust-assumptions',
8888
redirectText: 'here.',
8989
},
9090
{
@@ -98,7 +98,7 @@ const faqs = [
9898
id: '3',
9999
question: 'What are the fees?',
100100
answer: 'On our dapp, we sponsor gasless claiming and sending on L2s. Integrators can choose to sponsor the transactions. We do not have a fee on the protocol for same-chain transactions, see ',
101-
redirectUrl: 'https://docs.peanut.to/overview/pricing',
101+
redirectUrl: 'https://docs.peanut.to/pricing',
102102
redirectText: 'here.',
103103
},
104104
{
@@ -112,7 +112,7 @@ const faqs = [
112112
id: '5',
113113
question: 'Are you audited?',
114114
answer: 'Yes! ',
115-
redirectUrl: 'https://docs.peanut.to/other/security-audit',
115+
redirectUrl: 'https://docs.peanut.to/security-audit',
116116
redirectText: 'See our docs for more',
117117
},
118118
{

0 commit comments

Comments
 (0)