Added new widgets and text styles and fonts to the system; Moved the logo into the project proper so nothing should be in the root Public folder any more (other than generated content).

This commit is contained in:
2021-01-16 15:30:06 -08:00
parent db2a612e2a
commit 6823384b20
19 changed files with 207 additions and 89 deletions

1
app.js
View File

@@ -15,6 +15,7 @@ let apos = require('apostrophe')({
'two-column-widgets': {extend: 'apostrophe-widgets'}, 'two-column-widgets': {extend: 'apostrophe-widgets'},
'two-column-1-2-widgets': {}, 'two-column-1-2-widgets': {},
'two-column-2-1-widgets': {}, 'two-column-2-1-widgets': {},
'theme': {},
// Apostrophe module configuration // Apostrophe module configuration

View File

@@ -13,8 +13,5 @@ module.exports = {
scripts: [ scripts: [
{name: 'bootstrap'}, {name: 'bootstrap'},
{name: 'site'} {name: 'site'}
],
images: [
{name: 'AvLogo.png'}
] ]
}; };

View File

@@ -1,9 +1,54 @@
@font-face {
font-family: "Merriweather";
src: url("/modules/theme/fonts/Merriweather-Regular.ttf") format("truetype");
}
@font-face {
font-family: "MerriweatherSans";
src: url("/modules/theme/fonts/MerriweatherSans-VariableFont_wght.ttf") format("truetype");
}
@font-face {
font-family: "LibreFranklin";
src: url("/modules/theme/fonts/LibreFranklin[wght].ttf") format("truetype");
}
@font-face {
font-family: "PottaOne";
src: url("/modules/theme/fonts/PottaOne-Regular.ttf") format("truetype");
}
p { p {
margin-top: 0.3rem; text-indent: 0;
margin-bottom: 0.7rem; margin: 0.3rem 0 0.7rem 0 !important;
padding: 0 !important;
font-family: "Merriweather", "serif";
font-size: 1.1rem;
line-height: 1.4rem; line-height: 1.4rem;
} }
p.indent {
text-indent: 1rem;
}
div[data-apos-widget=apostrophe-files] a, .apos-rich-text a {
margin: 0.3rem 0 0.7rem 0 !important;
font-family: "MerriweatherSans", "sans-serif";
font-size: 1.4rem;
line-height: 1.6rem;
color: #1c1cc4;
text-shadow: 0 0 0.6rem #9ef371;
transition: text-shadow 0.5s, color 0.5s;
}
div[data-apos-widget=apostrophe-files] a:hover, .apos-rich-text a:hover {
color: #3d1cd0;
text-shadow: 0 0 0.6rem #7beeee;
}
div[data-apos-widget=apostrophe-files] a:active, .apos-rich-text a:active {
color: #7a29ec;
}
.apos-rich-text a {
font-size: 1.2rem;
line-height: 1.5rem;
}
h5 { h5 {
font-size: 1.2rem; font-size: 1.2rem;
font-weight: 900; font-weight: 900;
@@ -16,11 +61,24 @@ h5 {
} }
.apos-area-widget a { .apos-area-widget a {
display: block; display: inline;
padding-bottom: 0.8rem; padding-bottom: 0.8rem;
} }
.apos-rich-text ul { .apos-rich-text ul {
list-style-type: disc;
list-style-position: inside;
margin: 0.3rem 0 0.7rem 2rem;
text-indent: -1.5rem;
padding: 0;
font-family: "Merriweather", "serif";
font-size: 1.1rem;
line-height: 1.4rem;
}
.apos-rich-text ul ul {
margin-left: 2.5rem;
text-indent: -1.7rem;
list-style-type: circle; list-style-type: circle;
list-style-position: inside; list-style-position: inside;
} }
@@ -45,12 +103,6 @@ h5 {
color: Green; color: Green;
} }
ul.bulletLevel2 {
text-indent: 1rem;
list-style-type: circle;
list-style-position: inside;
}
.apos-login-logo { .apos-login-logo {
margin-bottom: 0; margin-bottom: 0;
} }

View File

@@ -1 +1 @@
{"version":3,"sourceRoot":"","sources":["main.sass"],"names":[],"mappings":"AACA;EACC;EACA;EACA;;;AAED;EACC;EACA;EACA;EACA;;;AAED;EACC;;;AAED;EACC;EACA;;;AAED;EACC;EACA;;;AAED;EACC;;;AAED;EACC;;;AAGD;EACC;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAED;EACC;EACA;EACA;;;AAOD;EACC;;;AACD;EACC;EACA;;;AACD;EACC,kBAPU;;;AASV;EACC;;AACD;EACC;;AACD;EACC;;AACD;EACC;;AACD;EACC,kBAnBQ;;AAoBT;EACC;;;AACF;EACC,kBAvBS;;;AAwBV;EACC;IACC;IACA;IACA;;;AAKF;EACC;IACC;;;AAEF;EACC;IACC;;;AAEF;EACC;IACC;;;AAEF;EACC;IACC","file":"main.css"} {"version":3,"sourceRoot":"","sources":["main.sass"],"names":[],"mappings":"AAAA;EACC;EACA;;AACD;EACC;EACA;;AACD;EACC;EACA;;AACD;EACC;EACA;;AAED;EACC;EAGA;EACA;EACA;EACA;EACA;;;AACD;EACC;;;AAIA;EACC;EACA;EACA;EACA;EACA;EACA;EACA;;AACD;EACC;EACA;;AACD;EACC;;;AAGD;EACC;EACA;;;AAEF;EACC;EACA;EACA;EACA;;;AAED;EACC;;;AAED;EACC;EACA;;;AAED;EACC;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AACD;EACC;EACA;EACA;EACA;;;AAED;EACC;;;AAED;EACC;;;AAGD;EACC;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAQD;EACC;;;AACD;EACC;EACA;;;AACD;EACC,kBAPU;;;AASV;EACC;;AACD;EACC;;AACD;EACC;;AACD;EACC;;AACD;EACC,kBAnBQ;;AAoBT;EACC;;;AACF;EACC,kBAvBS;;;AAwBV;EACC;IACC;IACA;IACA;;;AAKF;EACC;IACC;;;AAEF;EACC;IACC;;;AAEF;EACC;IACC;;;AAEF;EACC;IACC","file":"main.css"}

View File

@@ -1,8 +1,48 @@
@font-face
font-family: 'Merriweather'
src: url('/modules/theme/fonts/Merriweather-Regular.ttf') format("truetype")
@font-face
font-family: 'MerriweatherSans'
src: url('/modules/theme/fonts/MerriweatherSans-VariableFont_wght.ttf') format("truetype")
@font-face
font-family: "LibreFranklin"
src: url('/modules/theme/fonts/LibreFranklin[wght].ttf') format("truetype")
@font-face
font-family: "PottaOne"
src: url('/modules/theme/fonts/PottaOne-Regular.ttf') format('truetype')
p p
margin-top: 0.3rem text-indent: 0
margin-bottom: 0.7rem // The important is necessary here because for some reason CKEditor outputs style="padding: 0; margin: 0" for every <p></p> tag.
// Remove !important if we can figure out how to remove the style CKEditor outputs.
margin: 0.3rem 0 0.7rem 0 !important
padding: 0 !important
font-family: "Merriweather", "serif"
font-size: 1.1rem
line-height: 1.4rem line-height: 1.4rem
p.indent
text-indent: 1rem
//Links using Apostrophe Files or Rich Text Widgets
div[data-apos-widget='apostrophe-files'], .apos-rich-text
a
margin: 0.3rem 0 0.7rem 0 !important
font-family: "MerriweatherSans", 'sans-serif'
font-size: 1.4rem
line-height: 1.6rem
color: #1c1cc4
text-shadow: 0 0 0.6rem rgb(158, 243, 113)
transition: text-shadow 0.5s, color 0.5s
a:hover
color: #3d1cd0
text-shadow: 0 0 0.6rem rgb(123, 238, 238)
a:active
color: #7a29ec
//Links embedded in a rich text widget.
.apos-rich-text
a
font-size: 1.2rem
line-height: 1.5rem
h5 h5
font-size: 1.2rem font-size: 1.2rem
@@ -14,10 +54,21 @@ h5
display: none display: none
.apos-area-widget a .apos-area-widget a
display: block display: inline
padding-bottom: 0.8rem padding-bottom: 0.8rem
.apos-rich-text ul .apos-rich-text ul
list-style-type: disc
list-style-position: inside
margin: 0.3rem 0 0.7rem 2rem
text-indent: -1.5rem
padding: 0
font-family: "Merriweather", "serif"
font-size: 1.1rem
line-height: 1.4rem
.apos-rich-text ul ul
margin-left: 2.5rem
text-indent: -1.7rem
list-style-type: circle list-style-type: circle
list-style-position: inside list-style-position: inside
@@ -39,10 +90,6 @@ h5
box-shadow: 0 0 20px 10px rgba(255, 255, 255, 0.61) box-shadow: 0 0 20px 10px rgba(255, 255, 255, 0.61)
color: Green color: Green
ul.bulletLevel2
text-indent: 1rem
list-style-type: circle
list-style-position: inside
// //
// Redefine some of the Apostrophe administrative UI. // Redefine some of the Apostrophe administrative UI.

View File

@@ -11,19 +11,23 @@
<div class="container" style="margin-top: 3rem"> <div class="container" style="margin-top: 3rem">
{{ apos.area(data.page, "body", { {{ apos.area(data.page, "body", {
widgets: { widgets: {
'apostrophe-images': {size: 'one-half'}, 'apostrophe-images': {size: 'original'},
'apostrophe-rich-text': { 'apostrophe-rich-text': {
toolbar: ['Styles', 'Bold', 'Italic', 'Link', 'Unlink', 'Anchor', 'Table', 'BulletedList', 'Blockquote', 'import'], toolbar: ['Styles', 'Bold', 'Italic', 'Link', 'Unlink', 'Indent', 'Outdent', 'Anchor', 'Table', 'BulletedList', 'Blockquote', 'Strike', 'Subscript', 'Superscript', 'Split'],
styles: [ styles: [
{name: 'Paragraph', element: 'p'}, {name: 'Paragraph', element: 'p'},
{name: 'Topic Paragraph', element: 'p', attributes: {class: "indent"} },
{name: 'Heading 2', element: 'h2'}, {name: 'Heading 2', element: 'h2'},
{name: 'Heading 3', element: 'h3'}, {name: 'Heading 3', element: 'h3'},
{name: 'Heading 4', element: 'h4'}, {name: 'Heading 4', element: 'h4'},
{name: 'Heading 5', element: 'h5'} {name: 'Heading 5', element: 'h5'},
{name: 'highlighted', element: 'div', attributes: {class: "highlighted"} }
] ]
}, },
'apostrophe-files': {}, 'apostrophe-files': {},
'two-column': {} 'two-column': {},
'two-column-1-2': {},
'two-column-2-1': {}
} }
}) }} }) }}
</div> </div>

View File

@@ -11,19 +11,23 @@
<div class="container" style="margin-top: 3rem"> <div class="container" style="margin-top: 3rem">
{{ apos.area(data.page, "body", { {{ apos.area(data.page, "body", {
widgets: { widgets: {
'apostrophe-images': {size: 'one-half'}, 'apostrophe-images': {size: 'original'},
'apostrophe-rich-text': { 'apostrophe-rich-text': {
toolbar: ['Styles', 'Bold', 'Italic', 'Link', 'Unlink', 'Anchor', 'Table', 'BulletedList', 'Blockquote', 'import'], toolbar: ['Styles', 'Bold', 'Italic', 'Link', 'Unlink', 'Indent', 'Outdent', 'Anchor', 'Table', 'BulletedList', 'Blockquote', 'Strike', 'Subscript', 'Superscript', 'Split'],
styles: [ styles: [
{name: 'Paragraph', element: 'p'}, {name: 'Paragraph', element: 'p'},
{name: 'Topic Paragraph', element: 'p', attributes: {class: "indent"} },
{name: 'Heading 2', element: 'h2'}, {name: 'Heading 2', element: 'h2'},
{name: 'Heading 3', element: 'h3'}, {name: 'Heading 3', element: 'h3'},
{name: 'Heading 4', element: 'h4'}, {name: 'Heading 4', element: 'h4'},
{name: 'Heading 5', element: 'h5'} {name: 'Heading 5', element: 'h5'},
{name: 'highlighted', element: 'div', attributes: {class: "highlighted"} }
] ]
}, },
'apostrophe-files': {}, 'apostrophe-files': {},
'two-column': {} 'two-column': {},
'two-column-1-2': {},
'two-column-2-1': {}
} }
}) }} }) }}
</div> </div>

View File

@@ -8,18 +8,19 @@
'apostrophe-rich-text': { 'apostrophe-rich-text': {
toolbar: ['Styles', 'Bold', 'Italic', 'Link', 'Unlink', 'Indent', 'Outdent', 'Anchor', 'Table', 'BulletedList', 'Blockquote', 'Strike', 'Subscript', 'Superscript', 'Split'], toolbar: ['Styles', 'Bold', 'Italic', 'Link', 'Unlink', 'Indent', 'Outdent', 'Anchor', 'Table', 'BulletedList', 'Blockquote', 'Strike', 'Subscript', 'Superscript', 'Split'],
styles: [ styles: [
{name: 'Paragraph', element: 'p', attributes: {class: "p"} }, {name: 'Paragraph', element: 'p'},
{name: 'Heading 2', element: 'h2', attributes: {class: "h2"} }, {name: 'Topic Paragraph', element: 'p', attributes: {class: "indent"} },
{name: 'Heading 3', element: 'h3', attributes: {class: "h3"} }, {name: 'Heading 2', element: 'h2'},
{name: 'Heading 4', element: 'h4', attributes: {class: "h4"} }, {name: 'Heading 3', element: 'h3'},
{name: 'Heading 5', element: 'h5', attributes: {class: "h5"} }, {name: 'Heading 4', element: 'h4'},
{name: 'highlighted', element: 'div', attributes: {class: "highlighted"} }, {name: 'Heading 5', element: 'h5'},
{name: 'bullet2', element: 'div', attributes: {class: "bulletLevel2"} } {name: 'highlighted', element: 'div', attributes: {class: "highlighted"} }
] ]
}, },
'apostrophe-files': {}, 'apostrophe-files': {},
'two-column': {}, 'two-column': {},
'two-column-1-2': {} 'two-column-1-2': {},
'two-column-2-1': {}
} }
}) }} }) }}
</div> </div>

