import React, { useState, useEffect, useMemo } from "react"; import Image from "next/image"; import { Box, Container, Flex, Stack, Text, Button, Link, } from "@chakra-ui/react"; import { DOCS_URL, MARKETPLACE_URL } from "../../constants"; import TextTransition, { presets } from "react-text-transition"; const callouts = [ { image: "/easyToUse.png", heading: "Easy to Use", body: "Strata provides SDKs to launch Tokens in an instant. No Rust or Solana experience needed!", alt: "launch token solana", }, { image: "/freeAndOpen.png", heading: "Free and Open", body: "Strata is free to use and Open Source. Launch your token without someone else taking a cut!", alt: "solana token launch", }, { image: "/buildWithReact.png", heading: "Build Quickly with React", body: "Strata comes with hooks and helpers to make coding using React a breeze.", alt: "solana react", }, ]; export const Hero = () => { const options = useMemo( () => [ "Social Token", "GameFi Token", "DAO Token", "SubDAO Token", "Community Token", ], [] ); const [currentOptionIndex, setCurrentOptionIndex] = useState(0); useEffect(() => { const timer = setTimeout(() => { setCurrentOptionIndex( currentOptionIndex == options.length - 1 ? 0 : currentOptionIndex + 1 ); }, 3000); return () => clearTimeout(timer); }, [currentOptionIndex, setCurrentOptionIndex, options]); return ( The fastest way to
launch and grow your
Strata Protocol is an open-source protocol to launch tokens around a person, project, idea, or collective on Solana.
solana social tokens
{callouts.map((callout, index) => ( {callout.alt} {callout.heading} {callout.body} ))}
); };