-
Notifications
You must be signed in to change notification settings - Fork 2
/
App.jsx
264 lines (255 loc) · 13.2 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
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
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
import React, { useState } from "react";
import { connectHits } from 'react-instantsearch-dom';
import algoliasearch from 'algoliasearch/lite';
import { Post } from "./components/Post";
import { StaticPost } from "./components/StaticPost";
import firstPost from "./assets/post_1.jpeg";
import secondPost from "./assets/post_2.jpeg";
const UserProfiles = [
{
userName: "Kathy",
facetValue: "Women > Clothing",
userPref: "30 year old who likes women's fashion",
img: "https://avatars.slack-edge.com/2022-03-15/3244110311795_3e411492c35fc5bd8658_512.jpg"
},
{
userName: "Michael",
facetValue: "Men > Shoes",
userPref: "23 years old who likes shoes",
img: "https://avatars.slack-edge.com/2022-03-30/3321378903956_908e111e2c46f403b2fe_512.jpg"
},
{
userName: "Lana",
facetValue: "Women > Bags",
userPref: "25 year old who likes bags",
img: "https://avatars.slack-edge.com/2022-03-29/3334710624016_0ab4f08030290c0a0531_512.jpg"
},
{
userName: "Steven",
facetValue: "Men > Clothing",
userPref: "26 years old who likes men's fashion",
img: "https://avatars.slack-edge.com/2022-03-28/3306158441187_e2f82e4e48750c1966f0_512.jpg"
},
{
userName: "Rishi",
facetValue: "Accessories > Women",
userPref: "lady interested in accessories",
img: "https://avatars.slack-edge.com/2022-04-25/3460616229632_a650b04d939d8bf1b8f8_512.png"
}
];
export function App() {
const [userProfile, setUserProfile] = useState({
facetValue: "Women > Clothing"
});
return (
<>
<main class="main-container">
<section class="content-container">
<div class="content">
<div class="posts">
<StaticPost
userName="theeunicelee"
userImage="https://avatars.slack-edge.com/2021-09-14/2483267929702_b6e36f9b99fae6f33d0b_512.jpg"
image={firstPost}
/>
<Post userProfile={userProfile} />
<StaticPost
userName="lochenger"
userImage="https://avatars.slack-edge.com/2020-07-23/1252017127158_0c6a2d4b1bcc2b6b64fa_512.jpg"
image={secondPost}
/>
</div>
</div>
<section class="side-menu">
<div class="side-menu__user-profile">
<a
href="https://github.com/leocosta1"
target="_blank"
class="side-menu__user-avatar"
>
<img src="https://avatars.githubusercontent.com/u/73147834?v=4" alt="User Picture" />
</a>
<div class="side-menu__user-info">
<a href="https://github.com/leocosta1" target="_blank">leocosta1</a>
<span>Leonardo Costa</span>
</div>
<button class="side-menu__user-button">Originator</button>
</div>
<div class="side-menu__suggestions-section">
<div class="side-menu__suggestions-header">
<h2>Suggestions for You</h2>
<button>See All</button>
</div>
<div class="side-menu__suggestions-content">
{UserProfiles.map(userProfile => {
return (
<div class="side-menu__suggestion">
<a href="#" class="side-menu__suggestion-avatar">
<img src={userProfile.img} alt="User Picture" />
</a>
<div class="side-menu__suggestion-info">
<a id="profile-select-1" href="#">{userProfile.userName}</a>
<a href="#">{userProfile.userPref}</a>
</div>
<button class="side-menu__suggestion-button" onClick={() => setUserProfile(userProfile)}>Select</button>
</div>
)
})}
</div>
</div>
<div class="side-menu__footer">
<div class="side-menu__footer-links">
<ul class="side-menu__footer-list">
<li class="side-menu__footer-item">
<a class="side-menu__footer-link" href="#">About</a>
</li>
<li class="side-menu__footer-item">
<a class="side-menu__footer-link" href="#">Help</a>
</li>
<li class="side-menu__footer-item">
<a class="side-menu__footer-link" href="#">Press</a>
</li>
<li class="side-menu__footer-item">
<a class="side-menu__footer-link" href="#">API</a>
</li>
<li class="side-menu__footer-item">
<a class="side-menu__footer-link" href="#">Jobs</a>
</li>
<li class="side-menu__footer-item">
<a class="side-menu__footer-link" href="#">Privacy</a>
</li>
<li class="side-menu__footer-item">
<a class="side-menu__footer-link" href="#">Terms</a>
</li>
<li class="side-menu__footer-item">
<a class="side-menu__footer-link" href="#">Locations</a>
</li>
<li class="side-menu__footer-item">
<a class="side-menu__footer-link" href="#">Top Accounts</a>
</li>
<li class="side-menu__footer-item">
<a class="side-menu__footer-link" href="#">Hashtag</a>
</li>
<li class="side-menu__footer-item">
<a class="side-menu__footer-link" href="#">Language</a>
</li>
</ul>
</div>
<span class="side-menu__footer-copyright"
>© 2021 instagram from facebook</span
>
</div>
</section>
</section>
</main>
<nav class="navbar">
<a href="#" class="navbar__button">
<svg
width="24"
height="24"
viewBox="0 0 24 24"
fill="none"
xmlns="http://www.w3.org/2000/svg"
>
<path
d="M2.45307 11.751L11.9773 2.02175L21.5015 11.751C21.7906 12.0463 21.9545 12.4468 21.9545 12.8711V20.4556C21.9545 20.7747 21.7037 21 21.4427 21H15.964C15.713 21 15.4721 20.7849 15.4721 20.476V15.8886C15.4721 13.9497 13.9267 12.34 11.9773 12.34C10.0279 12.34 8.48244 13.9497 8.48244 15.8886V20.476C8.48244 20.7849 8.24157 21 7.99053 21H2.51187C2.25085 21 2 20.7747 2 20.4556V12.8711C2 12.4468 2.16397 12.0463 2.45307 11.751Z"
stroke="var(--text-dark)"
stroke-width="2"
/>
</svg>
</a>
<a href="#" class="navbar__button">
<svg
width="24"
height="24"
viewBox="0 0 24 24"
fill="none"
xmlns="http://www.w3.org/2000/svg"
>
<path
fill-rule="evenodd"
clip-rule="evenodd"
d="M21.669 21.6543C21.8625 21.4622 21.863 21.1494 21.6703 20.9566L17.3049 16.5913C18.7912 14.9327 19.7017 12.7525 19.7017 10.3508C19.7017 5.18819 15.5135 1 10.3508 1C5.18819 1 1 5.18819 1 10.3508C1 15.5135 5.18819 19.7017 10.3508 19.7017C12.7624 19.7017 14.9475 18.7813 16.606 17.2852L20.9739 21.653C21.1657 21.8449 21.4765 21.8454 21.669 21.6543ZM1.9843 10.3508C1.9843 5.7394 5.7394 1.9843 10.3508 1.9843C14.9623 1.9843 18.7174 5.7394 18.7174 10.3508C18.7174 14.9623 14.9623 18.7174 10.3508 18.7174C5.7394 18.7174 1.9843 14.9623 1.9843 10.3508Z"
fill="var(--text-dark)"
stroke="var(--text-dark)"
stroke-linecap="round"
stroke-linejoin="round"
/>
</svg>
</a>
<a href="#" class="navbar__button">
<svg
width="24"
height="24"
viewBox="0 0 24 24"
fill="none"
xmlns="http://www.w3.org/2000/svg"
>
<path
fill-rule="evenodd"
clip-rule="evenodd"
d="M18 2.8H7C5.23269 2.8 3.8 4.23269 3.8 6V17C3.8 18.7673 5.23269 20.2 7 20.2H18C19.7673 20.2 21.2 18.7673 21.2 17V6C21.2 4.23269 19.7673 2.8 18 2.8ZM7 1C4.23858 1 2 3.23858 2 6V17C2 19.7614 4.23858 22 7 22H18C20.7614 22 23 19.7614 23 17V6C23 3.23858 20.7614 1 18 1H7Z"
fill="var(--text-dark)"
/>
<path
fill-rule="evenodd"
clip-rule="evenodd"
d="M22 7.99995H3V6.19995H22V7.99995Z"
fill="var(--text-dark)"
/>
<path
fill-rule="evenodd"
clip-rule="evenodd"
d="M10 6.99989L6 1.99989L7.57349 1.12573L11.5735 6.12573L10 6.99989Z"
fill="var(--text-dark)"
/>
<path
fill-rule="evenodd"
clip-rule="evenodd"
d="M16.5 6.99989L12.5 1.99989L14.0735 1.12573L18.0735 6.12573L16.5 6.99989Z"
fill="var(--text-dark)"
/>
<path
d="M15.75 13.0671C16.0833 13.2595 16.0833 13.7407 15.75 13.9331L10.5 16.9642C10.1667 17.1566 9.75 16.9161 9.75 16.5312L9.75 10.469C9.75 10.0841 10.1667 9.84354 10.5 10.036L15.75 13.0671Z"
fill="var(--text-dark)"
/>
</svg>
</a>
<a href="#" class="navbar__button">
<svg
width="24"
height="24"
viewBox="0 0 24 24"
fill="none"
xmlns="http://www.w3.org/2000/svg"
>
<path
fill-rule="evenodd"
clip-rule="evenodd"
d="M17.6007 7.94185H6.47927C5.84559 7.94185 5.32113 8.43455 5.2816 9.06699L4.80842 16.638C4.6573 19.0559 6.57759 21.0999 9.00024 21.0999H15.0797C17.5023 21.0999 19.4226 19.0559 19.2715 16.638L18.7983 9.06699C18.7588 8.43455 18.2343 7.94185 17.6007 7.94185ZM6.47927 6.14185C4.89508 6.14185 3.58393 7.37361 3.48511 8.95471L3.01192 16.5257C2.79604 19.9799 5.53931 22.9 9.00024 22.9H15.0797C18.5406 22.9 21.2839 19.9799 21.068 16.5257L20.5948 8.95471C20.496 7.37361 19.1849 6.14185 17.6007 6.14185H6.47927Z"
fill="var(--text-dark)"
/>
<path
fill-rule="evenodd"
clip-rule="evenodd"
d="M12.2761 2.8C11.0812 2.8 10.1125 3.76867 10.1125 4.96359V6.1419H8.3125V4.96359C8.3125 2.77456 10.0871 1 12.2761 1C14.4651 1 16.2397 2.77456 16.2397 4.96359V6.1419H14.4397V4.96359C14.4397 3.76867 13.471 2.8 12.2761 2.8Z"
fill="var(--text-dark)"
/>
<path
fill-rule="evenodd"
clip-rule="evenodd"
d="M12.2757 12.3118C13.4706 12.3118 14.4393 11.3431 14.4393 10.1482L14.4393 9.91256C14.4393 9.41551 14.8422 9.01256 15.3393 9.01256C15.8363 9.01256 16.2393 9.41551 16.2393 9.91256L16.2393 10.1482C16.2393 12.3373 14.4647 14.1118 12.2757 14.1118C10.0866 14.1118 8.31208 12.3373 8.31208 10.1482L8.31208 9.91257C8.31208 9.41551 8.71502 9.01257 9.21208 9.01257C9.70913 9.01257 10.1121 9.41551 10.1121 9.91257L10.1121 10.1482C10.1121 11.3431 11.0807 12.3118 12.2757 12.3118Z"
fill="var(--text-dark)"
/>
</svg>
</a>
<button class="navbar__button profile-button">
<div class="profile-button__border"></div>
<div class="profile-button__picture">
<img src="assets/default-user.png" alt="User Picture" />
</div>
</button>
</nav>
</>
);
}