Jon Solow
commited on
Commit
•
f63d934
1
Parent(s):
e0b65b7
Copy over all css from nfl-playoff-challenge react app
Browse files- src/css/App.css +7 -0
- src/css/Button.css +53 -0
- src/css/Header.css +160 -0
- src/css/Player.css +300 -0
- src/css/PlayerStats.css +38 -0
- src/css/Scoreboard.css +4 -0
- src/css/SelectionBoard.css +4 -0
- src/css/SelectionRow.css +147 -0
- src/css/User.css +162 -0
- src/css/index.css +42 -0
src/css/App.css
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
.loading {
|
2 |
+
display: flex;
|
3 |
+
justify-content: center;
|
4 |
+
padding-top: 2em;
|
5 |
+
font-size: 1.5rem;
|
6 |
+
font-family: var(--font-2);
|
7 |
+
}
|
src/css/Button.css
ADDED
@@ -0,0 +1,53 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
.button {
|
2 |
+
position: relative;
|
3 |
+
font-size: 1rem;
|
4 |
+
padding: 0.5em;
|
5 |
+
border: none;
|
6 |
+
background: none;
|
7 |
+
border-radius: 3em;
|
8 |
+
margin: 0.1em;
|
9 |
+
background-color: var(--lighter-grey);
|
10 |
+
cursor: pointer;
|
11 |
+
font-family: var(--font-1);
|
12 |
+
flex: 1 1 18%;
|
13 |
+
min-width: 7em;
|
14 |
+
box-shadow: -0.1em 0.1em 0.1em var(--lightest-grey);
|
15 |
+
transition: color 0.2s ease, background-color 0.2s ease;
|
16 |
+
}
|
17 |
+
|
18 |
+
.button[disabled] {
|
19 |
+
background-color: var(--lightest-grey);
|
20 |
+
color: var(--lighter-grey);
|
21 |
+
}
|
22 |
+
|
23 |
+
.button--selected-true {
|
24 |
+
background-color: var(--light-grey);
|
25 |
+
color: white;
|
26 |
+
box-shadow: -0.1em 0.1em 0.1em var(--blue);
|
27 |
+
}
|
28 |
+
|
29 |
+
.button:not([disabled]):hover,
|
30 |
+
.button:focus {
|
31 |
+
outline: none;
|
32 |
+
background-color: var(--light-grey);
|
33 |
+
color: white;
|
34 |
+
}
|
35 |
+
|
36 |
+
.button::after,
|
37 |
+
.button::after {
|
38 |
+
content: '';
|
39 |
+
position: absolute;
|
40 |
+
height: 100%;
|
41 |
+
width: 100%;
|
42 |
+
top: 0;
|
43 |
+
left: 0;
|
44 |
+
border-radius: 3em;
|
45 |
+
box-shadow: -var(--small) var(--small) var(--medium) var(--blue);
|
46 |
+
opacity: 0;
|
47 |
+
transition: opacity 0.2s ease;
|
48 |
+
}
|
49 |
+
|
50 |
+
.button:hover::after,
|
51 |
+
.button:focus::after {
|
52 |
+
opacity: 1;
|
53 |
+
}
|
src/css/Header.css
ADDED
@@ -0,0 +1,160 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
.header {
|
2 |
+
font-family: var(--font-2);
|
3 |
+
position: sticky;
|
4 |
+
top: 0;
|
5 |
+
background-color: var(--medium-grey);
|
6 |
+
box-shadow: 0 var(--small) var(--small) var(--light-grey);
|
7 |
+
padding: var(--medium);
|
8 |
+
z-index: 2;
|
9 |
+
}
|
10 |
+
|
11 |
+
.header__wrapper {
|
12 |
+
max-width: 40em;
|
13 |
+
width: 100%;
|
14 |
+
padding: var(--medium) var(--medium) 0 var(--medium);
|
15 |
+
margin: 0 auto;
|
16 |
+
}
|
17 |
+
|
18 |
+
.header__title {
|
19 |
+
background-color: var(--dark-grey);
|
20 |
+
text-align: center;
|
21 |
+
font-size: 2.5rem;
|
22 |
+
padding: 1rem;
|
23 |
+
border-radius: var(--large);
|
24 |
+
margin-bottom: 0.3em;
|
25 |
+
box-shadow: 0 0 var(--small) var(--lighter-grey);
|
26 |
+
line-height: 0.9;
|
27 |
+
}
|
28 |
+
|
29 |
+
.header__buttons {
|
30 |
+
display: flex;
|
31 |
+
flex-wrap: wrap;
|
32 |
+
justify-content: center;
|
33 |
+
gap: var(--medium);
|
34 |
+
}
|
35 |
+
|
36 |
+
.header__info {
|
37 |
+
display: flex;
|
38 |
+
font-size: 0.9rem;
|
39 |
+
margin-top: 1em;
|
40 |
+
align-items: center;
|
41 |
+
justify-content: space-between;
|
42 |
+
min-height: 32px;
|
43 |
+
}
|
44 |
+
|
45 |
+
.header__switch-container {
|
46 |
+
display: flex;
|
47 |
+
align-items: center;
|
48 |
+
}
|
49 |
+
|
50 |
+
.header__switch-label {
|
51 |
+
margin: 0;
|
52 |
+
color: var(--lighter-grey);
|
53 |
+
}
|
54 |
+
|
55 |
+
.header__switch-label--selected {
|
56 |
+
color: white;
|
57 |
+
}
|
58 |
+
|
59 |
+
.header__checkbox {
|
60 |
+
height: 0;
|
61 |
+
width: 0;
|
62 |
+
visibility: hidden;
|
63 |
+
}
|
64 |
+
|
65 |
+
.header__switch {
|
66 |
+
cursor: pointer;
|
67 |
+
width: 36px;
|
68 |
+
height: 20px;
|
69 |
+
margin-right: 6px;
|
70 |
+
background: var(--light-grey);
|
71 |
+
border-radius: 100px;
|
72 |
+
position: relative;
|
73 |
+
}
|
74 |
+
|
75 |
+
.header__switch:after {
|
76 |
+
content: '';
|
77 |
+
position: absolute;
|
78 |
+
top: 2px;
|
79 |
+
left: 2px;
|
80 |
+
width: 16px;
|
81 |
+
height: 16px;
|
82 |
+
background: white;
|
83 |
+
border-radius: 90px;
|
84 |
+
transition: background-color 0.2s;
|
85 |
+
}
|
86 |
+
|
87 |
+
.header__checkbox:checked + .header__switch {
|
88 |
+
background: var(--lighter-grey);
|
89 |
+
}
|
90 |
+
|
91 |
+
.header__checkbox:checked + .header__switch:after {
|
92 |
+
left: calc(100% - 2px);
|
93 |
+
transform: translateX(-100%);
|
94 |
+
}
|
95 |
+
|
96 |
+
.header__switch:active:after {
|
97 |
+
width: 18px;
|
98 |
+
height: 18px;
|
99 |
+
top: 1px;
|
100 |
+
}
|
101 |
+
|
102 |
+
.header__time {
|
103 |
+
visibility: hidden;
|
104 |
+
}
|
105 |
+
|
106 |
+
.header__time--visible {
|
107 |
+
visibility: visible;
|
108 |
+
}
|
109 |
+
|
110 |
+
@media (min-width: 640px) {
|
111 |
+
.header__title {
|
112 |
+
font-size: 3rem;
|
113 |
+
}
|
114 |
+
|
115 |
+
.header__dropdown--mobile-only {
|
116 |
+
display: none;
|
117 |
+
}
|
118 |
+
}
|
119 |
+
|
120 |
+
|
121 |
+
@media (max-width: 640px) {
|
122 |
+
.header {
|
123 |
+
padding: var(--small);
|
124 |
+
}
|
125 |
+
|
126 |
+
.header__wrapper {
|
127 |
+
padding: var(--small) var(--small) 0 var(--small);
|
128 |
+
}
|
129 |
+
|
130 |
+
.header__title {
|
131 |
+
font-size: 1.75rem;
|
132 |
+
padding: 0.6rem;
|
133 |
+
}
|
134 |
+
|
135 |
+
.header__info {
|
136 |
+
margin-top: 0.3em;
|
137 |
+
}
|
138 |
+
|
139 |
+
.header__buttons {
|
140 |
+
display: none;
|
141 |
+
}
|
142 |
+
}
|
143 |
+
|
144 |
+
.header__dropdown {
|
145 |
+
background-color: var(--lighter-grey);
|
146 |
+
padding: 0.3em;
|
147 |
+
border-radius: 16px;
|
148 |
+
font-family: var(--font-1);
|
149 |
+
outline: none;
|
150 |
+
}
|
151 |
+
|
152 |
+
.header__dropdown-container {
|
153 |
+
display: flex;
|
154 |
+
align-items: center;
|
155 |
+
font-family: var(--font-2);
|
156 |
+
}
|
157 |
+
|
158 |
+
.header__dropdown-label {
|
159 |
+
margin: 0 0.3em 0 0;
|
160 |
+
}
|
src/css/Player.css
ADDED
@@ -0,0 +1,300 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
.player {
|
2 |
+
border-radius: var(--large);
|
3 |
+
margin: var(--medium) 0;
|
4 |
+
background-color: var(--light-grey);
|
5 |
+
text-shadow: 0 1px 6px black;
|
6 |
+
padding: var(--medium);
|
7 |
+
display: grid;
|
8 |
+
align-items: center;
|
9 |
+
grid-template-columns: 2em 2em 2.5em 5.5em auto 2em 2.5em;
|
10 |
+
grid-template-rows: auto;
|
11 |
+
grid-template-areas:
|
12 |
+
'position image player player player multiplier score'
|
13 |
+
'position image team game-status game-score multiplier score'
|
14 |
+
'position image stats stats stats multiplier score';
|
15 |
+
}
|
16 |
+
|
17 |
+
.player__position {
|
18 |
+
font-family: var(--font-2);
|
19 |
+
font-size: 1.2rem;
|
20 |
+
grid-area: position;
|
21 |
+
padding-left: var(--small);
|
22 |
+
}
|
23 |
+
|
24 |
+
.player__image {
|
25 |
+
grid-area: image;
|
26 |
+
background-color: white;
|
27 |
+
border-radius: 2em;
|
28 |
+
overflow: hidden;
|
29 |
+
}
|
30 |
+
|
31 |
+
.player__img {
|
32 |
+
transform: translateY(5px);
|
33 |
+
filter: drop-shadow(0px 0px 1px var(--lighter-grey));
|
34 |
+
}
|
35 |
+
|
36 |
+
.player__name {
|
37 |
+
grid-area: player;
|
38 |
+
margin: 0 0.5em;
|
39 |
+
}
|
40 |
+
|
41 |
+
.player__team {
|
42 |
+
grid-area: team;
|
43 |
+
font-weight: 100;
|
44 |
+
font-size: 0.8rem;
|
45 |
+
margin: 0 0.7em;
|
46 |
+
}
|
47 |
+
|
48 |
+
.player__multiplier {
|
49 |
+
font-family: var(--font-3);
|
50 |
+
color: black;
|
51 |
+
grid-area: multiplier;
|
52 |
+
justify-self: end;
|
53 |
+
font-size: 0.8rem;
|
54 |
+
font-weight: 700;
|
55 |
+
border-radius: 100%;
|
56 |
+
padding: 0.4em;
|
57 |
+
box-shadow: 0 0 1px 1px white;
|
58 |
+
visibility: hidden;
|
59 |
+
text-shadow: none;
|
60 |
+
}
|
61 |
+
|
62 |
+
.player__multiplier--2 {
|
63 |
+
background-color: var(--bright-yellow);
|
64 |
+
visibility: visible;
|
65 |
+
}
|
66 |
+
|
67 |
+
.player__multiplier--3 {
|
68 |
+
background-color: var(--bright-blue);
|
69 |
+
visibility: visible;
|
70 |
+
}
|
71 |
+
|
72 |
+
.player__multiplier--4 {
|
73 |
+
background-color: var(--bright-green);
|
74 |
+
visibility: visible;
|
75 |
+
}
|
76 |
+
|
77 |
+
.player__score {
|
78 |
+
font-family: var(--font-3);
|
79 |
+
font-size: 1.2rem;
|
80 |
+
grid-area: score;
|
81 |
+
justify-self: end;
|
82 |
+
}
|
83 |
+
|
84 |
+
.player__game-status,
|
85 |
+
.player__game-score {
|
86 |
+
font-size: 0.8rem;
|
87 |
+
}
|
88 |
+
|
89 |
+
.player__game-status {
|
90 |
+
grid-area: game-status;
|
91 |
+
padding-left: var(--large);
|
92 |
+
}
|
93 |
+
|
94 |
+
.player__game-score {
|
95 |
+
grid-area: game-score;
|
96 |
+
}
|
97 |
+
|
98 |
+
@media (min-width: 640px) {
|
99 |
+
.player {
|
100 |
+
max-width: 8em;
|
101 |
+
grid-template-columns: 60% 40%;
|
102 |
+
grid-template-rows: auto 4em 3em 1.2em 2em;
|
103 |
+
grid-template-areas:
|
104 |
+
'position multiplier'
|
105 |
+
'image image'
|
106 |
+
'player player'
|
107 |
+
'game-status game-score'
|
108 |
+
'stats stats';
|
109 |
+
align-items: end;
|
110 |
+
box-shadow: 0 0 2px 1px white;
|
111 |
+
}
|
112 |
+
|
113 |
+
.player--total-week {
|
114 |
+
grid-template-rows: auto 4em 3em 0 0;
|
115 |
+
}
|
116 |
+
|
117 |
+
.player__position {
|
118 |
+
padding: 0;
|
119 |
+
}
|
120 |
+
|
121 |
+
.player__image {
|
122 |
+
background: none;
|
123 |
+
}
|
124 |
+
|
125 |
+
.player__img {
|
126 |
+
transform: unset;
|
127 |
+
filter: drop-shadow(0 0 1px rgba(221, 221, 221, 0.9));
|
128 |
+
}
|
129 |
+
|
130 |
+
.player__name {
|
131 |
+
background-color: rgba(221, 221, 221, 0.9);
|
132 |
+
color: black;
|
133 |
+
border-radius: 0.3rem;
|
134 |
+
padding: var(--small);
|
135 |
+
overflow-wrap: break-word;
|
136 |
+
margin: 0.3em 0;
|
137 |
+
box-shadow: 0 0 2px 1px white;
|
138 |
+
min-height: 4em;
|
139 |
+
z-index: 1;
|
140 |
+
text-shadow: none;
|
141 |
+
}
|
142 |
+
|
143 |
+
.player__score,
|
144 |
+
.player__team {
|
145 |
+
grid-area: player;
|
146 |
+
color: black;
|
147 |
+
z-index: 1;
|
148 |
+
text-shadow: none;
|
149 |
+
}
|
150 |
+
|
151 |
+
.player__score {
|
152 |
+
font-weight: 700;
|
153 |
+
margin: 0.1em var(--small);
|
154 |
+
}
|
155 |
+
|
156 |
+
.player__team {
|
157 |
+
margin: var(--medium) var(--small);
|
158 |
+
}
|
159 |
+
|
160 |
+
.player__multiplier {
|
161 |
+
transform: translate(0.3em, -0.3em);
|
162 |
+
padding: 0.2em;
|
163 |
+
}
|
164 |
+
|
165 |
+
.player__game-status {
|
166 |
+
padding-left: 0;
|
167 |
+
}
|
168 |
+
|
169 |
+
.player__game-score {
|
170 |
+
text-align: right;
|
171 |
+
}
|
172 |
+
}
|
173 |
+
|
174 |
+
.player--ARI {
|
175 |
+
background-color: #97233f;
|
176 |
+
}
|
177 |
+
|
178 |
+
.player--ATL {
|
179 |
+
background-color: #a71930;
|
180 |
+
}
|
181 |
+
|
182 |
+
.player--BAL {
|
183 |
+
background-color: #241773;
|
184 |
+
}
|
185 |
+
|
186 |
+
.player--BUF {
|
187 |
+
background-color: #00338d;
|
188 |
+
}
|
189 |
+
|
190 |
+
.player--CAR {
|
191 |
+
background-color: #0085ca;
|
192 |
+
}
|
193 |
+
|
194 |
+
.player--CHI {
|
195 |
+
background-color: #0b162a;
|
196 |
+
}
|
197 |
+
|
198 |
+
.player--CIN {
|
199 |
+
background-color: #fb4f14;
|
200 |
+
}
|
201 |
+
|
202 |
+
.player--CLE {
|
203 |
+
background-color: #ff3c00;
|
204 |
+
}
|
205 |
+
|
206 |
+
.player--DAL {
|
207 |
+
background-color: #7f9695;
|
208 |
+
}
|
209 |
+
|
210 |
+
.player--DEN {
|
211 |
+
background-color: #002244;
|
212 |
+
}
|
213 |
+
|
214 |
+
.player--DET {
|
215 |
+
background-color: #0076b6;
|
216 |
+
}
|
217 |
+
|
218 |
+
.player--GB {
|
219 |
+
background-color: #203731;
|
220 |
+
}
|
221 |
+
|
222 |
+
.player--HOU {
|
223 |
+
background-color: #03202f;
|
224 |
+
}
|
225 |
+
|
226 |
+
.player--IND {
|
227 |
+
background-color: #002c5f;
|
228 |
+
}
|
229 |
+
|
230 |
+
.player--JAX {
|
231 |
+
background-color: #006778;
|
232 |
+
}
|
233 |
+
|
234 |
+
.player--KC {
|
235 |
+
background-color: #e31837;
|
236 |
+
}
|
237 |
+
|
238 |
+
.player--LAC {
|
239 |
+
background-color: #ffc20e;
|
240 |
+
}
|
241 |
+
|
242 |
+
.player--LAR {
|
243 |
+
background-color: #ffd100;
|
244 |
+
}
|
245 |
+
|
246 |
+
.player--LV {
|
247 |
+
background-color: #a5acaf;
|
248 |
+
}
|
249 |
+
|
250 |
+
.player--MIA {
|
251 |
+
background-color: #008e97;
|
252 |
+
}
|
253 |
+
|
254 |
+
.player--MIN {
|
255 |
+
background-color: #4f2683;
|
256 |
+
}
|
257 |
+
|
258 |
+
.player--NE {
|
259 |
+
background-color: #c60c30;
|
260 |
+
}
|
261 |
+
|
262 |
+
.player--NO {
|
263 |
+
background-color: #d3bc8d;
|
264 |
+
}
|
265 |
+
|
266 |
+
.player--NYG {
|
267 |
+
background-color: #0b2265;
|
268 |
+
}
|
269 |
+
|
270 |
+
.player--NYJ {
|
271 |
+
background-color: #125740;
|
272 |
+
}
|
273 |
+
|
274 |
+
.player--PHI {
|
275 |
+
background-color: #004c54;
|
276 |
+
}
|
277 |
+
|
278 |
+
.player--PIT {
|
279 |
+
background-color: #ffb612;
|
280 |
+
}
|
281 |
+
|
282 |
+
.player--SEA {
|
283 |
+
background-color: #69be28;
|
284 |
+
}
|
285 |
+
|
286 |
+
.player--SF {
|
287 |
+
background-color: #aa0000;
|
288 |
+
}
|
289 |
+
|
290 |
+
.player--TB {
|
291 |
+
background-color: #d50a0a;
|
292 |
+
}
|
293 |
+
|
294 |
+
.player--TEN {
|
295 |
+
background-color: #4b92db;
|
296 |
+
}
|
297 |
+
|
298 |
+
.player--WAS {
|
299 |
+
background-color: #773141;
|
300 |
+
}
|
src/css/PlayerStats.css
ADDED
@@ -0,0 +1,38 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
.player-stats {
|
2 |
+
grid-area: stats;
|
3 |
+
align-self: start;
|
4 |
+
margin-top: var(--small);
|
5 |
+
margin-left: var(--medium);
|
6 |
+
display: flex;
|
7 |
+
justify-content: space-between;
|
8 |
+
}
|
9 |
+
|
10 |
+
.stat {
|
11 |
+
font-size: 0.6rem;
|
12 |
+
width: 2.5rem;
|
13 |
+
}
|
14 |
+
|
15 |
+
.stat__key,
|
16 |
+
.stat__value {
|
17 |
+
display: inline;
|
18 |
+
}
|
19 |
+
|
20 |
+
.stat__value {
|
21 |
+
margin-left: var(--small);
|
22 |
+
}
|
23 |
+
|
24 |
+
@media (min-width: 640px) {
|
25 |
+
.player-stats {
|
26 |
+
justify-content: unset;
|
27 |
+
}
|
28 |
+
|
29 |
+
.player-stats,
|
30 |
+
.stat__value {
|
31 |
+
margin-left: 0;
|
32 |
+
}
|
33 |
+
|
34 |
+
.stat__key {
|
35 |
+
display: block;
|
36 |
+
margin-left: 0;
|
37 |
+
}
|
38 |
+
}
|
src/css/Scoreboard.css
ADDED
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
1 |
+
.scoreboard {
|
2 |
+
margin: auto;
|
3 |
+
max-width: 70em;
|
4 |
+
}
|
src/css/SelectionBoard.css
ADDED
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
1 |
+
.scoreboard {
|
2 |
+
margin: auto;
|
3 |
+
max-width: 70em;
|
4 |
+
}
|
src/css/SelectionRow.css
ADDED
@@ -0,0 +1,147 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
.user {
|
2 |
+
border-radius: var(--large);
|
3 |
+
margin: var(--medium) var(--small);
|
4 |
+
background-color: var(--dark-grey);
|
5 |
+
box-shadow: 0 0 0.1em 0.1em white;
|
6 |
+
padding: 1em;
|
7 |
+
display: grid;
|
8 |
+
align-items: center;
|
9 |
+
grid-template-columns: 3.3em auto 4em;
|
10 |
+
grid-template-rows: auto;
|
11 |
+
grid-template-areas:
|
12 |
+
'place username score'
|
13 |
+
'roster roster roster';
|
14 |
+
}
|
15 |
+
|
16 |
+
.user__place {
|
17 |
+
font-size: 1.5rem;
|
18 |
+
font-family: var(--font-3);
|
19 |
+
font-weight: 700;
|
20 |
+
grid-area: place;
|
21 |
+
justify-self: left;
|
22 |
+
}
|
23 |
+
|
24 |
+
.user__username {
|
25 |
+
grid-area: username;
|
26 |
+
font-weight: 100;
|
27 |
+
font-size: 1.2rem;
|
28 |
+
}
|
29 |
+
|
30 |
+
.user__score-type {
|
31 |
+
display: none;
|
32 |
+
font-size: 1.2rem;
|
33 |
+
font-weight: 100;
|
34 |
+
justify-self: end;
|
35 |
+
margin-right: 4em;
|
36 |
+
}
|
37 |
+
|
38 |
+
.user__score-number {
|
39 |
+
font-family: var(--font-3);
|
40 |
+
font-size: 1.25rem;
|
41 |
+
font-weight: 700;
|
42 |
+
padding: 0.1em 0.25em;
|
43 |
+
grid-area: score;
|
44 |
+
justify-self: end;
|
45 |
+
width: 2.3em;
|
46 |
+
text-align: right;
|
47 |
+
box-shadow: 0 0 0.1em 0.05em var(--yellow);
|
48 |
+
border-radius: var(--small);
|
49 |
+
line-height: 1;
|
50 |
+
}
|
51 |
+
|
52 |
+
.user__roster {
|
53 |
+
margin-top: var(--small);
|
54 |
+
grid-area: roster;
|
55 |
+
}
|
56 |
+
|
57 |
+
|
58 |
+
@media (max-width: 640px) {
|
59 |
+
.user {
|
60 |
+
padding: 0.6em;
|
61 |
+
}
|
62 |
+
|
63 |
+
.user__arrow {
|
64 |
+
grid-area: place;
|
65 |
+
width: 0;
|
66 |
+
height: 0;
|
67 |
+
margin-top: -2px;
|
68 |
+
margin-left: 2px;
|
69 |
+
border-top: 6px solid transparent;
|
70 |
+
border-bottom: 6px solid transparent;
|
71 |
+
border-left: 6px solid white;
|
72 |
+
}
|
73 |
+
|
74 |
+
.user__arrow--down {
|
75 |
+
border-left: 6px solid transparent;
|
76 |
+
border-right: 6px solid transparent;
|
77 |
+
border-top: 6px solid white;
|
78 |
+
margin-top: 6px;
|
79 |
+
margin-left: 0;
|
80 |
+
}
|
81 |
+
|
82 |
+
.user__place {
|
83 |
+
margin-left: 16px;
|
84 |
+
}
|
85 |
+
.user__roster--collapsed {
|
86 |
+
display: flex;
|
87 |
+
gap: 4px;
|
88 |
+
}
|
89 |
+
.user__roster--collapsed .player__name,
|
90 |
+
.user__roster--collapsed .player__team,
|
91 |
+
.user__roster--collapsed .player__multiplier,
|
92 |
+
.user__roster--collapsed .player__game-status,
|
93 |
+
.user__roster--collapsed .player__game-score,
|
94 |
+
.user__roster--collapsed .player-stats {
|
95 |
+
display: none;
|
96 |
+
}
|
97 |
+
.user__roster--collapsed .player {
|
98 |
+
display: flex;
|
99 |
+
flex-direction: column;
|
100 |
+
border-radius: 10px;
|
101 |
+
padding: var(--small);
|
102 |
+
max-width: 48px;
|
103 |
+
}
|
104 |
+
|
105 |
+
.user__roster--collapsed .player__position,
|
106 |
+
.user__roster--collapsed .player__score {
|
107 |
+
font-size: 0.8rem;
|
108 |
+
}
|
109 |
+
}
|
110 |
+
|
111 |
+
|
112 |
+
@media (min-width: 640px) {
|
113 |
+
.user {
|
114 |
+
grid-template-columns: 2.5em auto 12em;
|
115 |
+
max-width: 41em;
|
116 |
+
margin-left: auto;
|
117 |
+
margin-right: auto;
|
118 |
+
}
|
119 |
+
|
120 |
+
.user__place,
|
121 |
+
.user__score-number {
|
122 |
+
font-size: 1.8rem;
|
123 |
+
}
|
124 |
+
|
125 |
+
.user__username {
|
126 |
+
font-size: 1.7rem;
|
127 |
+
}
|
128 |
+
|
129 |
+
.user__score-type {
|
130 |
+
display: block;
|
131 |
+
grid-area: score;
|
132 |
+
}
|
133 |
+
|
134 |
+
.user__roster {
|
135 |
+
display: flex;
|
136 |
+
flex-wrap: wrap;
|
137 |
+
justify-content: center;
|
138 |
+
gap: var(--medium);
|
139 |
+
margin-top: 1em;
|
140 |
+
}
|
141 |
+
}
|
142 |
+
|
143 |
+
@media (min-width: 1130px) {
|
144 |
+
.user {
|
145 |
+
max-width: 100%;
|
146 |
+
}
|
147 |
+
}
|
src/css/User.css
ADDED
@@ -0,0 +1,162 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
.user {
|
2 |
+
border-radius: var(--large);
|
3 |
+
margin: var(--medium) var(--small);
|
4 |
+
background-color: var(--dark-grey);
|
5 |
+
box-shadow: 0 0 0.1em 0.1em white;
|
6 |
+
padding: 1em;
|
7 |
+
display: grid;
|
8 |
+
align-items: center;
|
9 |
+
grid-template-columns: 3.3em auto 4em;
|
10 |
+
grid-template-rows: auto;
|
11 |
+
grid-template-areas:
|
12 |
+
'place username score'
|
13 |
+
'roster roster roster';
|
14 |
+
}
|
15 |
+
|
16 |
+
.user__place {
|
17 |
+
font-size: 1.5rem;
|
18 |
+
font-family: var(--font-3);
|
19 |
+
font-weight: 700;
|
20 |
+
grid-area: place;
|
21 |
+
justify-self: left;
|
22 |
+
}
|
23 |
+
|
24 |
+
.user__username {
|
25 |
+
grid-area: username;
|
26 |
+
font-weight: 100;
|
27 |
+
font-size: 1.2rem;
|
28 |
+
}
|
29 |
+
|
30 |
+
.user__score-type {
|
31 |
+
display: none;
|
32 |
+
font-size: 1.2rem;
|
33 |
+
font-weight: 100;
|
34 |
+
justify-self: end;
|
35 |
+
margin-right: 4em;
|
36 |
+
}
|
37 |
+
|
38 |
+
.user__score-number {
|
39 |
+
font-family: var(--font-3);
|
40 |
+
font-size: 1.25rem;
|
41 |
+
font-weight: 700;
|
42 |
+
padding: 0.1em 0.25em;
|
43 |
+
grid-area: score;
|
44 |
+
justify-self: end;
|
45 |
+
width: 2.3em;
|
46 |
+
text-align: right;
|
47 |
+
box-shadow: 0 0 0.1em 0.05em var(--yellow);
|
48 |
+
border-radius: var(--small);
|
49 |
+
line-height: 1;
|
50 |
+
}
|
51 |
+
|
52 |
+
.user__roster {
|
53 |
+
margin-top: var(--small);
|
54 |
+
grid-area: roster;
|
55 |
+
}
|
56 |
+
|
57 |
+
|
58 |
+
@media (max-width: 640px) {
|
59 |
+
.user {
|
60 |
+
padding: 0.6em;
|
61 |
+
}
|
62 |
+
|
63 |
+
.user__arrow {
|
64 |
+
grid-area: place;
|
65 |
+
width: 0;
|
66 |
+
height: 0;
|
67 |
+
margin-top: -2px;
|
68 |
+
margin-left: 2px;
|
69 |
+
border-top: 6px solid transparent;
|
70 |
+
border-bottom: 6px solid transparent;
|
71 |
+
border-left: 6px solid white;
|
72 |
+
}
|
73 |
+
|
74 |
+
.user__arrow--down {
|
75 |
+
border-left: 6px solid transparent;
|
76 |
+
border-right: 6px solid transparent;
|
77 |
+
border-top: 6px solid white;
|
78 |
+
margin-top: 6px;
|
79 |
+
margin-left: 0;
|
80 |
+
}
|
81 |
+
|
82 |
+
.user__place {
|
83 |
+
margin-left: 16px;
|
84 |
+
}
|
85 |
+
.user__roster--collapsed {
|
86 |
+
display: flex;
|
87 |
+
gap: 4px;
|
88 |
+
}
|
89 |
+
.user__roster--collapsed .player__name,
|
90 |
+
.user__roster--collapsed .player__team,
|
91 |
+
.user__roster--collapsed .player__multiplier,
|
92 |
+
.user__roster--collapsed .player__game-status,
|
93 |
+
.user__roster--collapsed .player__game-score,
|
94 |
+
.user__roster--collapsed .player-stats {
|
95 |
+
display: none;
|
96 |
+
}
|
97 |
+
.user__roster--collapsed .player {
|
98 |
+
display: flex;
|
99 |
+
flex-direction: column;
|
100 |
+
border-radius: 10px;
|
101 |
+
padding: var(--small);
|
102 |
+
}
|
103 |
+
|
104 |
+
.user__roster--collapsed .player__position,
|
105 |
+
.user__roster--collapsed .player__score {
|
106 |
+
font-size: 0.8rem;
|
107 |
+
}
|
108 |
+
|
109 |
+
.user__roster--collapsed .player__image {
|
110 |
+
border: 3px solid transparent;
|
111 |
+
box-shadow: 0 0 7px black;
|
112 |
+
}
|
113 |
+
|
114 |
+
.user__roster--collapsed .player__image--2 {
|
115 |
+
border-color: var(--bright-yellow);
|
116 |
+
}
|
117 |
+
|
118 |
+
.user__roster--collapsed .player__image--3 {
|
119 |
+
border-color: var(--bright-blue);
|
120 |
+
}
|
121 |
+
|
122 |
+
.user__roster--collapsed .player__image--4 {
|
123 |
+
border-color: var(--bright-green);
|
124 |
+
}
|
125 |
+
}
|
126 |
+
|
127 |
+
@media (min-width: 640px) {
|
128 |
+
.user {
|
129 |
+
grid-template-columns: 2.5em auto 12em;
|
130 |
+
max-width: 41em;
|
131 |
+
margin-left: auto;
|
132 |
+
margin-right: auto;
|
133 |
+
}
|
134 |
+
|
135 |
+
.user__place,
|
136 |
+
.user__score-number {
|
137 |
+
font-size: 1.8rem;
|
138 |
+
}
|
139 |
+
|
140 |
+
.user__username {
|
141 |
+
font-size: 1.7rem;
|
142 |
+
}
|
143 |
+
|
144 |
+
.user__score-type {
|
145 |
+
display: block;
|
146 |
+
grid-area: score;
|
147 |
+
}
|
148 |
+
|
149 |
+
.user__roster {
|
150 |
+
display: flex;
|
151 |
+
flex-wrap: wrap;
|
152 |
+
justify-content: center;
|
153 |
+
gap: var(--medium);
|
154 |
+
margin-top: 1em;
|
155 |
+
}
|
156 |
+
}
|
157 |
+
|
158 |
+
@media (min-width: 1130px) {
|
159 |
+
.user {
|
160 |
+
max-width: 100%;
|
161 |
+
}
|
162 |
+
}
|
src/css/index.css
ADDED
@@ -0,0 +1,42 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
:root {
|
2 |
+
--lightest-grey: #dddddd;
|
3 |
+
--lighter-grey: #909090;
|
4 |
+
--light-grey: #505050;
|
5 |
+
--medium-grey: #282828;
|
6 |
+
--dark-grey: #101010;
|
7 |
+
--blue: #0965bb;
|
8 |
+
--yellow: #f4d03f;
|
9 |
+
--bright-yellow: #f8fc22;
|
10 |
+
--bright-green: #82fb18;
|
11 |
+
--bright-blue: #22fcf4;
|
12 |
+
|
13 |
+
--small: 0.2em;
|
14 |
+
--medium: 0.5em;
|
15 |
+
--large: 1em;
|
16 |
+
--font-1: 'Poppins', sans-serif;
|
17 |
+
--font-2: 'Staatliches', cursive;
|
18 |
+
--font-3: 'Kameron', serif;
|
19 |
+
}
|
20 |
+
|
21 |
+
* {
|
22 |
+
box-sizing: border-box;
|
23 |
+
}
|
24 |
+
|
25 |
+
body {
|
26 |
+
margin: 0;
|
27 |
+
font-family: var(--font-1);
|
28 |
+
font-size: 1rem;
|
29 |
+
line-height: 1.2;
|
30 |
+
background-color: var(--medium-grey);
|
31 |
+
color: #fff;
|
32 |
+
}
|
33 |
+
|
34 |
+
img {
|
35 |
+
max-width: 100%;
|
36 |
+
}
|
37 |
+
|
38 |
+
ul,
|
39 |
+
ol {
|
40 |
+
list-style-type: none;
|
41 |
+
padding-left: 0;
|
42 |
+
}
|