From 5f52207441c61f0c2227fd163d8292476239585a Mon Sep 17 00:00:00 2001
From: Corey McKrill <916023+coreymckrill@users.noreply.github.com>
Date: Tue, 28 Sep 2021 16:59:47 -0700
Subject: [PATCH] All Posts template (#31)
Adds the index.html template, along with accompanying template parts and styles. This gets close to matching the All Posts mockup page in the design, but a few things have been omitted:
* The "brush stroke" edge at the bottom of the "All Posts" header. This will be added in when #32 is addressed.
* The "Load More Posts" link has been replaced with query pagination.
* The "Subscribe to WordPress News" box has been left out of the footer, because block templates do not support rendering shortcodes, which is currently the only way to render Jetpack's subscription form.
* Some of the podcast player icons in the WP Briefing footer box are generic links because the Social Icons block does not currently support all the necessary brands/services.
Fixes #22
---
composer.lock | 75 +++---
.../svg/brush-stroke-short-2-blue-4.svg | 48 ++++
.../assets/svg/brush-stroke-short-blue-4.svg | 221 ++++++++++++++++++
.../block-template-parts/content-archive.html | 18 ++
.../block-template-parts/footer-archive.html | 75 ++++++
.../query-navigation.html | 7 +
.../block-templates/index.html | 36 ++-
.../block-templates/single.html | 4 +-
.../sass/blocks/_post-excerpt.scss | 13 ++
.../sass/blocks/_post-title.scss | 9 +-
.../sass/blocks/_query-pagination.scss | 52 +++--
.../sass/blocks/_social-links.scss | 11 +
.../_post-content.scss => post/_content.scss} | 6 +-
.../wporg-news-2021/sass/post/_footer.scss | 55 +++++
.../wporg-news-2021/sass/post/_header.scss | 47 +++-
.../themes/wporg-news-2021/sass/style.scss | 8 +-
16 files changed, 591 insertions(+), 94 deletions(-)
create mode 100644 source/wp-content/themes/wporg-news-2021/assets/svg/brush-stroke-short-2-blue-4.svg
create mode 100644 source/wp-content/themes/wporg-news-2021/assets/svg/brush-stroke-short-blue-4.svg
create mode 100644 source/wp-content/themes/wporg-news-2021/block-template-parts/content-archive.html
create mode 100644 source/wp-content/themes/wporg-news-2021/block-template-parts/footer-archive.html
create mode 100644 source/wp-content/themes/wporg-news-2021/block-template-parts/query-navigation.html
create mode 100644 source/wp-content/themes/wporg-news-2021/sass/blocks/_post-excerpt.scss
create mode 100644 source/wp-content/themes/wporg-news-2021/sass/blocks/_social-links.scss
rename source/wp-content/themes/wporg-news-2021/sass/{blocks/_post-content.scss => post/_content.scss} (81%)
create mode 100644 source/wp-content/themes/wporg-news-2021/sass/post/_footer.scss
diff --git a/composer.lock b/composer.lock
index 71555814..d7d7d8a7 100644
--- a/composer.lock
+++ b/composer.lock
@@ -9,16 +9,16 @@
"packages-dev": [
{
"name": "composer/installers",
- "version": "v1.11.0",
+ "version": "v1.12.0",
"source": {
"type": "git",
"url": "https://github.com/composer/installers.git",
- "reference": "ae03311f45dfe194412081526be2e003960df74b"
+ "reference": "d20a64ed3c94748397ff5973488761b22f6d3f19"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/composer/installers/zipball/ae03311f45dfe194412081526be2e003960df74b",
- "reference": "ae03311f45dfe194412081526be2e003960df74b",
+ "url": "https://api.github.com/repos/composer/installers/zipball/d20a64ed3c94748397ff5973488761b22f6d3f19",
+ "reference": "d20a64ed3c94748397ff5973488761b22f6d3f19",
"shasum": ""
},
"require": {
@@ -117,6 +117,7 @@
"modx",
"moodle",
"osclass",
+ "pantheon",
"phpbb",
"piwik",
"ppi",
@@ -139,7 +140,7 @@
],
"support": {
"issues": "https://github.com/composer/installers/issues",
- "source": "https://github.com/composer/installers/tree/v1.11.0"
+ "source": "https://github.com/composer/installers/tree/v1.12.0"
},
"funding": [
{
@@ -155,7 +156,7 @@
"type": "tidelift"
}
],
- "time": "2021-04-28T06:42:17+00:00"
+ "time": "2021-09-13T08:19:44+00:00"
},
{
"name": "dealerdirect/phpcodesniffer-composer-installer",
@@ -747,16 +748,16 @@
},
{
"name": "phpdocumentor/type-resolver",
- "version": "1.4.0",
+ "version": "1.5.0",
"source": {
"type": "git",
"url": "https://github.com/phpDocumentor/TypeResolver.git",
- "reference": "6a467b8989322d92aa1c8bf2bebcc6e5c2ba55c0"
+ "reference": "30f38bffc6f24293dadd1823936372dfa9e86e2f"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/phpDocumentor/TypeResolver/zipball/6a467b8989322d92aa1c8bf2bebcc6e5c2ba55c0",
- "reference": "6a467b8989322d92aa1c8bf2bebcc6e5c2ba55c0",
+ "url": "https://api.github.com/repos/phpDocumentor/TypeResolver/zipball/30f38bffc6f24293dadd1823936372dfa9e86e2f",
+ "reference": "30f38bffc6f24293dadd1823936372dfa9e86e2f",
"shasum": ""
},
"require": {
@@ -764,7 +765,8 @@
"phpdocumentor/reflection-common": "^2.0"
},
"require-dev": {
- "ext-tokenizer": "*"
+ "ext-tokenizer": "*",
+ "psalm/phar": "^4.8"
},
"type": "library",
"extra": {
@@ -790,39 +792,39 @@
"description": "A PSR-5 based resolver of Class names, Types and Structural Element Names",
"support": {
"issues": "https://github.com/phpDocumentor/TypeResolver/issues",
- "source": "https://github.com/phpDocumentor/TypeResolver/tree/1.4.0"
+ "source": "https://github.com/phpDocumentor/TypeResolver/tree/1.5.0"
},
- "time": "2020-09-17T18:55:26+00:00"
+ "time": "2021-09-17T15:28:14+00:00"
},
{
"name": "phpspec/prophecy",
- "version": "1.13.0",
+ "version": "1.14.0",
"source": {
"type": "git",
"url": "https://github.com/phpspec/prophecy.git",
- "reference": "be1996ed8adc35c3fd795488a653f4b518be70ea"
+ "reference": "d86dfc2e2a3cd366cee475e52c6bb3bbc371aa0e"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/phpspec/prophecy/zipball/be1996ed8adc35c3fd795488a653f4b518be70ea",
- "reference": "be1996ed8adc35c3fd795488a653f4b518be70ea",
+ "url": "https://api.github.com/repos/phpspec/prophecy/zipball/d86dfc2e2a3cd366cee475e52c6bb3bbc371aa0e",
+ "reference": "d86dfc2e2a3cd366cee475e52c6bb3bbc371aa0e",
"shasum": ""
},
"require": {
"doctrine/instantiator": "^1.2",
- "php": "^7.2 || ~8.0, <8.1",
+ "php": "^7.2 || ~8.0, <8.2",
"phpdocumentor/reflection-docblock": "^5.2",
"sebastian/comparator": "^3.0 || ^4.0",
"sebastian/recursion-context": "^3.0 || ^4.0"
},
"require-dev": {
- "phpspec/phpspec": "^6.0",
+ "phpspec/phpspec": "^6.0 || ^7.0",
"phpunit/phpunit": "^8.0 || ^9.0"
},
"type": "library",
"extra": {
"branch-alias": {
- "dev-master": "1.11.x-dev"
+ "dev-master": "1.x-dev"
}
},
"autoload": {
@@ -857,9 +859,9 @@
],
"support": {
"issues": "https://github.com/phpspec/prophecy/issues",
- "source": "https://github.com/phpspec/prophecy/tree/1.13.0"
+ "source": "https://github.com/phpspec/prophecy/tree/1.14.0"
},
- "time": "2021-03-17T13:42:18+00:00"
+ "time": "2021-09-10T09:02:12+00:00"
},
{
"name": "phpunit/php-code-coverage",
@@ -1855,7 +1857,6 @@
"type": "github"
}
],
- "abandoned": true,
"time": "2020-11-30T07:30:19+00:00"
},
{
@@ -2201,16 +2202,16 @@
},
{
"name": "wp-phpunit/wp-phpunit",
- "version": "5.8.0",
+ "version": "5.8.1",
"source": {
"type": "git",
"url": "https://github.com/wp-phpunit/wp-phpunit.git",
- "reference": "da3f6fc3bc5cae2c76af6f9a260620fc4f8d9f90"
+ "reference": "0b89ad32feae22f3a39e63e44117d6e56bdeed69"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/wp-phpunit/wp-phpunit/zipball/da3f6fc3bc5cae2c76af6f9a260620fc4f8d9f90",
- "reference": "da3f6fc3bc5cae2c76af6f9a260620fc4f8d9f90",
+ "url": "https://api.github.com/repos/wp-phpunit/wp-phpunit/zipball/0b89ad32feae22f3a39e63e44117d6e56bdeed69",
+ "reference": "0b89ad32feae22f3a39e63e44117d6e56bdeed69",
"shasum": ""
},
"type": "library",
@@ -2245,19 +2246,19 @@
"issues": "https://github.com/wp-phpunit/issues",
"source": "https://github.com/wp-phpunit/wp-phpunit"
},
- "time": "2021-07-27T09:32:49+00:00"
+ "time": "2021-09-09T19:11:29+00:00"
},
{
"name": "wpackagist-plugin/gutenberg",
- "version": "11.4.1",
+ "version": "11.5.1",
"source": {
"type": "svn",
"url": "https://plugins.svn.wordpress.org/gutenberg/",
- "reference": "tags/11.4.1"
+ "reference": "tags/11.5.1"
},
"dist": {
"type": "zip",
- "url": "https://downloads.wordpress.org/plugin/gutenberg.11.4.1.zip"
+ "url": "https://downloads.wordpress.org/plugin/gutenberg.11.5.1.zip"
},
"require": {
"composer/installers": "~1.0 || ~2.0"
@@ -2285,7 +2286,7 @@
},
{
"name": "wpackagist-plugin/seriously-simple-podcasting",
- "version": "2.8.2",
+ "version": "2.9.1",
"source": {
"type": "svn",
"url": "https://plugins.svn.wordpress.org/seriously-simple-podcasting/",
@@ -2293,7 +2294,7 @@
},
"dist": {
"type": "zip",
- "url": "https://downloads.wordpress.org/plugin/seriously-simple-podcasting.zip?timestamp=1630498726"
+ "url": "https://downloads.wordpress.org/plugin/seriously-simple-podcasting.zip?timestamp=1631645410"
},
"require": {
"composer/installers": "~1.0 || ~2.0"
@@ -2343,12 +2344,12 @@
"source": {
"type": "git",
"url": "https://github.com/WordPress/wporg-mu-plugins.git",
- "reference": "d71a4420d27b58a994eeee8b6774ce8ce03215b1"
+ "reference": "5421e91ce9da7e7c429b8c988cb27a41b3bcfdf1"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/WordPress/wporg-mu-plugins/zipball/d71a4420d27b58a994eeee8b6774ce8ce03215b1",
- "reference": "d71a4420d27b58a994eeee8b6774ce8ce03215b1",
+ "url": "https://api.github.com/repos/WordPress/wporg-mu-plugins/zipball/5421e91ce9da7e7c429b8c988cb27a41b3bcfdf1",
+ "reference": "5421e91ce9da7e7c429b8c988cb27a41b3bcfdf1",
"shasum": ""
},
"require": {
@@ -2375,7 +2376,7 @@
"source": "https://github.com/WordPress/wporg-mu-plugins/tree/trunk",
"issues": "https://github.com/WordPress/wporg-mu-plugins/issues"
},
- "time": "2021-09-02T18:21:17+00:00"
+ "time": "2021-09-23T21:33:24+00:00"
},
{
"name": "wporg/wporg-repo-tools",
diff --git a/source/wp-content/themes/wporg-news-2021/assets/svg/brush-stroke-short-2-blue-4.svg b/source/wp-content/themes/wporg-news-2021/assets/svg/brush-stroke-short-2-blue-4.svg
new file mode 100644
index 00000000..d25c44fd
--- /dev/null
+++ b/source/wp-content/themes/wporg-news-2021/assets/svg/brush-stroke-short-2-blue-4.svg
@@ -0,0 +1,48 @@
+
diff --git a/source/wp-content/themes/wporg-news-2021/assets/svg/brush-stroke-short-blue-4.svg b/source/wp-content/themes/wporg-news-2021/assets/svg/brush-stroke-short-blue-4.svg
new file mode 100644
index 00000000..3f468798
--- /dev/null
+++ b/source/wp-content/themes/wporg-news-2021/assets/svg/brush-stroke-short-blue-4.svg
@@ -0,0 +1,221 @@
+
diff --git a/source/wp-content/themes/wporg-news-2021/block-template-parts/content-archive.html b/source/wp-content/themes/wporg-news-2021/block-template-parts/content-archive.html
new file mode 100644
index 00000000..1a56b0f4
--- /dev/null
+++ b/source/wp-content/themes/wporg-news-2021/block-template-parts/content-archive.html
@@ -0,0 +1,18 @@
+
+