blob: cf788251176f21a5ca61a8e68cc147a5b886501a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
|
/**
@license
Copyright (c) 2018 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
Code distributed by Google as part of the polymer project is also
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
*/
import { html } from '@polymer/lit-element';
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}
<style>
paper-card {
width: 100%;
display: block;
}
.welcomeCard {
margin-top: 5px;
text-align: center;
}
.info {
font-weight: bold;
}
.home-grid {
display: grid;
grid-gap: 5px;
grid-template-columns: 1fr;
}
@media (min-width: 460px) {
.home-grid {
grid-template-columns: 1fr 1fr;
}
}
</style>
<section class="img-section">
<div class="container">
<img src="http://www.advancedroofingandsheetmetal.com/wp-content/uploads/2016/02/community-school-naples.jpg" alt="Maths">
<div class="centered">We ♥ Math At CSN</div>
</div>
</section>
<section>
<div class="home-grid">
<paper-card elevation=0>
<div class="card-content">
<h2 class="underline">
Announcements
</h2>
<p>
Welcome to the beta release of the website. We have high hopes for this website.
</p>
<p>
If you haven't yet, please add this to your home screen. It will act like an app. Cool!
</p>
</div>
</paper-card>
<paper-card elevation=0>
<div class="card-content">
<h2 class="underline">
Important Dates
</h2>
<p>
We will meet once a week on <strong>D Day Flex</strong>.
</p>
</div>
<div class="card-actions">
<div>
<h3>Upcoming Dates</h3>
<ul>
<li><strong>T-shirt Designs Due</strong>:\tNovember 9th (emailed to Mrs. Coombs)</li>
<li><strong>ARML</strong>:\tNovember 9th (during Lunch and Flex)</li>
<li><strong>FGCU Registration Due</strong>:\tNovember 20th</li>
<li><strong>1st LOGS Test Date</strong>:\tNovember 30th</li>
</ul>
</div>
</div>
</paper-card>
</div>
<paper-card elevation=0 class='welcomeCard'>
<div class="card-content">
<h2 class="underline">
Competitions Starting Soon
</h2>
<p>
The FGCU competition marks the beginning of competitions. Now is the time to figure out your schedules and register here online. Earlier the better!
</p>
<p>
The ARML competition is this Friday, and we need a team! There is no limit on how many people can come, so we need everyone we can get. It is during lunch and flex in Mrs. Gardener's Room.
</p>
</div>
</paper-card>
</section>
`;
}
}
window.customElements.define('mao-home', MaoHome);
|