|
|
|
@ -4,6 +4,8 @@ import BasicLogo from 'libs/remix-ui/vertical-icons-panel/src/lib/components/Bas |
|
|
|
|
import { ThemeContext } from '../themeContext' |
|
|
|
|
import React, { useEffect, useState, useRef, useContext } from 'react' |
|
|
|
|
import { CustomTooltip } from '@remix-ui/helper' |
|
|
|
|
const _paq = window._paq = window._paq || [] // eslint-disable-line
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function HomeTabTitle() { |
|
|
|
|
useEffect(() => { |
|
|
|
@ -28,6 +30,7 @@ function HomeTabTitle() { |
|
|
|
|
const handleSearchKeyDown = (e: KeyboardEvent) => { |
|
|
|
|
if (e.target !== searchInputRef.current) return |
|
|
|
|
if (e.key === "Enter") { |
|
|
|
|
_paq.push(['trackEvent', 'hometab', 'header', 'searchDocumentation']) |
|
|
|
|
openLink() |
|
|
|
|
searchInputRef.current.value = "" |
|
|
|
|
} else { |
|
|
|
@ -69,7 +72,10 @@ function HomeTabTitle() { |
|
|
|
|
tooltipTextClasses="border bg-light text-dark p-1 pr-3" |
|
|
|
|
> |
|
|
|
|
<button |
|
|
|
|
onClick={() => openLink("https://www.youtube.com/channel/UCjTUPyFEr2xDGN6Cg8nKDaA")} |
|
|
|
|
onClick={() => { |
|
|
|
|
openLink("https://www.youtube.com/channel/UCjTUPyFEr2xDGN6Cg8nKDaA") |
|
|
|
|
_paq.push(['trackEvent', 'hometab', 'socialMedia', 'youtube']) |
|
|
|
|
}} |
|
|
|
|
className="border-0 h-100 btn fab fa-youtube"> |
|
|
|
|
</button> |
|
|
|
|
</CustomTooltip> |
|
|
|
@ -82,7 +88,10 @@ function HomeTabTitle() { |
|
|
|
|
tooltipTextClasses="border bg-light text-dark p-1 pr-3" |
|
|
|
|
> |
|
|
|
|
<button |
|
|
|
|
onClick={() => openLink("https://twitter.com/EthereumRemix")} |
|
|
|
|
onClick={() => {
|
|
|
|
|
openLink("https://twitter.com/EthereumRemix") |
|
|
|
|
_paq.push(['trackEvent', 'hometab', 'socialMedia', 'twitter']) |
|
|
|
|
}} |
|
|
|
|
className="border-0 h-100 pl-2 btn fab fa-twitter"> |
|
|
|
|
</button> |
|
|
|
|
</CustomTooltip> |
|
|
|
@ -95,7 +104,10 @@ function HomeTabTitle() { |
|
|
|
|
tooltipTextClasses="border bg-light text-dark p-1 pr-3" |
|
|
|
|
> |
|
|
|
|
<button |
|
|
|
|
onClick={() => openLink("https://www.linkedin.com/company/ethereum-remix/")} |
|
|
|
|
onClick={() => {
|
|
|
|
|
openLink("https://www.linkedin.com/company/ethereum-remix/") |
|
|
|
|
_paq.push(['trackEvent', 'hometab', 'socialmedia', 'linkedin']) |
|
|
|
|
}} |
|
|
|
|
className="border-0 h-100 pl-2 btn fa fa-linkedin"> |
|
|
|
|
</button> |
|
|
|
|
</CustomTooltip> |
|
|
|
@ -108,7 +120,10 @@ function HomeTabTitle() { |
|
|
|
|
tooltipTextClasses="border bg-light text-dark p-1 pr-3" |
|
|
|
|
> |
|
|
|
|
<button |
|
|
|
|
onClick={() => openLink("https://medium.com/remix-ide")} |
|
|
|
|
onClick={() => { |
|
|
|
|
openLink("https://medium.com/remix-ide") |
|
|
|
|
_paq.push(['trackEvent', 'hometab', 'socialmedia', 'medium']) |
|
|
|
|
}} |
|
|
|
|
className="border-0 h-100 pl-2 btn fab fa-medium"> |
|
|
|
|
</button> |
|
|
|
|
</CustomTooltip> |
|
|
|
@ -121,7 +136,10 @@ function HomeTabTitle() { |
|
|
|
|
tooltipTextClasses="border bg-light text-dark p-1 pr-3" |
|
|
|
|
> |
|
|
|
|
<button |
|
|
|
|
onClick={() => openLink("https://gitter.im/ethereum/remix")} |
|
|
|
|
onClick={() => { |
|
|
|
|
openLink("https://gitter.im/ethereum/remix") |
|
|
|
|
_paq.push(['trackEvent', 'hometab', 'socialmedia', 'gitter']) |
|
|
|
|
}} |
|
|
|
|
className="border-0 h-100 pl-2 btn fab fa-gitter"> |
|
|
|
|
</button> |
|
|
|
|
</CustomTooltip> |
|
|
|
@ -129,10 +147,10 @@ function HomeTabTitle() { |
|
|
|
|
</div> |
|
|
|
|
<b className="pb-1 text-dark" style={{ fontStyle: 'italic' }}>The Native IDE for Web3 Development.</b> |
|
|
|
|
<div className="pb-1" id="hTGeneralLinks"> |
|
|
|
|
<a className="remixui_home_text" target="__blank" href="https://remix-project.org">Website</a> |
|
|
|
|
<a className="pl-2 remixui_home_text" target="__blank" href="https://remix-ide.readthedocs.io/en/latest">Documentation</a> |
|
|
|
|
<a className="pl-2 remixui_home_text" target="__blank" href="https://remix-plugin-docs.readthedocs.io/en/latest/">Remix Plugin</a> |
|
|
|
|
<a className="pl-2 remixui_home_text" target="__blank" href="https://github.com/ethereum/remix-desktop/releases">Remix Desktop</a> |
|
|
|
|
<a className="remixui_home_text" onClick={() => _paq.push(['trackEvent', 'hometab', 'header', 'webSite'])} target="__blank" href="https://remix-project.org">Website</a> |
|
|
|
|
<a className="pl-2 remixui_home_text" onClick={() => _paq.push(['trackEvent', 'hometab', 'header', 'documentation'])} target="__blank" href="https://remix-ide.readthedocs.io/en/latest">Documentation</a> |
|
|
|
|
<a className="pl-2 remixui_home_text" onClick={() => _paq.push(['trackEvent', 'hometab', 'header', 'remixPlugin'])} target="__blank" href="https://remix-plugin-docs.readthedocs.io/en/latest/">Remix Plugin</a> |
|
|
|
|
<a className="pl-2 remixui_home_text" onClick={() => _paq.push(['trackEvent', 'hometab', 'header', 'remixDesktop'])} target="__blank" href="https://github.com/ethereum/remix-desktop/releases">Remix Desktop</a> |
|
|
|
|
</div> |
|
|
|
|
<div className="d-flex pb-1 align-items-center"> |
|
|
|
|
<input |
|
|
|
@ -145,7 +163,10 @@ function HomeTabTitle() { |
|
|
|
|
/> |
|
|
|
|
<button |
|
|
|
|
className="form-control border d-flex align-items-center p-2 justify-content-center fas fa-search bg-light" |
|
|
|
|
onClick={(e) => openLink()} |
|
|
|
|
onClick={(e) => { |
|
|
|
|
_paq.push(['trackEvent', 'hometab', 'header', 'searchDocumentation']) |
|
|
|
|
openLink() |
|
|
|
|
}} |
|
|
|
|
disabled={state.searchDisable} |
|
|
|
|
style={{ width: "3rem" }} |
|
|
|
|
> |
|
|
|
|