Skip to content

Commit

Permalink
Add WordPress theme (#31)
Browse files Browse the repository at this point in the history
* Remove Next.js site

* Add foundational files

* Add gitignore

* Add @wordpress/env

* Add Prettier

* Fix theme slugs

* Add Prettier config

* Remove parent theme

* Add README

* Add files from Blockbase theme

* Fix index file after removing Blockbase parent them

* [wip] Add Tailwind CDN

* Remove unused navigation menu registration

* Disable unused embeds script

Improve performance.

* Disable unused emojis script

Improve performance.

* Simplify index.php

* Remove unstable navigation attributes

* Remove reference to TinyMCE that threw error

* Improve header alignment

* Rename template directories

* Update footer punctuation

* Remove unidentified theme support hook

Unsure of the nature of this hook.

* Clean up and sync functions.php file with Blockbase theme

* Replace outdated branch reference

The primary branch is named "main."

* Reinstate theme stylesheet

* Fix white space within footer template part

Prettier mangles the white space found in the span element.

* Explore baseline typography in theme.json configuration

* Decrease small font size

Create consistent scale steps.

* Remove unused template parts

* Improve template implementation

* Fix font size CSS property

* Update font family configuration

* Update theme color configuration

* Add header styles

* Remove feature image from page and single templates

* Update navigation styles

* Update post title level and styles

* Round featured image

* Revert "Remove feature image from page and single templates"

This reverts commit 8917b2301a80e4ede1ae1e1d307091901176ffda.

* Revert "Remove unused template parts"

This reverts commit 26508dc09b85214f8f39e5eba3f815573de89e2b.

* Explore custom post type for styled page

Stylized page includes locked featured image block. This improves the
WYSIWYG experience for pages by displaying the featured image in the
editor.

* Modify existing Page post type rather than creating new post type

Simplify the approach to including the Post Featured Image block for all
Pages.

* Remove featured image from page template

This is now a part of the page content blocks instead.

* Enable custom block padding

Allow required spacing for home page columns.

* Round post featured images

* Inline Post Featured Image for Pages and Posts

* Rename Blockbase references

* Add bottom spacer to header

* Add Callout pattern

* Set rounded images in theme.json

* Customize blockGap

* Relocate navigation styles to theme.json

* Reduce default content width

* Fix header vertical rhythm

* Add Affiliation pattern

* Format theme.json

* Fix paragraph line height

* Prevent post content from touching window side

* Fix post title alignment

* Remove custom navigation item gap

* Rename front page template for clarity

* Update Footer design

* Fix contact form button styles

The Jetpack styles override theme button style configuration.
Automattic/jetpack#19527 (comment)

* Improve footer spacing

* Fix template syntax error

* Improve Affiliation pattern design

* Add horizontal Header and Footer padding

* Remove unused post-meta-icons template part

* Update Post Meta design

* Format stylesheet

* Replace pixels with rem

* Set button to primary action color

* Fix Footer part syntax error

* Fix reference to Post Meta parts

* Rename templates for clarity

* Disable mobile navigation overlay

* Add static Blog heading

This should be displayed by `wp:archive-title`, but it currently does
not support that. This static heading means there is now duplicative
level one headings on archive pages, which is not ideal.

WordPress/gutenberg#33476

* Fix overflowing horizontal separator on small screens

* Remove unnecessary patch script

The customizer bug is unlikely to impact our use case.

* Fix header background color

* Improve Callout pattern responsive styles

* Fix Affiliation responsive styles

* Fix Index post title spacing

* Add horizontal padding to avoid window sides

* Update pattern padding

* Format patterns

* Format code

* Fix Callout secondary heading

After formatting the code, the empty `em` caused the block editor to
think the heading was pre-populated.

* Mirror query title line height to post title

* Enable border-box globally

* Style quote and pull quote blocks

* Fix Jetpack button padding

* Rename custom variables

* Fix credit spacing

* Balance Affiliation height

* Remove ls- prefix from CSS selectors

* Reorganize stylesheets and images

* Fix list alignment

* Style figure caption

* Fix post comment alignment

* Adjust block quote alignment

* Fix block syntax error

* Avoid block name in HTML comment

* Enable mobile overlay navigation

* Set edge spacing variable

* Adjust spacing and typography

* Simplify stylesheet loading

Reduce stylesheet organization to a single file given the block editor's
long-term goal of avoiding stylesheet files in general.

* Fix credit spacing

Prettier formatting causes white space in the HTML.

* Remove custom list styles

The default list styles suffice.

* Add font smoothing

* Use static block gap value

* Fix image paths in stylesheet

* Style form input elements

* Style button hover state

* Remove unnecessary template part scope

* Rename theme slug to match community pattern

* Scope form input styles to Jetpack

The global styles caused oddities for the Jetpack Contact block in the
block editor.

* Add theme screenshot

* Update license to GPL-2.0-or-later

* Remove WordPress name from package name

* Fix styling issues on WordPress.com

* Increase footer spacing

* Reinstate theme attribute for template part

Unsure as to why this returned from the block editor, but it likely
makes sense to retain it.

* Add full-page screenshot

WordPress.com's Calypso displays a larger preview than default WordPress
installations.

* Improve screenshot aspect ratio
  • Loading branch information
dcalhoun authored May 8, 2022
1 parent 3cb84d7 commit 15af7c0
Show file tree
Hide file tree
Showing 101 changed files with 4,177 additions and 3,244 deletions.
38 changes: 1 addition & 37 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,38 +1,2 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules
/.pnp
.pnp.js

# testing
/coverage

# next.js
/.next/
/out/

# production
/build

# misc
.DS_Store
*.pem
bs
.merlin
lib/
*.bs.js
.bsb.lock

# debug
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# local env files
.env.local
.env.development.local
.env.test.local
.env.production.local

.vercel
node_modules
14 changes: 9 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
# Life Stewardship

Marketing website for Life Stewardship LLC, financial planning & coaching.
A WordPress theme for the Life Stewardship LLC marketing site.

## Project Set Up
## Requirements

1. `yarn install`
1. `yarn dev:rescript`
1. `yarn dev:next`
- Docker
- WordPress Docker image

## Setup

1. `npm install`
1. `npm run wp-env start`
23 changes: 0 additions & 23 deletions bsconfig.json

This file was deleted.

19 changes: 0 additions & 19 deletions components/Affiliation.res

This file was deleted.

8 changes: 0 additions & 8 deletions components/Badge.res

This file was deleted.

91 changes: 0 additions & 91 deletions components/Blog.res

This file was deleted.

37 changes: 0 additions & 37 deletions components/Button.res

This file was deleted.

11 changes: 0 additions & 11 deletions components/ContactCTA.res

This file was deleted.

20 changes: 0 additions & 20 deletions components/ContactInfo.res

This file was deleted.

41 changes: 0 additions & 41 deletions components/Date.res

This file was deleted.

24 changes: 0 additions & 24 deletions components/Draft.res

This file was deleted.

6 changes: 0 additions & 6 deletions components/Heading.res

This file was deleted.

1 change: 0 additions & 1 deletion components/Input.res

This file was deleted.

Loading

0 comments on commit 15af7c0

Please sign in to comment.