-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathApp.jsx
44 lines (40 loc) · 1.06 KB
/
App.jsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
import React from 'react';
import searchLogo from '../../search.svg';
import '../../index.css';
/**
* Cvičení:
*
* - Extrahujte `<input>` do samostatné komponenty `SearchInput`
* - Přesuňte 2 tlačítka `<button>` do zvláštní komponenty `SearchButtons`
*
* */
export class App extends React.Component {
render() {
return (
<div className="App">
<header>
<img alt="Logo" />
<span>Gmail</span>
</header>
<div>
<div>
<div className="logo"></div>
<div className="input">
<img className="search-icon" src={searchLogo} alt="Search Logo" />
<input id="search-text" value="abc" />
</div>
<div className="buttons">
<button id="search-button">Google Search</button>
<button>I'm Feeling Lucky</button>
</div>
</div>
</div>
<div>
<h2>
Results for <span id="search-text-results">abc</span>
</h2>
</div>
</div>
);
}
}