Skip to content

Commit 1534270

Browse files
committed
create new frontpage for logged in users
1 parent 9cc3642 commit 1534270

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+2477
-1880
lines changed

app/assets/fonts/icomoon.eot

100755100644
File mode changed.

app/assets/fonts/icomoon.svg

100755100644
File mode changed.

app/assets/fonts/icomoon.ttf

100755100644
File mode changed.

app/assets/fonts/icomoon.woff

100755100644
File mode changed.

app/assets/weekly_logo.svg

Lines changed: 3 additions & 0 deletions
Loading

app/assets/weekly_mug.svg

Lines changed: 6 additions & 0 deletions
Loading

app/components/Header/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ class Header extends Component<Props, State> {
168168

169169
return (
170170
<header className={styles.header}>
171-
<FancyNodesCanvas height={300} />
171+
{/* <FancyNodesCanvas height={300} /> */}
172172
<div className={styles.content}>
173173
<Link to="/">
174174
<LoadingIndicator loading={loading}>

app/components/Poll/Poll.css

Lines changed: 122 additions & 126 deletions
Original file line numberDiff line numberDiff line change
@@ -1,185 +1,181 @@
1-
@import '~app/styles/variables.css';
2-
3-
.optionWrapper {
4-
justify-content: center;
5-
min-height: 120px;
6-
cursor: pointer;
7-
position: relative;
1+
.poll {
2+
background-color: var(--lego-placard-color);
3+
width: 100%;
4+
min-width: 250px;
5+
max-width: 500px;
6+
overflow-y: hidden;
7+
border-radius: 15px;
8+
transition: 2s height;
89
}
910

10-
.pollTable {
11+
.topBar {
12+
position: relative;
1113
width: 100%;
12-
font-size: 14px;
14+
height: 70px;
15+
background-color: var(--lego-red);
16+
box-shadow: 0px 4px 4px rgba(0, 0, 0, 25%);
1317
}
1418

15-
.pollTable td {
16-
border: 0;
17-
padding: 5px;
19+
.stats {
20+
margin-top: 17px;
21+
color: var(--lego-placard-color);
22+
transform: scale(150%);
1823
}
1924

20-
.pollTable .textColumn {
21-
border-right: 1px solid #c5c5c5;
22-
text-align: right;
23-
padding-right: 13px;
24-
line-height: 16px;
25+
.notAnswered {
26+
color: var(--color-white);
27+
font-size: 30px;
28+
font-weight: 900;
29+
line-height: 45px;
2530
}
2631

27-
.pollTable .graphColumn {
28-
width: auto;
29-
min-width: 200px;
30-
padding-left: 13px;
31-
}
32+
.headerBar {
33+
color: var(--lego-font-color);
34+
background-color: var(--lego-placard-color);
35+
font-weight: 900;
36+
text-align: center;
3237

33-
.poll {
34-
composes: withShadow from '~app/styles/utilities.css';
35-
background: var(--lego-card-color);
36-
padding: 15px 20px 8px;
37-
}
38+
position: absolute;
39+
bottom: 0px;
40+
left: 50%;
3841

39-
.pollLight {
40-
background: var(--lego-card-color);
41-
}
42+
width: 80%;
43+
height: 50px;
44+
transform: translate(-50%, 50%);
4245

43-
.noVotes {
44-
font-style: italic;
45-
}
46+
border-radius: 10px;
4647

47-
.pollGraph {
48-
animation: graph 1.2s cubic-bezier(0.41, 0.8, 0.4, 0.94);
49-
background-color: var(--lego-red-color);
50-
padding-left: 8px;
51-
border-radius: 0 2px 2px 0;
52-
font-style: italic;
53-
font-weight: 300;
54-
color: var(--color-white);
55-
height: 30px;
48+
box-shadow: 0px 4px 4px rgba(0, 0, 0, 25%);
5649
}
5750

58-
.fullGraph {
59-
background-color: #e7e7e7;
51+
.contentWrapper {
52+
overflow-y: hidden;
6053
width: 100%;
54+
transition: 0.5s height;
55+
}
56+
57+
.voteOptionsWrapper {
6158
display: flex;
59+
flex-direction: column;
60+
align-items: center;
61+
62+
width: 100%;
63+
height: fit-content;
6264
}
6365

64-
html[data-theme='dark'] .fullGraph {
66+
.voteButton {
67+
background: var(--lego-red);
6568
color: var(--color-white);
66-
background-color: var(--color-mono-gray-5);
67-
}
69+
font-weight: 500;
70+
height: 37px;
71+
width: 90%;
72+
padding: 5px;
73+
margin: 2px;
6874

69-
html[data-theme='dark'] .pollGraph {
70-
color: var(--color-black);
75+
/* Override default components/Button property */
76+
+ .voteButton {
77+
margin-left: 2px;
78+
}
7179
}
7280

73-
.pollGraph span {
74-
vertical-align: middle;
81+
.voteOptions {
82+
width: 100%;
83+
padding-top: 35px;
7584
}
7685

77-
@keyframes graph {
78-
from {
79-
width: 1px;
80-
}
86+
.bottomInfoWrapper {
87+
display: flex;
88+
flex-direction: column;
89+
align-items: center;
90+
}
8191

82-
to {
83-
width: 100%;
84-
}
92+
.totalVotesInfo {
93+
display: flex;
8594
}
8695

87-
.pollHeader {
88-
border-radius: 8px;
89-
margin-bottom: 20px;
90-
margin-left: 20px;
91-
font-size: 16px;
92-
color: var(--lego-font-color);
96+
.resultsHiddenInfo {
97+
font-style: italic;
9398
}
9499

95-
.voteButton {
96-
background: var(--lego-red-color);
97-
color: var(--lego-color-gray-light);
98-
border: 1px solid var(--border-gray);
100+
.pollTable {
99101
width: 100%;
100-
margin: 0 !important;
101-
font-size: 15px;
102-
max-width: 400px;
102+
font-size: 14px;
103103
}
104104

105-
.voteButton:hover {
106-
opacity: 0.8;
105+
.pollTable tr {
106+
width: 100%;
107107
}
108108

109-
html[data-theme='dark'] .voteButton {
110-
color: var(--color-dark-gray-3);
109+
.pollTable td {
110+
border: 0;
111+
padding: 5px;
111112
}
112113

113-
.moreOptionsLink {
114-
justify-content: space-between;
115-
}
114+
.pollTable .textColumn {
115+
text-align: right;
116+
line-height: 16px;
117+
word-wrap: break-word;
116118

117-
.arrow {
118-
margin-top: 9px;
119-
cursor: pointer;
119+
width: fit-content;
120+
max-width: 200px;
121+
padding-right: 13px;
120122

121-
&:hover {
122-
transform: scale(1.5);
123-
color: var(--color-red-3);
124-
transition: transform 0.2s;
125-
}
123+
border-right: 3px solid #c5c5c5;
126124
}
127125

128-
.blurContainer {
129-
display: none;
130-
position: absolute;
131-
justify-content: center;
132-
width: 100%;
133-
height: 100%;
134-
}
126+
.pollTable .graphColumn {
127+
width: auto;
128+
min-width: 150px;
135129

136-
.blurOverlay {
137-
position: absolute;
138-
z-index: 2;
139-
color: var(--color-black);
140-
margin-top: 25px;
130+
padding-left: 13px;
131+
132+
padding-right: 15px;
141133
}
142134

143-
.optionWrapper:hover .blurContainer {
135+
.fullGraph {
144136
display: flex;
137+
background-color: #e7e7e7;
138+
word-wrap: break-word;
139+
width: 100%;
145140
}
146141

147-
.optionWrapper:hover .blurEffect {
148-
filter: blur(3px);
149-
pointer-events: none;
150-
}
142+
.pollGraph {
143+
background-color: var(--lego-red);
151144

152-
.blurArrow {
153-
margin-top: 40px;
154-
}
145+
font-style: italic;
146+
font-weight: 300;
147+
color: var(--color-white);
155148

156-
.alignItems {
157-
display: flex;
158-
justify-content: center;
149+
height: 30px;
150+
padding-left: 8px;
151+
152+
animation: graph 1.2s cubic-bezier(0.41, 0.8, 0.4, 0.94);
153+
border-radius: 0 2px 2px 0;
154+
box-shadow: 0 4px 4px rgba(0, 0, 0, 25%);
159155
}
160156

161-
.answered {
162-
margin: 15px 0;
163-
text-align: center;
164-
font-weight: bold;
157+
.bottomBar {
158+
width: 100%;
159+
height: 70px;
160+
background-color: var(--lego-red);
165161
}
166162

167-
.bottomInfo {
168-
display: flex;
169-
justify-content: space-between;
163+
.arrowUp,
164+
.arrowDown {
165+
text-shadow: 0px 2px 2px rgba(0, 0, 0, 25%);
166+
transform: scale(250%);
167+
color: var(--lego-placard-color);
168+
transition: 0.8s margin-bottom;
170169
}
171170

172-
.resultsHidden {
173-
font-style: italic;
171+
.arrowUp {
172+
margin-bottom: 25px;
174173
}
175174

176-
@media (--mobile-device) {
177-
.blurContainer {
178-
display: flex;
179-
}
175+
.arrowDown {
176+
margin-bottom: 10px;
177+
}
180178

181-
.blurEffect {
182-
filter: blur(3px);
183-
pointer-events: none;
184-
}
179+
.arrow:hover {
180+
cursor: pointer;
185181
}

0 commit comments

Comments
 (0)