View File

@@ -11,10 +11,10 @@ module.exports = {
'sup', 'sub', 'span' 'sup', 'sub', 'span'
], ],
allowedClasses: { allowedClasses: {
'p': ['highlighted','apos-indent1', 'apos-indent2', 'bulletLevel2'], 'p': ['highlighted', 'indent', 'bulletLevel2','apos-indent1', 'apos-indent2'],
'ul': ['bulletLevel2'], 'ul': ['bulletLevel2','apos-indent1', 'apos-indent2'],
'div': ['highlighted', "bulletLevel2"], 'div': ['highlighted', "bulletLevel2",'apos-indent1', 'apos-indent2'],
'*': ['highlighted', 'bulletLevel2', 'test', '*'] '*': ['highlighted', 'bulletLevel2', 'test', '*','apos-indent1', 'apos-indent2']
}, },
allowedAttributes: { allowedAttributes: {
'*': ['style', 'class'], '*': ['style', 'class'],

View File

@@ -12,19 +12,19 @@ module.exports = {
}, },
{ {
title: 'AVES', title: 'AVES',
permissions: [] permissions: ["AVES"]
}, },
{ {
title: 'AVHS', title: 'AVHS',
permissions: [] permissions: ["AVHS"]
}, },
{ {
title: 'AVAS', title: 'AVAS',
permissions: [] permissions: ["AVAS"]
}, },
{ {
title: 'AVUSD', title: 'AVUSD',
permissions: [] permissions: ['AVUSD']
}, },
{ {
title: 'admin', title: 'admin',

View File

@@ -0,0 +1,5 @@
// This configures the apostrophe-assets module to push a 'site.less'
// stylesheet by default, and to use jQuery 3.x
module.exports = {
};

Binary file not shown.

View File

Before

Width:  |  Height:  |  Size: 884 KiB

After

Width:  |  Height:  |  Size: 884 KiB

View File

@@ -8,10 +8,12 @@
toolbar: ['Styles', 'Bold', 'Italic', 'Link', 'Unlink', 'Anchor', 'Table', 'BulletedList', 'Blockquote', 'Strike', 'Subscript', 'Superscript', 'Split'], toolbar: ['Styles', 'Bold', 'Italic', 'Link', 'Unlink', 'Anchor', 'Table', 'BulletedList', 'Blockquote', 'Strike', 'Subscript', 'Superscript', 'Split'],
styles: [ styles: [
{name: 'Paragraph', element: 'p'}, {name: 'Paragraph', element: 'p'},
{name: 'Topic Paragraph', element: 'p', attributes: {class: "indent"} },
{name: 'Heading 2', element: 'h2'}, {name: 'Heading 2', element: 'h2'},
{name: 'Heading 3', element: 'h3'}, {name: 'Heading 3', element: 'h3'},
{name: 'Heading 4', element: 'h4'}, {name: 'Heading 4', element: 'h4'},
{name: 'Heading 5', element: 'h5'} {name: 'Heading 5', element: 'h5'},
{name: 'highlighted', element: 'div', attributes: {class: "highlighted"} }
] ]
}, },
'apostrophe-files': {} 'apostrophe-files': {}

View File

@@ -8,10 +8,12 @@
toolbar: ['Styles', 'Bold', 'Italic', 'Link', 'Unlink', 'Anchor', 'Table', 'BulletedList', 'Blockquote', 'Strike', 'Subscript', 'Superscript', 'Split'], toolbar: ['Styles', 'Bold', 'Italic', 'Link', 'Unlink', 'Anchor', 'Table', 'BulletedList', 'Blockquote', 'Strike', 'Subscript', 'Superscript', 'Split'],
styles: [ styles: [
{name: 'Paragraph', element: 'p'}, {name: 'Paragraph', element: 'p'},
{name: 'Topic Paragraph', element: 'p', attributes: {class: "indent"} },
{name: 'Heading 2', element: 'h2'}, {name: 'Heading 2', element: 'h2'},
{name: 'Heading 3', element: 'h3'}, {name: 'Heading 3', element: 'h3'},
{name: 'Heading 4', element: 'h4'}, {name: 'Heading 4', element: 'h4'},
{name: 'Heading 5', element: 'h5'} {name: 'Heading 5', element: 'h5'},
{name: 'highlighted', element: 'div', attributes: {class: "highlighted"} }
] ]
}, },
'apostrophe-files': {} 'apostrophe-files': {}
@@ -26,10 +28,12 @@
toolbar: ['Styles', 'Bold', 'Italic', 'Link', 'Unlink', 'Anchor', 'Table', 'BulletedList', 'Blockquote', 'Strike', 'Subscript', 'Superscript', 'Split'], toolbar: ['Styles', 'Bold', 'Italic', 'Link', 'Unlink', 'Anchor', 'Table', 'BulletedList', 'Blockquote', 'Strike', 'Subscript', 'Superscript', 'Split'],
styles: [ styles: [
{name: 'Paragraph', element: 'p'}, {name: 'Paragraph', element: 'p'},
{name: 'Topic Paragraph', element: 'p', attributes: {class: "indent"} },
{name: 'Heading 2', element: 'h2'}, {name: 'Heading 2', element: 'h2'},
{name: 'Heading 3', element: 'h3'}, {name: 'Heading 3', element: 'h3'},
{name: 'Heading 4', element: 'h4'}, {name: 'Heading 4', element: 'h4'},
{name: 'Heading 5', element: 'h5'} {name: 'Heading 5', element: 'h5'},
{name: 'highlighted', element: 'div', attributes: {class: "highlighted"} }
] ]
}, },
'apostrophe-files': {} 'apostrophe-files': {}

