-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApp1.js
More file actions
211 lines (202 loc) · 7.34 KB
/
App1.js
File metadata and controls
211 lines (202 loc) · 7.34 KB
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
import React, { useState } from "react";
import { Modal } from "react-bootstrap";
import SearchIcon from "@material-ui/icons/Search";
import CloseIcon from "@material-ui/icons/Close";
import TextField from '@material-ui/core/TextField';
import IconButton from '@material-ui/core/IconButton';
import Autocomplete from '@material-ui/lab/Autocomplete';
function App1() {
const [modalisOpen, setModalIsOpen] = useState(false);
const [show, setShow] = useState(false);
const [selectVal, setSelectVal] = useState();
const handleClose = () => {
console.log("close");
setShow(false);
};
const handleShow = () => {
console.log("open");
setShow(true);
};
const ProgLang = [
// "MBA",
// "Media",
// "Law",
// "Humanities",
// "Architecture",
// "Sales",
// "Mechanical Engineering",
// "Chemical Engineering",
// "ASP.NET Development",
// "Ruby on Rails",
// "Science,Design",
// "Electronics Engineering",
// "Computer Science",
// "IOS App Developmment",
// "PHP Developmment",
// "Python/Django Developmment",
// "Front End Developmment",
// "Full Stack Developmment",
// "Informaton Technology",
// "Engineering",
// "Civil Engineering",
// "Javascript Development",
// "Biotechnology Engineering",
// "Metallugical Engineering",
// "Navan Architecture and Ocean Engineering",
// "Physics",
// "Angular.js Development",
// "Node.js Development",
// "Subject Matter Expert(SME)",
// "Journalism",
// "Film Meking",
// "Digital Marketing",
// "Social Media Marketing",
// "Marketing",
// "Backend Development",
// "Video Marketing/Editing",
// "Merket Business/Research",
// "Social Work",
// "Blockchain Develoment",
// "UI/Ux Design",
// "Creative Writing",
// "Biology",
// "Public Relations(PR)",
// "Database Building",
// "Web Development",
// "Mobile App Development",
// "Automobile Engineering",
// "Content Writing",
// "Copywriting",
// "software Development",
// "Software Testing",
// "Wordpress Development",
// "Photography",
// "Psychology",
// "Analytics",
// "Customer Service",
];
const SearchButton = () => (
<IconButton className="bg-primary text-white rounded-right rounded">
<SearchIcon className="text-white"/>
</IconButton>
);
return (
<div id="search_bar">
{/* <div class="input-group has_cross_and_button" id="search">
<input onFocus={()=>setModalIsOpen(true)} type="text" class="form-control focus-visible" placeholder="What are you looking for?" id="" autocomplete="off" aria-invalid="false" data-focus-visible-added=""/>
<span class="input-group-btn search_btn_container"><button class="btn btn-input btn-primary" type="button"><i class="icon_search ic-24-search" onFocus={()=>setModalIsOpen(true)}></i>search</button></span>
</div> */}
<br></br>
<div className="d-flex justify-content-center">
<div className="input-group col-md-6 col-10 mb-3">
<input
type="text"
className="form-control"
placeholder="What are you looking for?"
aria-label="Username"
aria-describedby="basic-addon1"
onClick={handleShow}
/>
<div className="input-group-append">
<button
className="btn btn-primary rounded-right"
onClick={handleShow}
type="button"
>
<SearchIcon />
</button>
</div>
</div>
</div>
<Modal show={show} onHide={handleClose}>
<div className="d-flex flex-column justify-content-center align-items-center w-100 p-3 p-md-5">
<div className="col-md-8 col-12 p-0">
<button className="btn my-2 p-0" onClick={handleClose}>
<CloseIcon color="disabled" className="" fontSize="medium" />
</button>
<div className="d-flex flex-column mt-3">
<div className="">
I am looking for
<select className="custom-select mx-2" id="inputGroupSelect01">
<option value="1">Polkadot</option>
<option value="2">Kusama</option>
<option value="3">Moonriver</option>
</select>
in
</div>
<div>
<div className="input-group my-4 my-md-3">
<div className="col-10 p-0">
<Autocomplete
options={ProgLang}
renderInput={(params) => <TextField {...params} fullWidth size="small" placeholder="What are you looking for?" variant="outlined" />}
value={selectVal}
onChange={(e,value) => setSelectVal(value)}
/>
</div>
<div className="input-group-append col-2 p-0">
<button className="btn btn-primary rounded-right" type="button">
<SearchIcon />
</button>
</div>
</div>
</div>
<div className="mt-4 mb-2">
<div>
<p className="text-dark"></p>
</div>
<div className="d-flex flex-wrap">
<button type="button" className="m-2 btn btn-outline-secondary">
General
</button>
<button type="button" className
="m-2 btn btn-outline-secondary">
Meetup
</button>
<button type="button" className="m-2 btn btn-outline-secondary">
AMA
</button>
<button type="button" className="m-2 btn btn-outline-secondary">
Event
</button>
<button type="button" className="m-2 btn btn-outline-secondary">
Learning
</button>
</div>
</div>
<div className="mt-4 mb-2">
<div>
<p className="text-dark">POPULAR CRYPTOCURRENCY</p>
</div>
<div>
<button type="button" className="m-2 btn btn-outline-secondary">
Polkadot
</button>
<button type="button" className="m-2 btn btn-outline-secondary">
Aave
</button>
<button type="button" className="m-2 btn btn-outline-secondary">
Acala
</button>
<button type="button" className="m-2 btn btn-outline-secondary">
Anyswap
</button>
<button type="button" className="m-2 btn btn-outline-secondary">
Bella Protocol
</button>
<button type="button" className="m-2 btn btn-outline-secondary">
Binance Coin
</button>
<button type="button" className="m-2 btn btn-outline-secondary">
KILT Protocol
</button>
</div>
</div>
</div>
</div>
</div>
</Modal>
</div>
);
}
export default App1;