Loris Leiva пре 2 година
родитељ
комит
965753d637

+ 39 - 28
src/components/Hero.jsx

@@ -4,7 +4,7 @@ import { Button } from '@/components/Button'
 import blurCyanImage from '@/images/blur-cyan.png'
 import blurIndigoImage from '@/images/blur-indigo.png'
 
-export function Hero({ page, title, description, primaryCta, secondaryCta, children }) {
+export function Hero({ page, title, description, subDescription, primaryCta, secondaryCta, light1Off, light2Off, light3Off, children }) {
   title = title ?? page.product?.name
   description = description ?? page.product?.description
   primaryCta = primaryCta ?? {
@@ -21,15 +21,17 @@ export function Hero({ page, title, description, primaryCta, secondaryCta, child
       <div className="py-16 sm:px-2 lg:relative lg:px-0 lg:py-20">
         <div className="mx-auto grid max-w-2xl grid-cols-1 items-center gap-x-8 gap-y-16 px-4 lg:max-w-8xl lg:grid-cols-2 lg:px-8 xl:gap-x-16 xl:px-12">
           <div className="relative z-10 md:text-center lg:text-left">
-            <Image
-              className="absolute bottom-full right-full -mb-56 -mr-72 opacity-50 no-lightense"
-              src={blurCyanImage}
-              alt=""
-              width={530}
-              height={530}
-              unoptimized
-              priority
-            />
+            {!light1Off && (
+              <Image
+                className="absolute bottom-full right-full -mb-56 -mr-72 opacity-50 no-lightense"
+                src={blurCyanImage}
+                alt=""
+                width={530}
+                height={530}
+                unoptimized
+                priority
+              />
+            )}
             <div className="relative">
               <p className="inline bg-gradient-to-r from-indigo-200 via-accent-400 to-indigo-200 bg-clip-text font-display text-5xl tracking-tight text-transparent">
                 {title}
@@ -37,6 +39,11 @@ export function Hero({ page, title, description, primaryCta, secondaryCta, child
               <p className="mt-3 text-2xl tracking-tight text-slate-400">
                 {description}
               </p>
+              {subDescription && (
+                <p className="mt-2 text-base tracking-tight text-slate-400">
+                  {subDescription}
+                </p>
+              )}
               <div className="mt-8 flex gap-4 md:justify-center lg:justify-start">
                 <Button href={primaryCta.href}>{primaryCta.title}</Button>
                 <Button href={secondaryCta.href} variant="secondary">{secondaryCta.title}</Button>
@@ -45,24 +52,28 @@ export function Hero({ page, title, description, primaryCta, secondaryCta, child
           </div>
           <div className="relative lg:static xl:pl-10">
             <div className="relative">
-              <Image
-                className="absolute -right-64 -top-64 no-lightense"
-                src={blurCyanImage}
-                alt=""
-                width={530}
-                height={530}
-                unoptimized
-                priority
-              />
-              <Image
-                className="absolute -bottom-40 -right-44 no-lightense"
-                src={blurIndigoImage}
-                alt=""
-                width={567}
-                height={567}
-                unoptimized
-                priority
-              />
+              {!light2Off && (
+                <Image
+                  className="absolute -right-64 -top-64 no-lightense"
+                  src={blurCyanImage}
+                  alt=""
+                  width={530}
+                  height={530}
+                  unoptimized
+                  priority
+                />
+              )}
+              {!light3Off && (
+                <Image
+                  className="absolute -bottom-40 -right-44 no-lightense"
+                  src={blurIndigoImage}
+                  alt=""
+                  width={567}
+                  height={567}
+                  unoptimized
+                  priority
+                />
+              )}
               {children}
             </div>
           </div>

+ 5 - 1
src/components/products/candyMachine/Hero.jsx

@@ -3,7 +3,11 @@ import { HeroScreenshot } from '@/components/HeroScreenshot'
 
 export function Hero({ page }) {
   return (
-    <BaseHero page={page} primaryCta={{ title: 'Sign Up for Creator Studio', href: 'https://studio.metaplex.com/' }}>
+    <BaseHero
+      page={page}
+      subDescription="Read our documentation to create your own applications or use our Creator Studio to launch your collection in minutes."
+      primaryCta={{ title: 'Sign Up for Creator Studio', href: 'https://studio.metaplex.com/' }}
+    >
       <HeroScreenshot 
         src="/assets/candy-machine/creator-studio.png"
         alt="A screenshot of a mint page in the Creator Studio web app"

+ 1 - 1
src/components/products/candyMachine/index.js

@@ -10,7 +10,7 @@ import { Logo } from './Logo'
 export const candyMachine = {
   name: 'Candy Machine',
   headline: 'NFT launchpad',
-  description: 'TODO',
+  description: 'Launch your next NFT collection on Solana!',
   path: 'candy-machine',
   logo: Logo,
   github: 'https://github.com',

Разлика између датотеке није приказан због своје велике величине
+ 7 - 20
src/components/products/hydra/Hero.jsx


+ 1 - 1
src/components/products/hydra/index.js

@@ -10,7 +10,7 @@ import { Logo } from './Logo'
 export const hydra = {
   name: 'Hydra',
   headline: 'Fanout wallets',
-  description: 'TODO',
+  description: 'Create shared wallets split between multiple shareholders.',
   path: 'hydra',
   logo: Logo,
   github: 'https://github.com',

+ 1 - 1
src/components/products/tokenMetadata/Hero.jsx

@@ -20,7 +20,7 @@ const codeProps = {
 
 export function Hero({ page }) {
   return (
-    <BaseHero page={page}>
+    <BaseHero page={page} subDescription="Create digital assets by adding Metadata to tokens.">
       <HeroCode {...codeProps}></HeroCode>
     </BaseHero>
   )

+ 1 - 1
src/components/products/tokenMetadata/index.js

@@ -10,7 +10,7 @@ import { Logo } from './Logo'
 export const tokenMetadata = {
   name: 'Token Metadata',
   headline: 'Digital ownership standard',
-  description: 'TODO',
+  description: 'The NFT standard on Solana.',
   path: 'token-metadata',
   logo: Logo,
   github: 'https://github.com',

Неке датотеке нису приказане због велике количине промена