File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
packages/homepage/src/screens/home/Animation Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -100,14 +100,20 @@ const Secondary = styled.div`
100100 ${ fadeIn ( 0.2 ) } ;
101101` ;
102102
103+ const isBot = ( ) => {
104+ return / g o o g l e | b a i d u | b i n g | m s n | d u c k d u c k g o | t e o m a | s l u r p | y a n d e x / i. test (
105+ navigator . userAgent
106+ ) ;
107+ } ;
108+
103109export default ( { template } ) => (
104110 < Container >
105111 < Title title = "CodeSandbox" >
106112 < Secondary style = { { color : template . color ( ) } } > Code</ Secondary >
107113 < Primary > Sandbox</ Primary >
108114 </ Title >
109115 < SubTitle title = "The online code editor tailored for web applications" >
110- { typeof window === 'undefined' ? (
116+ { typeof window === 'undefined' || isBot ( ) ? (
111117 < span > The online code editor for web applications</ span >
112118 ) : (
113119 < span >
You can’t perform that action at this time.
0 commit comments