From de1b4edad08812dc7756102f5862596bb2e28528 Mon Sep 17 00:00:00 2001 From: Michael Foiani Date: Mon, 30 Jul 2018 18:37:33 -0400 Subject: Continuing on adding content to mao-fourms and mao-tutoring --- src/components/mao-fourms.js | 7 +- src/components/mao-tutoring.js | 170 +++++++++++++++++++++++++---------------- 2 files changed, 107 insertions(+), 70 deletions(-) (limited to 'src') diff --git a/src/components/mao-fourms.js b/src/components/mao-fourms.js index 66871dd..e7398b5 100644 --- a/src/components/mao-fourms.js +++ b/src/components/mao-fourms.js @@ -64,7 +64,7 @@ class MaoFourms extends connect(store)(PageViewElement) { text-align: right; font-weight: lighter; font-style: italic; - word-break: break-all; + word-break: break-all; } .card-content > h3, p { @@ -83,7 +83,7 @@ class MaoFourms extends connect(store)(PageViewElement) { grid-template-columns: 1fr; } - @media (min-width: 550px) { + @media (min-width: 460px) { .post-grid { grid-template-columns: 1fr 1fr; } @@ -157,7 +157,8 @@ class MaoFourms extends connect(store)(PageViewElement) { updateSection() { if(this.shadowRoot) { - var postsGrid = this.shadowRoot.getElementById('posts-grid'); + var postsGrid = this.shadowRoot.getElementById('posts-grid'); + postsGrid.innerHTML = ""; for(var i = 0; i < this.fourmPosts.length; i++) { var paperCard = document.createElement('paper-card'); diff --git a/src/components/mao-tutoring.js b/src/components/mao-tutoring.js index e325f36..cf769cd 100644 --- a/src/components/mao-tutoring.js +++ b/src/components/mao-tutoring.js @@ -27,12 +27,11 @@ store.addReducers({ // These are the shared styles needed by this element. import { SharedStyles } from './shared-styles.js'; -import { ButtonSharedStyles } from './button-shared-styles.js' +import { ButtonSharedStyles } from './button-shared-styles.js'; // Import paper elements import '@polymer/paper-input/paper-input.js'; import '@polymer/paper-card/paper-card.js'; -import '@polymer/paper-dropdown-menu/paper-dropdown-menu.js'; import '@polymer/paper-item/paper-item.js'; import '@polymer/paper-slider/paper-slider.js'; import '@polymer/paper-button/paper-button.js'; @@ -91,6 +90,10 @@ class MaoTutoring extends connect(store)(PageViewElement) { display: block; } + .hopeCard { + --paper-card-background-color: #b7e1cd; + } + paper-button { margin-left: auto; margin-right: auto; @@ -105,6 +108,13 @@ class MaoTutoring extends connect(store)(PageViewElement) { margin-top: 10px; } + .tutoring-grid { + display: grid; + grid-gap: 10px; + + grid-template-columns: 1fr; + } + @media (min-width: 460px) { .hours-grid { grid-template-areas: @@ -115,101 +125,127 @@ class MaoTutoring extends connect(store)(PageViewElement) { .tutorCard, .hoursCard { padding: 1em; } + + .tutoring-grid { + grid-template-columns: 1fr 1fr; + } }
-
-

Tutoring

-
+
- +
+
+

Tutoring

+
- - +
+ +
+

Our Hope

+

We want to encourage an enviornment of help.

+
+
-
+ +
+

Need Help Finiding A Tutor?

+

Please, meet with your friends to create tutring sessions. + Otherwise, contact our tutoring coordinator Mike Binkowski.

+
- - Submit Form - +
+
+ + + + (440)-256-1593 +
-
-
+
`; } -- cgit v1.2.3-70-g09d2