View File

@@ -8,10 +8,12 @@
toolbar: ['Styles', 'Bold', 'Italic', 'Link', 'Unlink', 'Anchor', 'Table', 'BulletedList', 'Blockquote', 'Strike', 'Subscript', 'Superscript', 'Split'], toolbar: ['Styles', 'Bold', 'Italic', 'Link', 'Unlink', 'Anchor', 'Table', 'BulletedList', 'Blockquote', 'Strike', 'Subscript', 'Superscript', 'Split'],
styles: [ styles: [
{name: 'Paragraph', element: 'p'}, {name: 'Paragraph', element: 'p'},
{name: 'Topic Paragraph', element: 'p', attributes: {class: "indent"} },
{name: 'Heading 2', element: 'h2'}, {name: 'Heading 2', element: 'h2'},
{name: 'Heading 3', element: 'h3'}, {name: 'Heading 3', element: 'h3'},
{name: 'Heading 4', element: 'h4'}, {name: 'Heading 4', element: 'h4'},
{name: 'Heading 5', element: 'h5'} {name: 'Heading 5', element: 'h5'},
{name: 'highlighted', element: 'div', attributes: {class: "highlighted"} }
] ]
}, },
'apostrophe-files': {} 'apostrophe-files': {}
@@ -26,10 +28,12 @@
toolbar: ['Styles', 'Bold', 'Italic', 'Link', 'Unlink', 'Anchor', 'Table', 'BulletedList', 'Blockquote', 'Strike', 'Subscript', 'Superscript', 'Split'], toolbar: ['Styles', 'Bold', 'Italic', 'Link', 'Unlink', 'Anchor', 'Table', 'BulletedList', 'Blockquote', 'Strike', 'Subscript', 'Superscript', 'Split'],
styles: [ styles: [
{name: 'Paragraph', element: 'p'}, {name: 'Paragraph', element: 'p'},
{name: 'Topic Paragraph', element: 'p', attributes: {class: "indent"} },
{name: 'Heading 2', element: 'h2'}, {name: 'Heading 2', element: 'h2'},
{name: 'Heading 3', element: 'h3'}, {name: 'Heading 3', element: 'h3'},
{name: 'Heading 4', element: 'h4'}, {name: 'Heading 4', element: 'h4'},
{name: 'Heading 5', element: 'h5'} {name: 'Heading 5', element: 'h5'},
{name: 'highlighted', element: 'div', attributes: {class: "highlighted"} }
] ]
}, },
'apostrophe-files': {} 'apostrophe-files': {}

