Skip to content

Commit 8661fe1

Browse files
committed
Initial commit
0 parents  commit 8661fe1

21 files changed

+13538
-0
lines changed

.gitignore

Lines changed: 104 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,104 @@
1+
# Logs
2+
logs
3+
*.log
4+
npm-debug.log*
5+
yarn-debug.log*
6+
yarn-error.log*
7+
lerna-debug.log*
8+
9+
# Diagnostic reports (https://nodejs.org/api/report.html)
10+
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
11+
12+
# Runtime data
13+
pids
14+
*.pid
15+
*.seed
16+
*.pid.lock
17+
18+
# Directory for instrumented libs generated by jscoverage/JSCover
19+
lib-cov
20+
21+
# Coverage directory used by tools like istanbul
22+
coverage
23+
*.lcov
24+
25+
# nyc test coverage
26+
.nyc_output
27+
28+
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
29+
.grunt
30+
31+
# Bower dependency directory (https://bower.io/)
32+
bower_components
33+
34+
# node-waf configuration
35+
.lock-wscript
36+
37+
# Compiled binary addons (https://nodejs.org/api/addons.html)
38+
build/Release
39+
40+
# Dependency directories
41+
node_modules/
42+
jspm_packages/
43+
44+
# TypeScript v1 declaration files
45+
typings/
46+
47+
# TypeScript cache
48+
*.tsbuildinfo
49+
50+
# Optional npm cache directory
51+
.npm
52+
53+
# Optional eslint cache
54+
.eslintcache
55+
56+
# Microbundle cache
57+
.rpt2_cache/
58+
.rts2_cache_cjs/
59+
.rts2_cache_es/
60+
.rts2_cache_umd/
61+
62+
# Optional REPL history
63+
.node_repl_history
64+
65+
# Output of 'npm pack'
66+
*.tgz
67+
68+
# Yarn Integrity file
69+
.yarn-integrity
70+
71+
# dotenv environment variables file
72+
.env
73+
.env.test
74+
75+
# parcel-bundler cache (https://parceljs.org/)
76+
.cache
77+
78+
# Next.js build output
79+
.next
80+
81+
# Nuxt.js build / generate output
82+
.nuxt
83+
dist
84+
85+
# Gatsby files
86+
.cache/
87+
# Comment in the public line in if your project uses Gatsby and *not* Next.js
88+
# https://nextjs.org/blog/next-9-1#public-directory-support
89+
# public
90+
91+
# vuepress build output
92+
.vuepress/dist
93+
94+
# Serverless directories
95+
.serverless/
96+
97+
# FuseBox cache
98+
.fusebox/
99+
100+
# DynamoDB Local files
101+
.dynamodb/
102+
103+
# TernJS port file
104+
.tern-port

LICENSE

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
The MIT License (MIT)
2+
Copyright (c) 2020 Design Shift Consulting. All Rights Reserved.
3+
https://designshift.ca
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
6+
7+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
8+
9+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

content/css/style.css

Lines changed: 146 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,146 @@
1+
html, body {
2+
background: #202427;
3+
font-family: Arial, Helvetica, sans-serif;
4+
}
5+
6+
p, span, h1, h2 {
7+
cursor: default;
8+
-webkit-user-select: none;
9+
-moz-user-select: none;
10+
-ms-user-select: none;
11+
user-select: none;
12+
}
13+
14+
.viewport-frame {
15+
padding-top: 56px;
16+
height: 100vh;
17+
overflow: auto;
18+
background: #202427;
19+
color: #D8DCDF;
20+
}
21+
22+
.viewTitle {
23+
margin-top: 2rem;
24+
}
25+
26+
input[type='color'] {
27+
padding: 0;
28+
background: rgba(0, 0, 0, 0);
29+
border: none;
30+
}
31+
32+
input[type='color']:active {
33+
background: rgba(0, 0, 0, 0);
34+
border: none;
35+
}
36+
37+
.form-control:disabled {
38+
background: #CCCCCC;
39+
color: #999999;
40+
}
41+
42+
.view {
43+
width: 100%;
44+
height: 100%;
45+
}
46+
47+
#viewTallyError {
48+
width: 100%;
49+
height: 100%;
50+
}
51+
52+
#viewTallyError .errMsg {
53+
position: absolute;
54+
top: 50%;
55+
left: 50%;
56+
-webkit-transform: translateX(-50%);
57+
transform: translateX(-50%);
58+
}
59+
60+
#viewTallyRenderer.viewSingleTally {
61+
height: 100%;
62+
width: 100%;
63+
}
64+
65+
#viewTallyRenderer.viewMultiTally {
66+
display: -ms-grid;
67+
display: grid;
68+
grid-gap: 16px;
69+
-ms-grid-columns: (minmax(10rem, 1fr))[auto-fill];
70+
grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr));
71+
grid-auto-rows: 1fr;
72+
padding: 16px;
73+
}
74+
75+
#viewTallyRenderer.viewMultiTally::before {
76+
content: '';
77+
-ms-grid-column: 1;
78+
grid-column: 1 / 1;
79+
-ms-grid-row: 1;
80+
grid-row: 1 / 1;
81+
padding-bottom: 100%;
82+
width: 0;
83+
}
84+
85+
#viewTallyRenderer.viewMultiTally > *:first-child {
86+
-ms-grid-column: 1;
87+
grid-column: 1 / 1;
88+
-ms-grid-row: 1;
89+
grid-row: 1 / 1;
90+
}
91+
92+
#btn-group-voice button {
93+
margin-left: 1em;
94+
}
95+
96+
.tally {
97+
position: relative;
98+
-webkit-transition: -webkit-box-shadow 0.5s ease-out;
99+
transition: -webkit-box-shadow 0.5s ease-out;
100+
transition: box-shadow 0.5s ease-out;
101+
transition: box-shadow 0.5s ease-out, -webkit-box-shadow 0.5s ease-out;
102+
}
103+
104+
.tally[data-tally-state='preview'], .tally[data-tally-state='program'] {
105+
-webkit-box-shadow: inset 0 0 40px 15px rgba(20, 20, 20, 0.3);
106+
box-shadow: inset 0 0 40px 15px rgba(20, 20, 20, 0.3);
107+
}
108+
109+
.tally.tally-single {
110+
height: 100%;
111+
width: 100%;
112+
}
113+
114+
.tally.tally-multi {
115+
border-radius: 5px;
116+
}
117+
118+
.tally .tallyCameraLabel {
119+
background: rgba(0, 0, 0, 0.5);
120+
border-radius: 16px;
121+
text-align: center;
122+
display: block;
123+
font-weight: bold;
124+
padding: 0.3em 0.5em;
125+
}
126+
127+
.tally .tallyCameraId {
128+
color: black;
129+
font-family: Arial, Helvetica, sans-serif;
130+
font-size: 72px;
131+
font-weight: bold;
132+
left: 50%;
133+
position: absolute;
134+
text-shadow: 0px 3px 3px rgba(20, 20, 20, 0.3);
135+
top: 50%;
136+
-webkit-transform: translateX(-50%) translateY(-50%);
137+
transform: translateX(-50%) translateY(-50%);
138+
}
139+
140+
.tally .tallyCameraLabel {
141+
bottom: 5%;
142+
left: 50%;
143+
position: absolute;
144+
-webkit-transform: translateX(-50%);
145+
transform: translateX(-50%);
146+
}

