MCPcopy Create free account
hub / github.com/acro5piano/docker-run.com / render

Method render

components/Header.js:25–80  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

23 }
24
25 render() {
26 const { sending } = this.state
27
28 return (
29 <>
30 <div className="container">
31 <div className="header-container">
32 <div className="header-left">
33 <Link href="/">
34 <a>
35 <img src="/static/images/logo.png" />
36 </a>
37 </Link>
38 <li>
39 <a href="https://github.com/acro5piano/docker-run.com" target="_blank">
40 GitHub
41 </a>
42 </li>
43 <li>Features</li>
44 <li>Pricing</li>
45 <li>Company</li>
46 </div>
47 <div className="header-left">
48 <TextField
49 placeholder="you@example.com"
50 value={this.state.email}
51 onChange={e => this.setState({ email: e.target.value })}
52 />
53 <li>{sending ? '...' : <Button onClick={this.subscribe} title="Subscribe" />}</li>
54 </div>
55 </div>
56
57 <style jsx>{`
58 .container {
59 padding: 18px;
60 max-width: 1024px;
61 margin: auto;
62 }
63 .header-container {
64 display: flex;
65 justify-content: space-between;
66 }
67 .header-left {
68 display: flex;
69 align-items: center;
70 }
71 .header-left li {
72 list-style: none;
73 margin-left: 36px;
74 cursor: pointer;
75 }
76 `}</style>
77 </div>
78 </>
79 )
80 }
81}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected