@@ -3,53 +3,26 @@ import useDocusaurusContext from "@docusaurus/useDocusaurusContext";
33import Start from "@site/src/components/Start" ;
44import { trackEvent } from "@site/src/providers/analytics.providers" ;
55import clsx from "clsx" ;
6- import { useEffect , useRef , useState } from "react" ;
7- import Typed from "typed.js" ;
6+ import { useRef } from "react" ;
87import styles from "./styles.module.scss" ;
98
109export default function Hero ( ) : JSX . Element {
1110 const el = useRef ( null ) ;
1211
13- const [ typedLoaded , setTypedLoaded ] = useState ( false ) ;
14-
15- useEffect ( ( ) => {
16- let typed : Typed | undefined ;
17-
18- const timeout = setTimeout ( ( ) => {
19- typed = new Typed ( el . current , {
20- strings : [ "Run" , "Ship" , "Build" , "Launch" ] ,
21- typeSpeed : 50 ,
22- backSpeed : 50 ,
23- backDelay : 3500 ,
24- loop : true ,
25- showCursor : false
26- } ) ;
27-
28- setTypedLoaded ( true ) ;
29- } , 2500 ) ;
30-
31- return ( ) => {
32- clearTimeout ( timeout ) ;
33- typed ?. destroy ( ) ;
34- } ;
35- } , [ ] ) ;
36-
3712 const { siteConfig } = useDocusaurusContext ( ) ;
3813 return (
3914 < article className = { clsx ( "hero" , styles . heroBanner ) } >
4015 < div className = { `${ styles . container } ` } >
41- < h1 className = { `hero__title ${ styles . title } ${ styles . item } ` } >
42- < span ref = { el } className = { `${ styles . bold } ${ styles . typed } ` } />
43- { ! typedLoaded && (
44- < span className = { `${ styles . bold } ${ styles . typed } ` } > Build</ span >
45- ) } { " " }
46- serverless apps
16+ < h1
17+ className = { `hero__title ${ styles . title } ${ styles . item } ${ styles . bold } ` }
18+ >
19+ Open-Source SDK
4720 < br />
48- with self-hosting < span className = { styles . bold } > control </ span >
21+ for building apps
4922 </ h1 >
5023 < p className = { `${ styles . item } ${ styles . subtitle } ` } >
51- Juno is an open-source serverless platform to build , deploy, and run
52- apps in WASM containers with complete ownership and zero DevOps.
24+ Juno is a full-stack platform to develop , deploy, and run apps in WASM
25+ containers with zero DevOps.
5326 </ p >
5427 < p className = { `${ styles . item } ` } > </ p >
5528 < div className = { `${ styles . item } ${ styles . actions } ` } >
0 commit comments