diff --git a/config/.gitignore b/config/.gitignore
index 6849a8304..5662c158a 100644
--- a/config/.gitignore
+++ b/config/.gitignore
@@ -2,6 +2,8 @@
dev-active/*.json
dev-active/.htaccess
+# Ingore beta server changes (is this what we want?)
+beta-active/*
# Ignore specific config files in staging
staging/devel.settings.json
diff --git a/config/staging/README.md b/config/staging/README.md
index 83f8e92c0..f4c4fb9ca 100644
--- a/config/staging/README.md
+++ b/config/staging/README.md
@@ -1,4 +1,2 @@
-This directory contains the active configuration for your Backdrop site. To move
-this configuration between environments, contents from this directory should be
-placed in the staging directory on the target server. To make this configuration
-active, see admin/config/development/configuration/sync on the target server.
+This directory contains configuration to be imported into your Backdrop site. To
+make this configuration active, see admin/config/development/configuration/sync.
diff --git a/config/staging/block.custom.home_card_cta.json b/config/staging/block.custom.home_card_cta.json
new file mode 100644
index 000000000..a7ae0b365
--- /dev/null
+++ b/config/staging/block.custom.home_card_cta.json
@@ -0,0 +1,12 @@
+{
+ "_config_name": "block.custom.home_card_cta",
+ "delta": "home_card_cta",
+ "info": "Home Card - CTA",
+ "title": "",
+ "description": "",
+ "body": {
+ "value": "Explore more features",
+ "format": "full_html"
+ },
+ "default_langcode": "und"
+}
diff --git a/config/staging/block.custom.home_card_d7.json b/config/staging/block.custom.home_card_d7.json
new file mode 100644
index 000000000..5d1efec18
--- /dev/null
+++ b/config/staging/block.custom.home_card_d7.json
@@ -0,0 +1,12 @@
+{
+ "_config_name": "block.custom.home_card_d7",
+ "delta": "home_card_d7",
+ "info": "Home Card - D7",
+ "title": "Upgrade from Drupal 7 with ease",
+ "description": "",
+ "body": {
+ "value": "
\r\n Backdrop has a built-in upgrade path from Drupal 7 and will feel familiar to anyone migrating.\r\n
",
+ "format": "filtered_html"
+ },
+ "default_langcode": "und"
+}
diff --git a/config/staging/block.custom.home_card_functionality.json b/config/staging/block.custom.home_card_functionality.json
new file mode 100644
index 000000000..60c844fb9
--- /dev/null
+++ b/config/staging/block.custom.home_card_functionality.json
@@ -0,0 +1,12 @@
+{
+ "_config_name": "block.custom.home_card_functionality",
+ "delta": "home_card_functionality",
+ "info": "Home Card - Functionality",
+ "title": "Add more functionality quickly and easily",
+ "description": "",
+ "body": {
+ "value": "\r\n Browse and install add-ons right from your site, created by a large, active, open source community.\r\n
",
+ "format": "filtered_html"
+ },
+ "default_langcode": "und"
+}
diff --git a/config/staging/block.custom.home_card_manage_content.json b/config/staging/block.custom.home_card_manage_content.json
new file mode 100644
index 000000000..28b4a65cb
--- /dev/null
+++ b/config/staging/block.custom.home_card_manage_content.json
@@ -0,0 +1,12 @@
+{
+ "_config_name": "block.custom.home_card_manage_content",
+ "delta": "home_card_manage_content",
+ "info": "Home Card - Manage Content",
+ "title": "Create and manage your own content",
+ "description": "",
+ "body": {
+ "value": "\r\n No need to be a web programmer to simply create, publish, and maintain your site’s content. \r\n
",
+ "format": "filtered_html"
+ },
+ "default_langcode": "und"
+}
diff --git a/config/staging/block.custom.home_card_performance.json b/config/staging/block.custom.home_card_performance.json
new file mode 100644
index 000000000..03becd1a8
--- /dev/null
+++ b/config/staging/block.custom.home_card_performance.json
@@ -0,0 +1,12 @@
+{
+ "_config_name": "block.custom.home_card_performance",
+ "delta": "home_card_performance",
+ "info": "Home Card - Performance",
+ "title": "Serve pages fast, even on shared hosting",
+ "description": "",
+ "body": {
+ "value": "\r\n With a commitment to performance, you can expect to see your pages fly!\r\n
",
+ "format": "filtered_html"
+ },
+ "default_langcode": "und"
+}
diff --git a/config/staging/entity.view_modes.json b/config/staging/entity.view_modes.json
index 0157a2ecb..400b4e2dc 100644
--- a/config/staging/entity.view_modes.json
+++ b/config/staging/entity.view_modes.json
@@ -4,6 +4,9 @@
"node": {
"project_search": {
"label": "Project Search"
+ },
+ "card": {
+ "label": "Card"
}
}
}
diff --git a/config/staging/field.bundle.node.feature.json b/config/staging/field.bundle.node.feature.json
index 045717467..d0deb06cb 100644
--- a/config/staging/field.bundle.node.feature.json
+++ b/config/staging/field.bundle.node.feature.json
@@ -20,6 +20,9 @@
},
"print": {
"custom_settings": false
+ },
+ "card": {
+ "custom_settings": true
}
},
"extra_fields": {
diff --git a/config/staging/field.bundle.taxonomy_term.organization.json b/config/staging/field.bundle.taxonomy_term.organization.json
index e76a3990b..f5382d679 100644
--- a/config/staging/field.bundle.taxonomy_term.organization.json
+++ b/config/staging/field.bundle.taxonomy_term.organization.json
@@ -15,6 +15,13 @@
"weight": "2"
}
},
- "display": []
+ "display": {
+ "description": {
+ "default": {
+ "weight": "0",
+ "visible": true
+ }
+ }
+ }
}
}
diff --git a/config/staging/field.instance.node.feature.body.json b/config/staging/field.instance.node.feature.body.json
index 867d45f9d..fcfc13f64 100644
--- a/config/staging/field.instance.node.feature.body.json
+++ b/config/staging/field.instance.node.feature.body.json
@@ -17,7 +17,8 @@
"settings": {
"text_processing": "1",
"display_summary": 0,
- "user_register_form": false
+ "user_register_form": false,
+ "allowed_formats": []
},
"display": {
"default": {
@@ -35,6 +36,12 @@
"trim_length": 600
},
"module": "text"
+ },
+ "card": {
+ "label": "hidden",
+ "type": "hidden",
+ "weight": "5",
+ "settings": []
}
},
"description": "",
diff --git a/config/staging/field.instance.node.feature.field_backdrop_version.json b/config/staging/field.instance.node.feature.field_backdrop_version.json
index b2c46136d..524df6922 100644
--- a/config/staging/field.instance.node.feature.field_backdrop_version.json
+++ b/config/staging/field.instance.node.feature.field_backdrop_version.json
@@ -36,6 +36,12 @@
"type": "hidden",
"weight": "2",
"settings": []
+ },
+ "card": {
+ "label": "inline",
+ "type": "hidden",
+ "weight": "4",
+ "settings": []
}
}
}
diff --git a/config/staging/field.instance.node.feature.field_blurb.json b/config/staging/field.instance.node.feature.field_blurb.json
index ec02a116a..5eb51b63c 100644
--- a/config/staging/field.instance.node.feature.field_blurb.json
+++ b/config/staging/field.instance.node.feature.field_blurb.json
@@ -20,7 +20,8 @@
"default_value_function": null,
"settings": {
"text_processing": "0",
- "user_register_form": false
+ "user_register_form": false,
+ "allowed_formats": []
},
"display": {
"default": {
@@ -36,6 +37,13 @@
"weight": "0",
"settings": [],
"module": "text"
+ },
+ "card": {
+ "label": "hidden",
+ "type": "text_default",
+ "weight": "0",
+ "settings": [],
+ "module": "text"
}
}
}
diff --git a/config/staging/field.instance.node.feature.field_feature_type.json b/config/staging/field.instance.node.feature.field_feature_type.json
index 5b2eaf527..99b4b94bd 100644
--- a/config/staging/field.instance.node.feature.field_feature_type.json
+++ b/config/staging/field.instance.node.feature.field_feature_type.json
@@ -32,6 +32,12 @@
"type": "hidden",
"weight": "3",
"settings": []
+ },
+ "card": {
+ "label": "hidden",
+ "type": "hidden",
+ "weight": "1",
+ "settings": []
}
}
}
diff --git a/config/staging/field.instance.node.feature.field_organization.json b/config/staging/field.instance.node.feature.field_organization.json
index d346c775f..7d21bd789 100644
--- a/config/staging/field.instance.node.feature.field_organization.json
+++ b/config/staging/field.instance.node.feature.field_organization.json
@@ -31,6 +31,12 @@
"type": "hidden",
"weight": "5",
"settings": []
+ },
+ "card": {
+ "label": "hidden",
+ "type": "hidden",
+ "weight": "7",
+ "settings": []
}
}
}
diff --git a/config/staging/field.instance.node.feature.field_screen_lg.json b/config/staging/field.instance.node.feature.field_screen_lg.json
index ebfaa4a23..0b0f28196 100644
--- a/config/staging/field.instance.node.feature.field_screen_lg.json
+++ b/config/staging/field.instance.node.feature.field_screen_lg.json
@@ -30,7 +30,8 @@
"user_register_form": false,
"max_dimensions": "",
"min_dimensions": "",
- "orientate": 0
+ "orientate": 0,
+ "alt_field_required": 0
},
"display": {
"default": {
@@ -50,6 +51,12 @@
"type": "hidden",
"weight": "6",
"settings": []
+ },
+ "card": {
+ "label": "hidden",
+ "type": "hidden",
+ "weight": "2",
+ "settings": []
}
}
}
diff --git a/config/staging/field.instance.node.feature.field_video.json b/config/staging/field.instance.node.feature.field_video.json
index 15da7dad1..19659d4e6 100644
--- a/config/staging/field.instance.node.feature.field_video.json
+++ b/config/staging/field.instance.node.feature.field_video.json
@@ -42,6 +42,12 @@
"type": "hidden",
"weight": "7",
"settings": []
+ },
+ "card": {
+ "label": "hidden",
+ "type": "hidden",
+ "weight": "6",
+ "settings": []
}
}
}
diff --git a/config/staging/layout.layout.home.json b/config/staging/layout.layout.home.json
index 213002f70..e237ed416 100644
--- a/config/staging/layout.layout.home.json
+++ b/config/staging/layout.layout.home.json
@@ -8,7 +8,7 @@
"module": null,
"weight": -9,
"storage": 1,
- "layout_template": "borg_sutro",
+ "layout_template": "borg_sutro_grid",
"disabled": false,
"settings": {
"title": "",
@@ -23,37 +23,32 @@
],
"top": [
"2ccf25c8-e89e-4531-b83a-585d462a1e02",
- "e50b4f98-4eb2-4ae0-9d3c-60932d8a5a6d"
+ "e50b4f98-4eb2-4ae0-9d3c-60932d8a5a6d",
+ "55c9ae11-1555-467f-9500-efd5ae2257a4"
],
"top1": [
"af96a11b-a617-457e-8e00-e6a56cf0f640"
],
"top2": [
- "231ef900-0d0f-4d58-a43f-636a2b11e958"
+ "56fbf81f-ffaa-4e4b-be06-6fe88d598872"
],
"top3": [
- "e66902ae-5fac-47b7-8500-b84bff8c4dd9"
+ "55c7ed91-2227-4fca-8828-404c2beef9d6"
],
- "content": [],
- "half1": [
- "712c691e-6273-4634-8000-d97d82d86e88"
- ],
- "half2": [
- "78355c13-bb46-4609-a607-7fa6192a1afd",
- "f763943b-8712-44ff-ba00-e45044734b4b",
- "a2d68242-5eb9-422e-8700-0fa9e7c6b9a1"
- ],
- "below": [
- "65611a78-5d6e-4d50-8705-058169d6120c",
- "1bcb4583-cc63-43dc-8908-08af956e6975"
+ "top4": [
+ "305bb9ac-2a47-4c96-b602-2ec6d07e9949",
+ "f6eb4543-8e49-46d2-aa60-968e3c0ab21d"
],
- "below1": [
- "67447c68-4227-4401-ad00-f50c7b1a6690"
- ],
- "below2": [
- "a9d84586-db47-4e43-a75d-93e603166bfb"
+ "content": [
+ "712c691e-6273-4634-8000-d97d82d86e88"
],
+ "half1": [],
+ "half2": [],
+ "below": [],
+ "below1": [],
+ "below2": [],
"bottom": [
+ "72cf526c-2292-46bd-a017-2395ee4c228b",
"ab1a0052-0f34-4e5d-ba00-00f61a41f411"
],
"footer": [
@@ -207,48 +202,20 @@
}
}
},
- "af96a11b-a617-457e-8e00-e6a56cf0f640": {
- "plugin": "layout:custom_block",
- "data": {
- "status": 1,
- "module": "layout",
- "delta": "custom_block",
- "settings": {
- "title_display": "default",
- "title": "What is Backdrop CMS?",
- "style": "default",
- "block_settings": [],
- "contexts": [],
- "content": "\r\n Backdrop is a free and Open Source Content Management System that helps you build modern, comprehensive websites on a reasonable budget.\r\n
\r\n\r\n A fork of the successful Drupal project, it's an excellent alternative for organizations of all sizes.\r\n
",
- "format": "filtered_html",
- "admin_label": "",
- "admin_description": ""
- },
- "uuid": "af96a11b-a617-457e-8e00-e6a56cf0f640",
- "style": {
- "plugin": "default",
- "data": {
- "settings": {
- "classes": ""
- }
- }
- }
- }
- },
- "231ef900-0d0f-4d58-a43f-636a2b11e958": {
- "plugin": "views:showcase-block_2",
+ "55c9ae11-1555-467f-9500-efd5ae2257a4": {
+ "plugin": "views:product_features-block",
"data": {
"status": 1,
"module": "views",
- "delta": "showcase-block_2",
+ "delta": "product_features-block",
"settings": {
"link_to_view": 0,
- "more_link": false,
+ "more_link": 1,
"use_pager": false,
"pager_id": 0,
- "items_per_page": "1",
+ "items_per_page": "4",
"offset": 0,
- "path": "showcase",
+ "path": "features",
"fields_override": null,
"title_display": "default",
"title": "",
@@ -261,7 +228,7 @@
"admin_label": "",
"admin_description": ""
},
- "uuid": "231ef900-0d0f-4d58-a43f-636a2b11e958",
+ "uuid": "55c9ae11-1555-467f-9500-efd5ae2257a4",
"style": {
"plugin": "default",
"data": {
@@ -272,141 +239,138 @@
}
}
},
- "e66902ae-5fac-47b7-8500-b84bff8c4dd9": {
- "plugin": "block:backdrop_live",
+ "af96a11b-a617-457e-8e00-e6a56cf0f640": {
+ "plugin": "block:home_card_performance",
"data": {
"status": 1,
"module": "block",
- "delta": "backdrop_live",
+ "delta": "home_card_performance",
"settings": {
"title_display": "default",
- "title": "",
"style": "default",
"block_settings": {
- "delta": "backdrop_live",
- "description": "Promote Backdrop LIVE",
+ "delta": "home_card_performance",
+ "description": "",
"reusable": true
},
"contexts": [],
- "admin_label": "",
- "admin_description": ""
+ "admin_label": "Home Card - Performance",
+ "admin_description": "",
+ "title": ""
},
- "uuid": "e66902ae-5fac-47b7-8500-b84bff8c4dd9",
+ "uuid": "af96a11b-a617-457e-8e00-e6a56cf0f640",
"style": {
"plugin": "default",
"data": {
"settings": {
- "classes": ""
+ "classes": "dark-hero-card dark-hero-card--performance"
}
}
}
}
},
- "712c691e-6273-4634-8000-d97d82d86e88": {
- "plugin": "system:main",
+ "56fbf81f-ffaa-4e4b-be06-6fe88d598872": {
+ "plugin": "block:home_card_functionality",
"data": {
"status": 1,
- "module": "system",
- "delta": "main",
+ "module": "block",
+ "delta": "home_card_functionality",
"settings": {
"title_display": "default",
- "title": "",
- "style": "dynamic",
- "block_settings": [],
- "contexts": []
+ "style": "default",
+ "block_settings": {
+ "delta": "home_card_functionality",
+ "description": "",
+ "reusable": true
+ },
+ "contexts": [],
+ "admin_label": "Home Card - Functionality",
+ "admin_description": "",
+ "title": ""
},
- "uuid": "712c691e-6273-4634-8000-d97d82d86e88",
+ "uuid": "56fbf81f-ffaa-4e4b-be06-6fe88d598872",
"style": {
- "plugin": "dynamic",
+ "plugin": "default",
"data": {
"settings": {
- "classes": "l-content-wrapper",
- "wrapper_tag": "div",
- "title_tag": "h2",
- "title_classes": "block-title",
- "content_tag": "div",
- "content_classes": ""
+ "classes": "dark-hero-card dark-hero-card--functionality"
}
}
}
}
},
- "78355c13-bb46-4609-a607-7fa6192a1afd": {
- "plugin": "block:books",
+ "55c7ed91-2227-4fca-8828-404c2beef9d6": {
+ "plugin": "block:home_card_d7",
"data": {
"status": 1,
"module": "block",
- "delta": "books",
+ "delta": "home_card_d7",
"settings": {
"title_display": "default",
- "title": "",
"style": "default",
"block_settings": {
- "delta": "books",
+ "delta": "home_card_d7",
"description": "",
"reusable": true
},
"contexts": [],
- "admin_label": "",
- "admin_description": ""
+ "admin_label": "Home Card - D7",
+ "admin_description": "",
+ "title": ""
},
- "uuid": "78355c13-bb46-4609-a607-7fa6192a1afd",
+ "uuid": "55c7ed91-2227-4fca-8828-404c2beef9d6",
"style": {
"plugin": "default",
"data": {
"settings": {
- "classes": ""
+ "classes": "dark-hero-card dark-hero-card--d7"
}
}
}
}
},
- "f763943b-8712-44ff-ba00-e45044734b4b": {
- "plugin": "block:resources",
+ "305bb9ac-2a47-4c96-b602-2ec6d07e9949": {
+ "plugin": "block:home_card_manage_content",
"data": {
"status": 1,
"module": "block",
- "delta": "resources",
+ "delta": "home_card_manage_content",
"settings": {
"title_display": "default",
- "title": "",
"style": "default",
- "block_settings": {
- "delta": "resources",
- "description": "",
- "reusable": true
- },
+ "block_settings": [],
"contexts": [],
- "admin_label": "",
- "admin_description": ""
+ "admin_label": "Home Card - Manage Content",
+ "admin_description": "",
+ "title": ""
},
- "uuid": "f763943b-8712-44ff-ba00-e45044734b4b",
+ "uuid": "305bb9ac-2a47-4c96-b602-2ec6d07e9949",
"style": {
"plugin": "default",
"data": {
"settings": {
- "classes": ""
+ "classes": "dark-hero-card dark-hero-card--content"
}
}
}
}
},
- "a2d68242-5eb9-422e-8700-0fa9e7c6b9a1": {
- "plugin": "layout:custom_block",
+ "f6eb4543-8e49-46d2-aa60-968e3c0ab21d": {
+ "plugin": "block:home_card_cta",
"data": {
"status": 1,
- "module": "layout",
- "delta": "custom_block",
+ "module": "block",
+ "delta": "home_card_cta",
"settings": {
"title_display": "default",
- "title": "Badges",
"style": "default",
"block_settings": [],
"contexts": [],
- "content": "Linux Foundation Core Infrastructure Initiative\r\n\r\n
",
- "format": "full_html"
+ "admin_label": "Home Card - CTA",
+ "admin_description": "",
+ "title": ""
},
- "uuid": "a2d68242-5eb9-422e-8700-0fa9e7c6b9a1",
+ "uuid": "f6eb4543-8e49-46d2-aa60-968e3c0ab21d",
"style": {
"plugin": "default",
"data": {
@@ -417,55 +381,51 @@
}
}
},
- "65611a78-5d6e-4d50-8705-058169d6120c": {
- "plugin": "views:showcase-block_1",
+ "712c691e-6273-4634-8000-d97d82d86e88": {
+ "plugin": "system:main",
"data": {
"status": 1,
- "module": "views",
- "delta": "showcase-block_1",
+ "module": "system",
+ "delta": "main",
"settings": {
- "link_to_view": 0,
- "more_link": false,
- "use_pager": false,
- "pager_id": 0,
- "items_per_page": "3",
- "offset": 0,
- "path": "showcase",
- "fields_override": null,
"title_display": "default",
"title": "",
- "style": "default",
+ "style": "dynamic",
"block_settings": [],
- "contexts": [],
- "allowed": [],
- "path_override": false,
- "exposed": []
+ "contexts": []
},
- "uuid": "65611a78-5d6e-4d50-8705-058169d6120c",
+ "uuid": "712c691e-6273-4634-8000-d97d82d86e88",
"style": {
- "plugin": "default",
+ "plugin": "dynamic",
"data": {
"settings": {
- "classes": "dark"
+ "classes": "l-content-wrapper",
+ "wrapper_tag": "div",
+ "title_tag": "h2",
+ "title_classes": "block-title",
+ "content_tag": "div",
+ "content_classes": ""
}
}
}
}
},
- "1bcb4583-cc63-43dc-8908-08af956e6975": {
- "plugin": "borg_project_metrics:backdrop_project_metrics",
+ "72cf526c-2292-46bd-a017-2395ee4c228b": {
+ "plugin": "borg_blocks:audiences",
"data": {
"status": 1,
- "module": "borg_project_metrics",
- "delta": "backdrop_project_metrics",
+ "module": "borg_blocks",
+ "delta": "audiences",
"settings": {
"title_display": "default",
"title": "",
"style": "default",
"block_settings": [],
- "contexts": []
+ "contexts": [],
+ "admin_label": "",
+ "admin_description": ""
},
- "uuid": "1bcb4583-cc63-43dc-8908-08af956e6975",
+ "uuid": "72cf526c-2292-46bd-a017-2395ee4c228b",
"style": {
"plugin": "default",
"data": {
@@ -546,6 +506,32 @@
}
}
},
+ "72cf526c-2292-46bd-a017-2395ee4c228b": {
+ "plugin": "borg_blocks:audiences",
+ "data": {
+ "status": 1,
+ "module": "borg_blocks",
+ "delta": "audiences",
+ "settings": {
+ "title_display": "default",
+ "title": "",
+ "style": "default",
+ "block_settings": [],
+ "contexts": [],
+ "admin_label": "",
+ "admin_description": ""
+ },
+ "uuid": "72cf526c-2292-46bd-a017-2395ee4c228b",
+ "style": {
+ "plugin": "default",
+ "data": {
+ "settings": {
+ "classes": ""
+ }
+ }
+ }
+ }
+ },
"ab1a0052-0f34-4e5d-ba00-00f61a41f411": {
"plugin": "borg_blocks:upgrade",
"data": {
diff --git a/config/staging/menu.menu.menu-cms-audiences.json b/config/staging/menu.menu.menu-cms-audiences.json
new file mode 100644
index 000000000..83480f46f
--- /dev/null
+++ b/config/staging/menu.menu.menu-cms-audiences.json
@@ -0,0 +1,6 @@
+{
+ "_config_name": "menu.menu.menu-cms-audiences",
+ "title": "CMS Audiences",
+ "menu_name": "menu-cms-audiences",
+ "description": "Shown on homepage"
+}
diff --git a/config/staging/system.core.json b/config/staging/system.core.json
index ad563b0e7..3fd7cb52c 100644
--- a/config/staging/system.core.json
+++ b/config/staging/system.core.json
@@ -46,7 +46,8 @@
"2": "main-menu",
"3": "management",
"5": "user-menu",
- "7": "menu-footer-menu"
+ "7": "menu-footer-menu",
+ "8": "menu-cms-audiences"
},
"menu_route_handler": "layout_route_handler",
"file_default_scheme": "public",
diff --git a/config/staging/views.view.news.json b/config/staging/views.view.news.json
index bf8562c98..e9fa2d1c6 100644
--- a/config/staging/views.view.news.json
+++ b/config/staging/views.view.news.json
@@ -151,10 +151,10 @@
"separator": ", ",
"field_api_classes": 0
},
- "view_node": {
- "id": "view_node",
- "table": "views_entity_node",
- "field": "view_node",
+ "field_image": {
+ "id": "field_image",
+ "table": "field_data_field_image",
+ "field": "field_image",
"relationship": "none",
"group_type": "group",
"ui_name": "",
@@ -166,7 +166,7 @@
"make_link": 0,
"path": "",
"absolute": 0,
- "external": false,
+ "external": 0,
"replace_spaces": 0,
"path_case": "none",
"trim_whitespace": 0,
@@ -200,7 +200,24 @@
"hide_empty": 0,
"empty_zero": 0,
"hide_alter_empty": 1,
- "text": "Read more"
+ "click_sort_column": "fid",
+ "type": "image",
+ "settings": {
+ "image_style": "hero_featured",
+ "image_link": "content",
+ "image_float": "",
+ "image_load": "lazy"
+ },
+ "group_column": "",
+ "group_columns": [],
+ "group_rows": true,
+ "delta_limit": "all",
+ "delta_offset": 0,
+ "delta_reversed": false,
+ "delta_first_last": false,
+ "multi_type": "separator",
+ "separator": ", ",
+ "field_api_classes": 0
}
},
"filters": {
diff --git a/config/staging/views.view.product_features.json b/config/staging/views.view.product_features.json
index cbeb6e663..e4771ca3c 100644
--- a/config/staging/views.view.product_features.json
+++ b/config/staging/views.view.product_features.json
@@ -2,14 +2,14 @@
"_config_name": "views.view.product_features",
"name": "product_features",
"description": "",
- "tag": "default",
+ "tag": "",
"disabled": false,
"base_table": "node",
- "human_name": "Product Features",
- "core": "1.4.2",
+ "human_name": "product_features",
+ "core": "1.29.3",
"display": {
"default": {
- "display_title": "Master",
+ "display_title": "Default",
"display_plugin": "default",
"display_options": {
"query": {
@@ -32,7 +32,7 @@
"offset": "0"
}
},
- "style_plugin": "grid",
+ "style_plugin": "default",
"row_plugin": "fields",
"fields": {
"field_icon_class": {
@@ -106,10 +106,10 @@
"group_type": "group",
"ui_name": "",
"label": "",
- "exclude": 0,
+ "exclude": 1,
"alter": {
- "alter_text": 1,
- "text": " [title]
",
+ "alter_text": 0,
+ "text": "",
"make_link": 0,
"path": "",
"absolute": 0,
@@ -147,7 +147,7 @@
"hide_empty": 0,
"empty_zero": 0,
"hide_alter_empty": 1,
- "link_to_node": 1
+ "link_to_node": 0
},
"field_blurb": {
"id": "field_blurb",
@@ -157,7 +157,7 @@
"group_type": "group",
"ui_name": "",
"label": "",
- "exclude": 0,
+ "exclude": 1,
"alter": {
"alter_text": 0,
"text": "",
@@ -211,6 +211,56 @@
"multi_type": "separator",
"separator": ", ",
"field_api_classes": 0
+ },
+ "nothing": {
+ "id": "nothing",
+ "table": "views",
+ "field": "nothing",
+ "relationship": "none",
+ "group_type": "group",
+ "ui_name": "",
+ "label": "",
+ "exclude": 0,
+ "alter": {
+ "alter_text": true,
+ "text": "\r\n
[title]
\r\n [field_blurb]\r\n",
+ "make_link": 0,
+ "path": "",
+ "absolute": 0,
+ "external": 0,
+ "replace_spaces": 0,
+ "path_case": "none",
+ "trim_whitespace": 0,
+ "alt": "",
+ "rel": "",
+ "link_class": "",
+ "prefix": "",
+ "suffix": "",
+ "target": "",
+ "nl2br": 0,
+ "max_length": "",
+ "word_boundary": 1,
+ "ellipsis": 1,
+ "more_link": 0,
+ "more_link_text": "",
+ "more_link_path": "",
+ "strip_tags": 0,
+ "trim": 0,
+ "preserve_tags": "",
+ "html": 0
+ },
+ "element_type": "0",
+ "element_class": "",
+ "element_label_type": "",
+ "element_label_class": "",
+ "element_label_colon": false,
+ "element_wrapper_type": "0",
+ "element_wrapper_class": "",
+ "element_default_classes": 1,
+ "empty": "",
+ "hide_empty": 0,
+ "empty_zero": 0,
+ "hide_alter_empty": 0
}
},
"filters": {
@@ -234,6 +284,19 @@
}
},
"sorts": {
+ "promote": {
+ "id": "promote",
+ "table": "node",
+ "field": "promote",
+ "relationship": "none",
+ "group_type": "group",
+ "ui_name": "",
+ "order": "DESC",
+ "exposed": false,
+ "expose": {
+ "label": ""
+ }
+ },
"created": {
"id": "created",
"table": "node",
@@ -241,7 +304,7 @@
"order": "ASC"
}
},
- "title": "Product Features",
+ "title": "",
"row_options": {
"default_field_elements": 1,
"inline": [],
@@ -252,17 +315,43 @@
"grouping": [],
"row_class": "",
"default_row_class": 1,
- "row_class_special": 1,
- "columns": "3",
- "alignment": "horizontal",
- "deprecated_table": 1,
- "fill_single_line": 1,
- "caption": "",
- "summary": ""
- }
+ "row_class_special": 0
+ },
+ "css_class": "",
+ "use_more": 1,
+ "use_more_always": false,
+ "use_more_text": "Explore more features"
}
},
- "page": {
+ "block": {
+ "display_title": "Block",
+ "display_plugin": "block",
+ "display_options": {
+ "query": {
+ "type": "views_query",
+ "options": []
+ },
+ "field": {
+ "title": {
+ "link_to_node": 1
+ }
+ },
+ "block_description": "Hero Home Cards",
+ "pager": {
+ "type": "some",
+ "options": {
+ "items_per_page": "4",
+ "offset": "0"
+ }
+ },
+ "defaults": {
+ "pager": false,
+ "pager_options": false
+ },
+ "pager_options": null
+ }
+ },
+ "page_1": {
"display_title": "Page",
"display_plugin": "page",
"display_options": {
@@ -270,7 +359,11 @@
"type": "views_query",
"options": []
},
- "path": "features"
+ "path": "features",
+ "title": "Features of Backdrop CMS",
+ "defaults": {
+ "title": false
+ }
}
}
}
diff --git a/config/staging/views.view.showcase.json b/config/staging/views.view.showcase.json
index 032a4f720..a2ae303ee 100644
--- a/config/staging/views.view.showcase.json
+++ b/config/staging/views.view.showcase.json
@@ -624,7 +624,9 @@
"fields": false,
"header": true,
"pager": false,
- "pager_options": false
+ "pager_options": false,
+ "arguments": false,
+ "relationships": false
},
"pager": {
"type": "full",
@@ -651,7 +653,27 @@
}
}
},
- "pager_options": null
+ "pager_options": null,
+ "arguments": {
+ "name": {
+ "id": "name",
+ "table": "taxonomy_term_data",
+ "field": "name",
+ "relationship": "field_organization_tid"
+ }
+ },
+ "relationships": {
+ "field_organization_tid": {
+ "id": "field_organization_tid",
+ "table": "field_data_field_organization",
+ "field": "field_organization_tid",
+ "relationship": "none",
+ "group_type": "group",
+ "ui_name": "",
+ "label": "term from field_organization",
+ "required": 0
+ }
+ }
}
},
"feed_1": {
diff --git a/www/layouts/borg_sutro_grid/borg-sutro.png b/www/layouts/borg_sutro_grid/borg-sutro.png
new file mode 100644
index 000000000..ba3aeb461
Binary files /dev/null and b/www/layouts/borg_sutro_grid/borg-sutro.png differ
diff --git a/www/layouts/borg_sutro_grid/borg_sutro_grid.css b/www/layouts/borg_sutro_grid/borg_sutro_grid.css
new file mode 100644
index 000000000..e3cb72726
--- /dev/null
+++ b/www/layouts/borg_sutro_grid/borg_sutro_grid.css
@@ -0,0 +1,11 @@
+.l-top__wrapper {
+ @media (min-width: 48em) {
+ display: grid;
+ grid-template-columns: repeat(2, minmax(0, 1fr));
+ gap: 2rem;
+ }
+ @media (min-width: 75em) {
+ display: grid;
+ grid-template-columns: repeat(4, minmax(0, 1fr));
+ }
+}
diff --git a/www/layouts/borg_sutro_grid/borg_sutro_grid.info b/www/layouts/borg_sutro_grid/borg_sutro_grid.info
new file mode 100644
index 000000000..816e7eb7c
--- /dev/null
+++ b/www/layouts/borg_sutro_grid/borg_sutro_grid.info
@@ -0,0 +1,35 @@
+type = layout
+name = Borg Sutro Grid
+backdrop = 1.x
+
+; Specify regions for this layout.
+regions[header] = Header
+regions[top] = Top
+
+regions[top1] = Top 1
+regions[top2] = Top 2
+regions[top3] = Top 3
+regions[top4] = Top 4
+
+regions[content] = Content
+regions[half1] = Half First Top
+regions[half2] = Half Second Top
+
+regions[below] = Below
+regions[below1] = Half First Below
+regions[below2] = Half Second Below
+
+regions[bottom] = Bottom
+regions[footer] = Footer
+
+; The default region automatically receives the "Main Content" block if needed.
+default region = content
+
+; Preview
+preview = borg-sutro.png
+
+; Include the Bootstrap4 Grid System
+libraries[] = bootstrap4-gs
+
+; Stylesheet
+stylesheets[all][] = borg_sutro_grid.css
\ No newline at end of file
diff --git a/www/layouts/borg_sutro_grid/layout--borg-sutro-grid.tpl.php b/www/layouts/borg_sutro_grid/layout--borg-sutro-grid.tpl.php
new file mode 100644
index 000000000..eb9947db7
--- /dev/null
+++ b/www/layouts/borg_sutro_grid/layout--borg-sutro-grid.tpl.php
@@ -0,0 +1,146 @@
+
+>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/www/modules/custom/borg_blocks/borg_blocks.module b/www/modules/custom/borg_blocks/borg_blocks.module
index 3c2509ecc..49f06804b 100644
--- a/www/modules/custom/borg_blocks/borg_blocks.module
+++ b/www/modules/custom/borg_blocks/borg_blocks.module
@@ -16,6 +16,10 @@ function borg_blocks_block_info() {
'info' => t('Tagline & Download'),
'description' => t('Tagline and download'),
);
+ $blocks['audiences'] = array(
+ 'info' => t('Backdrop for Audiences'),
+ 'description' => t('Homepage block'),
+ );
$blocks['greeting'] = array(
'info' => t('Greeting'),
'description' => t('Backdrop CMS greeting block.'),
@@ -70,6 +74,11 @@ function borg_blocks_block_view($delta = '', $settings = array(), $contexts = ar
}
break;
+ case 'audiences':
+ $block['subject'] = NULL;
+ $block['content'] = borg_blocks_audiences($settings);
+ break;
+
case 'upgrade':
$block['subject'] = t('Upgrade from Drupal 7');
@@ -95,45 +104,118 @@ function borg_blocks_block_view($delta = '', $settings = array(), $contexts = ar
function borg_blocks_tagline($settings) {
$version = check_plain($settings['version']);
- $demo_attributes = array('class' => array('button', 'demo'));
+ $button_class_name = 'borg__button';
if (module_exists('tugboat')) {
- $demo_text = t('Demo Backdrop');
- $demo_link = l($demo_text, 'demo', array('attributes' => $demo_attributes, 'html' => TRUE));
+ $demo_text = t('Demo Backdrop CMS');
+ $demo_link = l($demo_text, 'demo',
+ array(
+ 'attributes' => array(
+ 'class' => array(
+ $button_class_name,
+ $button_class_name . '--primary',
+ )
+ ),
+ 'html' => TRUE,
+ )
+ );
}
else {
$pantheon_url = 'https://dashboard.pantheon.io/sites/create?upstream_id=bf703821-4c18-45a1-88b8-3d9ec302273d';
$demo_text = t('Backdrop on Pantheon');
- $demo_link = l($demo_text, $pantheon_url, array('attributes' => $demo_attributes, 'html' => TRUE));
+ $demo_link = l($demo_text, $pantheon_url,
+ array(
+ 'attributes' => array(
+ 'class' => array(
+ $button_class_name,
+ $button_class_name . '--primary',
+ )
+ ),
+ 'html' => TRUE,
+ )
+ );
+
}
$dl_url = 'https://github.com/backdrop/backdrop/releases/download/' . $version . '/backdrop.zip';
- $dl_text = t('Download Backdrop') . ' v ' . $version . '';
- $dl_attributes = array('class' => array('button', 'download'));
- $download_link = l($dl_text, $dl_url, array('attributes' => $dl_attributes, 'html' => TRUE));
-
- //$output = 'Backdrop CMS
';
- $output = 'Backdrop CMS
';
- $output .= 'Put your content center stage.
';
- //$output .= 'Backdrop is the free and Open Source Content Management System
that helps you build modern, comprehensive websites for businesses and non-profits.
';
-
- $output .= '';
- $output .= $demo_link;
- $output .= '
';
- $output .= l(t('more ways to try'), 'try-backdrop');
- $output .= '
';
- $output .= '
';
+ $dl_text = t('Download Backdrop CMS') . ' v ' . $version . '';
+
+ $download_link = l($dl_text, $dl_url,
+ array(
+ 'attributes' => array(
+ 'class' => array(
+ $button_class_name,
+ $button_class_name . '--secondary',
+ )
+ ),
+ 'html' => TRUE,
+ )
+ );
+ $output =
+ '' .
+ ''. t('Put your content center stage') . '' .
+ '
' .
+ '' .
+ t('A free and Open Source Content Management System that helps you build modern, comprehensive websites on a reasonable budget.') .
+ '
';
- $requirements = l(t('requirements'), 'requirements');
- $installing = l(t('installing'), 'installation');
- $upgrading = l(t('upgrading'), 'upgrade');
+ $output .= '';
+ $output .= '- ' . $demo_link . '
';
+ $output .= '- ' . $download_link . '
';
+ $output .= '
';
- $output .= '';
- $output .= $download_link;
- $output .= '
';
- $output .= $requirements . ' | ' . $installing . ' | ' . $upgrading;
- $output .= '
';
- $output .= '
';
+ return $output;
+}
+
+function borg_blocks_audiences($settings) {
+ $button_class_name = 'borg__button';
+
+ $output =
+ ''.
+ t('Sites Showcase') .
+ ' ' .
+ '' .
+ t('A flexible CMS for any person or organization') .
+ '
' .
+ '' .
+ t('A flexible CMS for any person or organization') .
+ '
' .
+ t('Backdrop CMS is being used across more than 3,600+ sites for both individuals and organization of all kinds.') .
+ '
' .
+ l(
+ t('See the Showcase'),
+ 'showcase',
+ array(
+ 'attributes' => array(
+ 'class' => array(
+ $button_class_name,
+ $button_class_name . '--primary',
+ )
+ ),
+ )
+ ) .
+ '
';
+
+ $output .= '';
+ $audiences_menu = menu_load_links('menu-cms-audiences');
+ foreach ($audiences_menu as $key => $audiences_menu_item) {
+ if (!empty($audiences_menu_item['hidden'])) {
+ break;
+ }
+ $mlid = $audiences_menu_item['mlid'];
+
+ $options = $audiences_menu_item['options'];
+ $options['attributes']['class'][] = 'audiences-block__organization-link';
+ $options['attributes']['class'][] = 'audiences-block__organization-link--' . $mlid;
+ $options['attributes']['class'][] = 'chonky-link-bar';
+
+ $output .=
+ '- ' .
+ l($audiences_menu_item['link_title'], $audiences_menu_item['link_path'], $options) .
+ '
';
+ }
+
+ $output .= '
';
return $output;
}
diff --git a/www/themes/backdropcms/css/borg-components.css b/www/themes/backdropcms/css/borg-components.css
index 081948f8d..087ee6042 100644
--- a/www/themes/backdropcms/css/borg-components.css
+++ b/www/themes/backdropcms/css/borg-components.css
@@ -5,102 +5,6 @@
******************************************************************************/
-/*******************************************************************************
- * Custom tagline block.
- ******************************************************************************/
-.block-borg-blocks-tagline {
- text-align: center;
- padding: 30px 0;
-}
-.block-borg-blocks-tagline h1 {
- margin: 1rem 0;
- font-size: 2.66rem;
- font-weight: normal;
- color: #000;
-}
-body.front .block-borg-blocks-tagline h2 {
- margin: 0 0 1em 0;
- line-height: 1.125em;
- font-weight: 300;
- color: #000;
-}
-.block-borg-blocks-tagline p {
- font-size: 1.66rem;
-}
-.block-borg-blocks-tagline .tagline-section {
- text-align: left;
- margin: 15px auto;
- max-width: 315px;
-}
-.block-borg-blocks-tagline a.button {
- font-size: 1.25rem; /* 20px */
- background-color: rgba(255, 255, 255, .3);
- text-transform: none;
- border: 2px solid #000;
- margin: 10px 5px 5px 0;
-}
-.block-borg-blocks-tagline a.button:hover {
- background-color: rgba(255, 255, 255, .6);
-}
-.block-borg-blocks-tagline a.button span.version {
- font-size: 1rem; /* 16px */
-}
-.block-borg-blocks-tagline .subtext {
- font-size: 1rem; /* 16px */
- margin-top: 0;
- margin-left: 25px;
-}
-.block-borg-blocks-tagline .subtext a {
- font-weight: 300;
- color: #fff;
- text-decoration: underline;
-}
-.block-borg-blocks-tagline .subtext a:hover {
- text-decoration: none;
-}
-
-@media (min-width: 25em) { /* 400px @ 16px font size */
- .block-borg-blocks-tagline .subtext {
- text-align: left;
- }
-}
-@media (min-width: 48em) { /* 768px @ 16px font size -- MD */
- .block-borg-blocks-tagline {
- padding-top: 50px;
- padding-bottom: 15px;
- }
- .block-borg-blocks-tagline h2 {
- margin: 0 0 1em 0;
- }
- .block-borg-blocks-tagline .tagline-section {
- display: inline-block;
- padding: 0 15px;
- }
- .block-borg-blocks-tagline .subtext {
- margin-top: 0;
- }
-}
-@media (min-width: 62em) { /* 992px @ 16px font size -- LG */
- .block-borg-blocks-tagline {
- padding-bottom: 30px;
- }
- .block-borg-blocks-tagline h1 {
- font-size: 4.25rem;
- margin: 1rem 0 .75rem 0;
- }
- .block-borg-blocks-tagline h2 {
- font-size: 3rem;
- }
- .block-borg-blocks-tagline a.button {
- font-size: 1.5rem; /* 24px */
- }
- .block-borg-blocks-tagline a.button span.version,
- .block-borg-blocks-tagline .subtext {
- font-size: 1.125rem; /* 18px */
- }
-}
-
-
/*******************************************************************************
* Spacer classes
*******************************************************************************/
diff --git a/www/themes/backdropcms/css/components-views.css b/www/themes/backdropcms/css/components-views.css
index 558c183e5..ea91b27bb 100644
--- a/www/themes/backdropcms/css/components-views.css
+++ b/www/themes/backdropcms/css/components-views.css
@@ -162,6 +162,7 @@
text-decoration: underline;
}
.block-views-news-block .feed-icon {
+ overflow: hidden; /* Prevents horizontal scrollbar */
text-align: right;
position: relative;
top: -10px;
diff --git a/www/themes/backdropcms/css/page-front.css b/www/themes/backdropcms/css/page-front.css
new file mode 100644
index 000000000..1ab81309e
--- /dev/null
+++ b/www/themes/backdropcms/css/page-front.css
@@ -0,0 +1,446 @@
+/*******************************************************************************
+ * page-front.css
+ *
+ * Contains styles only needed for the front page of the site.
+ *
+ * These elements were separated from the compontents.css file because there is
+ * a lot of code in here that's not needed for most of the site, so it didn't
+ * need to be loaded all the time.
+ ******************************************************************************/
+
+body[class] {
+ --layout__max-width: 1440px;
+ --section__padding: 32px;
+ font-family: "IBM Plex Sans", "Open Sans", Helvetica, sans-serif;
+ font-optical-sizing: auto;
+ font-variation-settings: "wdth" 100;
+}
+@media (min-width: 48em) {
+ body {
+ --section__padding: 64px;
+ }
+}
+
+.visual-tag {
+ display: block;
+ width: min-content;
+ height: min-content;
+ padding: 0.571em 1.143em;
+ border: 1px solid var(--color__accent--primary);
+ font-family: "IBM Plex Mono", Consolas, 'Courier New', Courier, monospace;
+ font-size: 14px;
+ font-weight: 500;
+ line-height: 1.143;
+ white-space: nowrap;
+}
+
+/**
+ * Hero Tagline section
+ */
+.tagline-block__headline-wrapper {
+ color: #fff;
+}
+
+.block-borg-blocks-tagline {
+ position: relative;
+ z-index: 0;
+ color: #fff;
+ background: #000 url(../images/diagonal-grid.svg) center bottom;
+ background-size: 580px;
+}
+
+.block-borg-blocks-tagline p {
+ margin: 0;
+ padding: 0;
+ font: inherit;
+}
+
+/* Gradients to overlay background image */
+.block-borg-blocks-tagline:before,
+.block-borg-blocks-tagline .block-content:before,
+.block-borg-blocks-tagline .block-content:after {
+ content: '';
+ position: absolute;
+ z-index: -1;
+ display: block;
+}
+
+.block-borg-blocks-tagline:before {
+ top: 0;
+ right:0;
+ bottom: 0;
+ left: 0;
+ background: linear-gradient(to bottom, #0005 75%, #000);
+}
+
+.block-borg-blocks-tagline .block-content:before {
+ top: 0;
+ left: 0;
+ bottom: 0;
+ width: 144px;
+ background: linear-gradient(to left, #0000, #000c);
+}
+
+.block-borg-blocks-tagline .block-content:after {
+ top: 0;
+ right: 0;
+ bottom: 0;
+ width: 144px;
+ background: linear-gradient(to right, #0000, #000c);
+}
+
+.block-borg-blocks-tagline .block-content {
+ display: flex;
+ flex-direction: column;
+ gap: 2rem;
+ margin: 0 auto;
+ padding: 7.5rem 2rem;
+ /* 28px at desktop in mockup */
+ font-size: clamp(18px, 2.5vw ,1.75rem);
+ text-align: center;
+ /* This media query should match the width on .tagline-block__headline-wrapper */
+ @media (min-width: 30em) {
+ width: min-content;
+ }
+}
+
+.tagline-block__visual-tag {
+ margin: 0 auto;
+ border-color: 1px solid #01FDA6;
+ background: #0008;
+}
+
+.tagline-block__headline-wrapper[class] {
+ display: flex;
+ flex-direction: column;
+ gap: 2rem;
+ margin: 0 auto;
+ /* 100px at desktop in mock */
+ font-size: clamp(1.5em, 8vw, 3.57em);
+ line-height: 0.96;
+ font-weight: 600;
+ color: #fff;
+ @media (min-width: 30em) {
+ width: 10em;
+ }
+ @media (min-width: 48em) {
+ /* 100px at desktop in mock */
+ font-size: 3.57em;
+ }
+}
+
+.block-borg-blocks-tagline .block-content p {
+ font: inherit;
+}
+
+.tagline-block__ctas {
+ display: flex;
+ flex-wrap: wrap;
+ gap: 0.75rem;
+ margin: 0;
+ padding: 0;
+ list-style: none;
+ justify-content: center;
+}
+
+/**
+ * Borg Buttons
+ */
+.borg__button {
+ display: inline-block;
+ font-size: 1.125rem;
+ padding: 0.6em 1.111em;
+ color: #fff;
+ background: #000;
+}
+
+.borg__button:hover,
+.borg__button:focus {
+ color: #fff;
+ background: #222;
+}
+
+.borg__button--primary {
+ background: var(--color__accent--primary);
+}
+
+.borg__button--primary:hover,
+.borg__button--primary:focus {
+ background: var(--color__accent--primary--dark);
+}
+
+
+/**
+ * Dark Hero Cards
+ */
+.l-hero,
+.l-top-cards {
+ background: #000;
+}
+
+.l-top__wrapper {
+ --dark-hero-card__max-width: 18em;
+ display: flex;
+ flex-direction: column;
+ gap: 2rem;
+ max-width: var(--layout__max-width);
+ margin-inline: auto;
+ padding: 0 var(--section__padding);
+ color: #fff;
+ padding: 0 32px 32px;
+ background: #000;
+}
+@media (min-width: 48em) {
+ .l-top__wrapper {
+ display: grid;
+ justify-content: center;
+ grid-template-columns: repeat(2, minmax(0, var(--dark-hero-card__max-width)));
+ /* 1.78em is measured height of the CTA */
+ padding: 0 64px calc(64px + 1.78em + 24px);
+ }
+}
+@media (min-width: 75em) {
+ .l-top__wrapper {
+ grid-template-columns: repeat(4, minmax(0, var(--dark-hero-card__max-width)));
+ }
+}
+
+.l-top__item {
+ position: relative;
+ display: flex;
+ flex-direction: column;
+}
+
+.dark-hero-card {
+ --dark-hero-card__border-color: #303030;
+ position: relative;
+ display: flex;
+ flex-direction: column;
+ gap: 1rem;
+ max-width: var(--dark-hero-card__max-width);
+ height: 100%;
+ margin-inline: auto;
+ padding: 32px;
+ border: 1px solid var(--dark-hero-card__border-color);
+ font-size: 1rem;
+ line-height: 1.5;
+}
+
+.dark-hero-card:before {
+ content: '';
+ display: block;
+ width: 40px;
+ height: 40px;
+ margin: 0 auto;
+ background: var(--color__accent--primary--light);
+ mask-repeat: no-repeat;
+ mask-size: contain;
+}
+
+.dark-hero-card:after {
+ content: '';
+ position: absolute;
+ bottom: -1px;
+ right: -1px;
+ width: 0;
+ height: 0;
+ border: 12px solid #000;
+ border-top-color: var(--dark-hero-card__border-color);
+ border-left-color: var(--dark-hero-card__border-color);
+}
+
+.dark-hero-card--performance:before, /* delete this line */
+.dark-hero-card--rocket-launch:before {
+ mask: var(--icon-rocket-launch) no-repeat center center;
+}
+
+.dark-hero-card--functionality:before, /* delete this line */
+.dark-hero-card--puzzle-piece:before {
+ mask: var(--icon-puzzle-piece) no-repeat center center;
+}
+
+.dark-hero-card--d7:before, /* delete this line */
+.dark-hero-card--drop:before {
+ mask: var(--icon-drop) no-repeat center center;
+}
+
+.dark-hero-card--content:before, /* delete this line */
+.dark-hero-card--browser:before {
+ mask: var(--icon-browser) no-repeat center center;
+}
+
+.dark-hero-card h2 {
+ font-size: 20px;
+ line-height: 1.2;
+ font-weight: 700;
+ margin: 0;
+ padding: 0;
+}
+
+.dark-hero-card p {
+ margin: 0;
+ font: inherit;
+}
+
+.dark-hero-card p + p {
+ margin-top: 0.75em;
+}
+
+.block-block-home-card-cta {
+ text-align: right;
+}
+
+.block-block-home-card-cta {
+ margin-top: 1rem;
+ margin-bottom: 0.5rem;
+ @media (min-width: 48em) {
+ position: absolute;
+ top: calc(100% + 24px);
+ right: 0;
+ }
+}
+
+.block-views-home-cards-block .more-link a,
+.top-cards__cta {
+ display: inline-block;
+ padding: 0.25em 0;
+ font-weight: 600;
+ color: inherit;
+ box-shadow: inset 0 -1px 0 0 var(--color__accent--primary--light);
+}
+
+.top-cards__cta:hover,
+.top-cards__cta:focus {
+ color: inherit;
+ box-shadow: inset 0 -2px 0 0 var(--color__accent--primary--light);
+}
+
+/**
+ * Chonky Link bar
+ */
+.chonky-link-bar__outer-wrapper {
+ list-style: none;
+ margin: 0;
+ padding: 0;
+ font-size: 1.5rem;
+}
+
+.chonky-link-bar__item + .chonky-link-bar__item {
+ border-top: 1px solid #EAE1FF;
+}
+
+.chonky-link-bar {
+ display: block;
+ padding: 1.4em 1em;
+ color: inherit;
+ font-weight: 600;
+}
+
+.chonky-link-bar:hover,
+.chonky-link-bar:focus {
+ background: #F9F8FB;
+ box-shadow: inset 0 -4px 0 0 var(--color__accent--primary);
+ color: inherit;
+}
+
+/**
+ * Audiences Section
+ */
+.block-borg-blocks-audiences {
+ padding: 60px 32px 60px;
+}
+@media (min-width: 64em) {
+ .block-borg-blocks-audiences {
+ padding: 120px 32px 120px;
+ }
+}
+
+.block-borg-blocks-audiences .block-content {
+ display: flex;
+ flex-direction: column;
+ gap: 1.5rem 2rem;
+}
+@media (min-width: 64em) {
+ .block-borg-blocks-audiences .block-content {
+ display: grid;
+ justify-content: center;
+ grid-template-columns: repeat(2, minmax(0, 1fr));
+ grid-template-rows: min-content min-content 1fr;
+ grid-auto-rows: min-content;
+ padding: 0 64px calc(64px + 1.78em + 24px);
+ }
+}
+/* @media (min-width: 75em) {
+ .block-borg-blocks-audiences {
+ }
+} */
+
+.audiences-block__title,
+.audiences-block__body {
+ grid-column: 1;
+}
+
+.audiences-block__title {
+ margin: 0;
+}
+
+.audiences-block__body {
+ font-size: 1.25rem;
+}
+
+.audiences-block__body .borg__button {
+ margin-top: 40px;
+}
+
+.audiences-block__organizations {
+ grid-row: 1 / span 3;
+ grid-column: 2;
+ padding-top: 1.5em; /* On top of 1.5em gap */
+}
+@media (min-width: 64em) {
+ .audiences-block__organizations {
+ padding-top: 0;
+ }
+}
+
+.audiences-block__organization-item {
+ margin: 0;
+ padding: 0;
+}
+
+.audiences-block__organization-link {
+ display: flex;
+ align-items: center;
+ line-height: 1.6;
+}
+
+.audiences-block__organization-link:before {
+ content: '';
+ display: inline-block;
+ width: 1.6em;
+ height: 1.6em;
+ margin-right: 0.5em;
+ background-color: var(--color__accent--primary);
+ mask-size: contain;
+ mask-repeat: no-repeat;
+}
+
+.audiences-block__organization-link--1355:before {
+ mask-image: url(../images/community.svg);
+}
+
+.audiences-block__organization-link--1356:before {
+ mask-image: url(../images/graduation-cap.svg);
+}
+
+.audiences-block__organization-link--1357:before {
+ mask-image: url(../images/book.svg);
+}
+
+.audiences-block__organization-link--1358:before {
+ mask-image: url(../images/business.svg);
+}
+
+.audiences-block__organization-link--1359:before {
+ mask-image: url(../images/newspaper.svg);
+}
diff --git a/www/themes/backdropcms/images/arrow-right.svg b/www/themes/backdropcms/images/arrow-right.svg
new file mode 100644
index 000000000..52a1077c8
--- /dev/null
+++ b/www/themes/backdropcms/images/arrow-right.svg
@@ -0,0 +1,3 @@
+
\ No newline at end of file
diff --git a/www/themes/backdropcms/images/book.svg b/www/themes/backdropcms/images/book.svg
new file mode 100644
index 000000000..6c21eba94
--- /dev/null
+++ b/www/themes/backdropcms/images/book.svg
@@ -0,0 +1,3 @@
+
\ No newline at end of file
diff --git a/www/themes/backdropcms/images/business.svg b/www/themes/backdropcms/images/business.svg
new file mode 100644
index 000000000..3abf96451
--- /dev/null
+++ b/www/themes/backdropcms/images/business.svg
@@ -0,0 +1,3 @@
+
\ No newline at end of file
diff --git a/www/themes/backdropcms/images/checkmark.svg b/www/themes/backdropcms/images/checkmark.svg
new file mode 100644
index 000000000..f3b497ad9
--- /dev/null
+++ b/www/themes/backdropcms/images/checkmark.svg
@@ -0,0 +1,3 @@
+
\ No newline at end of file
diff --git a/www/themes/backdropcms/images/community.svg b/www/themes/backdropcms/images/community.svg
new file mode 100644
index 000000000..da6c92a5c
--- /dev/null
+++ b/www/themes/backdropcms/images/community.svg
@@ -0,0 +1,3 @@
+
\ No newline at end of file
diff --git a/www/themes/backdropcms/images/diagonal-grid.svg b/www/themes/backdropcms/images/diagonal-grid.svg
new file mode 100755
index 000000000..a933e84bc
--- /dev/null
+++ b/www/themes/backdropcms/images/diagonal-grid.svg
@@ -0,0 +1,85 @@
+
+
\ No newline at end of file
diff --git a/www/themes/backdropcms/images/graduation-cap.svg b/www/themes/backdropcms/images/graduation-cap.svg
new file mode 100644
index 000000000..ce0ea15ec
--- /dev/null
+++ b/www/themes/backdropcms/images/graduation-cap.svg
@@ -0,0 +1,3 @@
+
\ No newline at end of file
diff --git a/www/themes/backdropcms/images/newspaper.svg b/www/themes/backdropcms/images/newspaper.svg
new file mode 100644
index 000000000..f3a98f71d
--- /dev/null
+++ b/www/themes/backdropcms/images/newspaper.svg
@@ -0,0 +1,3 @@
+
\ No newline at end of file
diff --git a/www/themes/backdropcms/template.php b/www/themes/backdropcms/template.php
index 50bb2a5aa..bf4b0e001 100644
--- a/www/themes/backdropcms/template.php
+++ b/www/themes/backdropcms/template.php
@@ -18,29 +18,16 @@
* @see page.tpl.php
*/
function backdropcms_preprocess_page(&$variables) {
- $variables['fp'] = '';
- $user_pages = array('login', 'register', 'password');
- if (arg(0) == 'user') {
- if (!in_array(arg(1), $user_pages) && (is_numeric(arg(1)) && arg(2) != 'edit')) {
- $variables['fp'] = "
-
- " . '
-
- ';
- }
+ $path = backdrop_get_path('theme', 'backdropcms');
+
+ if (backdrop_is_front_page()) {
+ backdrop_add_css($path . '/css/page-front.css');
+
+ // Load IBM Plex variable fonts.
+ backdrop_add_css(
+ 'https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;1,100;1,200;1,300;1,400;1,500;1,600;1,700&family=IBM+Plex+Sans:ital,wght@0,100..700;1,100..700&display=swap',
+ array('type' => 'external')
+ );
}
}
@@ -48,13 +35,79 @@ function backdropcms_preprocess_page(&$variables) {
* Preare varibles for node.tpl.php.
*/
function backdropcms_preprocess_node(&$variables) {
+ // Get the theme location.
+ $path = backdrop_get_path('theme', 'borg');
+
if ($variables['type'] == 'feature') {
- $variables['icon_class'] = '';
+ $variables['icon'] = '';
$node = $variables['node'];
if (property_exists($node, 'field_icon_class') && !empty($node->field_icon_class)) {
- $class = $node->field_icon_class[LANGUAGE_NONE][0]['safe_value'];
- $variables['icon_class'] = $class;
+ $name = $node->field_icon_class[LANGUAGE_NONE][0]['safe_value'];
+ $variables['icon'] = icon('$name');
+ backdrop_add_icons(array($name));
+ }
+ }
+ // For showcase nodes include a special stylesheet.
+ if ($variables['type'] == 'showcase') {
+ backdrop_add_css($path . '/css/node-showcase.css');
+ }
+
+ // For project nodes include a special stylesheet.
+ if (($variables['type'] == 'core') || substr($variables['type'], 0, 8) == 'project_'){
+ if ($variables['type'] == 'project_release') {
+
+ }
+ else {
+ unset($variables['content']['project_release_downloads']['#prefix']);
+ $variables['classes'][] = 'node-project';
+ backdrop_add_css($path . '/css/node-project.css');
+ }
+ }
+}
+
+/**
+ * Implements template_preprocess_block().
+ */
+function backdropcms_preprocess_block(&$variables) {
+ if ($variables['title'] == 'Latest News') {
+ // Massively simplifying the markup of this block so CSS layout is easier to accomplish
+ // Getting the single result from the view, and rendering it without views markup bloat
+ $data = views_get_view_result('news', 'block');
+
+ $title = $data[0]->node_title;
+ if (isset($data[0]->nid)) {
+ $article_url = backdrop_get_path_alias('node/' . $data[0]->nid);
+ $title = '' . $title . '';
}
+
+ $content =
+ '' . $title . '
' .
+ '' .
+ $data[0]->field_body[0]['rendered']['#markup'] .
+ '
' .
+ '' .
+ render($data[0]->field_field_image[0]['rendered']) .
+ '
';
+
+ $variables['content'] = $content;
+ }
+}
+
+/**
+ * Preare varibles for views templates.
+ *
+ * @see views-view.tpl.php.
+ */
+function backdropcms_preprocess_views_view(&$variables) {
+ $view = $variables['view'];
+ if ($view->name == 'product_features') {
+
+ // Make the icons available for use in CSS.
+ $icons_needed = array();
+ foreach ($view->result as $count => $item) {
+ $icons_needed[] = $item->field_field_icon_class[0]['raw']['safe_value'];
+ }
+ backdrop_add_icons($icons_needed);
}
}
@@ -150,3 +203,7 @@ function backdropcms_field__body__docs($variables) {
}
}
}
+
+function backdropcms_system_powered_by() {
+ return '' . t('Backdrop CMS and the Backdrop logo are registered trademarks of the Softrware Freedom conservancy.', array('@url' => 'https://backdropcms.org')) . '';
+}
diff --git a/www/themes/backdropcms/templates/block--views--news-block.tpl.php b/www/themes/backdropcms/templates/block--views--news-block.tpl.php
new file mode 100644
index 000000000..65afe243f
--- /dev/null
+++ b/www/themes/backdropcms/templates/block--views--news-block.tpl.php
@@ -0,0 +1,24 @@
+
+
diff --git a/www/themes/backdropcms/templates/page.tpl.php b/www/themes/backdropcms/templates/page.tpl.php
index 3737c470d..2a067402f 100644
--- a/www/themes/backdropcms/templates/page.tpl.php
+++ b/www/themes/backdropcms/templates/page.tpl.php
@@ -11,9 +11,10 @@
+
+
-
>
diff --git a/www/themes/backdropcms/templates/views-view--product-features--block.tpl.php b/www/themes/backdropcms/templates/views-view--product-features--block.tpl.php
new file mode 100644
index 000000000..c00019d1f
--- /dev/null
+++ b/www/themes/backdropcms/templates/views-view--product-features--block.tpl.php
@@ -0,0 +1,71 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/www/themes/borg/css/base.css b/www/themes/borg/css/base.css
index a2223b067..7bfd5648a 100644
--- a/www/themes/borg/css/base.css
+++ b/www/themes/borg/css/base.css
@@ -14,6 +14,13 @@ body {
min-width: 320px;
}
+body {
+ --color__accent--primary: #4D00FF;
+ --color__accent--primary--dark: #3909a9;
+ --color__accent--primary--light: #B79CF6;
+ --color__accent--secondary: #01FDA6;
+}
+
@media (max-width: 47.9375em) { /* 767px @ 16px font size -- MD */
/* Larger font for smaller screens */
body {
diff --git a/www/themes/borg/css/menu-dropdown.theme.css b/www/themes/borg/css/menu-dropdown.theme.css
index 95e895fbe..b4d68025b 100644
--- a/www/themes/borg/css/menu-dropdown.theme.css
+++ b/www/themes/borg/css/menu-dropdown.theme.css
@@ -61,6 +61,22 @@
text-align: center;
text-shadow: none;
}
+@media (min-width: 48em) {
+ .menu-dropdown a span.sub-arrow {
+ top: 50%;
+ right: 10px;
+ width: 0.5em;
+ height: 0.5em;
+ margin-top: 0;
+ border: 1px solid transparent;
+ border-right-color: var(--color__accent--primary--light);
+ border-bottom-color: var(--color__accent--primary--light);
+ transform: translate(0, -50%) rotate(45deg);
+ background: transparent;
+ border-radius: 0;
+ }
+}
+
.menu-dropdown span.sub-arrow:before {
display: block;
content: '+';
@@ -144,22 +160,6 @@
.js .menu-dropdown li.has-children > a {
padding-right: 28px;
}
- .menu-dropdown a span.sub-arrow {
- top: 50%;
- margin-top: -2px;
- right: 10px;
- width: 0;
- height: 0;
- border-width: 5px;
- border-style: solid dashed dashed dashed;
- border-color: #fff transparent transparent transparent;
- background: transparent;
- -webkit-border-radius: 0;
- -moz-border-radius: 0;
- -ms-border-radius: 0;
- -o-border-radius: 0;
- border-radius: 0;
- }
.menu-dropdown a.highlighted span.sub-arrow:before {
display: none;
}
diff --git a/www/themes/borg/template.php b/www/themes/borg/template.php
index d7469f81e..b9d2e2444 100644
--- a/www/themes/borg/template.php
+++ b/www/themes/borg/template.php
@@ -87,10 +87,23 @@ function borg_preprocess_page(&$variables) {
$arg0 = check_plain(arg(0));
$arg1 = check_plain(arg(1));
$arg2 = check_plain(arg(2));
- // Add the Source Sans Pro font.
- backdrop_add_css('https://fonts.googleapis.com/css?family=Source+Sans+Pro:200,300,400,600,700', array('type' => 'external'));
- // Add FontAwesome.
- backdrop_add_js('https://use.fontawesome.com/baf3c35582.js', array('type' => 'external'));
+
+ // Load new font if we're on the homepage of the marketing site
+ if ($variables['is_front'] && strpos(path_to_theme(), 'backdropcms')) {
+ // Add the IBM Plex variable fonts
+ backdrop_add_css(
+ 'https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;1,100;1,200;1,300;1,400;1,500;1,600;1,700&family=IBM+Plex+Sans:ital,wght@0,100..700;1,100..700&display=swap',
+ array('type' => 'external')
+ );
+ //
+ }
+ else {
+ // Add the Source Sans Pro font.
+ backdrop_add_css('https://fonts.googleapis.com/css?family=Source+Sans+Pro:200,300,400,600,700', array('type' => 'external'));
+ // Add FontAwesome.
+ backdrop_add_js('https://use.fontawesome.com/baf3c35582.js', array('type' => 'external'));
+ }
+
// Add a body class based on the admin bar.
if (module_exists('admin_bar') && user_access('admin_bar')) {