-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
302 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,128 @@ | ||
@import "vars"; | ||
|
||
.roster { | ||
display: grid; | ||
grid-template-columns: 1fr; | ||
grid-template-rows: 8vh auto; | ||
padding-bottom: 2vh; | ||
padding-right: 2vh; | ||
|
||
|
||
} | ||
|
||
.roster__roster { | ||
background: $dark--background; | ||
-webkit-border-radius: $rounding; | ||
-moz-border-radius: $rounding; | ||
border-radius: $rounding; | ||
overflow-y: scroll; | ||
padding: 2%; | ||
|
||
} | ||
|
||
.roster__buttonRow { | ||
display: flex; | ||
justify-content: space-between; | ||
align-items: center; | ||
} | ||
|
||
.buttonRow__addPerson { | ||
@include button; | ||
background: $orange; | ||
justify-self: flex-end; | ||
padding: 1% 2%; | ||
color: white; | ||
font-size: 1rem; | ||
display: inline!important; | ||
} | ||
|
||
.buttonRow__checkbox { | ||
|
||
padding: 0.5%; | ||
font-size: 1rem; | ||
display: inline-flex; | ||
min-width: 15vw; | ||
|
||
align-items: center; | ||
background: $dark--background; | ||
color: white; | ||
border: none; | ||
-webkit-border-radius: $rounding; | ||
-moz-border-radius: $rounding; | ||
border-radius: $rounding; | ||
|
||
.buttonRow__checkbox__box { | ||
background: $dark; | ||
width: 2vw; | ||
height: 2vw; | ||
-webkit-border-radius: $rounding; | ||
-moz-border-radius: $rounding; | ||
border-radius: $rounding; | ||
|
||
} | ||
|
||
p { | ||
margin-left: 1vw; | ||
} | ||
|
||
text-align: left; | ||
|
||
&:focus { | ||
outline: none; | ||
} | ||
} | ||
.roster__person { | ||
display: flex; | ||
align-items: center; | ||
height: 5vh; | ||
border: $grey 1px none; | ||
border-top-style: solid; | ||
} | ||
@mixin person__info { | ||
overflow: hidden; | ||
display: block; | ||
margin: 0 0.5%; | ||
font-size: 0.9rem; | ||
} | ||
.person__info--name { | ||
@include person__info; | ||
font-weight: bold; | ||
font-size: 1rem; | ||
width: 16rem; | ||
|
||
|
||
} | ||
.person__info--role { | ||
@include person__info; | ||
width: 4rem; | ||
} | ||
.person__info--gender { | ||
@include person__info; | ||
width: 3rem; | ||
} | ||
|
||
.person__info--school { | ||
@include person__info; | ||
width: 13rem; | ||
font-size: 0.8rem; | ||
} | ||
.person__info--waiverStatus { | ||
@include person__info; | ||
width: 10.5rem; | ||
|
||
|
||
} | ||
.roster__person { | ||
.orange { | ||
color: $orange; | ||
} | ||
.blue { | ||
color: $blue; | ||
} | ||
.yellow { | ||
color:$yellow; | ||
} | ||
.red { | ||
color: $red; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,18 @@ | ||
$dark: #27293D; | ||
$dark: #1D1D2E; | ||
$dark--background: #27293D; | ||
$orange: #FDA085; | ||
$yellow: #F6D365; | ||
$grey: #4F5160; | ||
|
||
$rounding: 10px; | ||
$blue: #4281A4; | ||
$red: #ff4d4d; | ||
|
||
@mixin button { | ||
padding: 4% 5%; | ||
border: none; | ||
-webkit-border-radius: 10px; | ||
-moz-border-radius: 10px; | ||
border-radius: 10px; | ||
-webkit-border-radius: $rounding; | ||
-moz-border-radius: $rounding; | ||
border-radius: $rounding; | ||
font-weight: bold; | ||
font-size: 0.8rem; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,48 @@ | ||
import Vue from 'vue' | ||
import Vuex from 'vuex' | ||
import firebase from 'firebase' | ||
|
||
Vue.use(Vuex) | ||
|
||
export default new Vuex.Store({ | ||
state: { | ||
|
||
user: {}, | ||
roster: false | ||
}, | ||
mutations: { | ||
updateUser(state) { | ||
state.user = firebase.auth().currentUser | ||
}, | ||
updateRoster(state, data) { | ||
state.roster = data | ||
|
||
} | ||
}, | ||
actions: { | ||
updateUser(context) { | ||
context.commit('updateUser') | ||
}, | ||
updateRoster(context) { | ||
firebase.firestore().collection('people').get().then(e => { | ||
let docs = {} | ||
e.forEach((doc) => { | ||
// doc.data() is never undefined for query doc snapshots | ||
//console.log(doc.id, " => ", doc.data()); | ||
docs[doc.id] = doc.data() | ||
}); | ||
context.commit('updateRoster', docs) | ||
} | ||
) | ||
|
||
} | ||
|
||
}, | ||
getters: { | ||
getUser(state) { | ||
return state.user | ||
}, | ||
getRoster(state) { | ||
return state.roster | ||
|
||
} | ||
} | ||
}) |
Oops, something went wrong.