From b57d56cbfb53567d59dbe28dc0590ceaae2f5792 Mon Sep 17 00:00:00 2001 From: Michael Foiani Date: Wed, 12 Sep 2018 23:49:00 -0400 Subject: Added competitions, disabled registration for state and national conventions, updated info on pages. --- src/components/mao-competitions.js | 99 ++++++++++++++++++++------------------ src/components/mao-home.js | 36 ++++++++++++-- 2 files changed, 85 insertions(+), 50 deletions(-) diff --git a/src/components/mao-competitions.js b/src/components/mao-competitions.js index 9dedca6..935b72a 100644 --- a/src/components/mao-competitions.js +++ b/src/components/mao-competitions.js @@ -45,12 +45,13 @@ class MaoCompetitions extends connect(store)(PageViewElement) { "title" "test1" "test2" - "test3"; + "test3" + "test4" + "test5"; } .amcComp { grid-area: test1; - } .fmlComp { @@ -61,6 +62,14 @@ class MaoCompetitions extends connect(store)(PageViewElement) { grid-area: test3; } + .mathconComp { + grid-area: test4; + } + + .madnessComp{ + grid-area: test5; + } + .regional-competition-grid { display: grid; grid-gap: 10px; @@ -124,8 +133,9 @@ class MaoCompetitions extends connect(store)(PageViewElement) { @media (min-width: 460px) { .non-mao-test-grid { grid-template-areas: - "title title title" - "test1 test2 test3"; + "title title title title title title" + "test1 test1 test2 test2 test3 test3" + "test4 test4 test4 test5 test5 test5"; } .regional-competition-grid { @@ -165,19 +175,9 @@ class MaoCompetitions extends connect(store)(PageViewElement) { @@ -200,19 +200,9 @@ class MaoCompetitions extends connect(store)(PageViewElement) { @@ -226,6 +216,7 @@ class MaoCompetitions extends connect(store)(PageViewElement) {

Regionals

+

To be elgible for the state or national competiton, one must participate in at least 3 regional competitons.

@@ -285,7 +276,7 @@ class MaoCompetitions extends connect(store)(PageViewElement) { id="mar2-competition-element" name="March2" day=" 16th" - information="This competition is rough." + information="This competition is rough. We may not participate depending on interest." location="American Hertiage-Boca, Delray Beach" signedIn="${props.signedIn}" isRegistered="${props.registeredComps.includes('March2')}" @@ -303,7 +294,8 @@ class MaoCompetitions extends connect(store)(PageViewElement) {

Non-MAO Tests

-

All students must register and complete two of the tests to be qualified for national and/or state competitions.

+

All students must register and complete two of the tests to be qualified for national and/or state competitions

+

For members of the Mu Alpha Theta Honors Society, they must take at least one of these tests.

- + + + + + + + +
@@ -364,10 +387,7 @@ class MaoCompetitions extends connect(store)(PageViewElement) { static get properties() { return { // This is the data from the store. registeredComps : Array, - signedIn : Boolean, - - nationalRegistered : Boolean, - statesRegistered : Boolean + signedIn : Boolean }} @@ -375,19 +395,6 @@ class MaoCompetitions extends connect(store)(PageViewElement) { _stateChanged(state) { this.signedIn = state.firebaseAuth .signedIn; this.registeredComps = state.firebaseFirestore .registeredComps; - //console.log(this.registeredComps); - } - - registerNationals() { - if(confirm('Are you sure you want to register for nationals?')) { - store.dispatch(registerComp('nationals')); - } - } - - registerStates() { - if(confirm('Are you sure you want to register for states?')) { - store.dispatch(registerComp('states')); - } } } diff --git a/src/components/mao-home.js b/src/components/mao-home.js index 9f8daf4..7f43aa8 100644 --- a/src/components/mao-home.js +++ b/src/components/mao-home.js @@ -13,23 +13,36 @@ import { PageViewElement } from './page-view-element.js'; // These are the shared styles needed by this element. import { SharedStyles } from './shared-styles.js'; +import { ButtonSharedStyles } from './button-shared-styles.js'; // Import paper elements import '@polymer/paper-card/paper-card.js'; +import '@polymer/paper-button/paper-button.js'; class MaoHome extends PageViewElement { _render(props) { return html` ${SharedStyles} + ${ButtonSharedStyles}
@@ -68,7 +82,7 @@ class MaoHome extends PageViewElement { Meeting Dates

- We will meet once a week on an undecided date. + We will meet once a week on D Day Flex.

@@ -76,13 +90,27 @@ class MaoHome extends PageViewElement {

Upcoming Dates

    -
  • Club Presentations:\tSeptember 5th
  • -
  • Club Fair (Sign Up!):\tSeptember 6th
  • +
  • First Meeting:\tSeptember 12th
+ + +
+

+ Welcome Letter +

+

+ Welcome Letters mark the beginning of each MAO year. Please read it and show it to your parents. +

+
+ +
+
`; } -- cgit v1.2.3-70-g09d2