content/css/style.min.css

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

content/css/style.scss

Lines changed: 133 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,133 @@
1+
html, body {
2+
background: #202427;
3+
font-family: Arial, Helvetica, sans-serif;
4+
}
5+
6+
p, span, h1, h2 {
7+
cursor: default;
8+
user-select: none;
9+
}
10+
11+
.viewport-frame {
12+
padding-top: 56px;
13+
height: 100vh;
14+
overflow: auto;
15+
background: #202427;
16+
color: #D8DCDF;
17+
}
18+
19+
.viewTitle {
20+
margin-top: 2rem;
21+
}
22+
23+
input[type='color'] {
24+
padding: 0;
25+
background: rgba(0, 0, 0, 0);
26+
border: none;
27+
&:active {
28+
background: rgba(0, 0, 0, 0);
29+
border: none;
30+
}
31+
}
32+
33+
.form-control:disabled {
34+
background: #CCCCCC;
35+
color: #999999;
36+
}
37+
38+
.view {
39+
width: 100%;
40+
height: 100%;
41+
}
42+
43+
#viewTallyError {
44+
width: 100%;
45+
height: 100%;
46+
.errMsg {
47+
position: absolute;
48+
top: 50%;
49+
left: 50%;
50+
transform: translateX(-50%);
51+
}
52+
}
53+
54+
#viewTallyRenderer {
55+
// min-height: 100%;
56+
// height: 100%;
57+
// overflow: auto;
58+
&.viewSingleTally {
59+
height: 100%;
60+
width: 100%;
61+
}
62+
&.viewMultiTally {
63+
display: grid;
64+
grid-gap: 16px;
65+
grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr));
66+
grid-auto-rows: 1fr;
67+
padding: 16px;
68+
&::before {
69+
content: '';
70+
grid-column: 1 / 1;
71+
grid-row: 1 / 1;
72+
padding-bottom: 100%;
73+
width: 0;
74+
}
75+
&>*:first-child {
76+
grid-column: 1 / 1;
77+
grid-row: 1 / 1;
78+
}
79+
}
80+
}
81+
82+
#btn-group-voice button {
83+
margin-left: 1em;
84+
}
85+
86+
.tally {
87+
position: relative;
88+
transition: box-shadow 0.5s ease-out;
89+
// &[data-tally-state='inactive'] {
90+
// background: #333333;
91+
// }
92+
// &[data-tally-state='preview'] {
93+
// background: #00FF00;
94+
// }
95+
// &[data-tally-state='program'] {
96+
// background: #FF0000;
97+
// }
98+
&[data-tally-state='preview'], &[data-tally-state='program'] {
99+
box-shadow: inset 0 0 40px 15px rgba(20, 20, 20, 0.3);
100+
}
101+
&.tally-single {
102+
height: 100%;
103+
width: 100%;
104+
}
105+
&.tally-multi {
106+
border-radius: 5px;
107+
}
108+
.tallyCameraLabel {
109+
background: rgba(0, 0, 0, 0.5);
110+
border-radius: 16px;
111+
text-align: center;
112+
display: block;
113+
font-weight: bold;
114+
padding: 0.3em 0.5em;
115+
}
116+
.tallyCameraId {
117+
color: black;
118+
font-family: Arial, Helvetica, sans-serif;
119+
font-size: 72px;
120+
font-weight: bold;
121+
left: 50%;
122+
position: absolute;
123+
text-shadow: 0px 3px 3px rgba(20, 20, 20, 0.3);
124+
top: 50%;
125+
transform: translateX(-50%) translateY(-50%);
126+
}
127+
.tallyCameraLabel {
128+
bottom: 5%;
129+
left: 50%;
130+
position: absolute;
131+
transform: translateX(-50%);
132+
}
133+
}

0 commit comments

Comments
 (0)