Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
689859b
lint
stuartromanek Jun 17, 2025
e9434fa
Merge branch 'main' of github.com:apostrophecms/public-demo
stuartromanek Jul 31, 2025
abc2bc2
Merge branch 'main' of github.com:apostrophecms/public-demo
stuartromanek Sep 16, 2025
1282040
wip as h
stuartromanek Nov 14, 2025
9d94d1c
mode
stuartromanek Nov 16, 2025
f8b5e66
u better believe its wip
stuartromanek Nov 17, 2025
210218f
manager
stuartromanek Nov 17, 2025
3da0fa8
fix weird thing where client-s3 didn't get built?
boutell Nov 18, 2025
81ea114
temporary change of deps to track down a bug blocking our deploy
boutell Nov 18, 2025
3283fb9
more more moreeee
stuartromanek Nov 19, 2025
9b3a273
m
stuartromanek Nov 19, 2025
90e0b5c
mobile stuff
stuartromanek Nov 25, 2025
1b77288
merge
stuartromanek Dec 1, 2025
ee11fd3
responso
stuartromanek Dec 1, 2025
7227831
cleanup and previews
stuartromanek Dec 2, 2025
ecc7f43
happy package-lock with the necessary dependencies
boutell Dec 5, 2025
5362c0a
Merge remote-tracking branch 'origin/new-design' into new-design
boutell Dec 5, 2025
104e120
if around localizations
stuartromanek Dec 8, 2025
ba2f2d9
Merge branch 'new-design' of github.com:apostrophecms/public-demo int…
stuartromanek Dec 8, 2025
0f7c69b
try new package lock from a successful build
boutell Dec 9, 2025
8b78921
Merge remote-tracking branch 'origin/new-design' into new-design
boutell Dec 9, 2025
91a0af3
cleanup
stuartromanek Dec 9, 2025
a813fbc
Merge branch 'new-design' of github.com:apostrophecms/public-demo int…
stuartromanek Dec 9, 2025
4c5b565
put price cards into main area config, update thumb
stuartromanek Dec 9, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 24 additions & 24 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,53 +21,53 @@ apostrophe({
// However any modules that are not present by default in Apostrophe must at
// least have a minimal configuration here to turn them on: `moduleName: {}`
'@apostrophecms/vite': {},
localizations: {},

// Custom CSS classes for standard apostrophe widgets
'@apostrophecms/rich-text-widget': {
options: {
className: 'demo-rte'
}
},
'@apostrophecms/image-widget': {
options: {
className: 'demo-image'
}
},
'@apostrophecms/video-widget': {
options: {
className: 'demo-video'
}
},
// Manages apostrophe's overall asset pipeline
'@apostrophecms/asset': {
// When not in production, refresh the page on restart
options: {
// refreshOnRestart: true,
hmr: 'apos'
}
// options: {
// // refreshOnRestart: true,
// hmr: 'apos'
// }
},

localizations: {},

// Manage page and piece SEO metadata
'@apostrophecms/seo': {},

// A home for our own project-specific javascript and SASS assets
asset: {},

// Template helpers
helper: {},
'cta-links-widget': {},
'columns-widget': {},
'container-widget': {},

// Widgets
'@apostrophecms/rich-text-widget': {},
'@apostrophecms/image-widget': {},
'@apostrophecms/video-widget': {},
'button-widget': {},
'github-prs-widget': {},
'hero-widget': {},
'card-widget': {},
'price-card-widget': {},

// A page type for ordinary pages
'default-page': {},

// A piece type for articles
article: {},

// Tease an article on any page
'article-widget': {},

// Paginated index of articles, and with pages for individual articles
'article-page': {},

// A piece type for categorizing articles
topic: {},

// Import and export content
'@apostrophecms/import-export': {}
}
});
164 changes: 88 additions & 76 deletions lib/area.js
Original file line number Diff line number Diff line change
@@ -1,93 +1,104 @@
const defaultRtConfig = {
toolbar: [
'styles',
'bold',
'italic',
'strike',
'link',
'bulletList',
'orderedList',
'blockquote',
'alignLeft',
'alignCenter',
'alignRight',
'codeBlock',
'undo',
'redo'
],
insert: [ 'table', 'image' ],
styles: [
// you may also use a `class` property with these
{
tag: 'p',
label: 'Paragraph (P)'
},
{
class: 'large',
tag: 'p',
label: 'Large Paragraph (P)'
},
{
tag: 'h2',
label: 'Heading 2 (H2)'
},
{
tag: 'h3',
label: 'Heading 3 (H3)'
},
{
tag: 'h4',
label: 'Heading 4 (H4)'
},
{
tag: 'h5',
label: 'Heading 5 (H5)'
},
{
tag: 'h6',
label: 'Meta (H6)',
class: 'meta'
},
{
tag: 'span',
class: 'highlight-red',
label: 'Red Highlight'
},
{
tag: 'span',
class: 'highlight-seafoam',
label: 'Seafoam Highlight'
},
{
tag: 'span',
class: 'highlight-blue',
label: 'Blue Highlight'
},
{
tag: 'span',
class: 'highlight-mustard',
label: 'Mustard Highlight'
},
{
tag: 'span',
class: 'highlight-purple',
label: 'Purple Highlight'
}
]
};

