File tree 2 files changed +14
-1
lines changed
2 files changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -169,7 +169,7 @@ class App extends React.Component {
169
169
</ div >
170
170
{ this . hexapodPlot ( ) }
171
171
</ div >
172
- < NavDetailed />
172
+ { this . state . inHexapodPage ? < NavDetailed /> : null }
173
173
</ Router >
174
174
)
175
175
}
Original file line number Diff line number Diff line change 1
1
import React from "react"
2
2
import { SECTION_NAMES } from "../vars"
3
+ import { NavDetailed } from "../Nav"
4
+
5
+ const getImageUrl = ( ) =>
6
+ Math . random ( ) > 0.5 ? "./img/small-robot.gif" : "./img/small-robot-2.gif"
3
7
4
8
class LandingPage extends React . Component {
5
9
pageName = SECTION_NAMES . landingPage
@@ -9,8 +13,17 @@ class LandingPage extends React.Component {
9
13
render = ( ) => (
10
14
< >
11
15
< div id = "landing" >
16
+ < img
17
+ loading = "lazy"
18
+ src = { getImageUrl ( ) }
19
+ alt = "hexapod robot animation"
20
+ height = "75"
21
+ style = { { marginTop : "20px" , borderRadius : "20px" } }
22
+ />
12
23
< h1 > Mithi's Bare Minimum Hexapod Robot Simulator</ h1 >
13
24
< p > Enjoy your stay and share with your friends!</ p >
25
+
26
+ < NavDetailed />
14
27
</ div >
15
28
</ >
16
29
)
You can’t perform that action at this time.
0 commit comments