View File

@@ -13,19 +13,16 @@
{% endblock %} {% endblock %}
{% block extraHead %} {% block extraHead %}
{# {# This block outputs its contents in the HTML document's <head>. It is a good place to put extra <script> <link> and <meta> tags. #}
This block outputs its contents in the HTML document's <head>.
It is a good place to put extra <script> <link> and <meta> tags.
#}
<link href="https://fonts.googleapis.com/css2?family=Arima+Madurai&family=Roboto&family=Dancing+Script&family=Open+Sans:ital@0;1&display=swap" rel="stylesheet"> <link href="https://fonts.googleapis.com/css2?family=Arima+Madurai&family=Roboto&family=Dancing+Script&family=Open+Sans:ital@0;1&display=swap" rel="stylesheet">
{# <script type="text/javascript" language="JavaScript" src="js/jquery-3.5.1.min.js"></script>#} {# <script type="text/javascript" language="JavaScript" src="js/jquery-3.5.1.min.js"></script> #}
{% endblock %} {% endblock %}
{% block beforeMain %} {% block beforeMain %}
{# We recommend you use the beforeMain block for global page components like headers or navigation. #} {# We recommend you use the beforeMain block for global page components like headers or navigation. #}
<div id="topBar" class="text-center" style="margin-bottom: 0"> <div id="topBar" class="text-center" style="margin-bottom: 0">
{% block logoImage %} {% block logoImage %}
<a href="/" aria-label="AVUSD District Home"><img class="logoImage" src='/images/AvLogo.png' alt="Anderson Valley Logo: Four colored chevrons that look like people facing each other as viewed from above."/></a> <a href="/" aria-label="AVUSD District Home"><img class="logoImage" src='/modules/theme/img/AvLogo.png' alt="Anderson Valley Logo: Four colored chevrons that look like people facing each other as viewed from above."/></a>
{% endblock %} {% endblock %}
<div class="logoText"> <div class="logoText">
<p class="logoTitle">Anderson Valley Unified</p> <p class="logoTitle">Anderson Valley Unified</p>