Skip to content
This repository was archived by the owner on Oct 30, 2025. It is now read-only.

Commit 5ec09e0

Browse files
authored
Merge pull request #108 from RonLek/improve-unsigned-home
[NEW] Home Demo Layout, Localized string resources
2 parents 5d21c11 + dbd6684 commit 5ec09e0

8 files changed

Lines changed: 1106 additions & 208 deletions

File tree

client/package-lock.json

Lines changed: 418 additions & 123 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

client/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"version": "0.1.0",
44
"private": true,
55
"dependencies": {
6+
"@brainhubeu/react-carousel": "^2.0.2",
67
"@material-ui/core": "^4.11.2",
78
"@material-ui/lab": "^4.0.0-alpha.57",
89
"axios": "^0.21.1",

client/src/components/Home/index.css

Lines changed: 183 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
}
1818

1919
.unsigned-home-heading {
20-
font-weight: 600;
2120
color: hsl(240, 6%, 17%);
2221
margin: 20px 0;
2322
font-weight: 200;
@@ -31,18 +30,22 @@
3130

3231
.unsigned-home-header {
3332
margin: 40px 30px;
33+
display: flex;
34+
flex-direction: column;
35+
align-items: center;
3436
text-align: center;
3537
}
3638

3739
.button-container {
3840
display: flex;
3941
justify-content: center;
4042
align-items: center;
43+
margin-top: 20px;
4144
}
4245

4346
.main-stats-container {
4447
margin-top: 70px;
45-
margin-bottom: 70px;
48+
margin-bottom: 55px;
4649
display: flex;
4750
flex-direction: row;
4851
align-items: center;
@@ -57,22 +60,22 @@
5760
align-items: center;
5861
color: #29292e;
5962
background-color: #e0e0e01a;
60-
border-radius: 100px;
61-
height: 170px;
62-
width: 170px;
63+
border-radius: 50%;
64+
height: 140px;
65+
width: 140px;
6366
margin: 10px;
6467
box-shadow: 0px 8px 12px -7px #a9a6a6fc;
6568
}
6669

6770
.stat-icon {
68-
width: 60px;
69-
height: 60px;
71+
width: 45%;
72+
height: 45%;
7073
display: block;
71-
margin-bottom: 15px;
74+
margin-bottom: 5px;
7275
}
7376

7477
.stat-number {
75-
font-size: 40px;
78+
font-size: 30px;
7679
letter-spacing: 2px;
7780
margin-bottom: 5px;
7881
font-weight: 500;
@@ -104,7 +107,7 @@
104107
}
105108

106109
.signed-home-header p {
107-
font-size: 0.90em;
110+
font-size: 0.9em;
108111
line-height: 27px;
109112
color: #252525;
110113
}
@@ -114,14 +117,14 @@
114117
}
115118

116119
.signed-home-shortcut-container h5 {
117-
font-size: 0.90em;
120+
font-size: 0.9em;
118121
}
119122

120123
.signed-home-shortcut {
121124
background-color: #e3e9fe66;
122125
padding: 14px;
123126
border-radius: 5px;
124-
font-size: 0.90em;
127+
font-size: 0.9em;
125128
cursor: pointer;
126129
display: flex;
127130
align-items: center;
@@ -142,3 +145,171 @@
142145
height: 1.7em;
143146
margin-right: 5px;
144147
}
148+
149+
.select-role-button {
150+
display: flex;
151+
align-items: center;
152+
flex-direction: column;
153+
justify-content: center;
154+
border-radius: 50%;
155+
height: 150px;
156+
width: 150px;
157+
border: 5px solid #ee4a5b;
158+
}
159+
160+
.select-role-button:hover {
161+
border: 5px solid #2f343d;
162+
cursor: pointer;
163+
}
164+
165+
.carousel-item-wrapper {
166+
width: 100%;
167+
margin: 20px;
168+
text-align: center;
169+
}
170+
171+
.carousel-item-link {
172+
text-decoration: none;
173+
color: #000000;
174+
}
175+
176+
.carousel-item-image {
177+
width: 100%;
178+
height: 100%;
179+
}
180+
181+
.carousel-item-description {
182+
color: hsl(240, 5%, 36%);
183+
}
184+
185+
.demo-mode-toggle {
186+
display: flex;
187+
flex-direction: row;
188+
align-items: center;
189+
justify-content: flex-end;
190+
}
191+
192+
.unsigned-search-wrapper {
193+
display: flex;
194+
flex-direction: row;
195+
width: 100%;
196+
justify-content: center;
197+
margin-bottom: 20px;
198+
}
199+
200+
.unsigned-search-input {
201+
width: 50%;
202+
}
203+
204+
.stats-heading {
205+
text-align: center;
206+
margin-top: 100px;
207+
margin-bottom: 40px;
208+
color: hsl(240, 6%, 17%);
209+
font-weight: 200;
210+
}
211+
212+
.featured-content-heading {
213+
text-align: center;
214+
margin-bottom: 40px;
215+
color: hsl(240, 6%, 17%);
216+
font-weight: 200;
217+
}
218+
219+
.select-role-heading {
220+
text-align: center;
221+
margin-top: 30px;
222+
margin-bottom: 60px;
223+
color: hsl(240, 6%, 17%);
224+
font-weight: 200;
225+
}
226+
227+
.select-role-buttons-row {
228+
display: flex;
229+
flex-direction: row;
230+
justify-content: space-evenly;
231+
margin-bottom: 100px;
232+
}
233+
234+
.select-role-button-icon {
235+
height: 50px;
236+
width: 50px;
237+
margin-bottom: 20px;
238+
}
239+
240+
.communities-wrapper {
241+
margin-bottom: 60px;
242+
margin-top: 30px;
243+
}
244+
245+
.community-activity-wrapper {
246+
display: flex;
247+
flex-direction: row;
248+
}
249+
250+
.community-activity-content {
251+
display: flex;
252+
flex-direction: row;
253+
align-items: center;
254+
width: 80%;
255+
}
256+
257+
.community-activity-author-image {
258+
border-radius: 50%;
259+
height: 40px;
260+
width: 40px;
261+
margin-right: 20px;
262+
}
263+
264+
.community-activity-heading {
265+
margin-right: 40px;
266+
}
267+
268+
.community-activity-info {
269+
color: hsl(240, 5%, 36%);
270+
}
271+
272+
.community-activity-actions-wrapper {
273+
display: flex;
274+
flex-direction: row;
275+
width: 20%;
276+
}
277+
278+
.community-activity-action {
279+
display: flex;
280+
width: 50%;
281+
align-items: center;
282+
}
283+
284+
.community-activity-action-button {
285+
height: 25px;
286+
width: 25px;
287+
margin-right: 15px;
288+
margin-left: 30px;
289+
}
290+
291+
.community-activity-action-button:hover {
292+
cursor: pointer;
293+
}
294+
295+
.main-stats-container-demo {
296+
width: 100%;
297+
margin-bottom: 20px;
298+
display: flex;
299+
flex-direction: row;
300+
align-items: center;
301+
justify-content: space-around;
302+
flex-wrap: wrap;
303+
}
304+
305+
.button-container-demo {
306+
display: flex;
307+
justify-content: center;
308+
align-items: center;
309+
margin-top: 10px;
310+
margin-bottom: 20px;
311+
}
312+
313+
.header-link {
314+
color: hsl(240, 5%, 36%);
315+
}

0 commit comments

Comments
 (0)