Skip to content

Commit 50342ff

Browse files
committed
Create new frontpage for logged in users
1 parent 751ab30 commit 50342ff

Some content is hidden

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

44 files changed

+2433
-1878
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: 116 additions & 132 deletions
Original file line numberDiff line numberDiff line change
@@ -1,185 +1,169 @@
1-
@import '~app/styles/variables.css';
2-
3-
.optionWrapper {
4-
justify-content: center;
5-
min-height: 120px;
6-
cursor: pointer;
7-
position: relative;
8-
}
9-
10-
.pollTable {
1+
.poll {
2+
background-color: var(--lego-placard-color);
113
width: 100%;
12-
font-size: 14px;
13-
}
14-
15-
.pollTable td {
16-
border: 0;
17-
padding: 5px;
4+
min-width: 250px;
5+
max-width: 500px;
6+
overflow-y: hidden;
7+
border-radius: 15px;
8+
transition: 2s height;
189
}
1910

20-
.pollTable .textColumn {
21-
border-right: 1px solid #c5c5c5;
22-
text-align: right;
23-
padding-right: 13px;
24-
line-height: 16px;
25-
}
26-
27-
.pollTable .graphColumn {
28-
width: auto;
29-
min-width: 200px;
30-
padding-left: 13px;
11+
.topBar {
12+
background-color: var(--lego-red);
13+
position: relative;
14+
width: 100%;
15+
height: 70px;
16+
box-shadow: 0 4px 4px rgba(0, 0, 0, 25%);
3117
}
3218

33-
.poll {
34-
composes: withShadow from '~app/styles/utilities.css';
35-
background: var(--lego-card-color);
36-
padding: 15px 20px 8px;
19+
.stats {
20+
color: var(--lego-placard-color);
21+
margin-top: 17px;
22+
transform: scale(150%);
3723
}
3824

39-
.pollLight {
40-
background: var(--lego-card-color);
25+
.notAnswered {
26+
color: var(--color-white);
27+
font-size: 30px;
28+
font-weight: 900;
29+
line-height: 45px;
4130
}
4231

43-
.noVotes {
44-
font-style: italic;
32+
.headerBar {
33+
color: var(--lego-font-color);
34+
background-color: var(--lego-placard-color);
35+
font-weight: 900;
36+
text-align: center;
37+
position: absolute;
38+
bottom: 0;
39+
left: 50%;
40+
width: 80%;
41+
height: 50px;
42+
border-radius: 10px;
43+
box-shadow: 0 4px 4px rgba(0, 0, 0, 25%);
44+
transform: translate(-50%, 50%);
4545
}
4646

47-
.pollGraph {
48-
animation: graph 1.2s cubic-bezier(41%, 80%, 40%, 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;
47+
.contentWrapper {
48+
overflow-y: hidden;
49+
width: 100%;
50+
transition: 0.5s height;
5651
}
5752

58-
.fullGraph {
59-
background-color: #e7e7e7;
60-
width: 100%;
53+
.voteOptionsWrapper {
6154
display: flex;
55+
flex-direction: column;
56+
align-items: center;
57+
width: 100%;
58+
height: fit-content;
6259
}
6360

64-
html[data-theme='dark'] .fullGraph {
61+
.voteButton {
6562
color: var(--color-white);
66-
background-color: var(--color-mono-gray-5);
67-
}
68-
69-
html[data-theme='dark'] .pollGraph {
70-
color: var(--color-black);
71-
}
72-
73-
.pollGraph span {
74-
vertical-align: middle;
75-
}
76-
77-
@keyframes graph {
78-
from {
79-
width: 1px;
80-
}
63+
background: var(--lego-red);
64+
font-weight: 500;
65+
width: 90%;
66+
height: 37px;
67+
padding: 5px;
68+
margin: 2px;
8169

82-
to {
83-
width: 100%;
70+
/* Override default components/Button property */
71+
+ .voteButton {
72+
margin-left: 2px;
8473
}
8574
}
8675

87-
.pollHeader {
88-
border-radius: 8px;
89-
margin-bottom: 20px;
90-
margin-left: 20px;
91-
font-size: 16px;
92-
color: var(--lego-font-color);
93-
}
94-
95-
.voteButton {
96-
background: var(--lego-red-color);
97-
color: var(--lego-color-gray-light);
98-
border: 1px solid var(--border-gray);
76+
.voteOptions {
9977
width: 100%;
100-
margin: 0 !important;
101-
font-size: 15px;
102-
max-width: 400px;
78+
padding-top: 35px;
10379
}
10480

105-
.voteButton:hover {
106-
opacity: 0.8;
81+
.bottomInfoWrapper {
82+
display: flex;
83+
flex-direction: column;
84+
align-items: center;
10785
}
10886

109-
html[data-theme='dark'] .voteButton {
110-
color: var(--color-dark-gray-3);
87+
.totalVotesInfo {
88+
display: flex;
11189
}
11290

113-
.moreOptionsLink {
114-
justify-content: space-between;
91+
.resultsHiddenInfo {
92+
font-style: italic;
11593
}
11694

117-
.arrow {
118-
margin-top: 9px;
119-
cursor: pointer;
120-
121-
&:hover {
122-
transform: scale(1.5);
123-
color: var(--color-red-3);
124-
transition: transform 0.2s;
125-
}
95+
.pollTable {
96+
width: 100%;
97+
font-size: 14px;
12698
}
12799

128-
.blurContainer {
129-
display: none;
130-
position: absolute;
131-
justify-content: center;
100+
.pollTable tr {
132101
width: 100%;
133-
height: 100%;
134102
}
135103

136-
.blurOverlay {
137-
position: absolute;
138-
z-index: 2;
139-
color: var(--color-black);
140-
margin-top: 25px;
104+
.pollTable td {
105+
border: 0;
106+
padding: 5px;
141107
}
142108

143-
.optionWrapper:hover .blurContainer {
144-
display: flex;
109+
.pollTable .textColumn {
110+
text-align: right;
111+
line-height: 16px;
112+
word-wrap: break-word;
113+
width: fit-content;
114+
max-width: 200px;
115+
padding-right: 13px;
116+
border-right: 3px solid #c5c5c5;
145117
}
146118

147-
.optionWrapper:hover .blurEffect {
148-
filter: blur(3px);
149-
pointer-events: none;
119+
.pollTable .graphColumn {
120+
width: auto;
121+
min-width: 150px;
122+
padding-left: 13px;
123+
padding-right: 15px;
150124
}
151125

152-
.blurArrow {
153-
margin-top: 40px;
126+
.fullGraph {
127+
display: flex;
128+
background-color: #e7e7e7;
129+
word-wrap: break-word;
130+
width: 100%;
154131
}
155132

156-
.alignItems {
157-
display: flex;
158-
justify-content: center;
133+
.pollGraph {
134+
background-color: var(--lego-red);
135+
font-style: italic;
136+
font-weight: 300;
137+
color: var(--color-white);
138+
height: 30px;
139+
padding-left: 8px;
140+
animation: graph 1.2s cubic-bezier(0.41, 0.8, 0.4, 0.94);
141+
border-radius: 0 2px 2px 0;
142+
box-shadow: 0 4px 4px rgba(0, 0, 0, 25%);
159143
}
160144

161-
.answered {
162-
margin: 15px 0;
163-
text-align: center;
164-
font-weight: bold;
145+
.bottomBar {
146+
width: 100%;
147+
height: 70px;
148+
background-color: var(--lego-red);
165149
}
166150

167-
.bottomInfo {
168-
display: flex;
169-
justify-content: space-between;
151+
.arrowUp,
152+
.arrowDown {
153+
text-shadow: 0 2px 2px rgba(0, 0, 0, 25%);
154+
transform: scale(250%);
155+
color: var(--lego-placard-color);
156+
transition: 0.8s margin-bottom;
170157
}
171158

172-
.resultsHidden {
173-
font-style: italic;
159+
.arrowUp {
160+
margin-bottom: 25px;
174161
}
175162

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

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

0 commit comments

Comments
 (0)