Skip to content

Commit

Permalink
create new frontpage for logged in users
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterJFB committed Feb 13, 2022
1 parent 290cd9f commit d0de21c
Show file tree
Hide file tree
Showing 42 changed files with 3,794 additions and 4,065 deletions.
Empty file modified app/assets/fonts/icomoon.eot
100755 → 100644
Empty file.
Empty file modified app/assets/fonts/icomoon.svg
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified app/assets/fonts/icomoon.ttf
100755 → 100644
Empty file.
Empty file modified app/assets/fonts/icomoon.woff
100755 → 100644
Empty file.
3 changes: 3 additions & 0 deletions app/assets/weekly_logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions app/assets/weekly_mug.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion app/components/Header/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ class Header extends Component<Props, State> {

return (
<header className={styles.header}>
<FancyNodesCanvas height={300} />
{/* <FancyNodesCanvas height={300} /> */}
<div className={styles.content}>
<Link to="/">
<LoadingIndicator loading={loading}>
Expand Down
248 changes: 122 additions & 126 deletions app/components/Poll/Poll.css
Original file line number Diff line number Diff line change
@@ -1,185 +1,181 @@
@import '~app/styles/variables.css';

.optionWrapper {
justify-content: center;
min-height: 120px;
cursor: pointer;
position: relative;
.poll {
background-color: var(--lego-placard-color);
width: 100%;
min-width: 250px;
max-width: 500px;
overflow-y: hidden;
border-radius: 15px;
transition: 2s height;
}

.pollTable {
.topBar {
position: relative;
width: 100%;
font-size: 14px;
height: 70px;
background-color: var(--lego-red);
box-shadow: 0px 4px 4px rgba(0, 0, 0, 25%);
}

.pollTable td {
border: 0;
padding: 5px;
.stats {
margin-top: 17px;
color: var(--lego-placard-color);
transform: scale(150%);
}

.pollTable .textColumn {
border-right: 1px solid #c5c5c5;
text-align: right;
padding-right: 13px;
line-height: 16px;
.notAnswered {
color: var(--color-white);
font-size: 30px;
font-weight: 900;
line-height: 45px;
}

.pollTable .graphColumn {
width: auto;
min-width: 200px;
padding-left: 13px;
}
.headerBar {
color: var(--lego-font-color);
background-color: var(--lego-placard-color);
font-weight: 900;
text-align: center;

.poll {
composes: withShadow from '~app/styles/utilities.css';
background: var(--lego-card-color);
padding: 15px 20px 8px;
}
position: absolute;
bottom: 0px;
left: 50%;

.pollLight {
background: var(--lego-card-color);
}
width: 80%;
height: 50px;
transform: translate(-50%, 50%);

.noVotes {
font-style: italic;
}
border-radius: 10px;

.pollGraph {
animation: graph 1.2s cubic-bezier(0.41, 0.8, 0.4, 0.94);
background-color: var(--lego-red-color);
padding-left: 8px;
border-radius: 0 2px 2px 0;
font-style: italic;
font-weight: 300;
color: var(--color-white);
height: 30px;
box-shadow: 0px 4px 4px rgba(0, 0, 0, 25%);
}

.fullGraph {
background-color: #e7e7e7;
.contentWrapper {
overflow-y: hidden;
width: 100%;
transition: 0.5s height;
}

.voteOptionsWrapper {
display: flex;
flex-direction: column;
align-items: center;

width: 100%;
height: fit-content;
}

html[data-theme='dark'] .fullGraph {
.voteButton {
background: var(--lego-red);
color: var(--color-white);
background-color: var(--color-mono-gray-5);
}
font-weight: 500;
height: 37px;
width: 90%;
padding: 5px;
margin: 2px;

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

.pollGraph span {
vertical-align: middle;
.voteOptions {
width: 100%;
padding-top: 35px;
}

@keyframes graph {
from {
width: 1px;
}
.bottomInfoWrapper {
display: flex;
flex-direction: column;
align-items: center;
}

to {
width: 100%;
}
.totalVotesInfo {
display: flex;
}

.pollHeader {
border-radius: 8px;
margin-bottom: 20px;
margin-left: 20px;
font-size: 16px;
color: var(--lego-font-color);
.resultsHiddenInfo {
font-style: italic;
}

.voteButton {
background: var(--lego-red-color);
color: var(--lego-color-gray-light);
border: 1px solid var(--border-gray);
.pollTable {
width: 100%;
margin: 0 !important;
font-size: 15px;
max-width: 400px;
font-size: 14px;
}

.voteButton:hover {
opacity: 0.8;
.pollTable tr {
width: 100%;
}

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

.moreOptionsLink {
justify-content: space-between;
}
.pollTable .textColumn {
text-align: right;
line-height: 16px;
word-wrap: break-word;

.arrow {
margin-top: 9px;
cursor: pointer;
width: fit-content;
max-width: 200px;
padding-right: 13px;

&:hover {
transform: scale(1.5);
color: var(--color-red-3);
transition: transform 0.2s;
}
border-right: 3px solid #c5c5c5;
}

.blurContainer {
display: none;
position: absolute;
justify-content: center;
width: 100%;
height: 100%;
}
.pollTable .graphColumn {
width: auto;
min-width: 150px;

.blurOverlay {
position: absolute;
z-index: 2;
color: var(--color-black);
margin-top: 25px;
padding-left: 13px;

padding-right: 15px;
}

.optionWrapper:hover .blurContainer {
.fullGraph {
display: flex;
background-color: #e7e7e7;
word-wrap: break-word;
width: 100%;
}

.optionWrapper:hover .blurEffect {
filter: blur(3px);
pointer-events: none;
}
.pollGraph {
background-color: var(--lego-red);

.blurArrow {
margin-top: 40px;
}
font-style: italic;
font-weight: 300;
color: var(--color-white);

.alignItems {
display: flex;
justify-content: center;
height: 30px;
padding-left: 8px;

animation: graph 1.2s cubic-bezier(0.41, 0.8, 0.4, 0.94);
border-radius: 0 2px 2px 0;
box-shadow: 0 4px 4px rgba(0, 0, 0, 25%);
}

.answered {
margin: 15px 0;
text-align: center;
font-weight: bold;
.bottomBar {
width: 100%;
height: 70px;
background-color: var(--lego-red);
}

.bottomInfo {
display: flex;
justify-content: space-between;
.arrowUp,
.arrowDown {
text-shadow: 0px 2px 2px rgba(0, 0, 0, 25%);
transform: scale(250%);
color: var(--lego-placard-color);
transition: 0.8s margin-bottom;
}

.resultsHidden {
font-style: italic;
.arrowUp {
margin-bottom: 25px;
}

@media (--mobile-device) {
.blurContainer {
display: flex;
}
.arrowDown {
margin-bottom: 10px;
}

.blurEffect {
filter: blur(3px);
pointer-events: none;
}
.arrow:hover {
cursor: pointer;
}
Loading

0 comments on commit d0de21c

Please sign in to comment.