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