Skip to content

Commit c51a8e0

Browse files
committed
create new frontpage for logged in users
1 parent 2c63d7e commit c51a8e0

40 files changed

+3078
-3391
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: 118 additions & 118 deletions
Original file line numberDiff line numberDiff line change
@@ -1,172 +1,172 @@
1-
@import '~app/styles/variables.css';
2-
3-
.optionWrapper {
4-
justify-content: center;
5-
min-height: 120px;
6-
cursor: pointer;
1+
.poll {
2+
background-color: var(--color-white);
73
position: relative;
4+
width: 100%;
5+
min-width: 250px;
6+
max-width: 500px;
7+
overflow-y: hidden;
8+
border-radius: 15px;
9+
transition: 2s height;
810
}
911

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

15-
.pollTable td {
16-
border: 0;
17-
padding: 5px;
20+
.stats {
21+
margin-top: 17px;
22+
color: var(--color-white);
23+
transform: scale(150%);
1824
}
1925

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

27-
.pollTable .graphColumn {
28-
width: auto;
29-
min-width: 200px;
30-
padding-left: 13px;
31-
}
33+
.headerBar {
34+
color: var(--lego-font-color);
35+
background-color: var(--color-almost-white-1);
36+
font-weight: 900;
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+
.voteButtonWrapper {
52+
overflow-y: hidden;
6053
width: 100%;
61-
display: flex;
54+
transition: 0.5s height;
6255
}
6356

64-
html[data-theme='dark'] .fullGraph {
65-
color: var(--color-white);
66-
background-color: var(--color-mono-gray-5);
67-
}
57+
.voteButtonSubWrapper {
58+
display: flex;
59+
flex-direction: column;
60+
align-items: center;
6861

69-
html[data-theme='dark'] .pollGraph {
70-
color: var(--color-black);
62+
width: 100%;
63+
height: fit-content;
7164
}
7265

73-
.pollGraph span {
74-
vertical-align: middle;
66+
.voteButton {
67+
background: var(--lego-red);
68+
color: var(--color-white);
69+
font-weight: 500;
70+
height: 37px;
71+
width: 90%;
72+
padding: 5px;
73+
margin: 2px !important;
7574
}
7675

77-
@keyframes graph {
78-
from {
79-
width: 1px;
80-
}
81-
82-
to {
83-
width: 100%;
84-
}
76+
.optionsWrapper {
77+
width: 100%;
78+
padding-top: 35px;
8579
}
8680

87-
.pollHeader {
88-
border-radius: 8px;
89-
margin-bottom: 20px;
90-
margin-left: 20px;
91-
font-size: 16px;
92-
color: var(--lego-font-color);
81+
.totalVotes {
82+
display: flex;
83+
margin-bottom: 2px;
9384
}
9485

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

105-
.voteButton:hover {
106-
opacity: 0.8;
91+
.pollTable tr {
92+
width: 100%;
10793
}
10894

109-
html[data-theme='dark'] .voteButton {
110-
color: var(--color-dark-gray-3);
95+
.pollTable td {
96+
border: 0;
97+
padding: 5px;
11198
}
11299

113-
.moreOptionsLink {
114-
display: grid;
115-
grid: auto-flow / 3fr 1fr 3fr;
116-
justify-content: space-between;
100+
.pollTable .textColumn {
101+
text-align: right;
102+
line-height: 16px;
103+
word-wrap: break-word;
104+
105+
width: fit-content;
106+
max-width: 200px;
107+
padding-right: 13px;
108+
109+
border-right: 3px solid #c5c5c5;
117110
}
118111

119-
.arrow {
120-
margin-top: 9px;
121-
cursor: pointer;
112+
.pollTable .graphColumn {
113+
width: auto;
114+
min-width: 150px;
115+
116+
padding-left: 13px;
122117

123-
&:hover {
124-
transform: scale(1.5);
125-
color: var(--color-red-3);
126-
transition: transform 0.2s;
127-
}
118+
padding-right: 15px;
128119
}
129120

130-
.blurContainer {
131-
display: none;
132-
position: absolute;
133-
justify-content: center;
121+
.fullGraph {
122+
display: flex;
123+
background-color: #e7e7e7;
124+
word-wrap: break-word;
134125
width: 100%;
135-
height: 100%;
136126
}
137127

138-
.blurOverlay {
139-
position: absolute;
140-
z-index: 2;
141-
color: var(--color-black);
142-
margin-top: 25px;
143-
}
128+
.pollGraph {
129+
background-color: var(--lego-red);
144130

145-
.optionWrapper:hover .blurContainer {
146-
display: flex;
131+
font-style: italic;
132+
font-weight: 300;
133+
color: var(--color-white);
134+
135+
height: 30px;
136+
padding-left: 8px;
137+
138+
animation: graph 1.2s cubic-bezier(0.41, 0.8, 0.4, 0.94);
139+
border-radius: 0 2px 2px 0;
140+
box-shadow: 0 4px 4px rgba(0, 0, 0, 25%);
147141
}
148142

149-
.optionWrapper:hover .blurEffect {
150-
filter: blur(3px);
151-
pointer-events: none;
143+
.bottomBar {
144+
width: 100%;
145+
height: 70px;
146+
background-color: var(--lego-red);
152147
}
153148

154-
.blurArrow {
155-
margin-top: 40px;
149+
.arrowUp,
150+
.arrowDown {
151+
cursor: pointer;
156152
}
157153

158-
.alignItems {
159-
display: flex;
160-
justify-content: center;
154+
.arrowUp {
155+
text-shadow: 0px 2px 2px rgba(0, 0, 0, 25%);
156+
transform: scale(250%);
157+
color: var(--color-white);
158+
margin-bottom: 25px;
159+
transition: 0.8s margin-bottom;
161160
}
162161

163-
@media (--mobile-device) {
164-
.blurContainer {
165-
display: flex;
166-
}
162+
.arrowDown {
163+
text-shadow: 0px 2px 2px rgba(0, 0, 0, 25%);
164+
transform: scale(250%);
165+
color: var(--color-white);
166+
margin-bottom: 10px;
167+
transition: 0.8s margin-bottom;
168+
}
167169

168-
.blurEffect {
169-
filter: blur(3px);
170-
pointer-events: none;
171-
}
170+
.arrow:hover {
171+
cursor: pointer;
172172
}

0 commit comments

Comments
 (0)