const basicConfig = {
'@apostrophecms/image': {},
'@apostrophecms/video': {},
'@apostrophecms/rich-text': {
toolbar: [
'styles',
'bold',
'italic',
'strike',
'link',
'bulletList',
'orderedList',
'blockquote',
'alignLeft',
'alignCenter',
'alignRight',
'codeBlock',
'undo',
'redo'
],
insert: [ 'table', 'image' ],
styles: [
// you may also use a `class` property with these
{
tag: 'p',
label: 'Paragraph (P)'
},
{
tag: 'h2',
label: 'Heading 2 (H2)'
},
{
tag: 'h3',
label: 'Heading 3 (H3)'
},
{
tag: 'h4',
label: 'Heading 4 (H4)'
},
{
tag: 'h5',
label: 'Meta (H5)',
class: 'meta'
},
{
tag: 'span',
label: 'Highlight: Red',
class: 'highlight-red'
},
{
tag: 'span',
label: 'Highlight: Dark Orange-Yellow',
class: 'highlight-mustard'
},
{
tag: 'span',
label: 'Highlight: Purple',
class: 'highlight-purple'
},
{
tag: 'span',
label: 'Highlight: Blue',
class: 'highlight-blue'
},
{
tag: 'span',
label: 'Highlight: Seafoam',
class: 'highlight-seafoam'
}
]
},
container: {},
'@apostrophecms/rich-text': defaultRtConfig,
'@apostrophecms/layout': {},
button: {},
'github-prs': {}
};

const fullConfig = Object.assign({
columns: {},
'@apostrophecms/layout': {},
article: {},
'cta-links': {}
card: {},
'price-card': {}
}, basicConfig);

const fullConfigExpandedGroups = {
layout: {
label: 'Layout Tools',
widgets: {
columns: {},
container: {}
'@apostrophecms/layout': {}
},
columns: 2
columns: 1
},
media: {
label: 'Media',
Expand All @@ -100,11 +111,12 @@ const fullConfigExpandedGroups = {
elements: {
label: 'Elements',
widgets: {
hero: {},
button: {},
'github-prs': {},
'@apostrophecms/rich-text': {},
'@apostrophecms/rich-text': defaultRtConfig,
article: {},
'cta-links': {}
'price-card': {}
},
columns: 3
}
Expand Down
46 changes: 46 additions & 0 deletions lib/iconChoices.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
export default [
{
label: 'Clock',
value: 'clock'
},
{
label: 'Building',
value: 'building'
},
{
label: 'Landmark',
value: 'landmark'
},
{
label: 'CPU',
value: 'cpu'
},
{
label: 'Trophy',
value: 'trophy'
},
{
label: 'Earth',
value: 'earth'
},
{
label: 'People',
value: 'people'
},
{
label: 'Chart',
value: 'chart'
},
{
label: 'Rocket',
value: 'rocket'
},
{
label: 'Package',
value: 'package'
},
{
label: 'Editor',
value: 'editor'
}
];
20 changes: 9 additions & 11 deletions modules/@apostrophecms/global/index.js
Original file line number Diff line number Diff line change
@@ -1,21 +1,19 @@
import linkConfig from '../../../lib/link.js';
import { fullConfig } from '../../../lib/area.js';

export default {
fields: {
add: {
footerLinks: {
label: 'Footer Links',
type: 'array',
titleField: 'linkText',
fields: {
add: {
...linkConfig.link
}
}
},
siteTitle: {
label: 'Site Title',
type: 'string',
def: 'Awesome Site'
},
footerContent: {
label: 'Footer Content',
type: 'area',
options: {
widgets: fullConfig
}
}
},
group: {
Expand Down
4 changes: 3 additions & 1 deletion modules/@apostrophecms/home-page/views/page.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@

{# Home page is full width #}
{% block pageTitle %}
<h1 class="meta home-title">{{ __t('homeTitle') }}</h1>
<h1 class="home-title">
<span class='meta'>{{ __t('homeTitle') }}</span>
</h1>
{% endblock %}
{% block subnav %}{% endblock %}

Expand Down
Loading