diff --git a/my/src/assets/css/status.css b/my/src/assets/css/status.css index aded60b4..96ecd7dd 100644 --- a/my/src/assets/css/status.css +++ b/my/src/assets/css/status.css @@ -682,13 +682,6 @@ a { -moz-animation: statusanimation 140s ease infinite; animation: statusanimation 140s ease infinite; */ } -.staticBackground { - background: rgb(0,0,0); - /* background: linear-gradient(180deg,#7a72e5 45%, #ab5797 50%); */ - background: linear-gradient(270deg,#7067e0,#973d82); - /* background-size: 800% 800%; */ - background-size: 200% 200%; -} @-webkit-keyframes statusanimation { 0% { @@ -846,37 +839,4 @@ a { .swag-url { color: orange; font-weight: 500; -} -.act-btn { - font-weight: bold; - text-align: center; - text-decoration: none; - font-family: 'Montserrat', sans-serif; - opacity: 0.99; - padding: 10px 23%; - color: white; - transition: 0.1s ease-in-out; - cursor: pointer; - z-index: 100; - width: 97.5%; - } - - .act-btn-group { - z-index: 10; - float:right !important; - } - - .toggle-btn-grp{ - padding: 0px !important; - float:right !important; - } - - .act-btn__reset { - background-color: rgba(255, 255, 255, 0.1) !important; - box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.2) !important; - padding: 0 !important; - } - - .togbtn { - padding:0 !important; - } \ No newline at end of file +} \ No newline at end of file diff --git a/my/src/store.ts b/my/src/store.ts index 24d361fd..f93a2793 100644 --- a/my/src/store.ts +++ b/my/src/store.ts @@ -12,7 +12,6 @@ interface StoreState { db: firebase.firestore.Firestore; firebase: any; currentHackathon: string; - animationToggle: boolean, } // export the store @@ -22,19 +21,5 @@ export default new Vuex.Store({ db, firebase, currentHackathon: 'DH7', - animationToggle: window.localStorage.getItem('animationToggle') === 'true', } as StoreState, - getters:{ - animateBackground: state => { - return state.animationToggle; - } - }, - mutations:{ - changeAnimate (state, payload){ - state.animationToggle = payload; - localStorage.setItem('animationToggle', payload); - location.reload(); - } - } }); -sessionStorage.clear(); \ No newline at end of file diff --git a/my/src/types.ts b/my/src/types.ts index 0b4d6f01..91579e6f 100644 --- a/my/src/types.ts +++ b/my/src/types.ts @@ -11,7 +11,20 @@ export interface ApplicationModel { snack: SnackBar; resetDialogue: boolean; submitDialogue: boolean; - toggleAnimation: boolean; +} + +export interface SubmitModel { + app: AppContents; + + // this needs to be typed + questions: any; + authorizations: any; + updateTimeout: any; + snack: SnackBar; + resetDialogue: boolean; + submitDialogue: boolean; + loadingDialogue: boolean; + loadingError: boolean; } export interface AppContents { @@ -75,6 +88,7 @@ export interface AppContents { }; general: { coffee: string; + emails: boolean, team: string; termsAndConditions: boolean; code: boolean; @@ -146,7 +160,6 @@ export interface StatusModel { splashMessage: string; busSelected: string; rsvp: {coming: boolean, origin: string}; - toggleAnimation: boolean; } export interface ApplyState { diff --git a/my/src/views/Apply.vue b/my/src/views/Apply.vue index 10118421..725ff0b5 100644 --- a/my/src/views/Apply.vue +++ b/my/src/views/Apply.vue @@ -11,23 +11,14 @@
-
+
@@ -302,7 +294,6 @@
- {{ snack.message }} Close @@ -327,12 +318,10 @@ import { mapGetters } from 'vuex'; import db from '../firebase_init'; import { StatusModel } from '../types'; import { busCities } from '../data'; -import store from '../store'; const allUniversities = []; export default Vue.extend({ - store, mixins: [validationMixin], name: 'Status', data(): StatusModel { @@ -431,7 +420,6 @@ export default Vue.extend({ splashMessage: '', busSelected: 'Not bussing', rsvp: { coming: false, origin: '' }, - toggleAnimation: this.$store.getters.animateBackground, }; }, components: { @@ -459,10 +447,6 @@ export default Vue.extend({ }, methods: { // Grabs the application from where its store in firebase - changeAnimation: function(){ - this.toggleAnimation = !this.toggleAnimation; - this.$store.commit("changeAnimate", this.toggleAnimation) - }, fetchFromFirebase(): Promise { return this.$store.state.db .collection(this.$store.state.currentHackathon)