diff --git a/devcon/cms/pages/Index.md b/devcon/cms/pages/Index.md index a5f75598a..0045659fb 100644 --- a/devcon/cms/pages/Index.md +++ b/devcon/cms/pages/Index.md @@ -7,14 +7,6 @@ section6: button: View Full Archive → section1: body: > - ## - - - **Welcome to Devcon!**\ - - - - ## Discover Ethereum and its community at Devcon, the conference for developers, thinkers, and makers and a place for learning, knowledge sharing, and fun. @@ -81,4 +73,3 @@ section5: ## **Devcon Archive** button: View Full Archive → --- - diff --git a/devcon/src/components/domain/index/hero/dc7/typewriter/index.js b/devcon/src/components/domain/index/hero/dc7/typewriter/index.js index 524b79b5d..4b35de05b 100644 --- a/devcon/src/components/domain/index/hero/dc7/typewriter/index.js +++ b/devcon/src/components/domain/index/hero/dc7/typewriter/index.js @@ -1,18 +1,23 @@ -import { preloadFonts } from './utils'; -import { TypeShuffle } from './typeShuffle'; +import React from 'react' +import { preloadFonts } from './utils' +import { TypeShuffle } from './typeShuffle' -preloadFonts('biu0hfr').then(() => { - document.body.classList.remove('loading'); +// const Typewriter = props => { +// React.useEffect(() => {}, []) + +// return
{}
+// } - const textElement = document.querySelector('.content'); - - const ts = new TypeShuffle(textElement); - ts.trigger('fx1'); +preloadFonts('biu0hfr').then(() => { + document.body.classList.remove('loading') - [...document.querySelectorAll('.effects > button')].forEach(button => { - button.addEventListener('click', () => { - ts.trigger(`fx${button.dataset.fx}`); - }); - }); + const textElement = document.querySelector('.content') -}); \ No newline at end of file + const ts = new TypeShuffle(textElement) + ts.trigger('fx1') + ;[...document.querySelectorAll('.effects > button')].forEach(button => { + button.addEventListener('click', () => { + ts.trigger(`fx${button.dataset.fx}`) + }) + }) +}) diff --git a/devcon/src/pages/index.tsx b/devcon/src/pages/index.tsx index 21e6bebd1..368591373 100644 --- a/devcon/src/pages/index.tsx +++ b/devcon/src/pages/index.tsx @@ -130,7 +130,7 @@ export default pageHOC(function Index(props: any) { - +