Changed L&F For the editor to use AVUSD logo and colors; Added a 1:2 and 2:1 split column widget (would like to make this all one configurable widget though).
This commit is contained in:
15
app.js
15
app.js
@@ -13,6 +13,8 @@ let apos = require('apostrophe')({
|
|||||||
|
|
||||||
modules: {
|
modules: {
|
||||||
'two-column-widgets': {extend: 'apostrophe-widgets'},
|
'two-column-widgets': {extend: 'apostrophe-widgets'},
|
||||||
|
'two-column-1-2-widgets': {},
|
||||||
|
'two-column-2-1-widgets': {},
|
||||||
|
|
||||||
|
|
||||||
// Apostrophe module configuration
|
// Apostrophe module configuration
|
||||||
@@ -39,6 +41,15 @@ let apos = require('apostrophe')({
|
|||||||
'apostrophe-db': {
|
'apostrophe-db': {
|
||||||
uri: process.env.MONGO_URL
|
uri: process.env.MONGO_URL
|
||||||
},
|
},
|
||||||
|
'apostrophe-rich-text-permalinks': {
|
||||||
|
join: {
|
||||||
|
withType: ["apostrophe-page", "apostrophe-file"]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
|
||||||
|
//Note: Rich Text Widgets configuration is being done in the /lib/modules/apostrophe-rich-text-widgets/index.js
|
||||||
|
//
|
||||||
// 'apostrophe-rich-text-widgets': {
|
// 'apostrophe-rich-text-widgets': {
|
||||||
// sanitizeHtml: {
|
// sanitizeHtml: {
|
||||||
// allowedAttributes: {
|
// allowedAttributes: {
|
||||||
@@ -50,7 +61,9 @@ let apos = require('apostrophe')({
|
|||||||
// }
|
// }
|
||||||
// }
|
// }
|
||||||
// }
|
// }
|
||||||
// Was having some issues with overlaying menus.
|
|
||||||
|
|
||||||
|
// Was having some issues with the menus hovering over the text the user was editing. Is less functional but better looking.
|
||||||
//'apostrophe-tiptap-rich-text-widgets': {}
|
//'apostrophe-tiptap-rich-text-widgets': {}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
3930
dev/images/Logo Stylized.svg
Normal file
3930
dev/images/Logo Stylized.svg
Normal file
File diff suppressed because it is too large
Load Diff
|
After Width: | Height: | Size: 398 KiB |
2
lib/modules/apostrophe-admin-bar/views/logo.html
Normal file
2
lib/modules/apostrophe-admin-bar/views/logo.html
Normal file
File diff suppressed because one or more lines are too long
|
After Width: | Height: | Size: 202 KiB |
@@ -51,6 +51,49 @@ ul.bulletLevel2 {
|
|||||||
list-style-position: inside;
|
list-style-position: inside;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.apos-login-logo {
|
||||||
|
margin-bottom: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.apos-login-logo svg {
|
||||||
|
width: 200px;
|
||||||
|
height: 200px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.apos-login.apos-ui {
|
||||||
|
background-color: #d29a6b;
|
||||||
|
}
|
||||||
|
|
||||||
|
.apos-ui .apos-field {
|
||||||
|
margin-bottom: 1rem;
|
||||||
|
}
|
||||||
|
.apos-ui .apos-field-input {
|
||||||
|
padding: 0.5rem;
|
||||||
|
}
|
||||||
|
.apos-ui .apos-login-submit {
|
||||||
|
margin-top: 3rem;
|
||||||
|
}
|
||||||
|
.apos-ui .apos-button--major {
|
||||||
|
background-color: saddlebrown;
|
||||||
|
}
|
||||||
|
.apos-ui .apos-button--global {
|
||||||
|
background-color: #4F3A28;
|
||||||
|
}
|
||||||
|
.apos-ui .apos-field-input:focus {
|
||||||
|
box-shadow: 0 0 15px 0 #4F3A28;
|
||||||
|
}
|
||||||
|
|
||||||
|
.apos-login-wrapper, .apos-login-content, .apos-ui .apos-admin-bar {
|
||||||
|
background-color: #4F3A28;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media only screen and (min-width: 1450px) {
|
||||||
|
.apos-ui .apos-admin-bar-logo, .apos-ui .apos-admin-bar-logo svg {
|
||||||
|
max-height: 40px;
|
||||||
|
max-width: 40px;
|
||||||
|
margin-right: 30px;
|
||||||
|
}
|
||||||
|
}
|
||||||
@media only screen and (max-width: 1100px) {
|
@media only screen and (max-width: 1100px) {
|
||||||
html {
|
html {
|
||||||
font-size: 14px !important;
|
font-size: 14px !important;
|
||||||
|
|||||||
@@ -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;;;AAMD;EACC;IACC;;;AAEF;EACC;IACC;;;AAEF;EACC;IACC;;;AAEF;EACC;IACC","file":"main.css"}
|
{"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"}
|
||||||
@@ -45,6 +45,38 @@ ul.bulletLevel2
|
|||||||
list-style-position: inside
|
list-style-position: inside
|
||||||
|
|
||||||
//
|
//
|
||||||
|
// Redefine some of the Apostrophe administrative UI.
|
||||||
|
//
|
||||||
|
$bg-dark: #4F3A28
|
||||||
|
$bg-light: #d29a6b
|
||||||
|
.apos-login-logo
|
||||||
|
margin-bottom: 0
|
||||||
|
.apos-login-logo svg
|
||||||
|
width: 200px
|
||||||
|
height: 200px
|
||||||
|
.apos-login.apos-ui
|
||||||
|
background-color: $bg-light
|
||||||
|
.apos-ui
|
||||||
|
.apos-field
|
||||||
|
margin-bottom: 1rem
|
||||||
|
.apos-field-input
|
||||||
|
padding: 0.5rem
|
||||||
|
.apos-login-submit
|
||||||
|
margin-top: 3rem
|
||||||
|
.apos-button--major
|
||||||
|
background-color: saddlebrown
|
||||||
|
.apos-button--global
|
||||||
|
background-color: $bg-dark
|
||||||
|
.apos-field-input:focus
|
||||||
|
box-shadow: 0 0 15px 0 $bg-dark
|
||||||
|
.apos-login-wrapper, .apos-login-content, .apos-ui .apos-admin-bar
|
||||||
|
background-color: $bg-dark
|
||||||
|
@media only screen and (min-width: 1450px)
|
||||||
|
.apos-ui .apos-admin-bar-logo, .apos-ui .apos-admin-bar-logo svg
|
||||||
|
max-height: 40px
|
||||||
|
max-width: 40px
|
||||||
|
margin-right: 30px
|
||||||
|
//
|
||||||
// Everything scales off of the HTML tag font sizes since the whole site uses REM units.
|
// Everything scales off of the HTML tag font sizes since the whole site uses REM units.
|
||||||
//
|
//
|
||||||
|
|
||||||
|
|||||||
@@ -14,10 +14,6 @@ module.exports = {
|
|||||||
{
|
{
|
||||||
name: 'aves',
|
name: 'aves',
|
||||||
label: 'Elementary School Page'
|
label: 'Elementary School Page'
|
||||||
},
|
|
||||||
{
|
|
||||||
name: 'basic',
|
|
||||||
label: 'basic'
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Add more page types here, but make sure you create a corresponding
|
// Add more page types here, but make sure you create a corresponding
|
||||||
|
|||||||
@@ -18,7 +18,8 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
'apostrophe-files': {},
|
'apostrophe-files': {},
|
||||||
'two-column': {}
|
'two-column': {},
|
||||||
|
'two-column-1-2': {}
|
||||||
}
|
}
|
||||||
}) }}
|
}) }}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
16
lib/modules/two-column-1-2-widgets/index.js
Normal file
16
lib/modules/two-column-1-2-widgets/index.js
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
module.exports = {
|
||||||
|
extend: 'apostrophe-widgets',
|
||||||
|
label: 'Two Column (1:2)',
|
||||||
|
addFields: [
|
||||||
|
{
|
||||||
|
name: 'areaLeft',
|
||||||
|
type: 'area',
|
||||||
|
label: "Left Area",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: "areaRight",
|
||||||
|
type: "area",
|
||||||
|
label: "Right Area"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
};
|
||||||
40
lib/modules/two-column-1-2-widgets/views/widget.html
Normal file
40
lib/modules/two-column-1-2-widgets/views/widget.html
Normal file
@@ -0,0 +1,40 @@
|
|||||||
|
<div class="container">
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-lg-4">
|
||||||
|
{{ apos.area(data.widget, "areaLeft", {
|
||||||
|
widgets: {
|
||||||
|
'apostrophe-images': {size: 'one-half'},
|
||||||
|
'apostrophe-rich-text': {
|
||||||
|
toolbar: ['Styles', 'Bold', 'Italic', 'Link', 'Unlink', 'Anchor', 'Table', 'BulletedList', 'Blockquote', 'Strike', 'Subscript', 'Superscript', 'Split'],
|
||||||
|
styles: [
|
||||||
|
{name: 'Paragraph', element: 'p'},
|
||||||
|
{name: 'Heading 2', element: 'h2'},
|
||||||
|
{name: 'Heading 3', element: 'h3'},
|
||||||
|
{name: 'Heading 4', element: 'h4'},
|
||||||
|
{name: 'Heading 5', element: 'h5'}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
'apostrophe-files': {}
|
||||||
|
}
|
||||||
|
}) }}
|
||||||
|
</div>
|
||||||
|
<div class="col-lg-8">
|
||||||
|
{{ apos.area(data.widget, "areaRight", {
|
||||||
|
widgets: {
|
||||||
|
'apostrophe-images': {size: 'full'},
|
||||||
|
'apostrophe-rich-text': {
|
||||||
|
toolbar: ['Styles', 'Bold', 'Italic', 'Link', 'Unlink', 'Anchor', 'Table', 'BulletedList', 'Blockquote', 'Strike', 'Subscript', 'Superscript', 'Split'],
|
||||||
|
styles: [
|
||||||
|
{name: 'Paragraph', element: 'p'},
|
||||||
|
{name: 'Heading 2', element: 'h2'},
|
||||||
|
{name: 'Heading 3', element: 'h3'},
|
||||||
|
{name: 'Heading 4', element: 'h4'},
|
||||||
|
{name: 'Heading 5', element: 'h5'}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
'apostrophe-files': {}
|
||||||
|
}
|
||||||
|
}) }}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
16
lib/modules/two-column-2-1-widgets/index.js
Normal file
16
lib/modules/two-column-2-1-widgets/index.js
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
module.exports = {
|
||||||
|
extend: 'apostrophe-widgets',
|
||||||
|
label: 'Two Column (2:1)',
|
||||||
|
addFields: [
|
||||||
|
{
|
||||||
|
name: 'areaLeft',
|
||||||
|
type: 'area',
|
||||||
|
label: "Left Area",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: "areaRight",
|
||||||
|
type: "area",
|
||||||
|
label: "Right Area"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
};
|
||||||
40
lib/modules/two-column-2-1-widgets/views/widget.html
Normal file
40
lib/modules/two-column-2-1-widgets/views/widget.html
Normal file
@@ -0,0 +1,40 @@
|
|||||||
|
<div class="container">
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-lg-8">
|
||||||
|
{{ apos.area(data.widget, "areaLeft", {
|
||||||
|
widgets: {
|
||||||
|
'apostrophe-images': {size: 'one-half'},
|
||||||
|
'apostrophe-rich-text': {
|
||||||
|
toolbar: ['Styles', 'Bold', 'Italic', 'Link', 'Unlink', 'Anchor', 'Table', 'BulletedList', 'Blockquote', 'Strike', 'Subscript', 'Superscript', 'Split'],
|
||||||
|
styles: [
|
||||||
|
{name: 'Paragraph', element: 'p'},
|
||||||
|
{name: 'Heading 2', element: 'h2'},
|
||||||
|
{name: 'Heading 3', element: 'h3'},
|
||||||
|
{name: 'Heading 4', element: 'h4'},
|
||||||
|
{name: 'Heading 5', element: 'h5'}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
'apostrophe-files': {}
|
||||||
|
}
|
||||||
|
}) }}
|
||||||
|
</div>
|
||||||
|
<div class="col-lg-4">
|
||||||
|
{{ apos.area(data.widget, "areaRight", {
|
||||||
|
widgets: {
|
||||||
|
'apostrophe-images': {size: 'full'},
|
||||||
|
'apostrophe-rich-text': {
|
||||||
|
toolbar: ['Styles', 'Bold', 'Italic', 'Link', 'Unlink', 'Anchor', 'Table', 'BulletedList', 'Blockquote', 'Strike', 'Subscript', 'Superscript', 'Split'],
|
||||||
|
styles: [
|
||||||
|
{name: 'Paragraph', element: 'p'},
|
||||||
|
{name: 'Heading 2', element: 'h2'},
|
||||||
|
{name: 'Heading 3', element: 'h3'},
|
||||||
|
{name: 'Heading 4', element: 'h4'},
|
||||||
|
{name: 'Heading 5', element: 'h5'}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
'apostrophe-files': {}
|
||||||
|
}
|
||||||
|
}) }}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
module.exports = {
|
module.exports = {
|
||||||
extend: 'apostrophe-widgets',
|
extend: 'apostrophe-widgets',
|
||||||
label: 'Two Column',
|
label: 'Two Column (1:1)',
|
||||||
addFields: [
|
addFields: [
|
||||||
{
|
{
|
||||||
name: 'areaLeft',
|
name: 'areaLeft',
|
||||||
|
|||||||
8
package-lock.json
generated
8
package-lock.json
generated
@@ -1100,6 +1100,14 @@
|
|||||||
"stoppable": "^1.1.0"
|
"stoppable": "^1.1.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"apostrophe-rich-text-permalinks": {
|
||||||
|
"version": "2.0.5",
|
||||||
|
"resolved": "https://registry.npmjs.org/apostrophe-rich-text-permalinks/-/apostrophe-rich-text-permalinks-2.0.5.tgz",
|
||||||
|
"integrity": "sha512-BVHAW9EC36rBrc1+AXDyw7xOyFhqqT+gokjT828lgVp17xJHoQU/ABKjpFrTH3ywoPyx+p2xYVWZjl5j57Ubjw==",
|
||||||
|
"requires": {
|
||||||
|
"lodash": "^4.17.10"
|
||||||
|
}
|
||||||
|
},
|
||||||
"apostrophe-tiptap-rich-text-widgets": {
|
"apostrophe-tiptap-rich-text-widgets": {
|
||||||
"version": "0.3.8",
|
"version": "0.3.8",
|
||||||
"resolved": "https://registry.npmjs.org/apostrophe-tiptap-rich-text-widgets/-/apostrophe-tiptap-rich-text-widgets-0.3.8.tgz",
|
"resolved": "https://registry.npmjs.org/apostrophe-tiptap-rich-text-widgets/-/apostrophe-tiptap-rich-text-widgets-0.3.8.tgz",
|
||||||
|
|||||||
@@ -17,6 +17,7 @@
|
|||||||
"dependencies": {
|
"dependencies": {
|
||||||
"apostrophe": "^2.111.4",
|
"apostrophe": "^2.111.4",
|
||||||
"apostrophe-monitor": "^2.1.0",
|
"apostrophe-monitor": "^2.1.0",
|
||||||
|
"apostrophe-rich-text-permalinks": "^2.0.5",
|
||||||
"apostrophe-tiptap-rich-text-widgets": "^0.3.8",
|
"apostrophe-tiptap-rich-text-widgets": "^0.3.8",
|
||||||
"prosemirror-tables": "^0.9.1"
|
"prosemirror-tables": "^0.9.1"
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user