Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#61 Base changes #67

Open
wants to merge 315 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
315 commits
Select commit Hold shift + click to select a range
82dbc70
removes extra notes/fields
JulesKhong Sep 23, 2023
83ab305
Moves Accordion to its own directory
JulesKhong Sep 26, 2023
91bf493
#20 Updates site padding
JulesKhong Sep 26, 2023
278a434
#20 adds Image + Text block
JulesKhong Sep 26, 2023
5e13b81
#20 updates h5
JulesKhong Sep 26, 2023
dada462
#20 fixes svg margin on button-base
JulesKhong Sep 26, 2023
dbfb8bb
#20 updates default btn to lg
JulesKhong Sep 26, 2023
fc774e0
#20 adds two-up btn template, and image template
JulesKhong Sep 26, 2023
4f2d10a
#20 adds Image + Text style guide examples
JulesKhong Sep 26, 2023
a00c98b
Adds styles for CTA, updates a field config for colorway
JulesKhong Sep 26, 2023
1db0cab
Card grid added to the style guide
JulesKhong Sep 26, 2023
b42a8fa
#21 adds heading and p style to Text block
JulesKhong Sep 26, 2023
5847cbe
merging
jamacon36 Sep 26, 2023
a24ee35
continuing merge
jamacon36 Sep 26, 2023
9f097e7
first pass at header nav
jamacon36 Sep 26, 2023
d2dd80a
adds colorway to grid block and ctas to header
jamacon36 Sep 26, 2023
db947ff
Merge pull request #36 from thinkshout/header-nav
jamacon36 Sep 26, 2023
7fe633d
Updates button colorways per Julie
JulesKhong Sep 27, 2023
37e6c96
Refactors btn-two-up to remove layout decisions
JulesKhong Sep 27, 2023
60a3758
#20 Adds section-title component, refactors blocks to use it, adds it…
JulesKhong Sep 27, 2023
7b2370e
Updates default brand style to match Figma
JulesKhong Sep 27, 2023
d4e640b
#20 refactors card-grid to use section-title
JulesKhong Sep 27, 2023
3890044
Moves section-title to components directory
JulesKhong Sep 27, 2023
0b7851a
removes flexible content components
jamacon36 Sep 27, 2023
42678b4
adds banner template
jamacon36 Sep 27, 2023
50509e5
refactors blocks to use section title model fields
jamacon36 Sep 27, 2023
3224ec2
updates accordion example text
jamacon36 Sep 27, 2023
66867e1
updates wayfinding cards location
jamacon36 Sep 27, 2023
9a7553e
#14 adds btn-icon, btn-dropdown, btn-hamburger
JulesKhong Sep 27, 2023
92b2319
#14 adds ability to set other classes on btn-two-up
JulesKhong Sep 27, 2023
4f62a4a
#14 adds templates for main nav and dropdowns
JulesKhong Sep 27, 2023
eaf2ce2
#14 starts styles for main nav css
JulesKhong Sep 27, 2023
8866ffe
#14 moves header nav items into nav directory
JulesKhong Sep 27, 2023
6882ddc
#14 fixes broken bg color on accordion header
JulesKhong Sep 27, 2023
5364fef
#25 adds wayfinding cards
JulesKhong Sep 27, 2023
cba3190
#25 adds Person Cards
JulesKhong Sep 27, 2023
c0d00d7
#25 adds Person and Wayfinding Card grids to style guide
JulesKhong Sep 27, 2023
8cbd666
tweaks menu header for children
jamacon36 Sep 27, 2023
bd52c29
adds first pass at footer with menus
jamacon36 Sep 27, 2023
b868ca1
adds banner as hero on page and post twig templates
jamacon36 Sep 27, 2023
3da7c3e
updates block wrapper filter with block name class
jamacon36 Sep 27, 2023
271ebb1
updates people cards block name and wayfinding cards title fields
jamacon36 Sep 27, 2023
3a180d8
Removes btn-icon, updates btn colors to match final Figma
JulesKhong Sep 27, 2023
40d4c66
#20 Adds Text styles
JulesKhong Sep 28, 2023
af1d07a
#27 centers Wayfinding Section Title by default
JulesKhong Sep 28, 2023
cd2505a
Fixes search button and svgs on other icon buttons
JulesKhong Sep 28, 2023
f1c95bc
14 adds hocus-underline and hocus-action styles
JulesKhong Sep 28, 2023
826a379
#14 creates "header" and "footer" components, moves files, css, js fo…
JulesKhong Sep 28, 2023
66bece5
Adds hocus styles to main nav
JulesKhong Sep 28, 2023
ad7536a
Adds Banner and sets example as display version for now
JulesKhong Sep 28, 2023
4359fc3
Adds Banner to style guide
JulesKhong Sep 28, 2023
3649d2c
Adds action color to style guide, updates person card
JulesKhong Sep 28, 2023
49b7292
uses class prop on menu item
jamacon36 Sep 28, 2023
f4e0b78
adds landing page template
jamacon36 Sep 28, 2023
22edced
adds landing page blocks content
jamacon36 Sep 28, 2023
3d317ed
adds landing page template
jamacon36 Sep 28, 2023
993b5ff
adds landing page template
jamacon36 Sep 28, 2023
4d204d9
wires up banner.twig
jamacon36 Sep 28, 2023
babf459
adds timber image constructor to image component
jamacon36 Sep 28, 2023
ba5553e
wires up landing page hero
jamacon36 Sep 28, 2023
a6b1947
wires up post banners
jamacon36 Sep 28, 2023
50fe3a5
wires up CTA block
jamacon36 Sep 28, 2023
dc83fd6
wires up Image & text block
jamacon36 Sep 28, 2023
6e548cc
adds hero as component
jamacon36 Sep 28, 2023
92e5d34
adds is_hero boolean to banner and hero component
jamacon36 Sep 28, 2023
be2c035
fixes menu constructor with location name
jamacon36 Sep 28, 2023
4a06b76
adds markup for header_tag in section-title
jamacon36 Sep 28, 2023
d18a2bc
adds ts_blocks prop to the style guide page
jamacon36 Sep 28, 2023
1c74a22
Spacing fix on a twig file
JulesKhong Sep 28, 2023
d4585f7
Adds layout to site-width GB typography blocks
JulesKhong Sep 28, 2023
c91bc39
Auto generates nav and blocks on /style-guide
JulesKhong Sep 28, 2023
1283e93
Auto generates Foundation and Component sections of the style guide
JulesKhong Sep 29, 2023
fa1d03b
Adds colorway to Wayfinding Cards, fixes container
JulesKhong Sep 29, 2023
3021b37
Fixes container for CTA and Accordion
JulesKhong Sep 29, 2023
b42ce05
Fixes banner for mobile
JulesKhong Sep 29, 2023
7de1fbf
Adds site-spacing tailwind components
JulesKhong Sep 29, 2023
f061a40
Updates CTA to work in layouts, cleans up jumbled template
JulesKhong Sep 29, 2023
67c6256
Fixes bg color block next to text content spacing, comments out unuse…
JulesKhong Sep 29, 2023
e3d2d02
Styles Banner variants
JulesKhong Sep 29, 2023
3337979
progress on Card Grid block
JulesKhong Sep 29, 2023
8b9d728
Tidies up nav a bit, hides subnav
JulesKhong Sep 29, 2023
4226d17
Fixes crowded tablet nav
JulesKhong Sep 29, 2023
e4bc992
Moves card-overlay-link into cards directory
JulesKhong Sep 29, 2023
56ce316
deletes old sample blocks
JulesKhong Sep 29, 2023
cd887f4
Tidies up buttons and Card Grid on the style guide
JulesKhong Sep 29, 2023
7221f8c
uses twig replace filter for block_name and uses block title prop
jamacon36 Sep 29, 2023
a1f8e2d
updates cta presentation choice
jamacon36 Sep 29, 2023
39cf6a4
updates menu item classes to use class prop
jamacon36 Sep 29, 2023
1f3a249
wires up card grid block
jamacon36 Sep 29, 2023
fcb6e8b
wires up wayfinding cards
jamacon36 Sep 29, 2023
dd78712
runs code sniffer
jamacon36 Sep 29, 2023
721da09
further code sniff nits
jamacon36 Sep 29, 2023
1819222
Updates banner example
JulesKhong Sep 29, 2023
2c2624f
adds image focal point
jamacon36 Sep 29, 2023
dd455e8
updates card grid with image handling
jamacon36 Sep 29, 2023
5182c75
handles for nullish hero fields
jamacon36 Sep 29, 2023
3e816aa
fixes wayfinding card example refs
jamacon36 Sep 29, 2023
1012b85
removes default dark background from cards and updates link handling
jamacon36 Sep 29, 2023
06515fc
Removes nav and footer on style guide
JulesKhong Sep 29, 2023
f792b97
Fixes mobile grid on Card Grid component, centers Image GB blocks
JulesKhong Sep 30, 2023
4f42ed5
Adds bg color for cards on each colorway per Julie convo today
JulesKhong Sep 30, 2023
976742c
Updates Card Grid to use 3 col, card-lg, and row style
JulesKhong Sep 30, 2023
a21aba3
Makes WP columns work for wide vs site container columns
JulesKhong Sep 30, 2023
0d4036d
moves view mode to the presentation template
JulesKhong Sep 30, 2023
7e440e5
Makes colorways work on Image + Text block
JulesKhong Sep 30, 2023
e7c904e
Updates Wayfinding Cards to use dk colorway for brand
JulesKhong Sep 30, 2023
599f983
Adds card colors class "ts-bg-card" to cards
JulesKhong Sep 30, 2023
8b4bfa2
Fixes broken secondary button reference
JulesKhong Sep 30, 2023
b858f28
Removes Right alignment per Julie on text, fixes padding, adds max wi…
JulesKhong Sep 30, 2023
caf5850
tailwind reference note
JulesKhong Sep 30, 2023
321d6b8
Adds banner wider aspect ratio
JulesKhong Oct 2, 2023
0e5a78c
get 4col grid at md breakpoint to register
JulesKhong Oct 2, 2023
50bb845
updates theme readme
jamacon36 Oct 13, 2023
5cee205
adds tokens line to readme
jamacon36 Oct 13, 2023
17781d3
adds sample project readme
jamacon36 Oct 13, 2023
dc46fe4
#37 updates banner image styles, responsive styles
JulesKhong Oct 20, 2023
da077d1
#37 adds tags and authors to Card Grid cards, fixes button missing st…
JulesKhong Oct 20, 2023
18fe05b
#37 refines People Cards, and People Card Grid
JulesKhong Oct 20, 2023
35f1b5b
#37 adds date and tag to Card Grid
JulesKhong Oct 20, 2023
208ae6f
#37 sets max width on Section Title component text
JulesKhong Oct 20, 2023
9bb3a5e
#37 updates styles on card-lg
JulesKhong Oct 20, 2023
7e4850b
#37 updates btn solid and btn-tag
JulesKhong Oct 20, 2023
15b2299
#37 removes unused align right on Image and Text title
JulesKhong Oct 20, 2023
4b7c208
#37 adds responsive image styles to Banner Left, Right, Center
JulesKhong Oct 20, 2023
fd1995e
#37 fixes padding on Image + Text
JulesKhong Oct 20, 2023
319528f
#37 adds image styles to Banner: overlay style
JulesKhong Oct 20, 2023
983eeca
#37 refines text left and right image when there's description text
JulesKhong Oct 20, 2023
0cf7124
#37 adds hocus zoom to md and lg images, adds image styles
JulesKhong Oct 20, 2023
08cc352
#37 fixes overflowing screen on mobile
JulesKhong Oct 20, 2023
f7ad2df
#37 adds padding to editor view
JulesKhong Oct 20, 2023
ead4926
#37 cleans up zoom hocus on lg cards
JulesKhong Oct 20, 2023
bbb2a6a
#37 adds image style to Image + Text block
JulesKhong Oct 20, 2023
a8f1758
#37 adds image style to Card XL
JulesKhong Oct 20, 2023
0edaa58
#37 renders correct images in the cards section of styleguide
JulesKhong Oct 20, 2023
1bc50fa
#37 adds styles to the WP video block
JulesKhong Oct 20, 2023
2092650
#37 adds captions to Image & Text
JulesKhong Oct 20, 2023
8a02f10
#37 adds caption to Banner with side text
JulesKhong Oct 20, 2023
f20db7b
#37 adds caption to Banner center
JulesKhong Oct 20, 2023
dea1cc1
#37 updates Banner side text to use a bg image on the figure
JulesKhong Oct 22, 2023
b08927a
adds embed block variation filtering
jamacon36 Oct 23, 2023
1ad12e5
updates admin directory name
jamacon36 Oct 23, 2023
38536db
handles falsey post_ids in foreach
jamacon36 Oct 23, 2023
fe49c6d
adds Card_Post class
jamacon36 Oct 23, 2023
a7f9c95
removes comments from base
jamacon36 Oct 23, 2023
5c6cfef
converts JS to code split bundle
jamacon36 Oct 25, 2023
e14de81
adds parcel docs link
jamacon36 Oct 25, 2023
d8c4bef
moves skip link fix to components
jamacon36 Oct 25, 2023
13d5f3a
tweaks token value
jamacon36 Oct 30, 2023
f407250
removes typography size tokens
jamacon36 Oct 30, 2023
a46b524
#61 moves colors.css to _elements
JulesKhong Feb 29, 2024
8eba509
#61 adds site-spacing.css
JulesKhong Feb 29, 2024
b0c588e
#61 moves tailwind-base and tailwind-end to _elements
JulesKhong Feb 29, 2024
1840227
#61 moves base.css to atoms-molecules
JulesKhong Feb 29, 2024
3782de4
#61 moves utilities.css to atoms-molecules
JulesKhong Feb 29, 2024
d4b001a
#61 moves generated variables to _elements
JulesKhong Feb 29, 2024
ac0a3a2
#61 moves design-elements to atoms-molecules
JulesKhong Feb 29, 2024
0a87f01
#61 adds base forms in atoms-molecules
JulesKhong Feb 29, 2024
74299d1
#61 moves hocus.css to atoms-molecules
JulesKhong Feb 29, 2024
df57b5a
#61 moves images.css to atoms-molecules
JulesKhong Feb 29, 2024
02b8ae5
#61 moves typography.css to atoms-molecules/
JulesKhong Feb 29, 2024
81701c8
#61 removes sample scss files
JulesKhong Feb 29, 2024
29ec556
#61 adds wp-blocks.css for iframe block, block-separator and video bl…
JulesKhong Feb 29, 2024
635644e
#61 updates colors.css to include social buttons
JulesKhong Feb 29, 2024
f36bf2f
#61 completes assets/_elements/* updates
JulesKhong Feb 29, 2024
67a6549
#61 updates atoms-molecules/base.css
JulesKhong Feb 29, 2024
935d3b7
#61 updates atoms-molecules/design-elements.css
JulesKhong Feb 29, 2024
2ac847d
#61 adds timing fixes to hocus.css
JulesKhong Feb 29, 2024
29d6a16
#61 atoms-molecules/ images.css: adds image alignment and GB layout
JulesKhong Feb 29, 2024
b21498d
#61 removes FRCG-specific typography.css references
JulesKhong Feb 29, 2024
2a53a73
#61 removes utilities.css, uses site-spacing.css and tokens instead
JulesKhong Feb 29, 2024
d0fe5fb
#61 fixes bugs in styleguide.css
JulesKhong Feb 29, 2024
6960088
#61 updates index.css
JulesKhong Feb 29, 2024
3c949f5
#61 updates main.js
JulesKhong Feb 29, 2024
1a9bd1b
#61 moves btns into atoms directory
JulesKhong Mar 8, 2024
ea293d6
#61 moves styleguide sections into "organisms"
JulesKhong Mar 8, 2024
bbbb99e
#61 moves accordion into "organisms/blocks"
JulesKhong Mar 8, 2024
0f6b641
#61 moves banner files into "organisms"
JulesKhong Mar 8, 2024
68ed10b
#61 removes card-grid block
JulesKhong Mar 8, 2024
3586dc8
#61 moves CTA into "organisms/blocks"
JulesKhong Mar 8, 2024
fc51322
#61 moves image-text block into "organisms/blocks"
JulesKhong Mar 8, 2024
d8da132
#61 moves people cards into "organisms/blocks"
JulesKhong Mar 8, 2024
d314637
#61 moves wayfinding cards into "organisms/blocks"
JulesKhong Mar 8, 2024
8f38892
#61 moves header and footer into "organisms/blocks"
JulesKhong Mar 8, 2024
516b4d3
#61 moves cards into "molecules/cards"
JulesKhong Mar 8, 2024
466761e
#61 moves Section Title into "molecules"
JulesKhong Mar 8, 2024
8b1e72b
#61 moves files into "templates/archives"
JulesKhong Mar 8, 2024
bbff05e
#61 moves files into "atoms"
JulesKhong Mar 8, 2024
7f143cb
#61 moves 404 and index into "templates"
JulesKhong Mar 8, 2024
0db9c87
#61 moves files into "molecules/image"
JulesKhong Mar 8, 2024
221187f
#61 moves pagination into "molecules/pagination"
JulesKhong Mar 8, 2024
2d5b7ff
#61 moves comments into "organisms"
JulesKhong Mar 8, 2024
70e98ec
#61 removes card grid component
JulesKhong Mar 8, 2024
10ec5c3
#61 adds card-grid template
JulesKhong Mar 8, 2024
5b27d67
#61 adds hero.twig to banner
JulesKhong Mar 8, 2024
c798941
#61 adds body-scripts to header
JulesKhong Mar 8, 2024
05a4a65
#61 moves page templates into atomic structure
JulesKhong Mar 8, 2024
a3d24ee
#61 moves tease and tease-post into molecules
JulesKhong Mar 8, 2024
5b59ae6
#61 moves widgets into organisms
JulesKhong Mar 8, 2024
77b3e57
#61 updates tailwind-btns with 3 new button styles per Julie
JulesKhong Mar 8, 2024
b220d68
#61 moves menu.twig into "organisms" top level
JulesKhong Mar 8, 2024
19c9d70
#61 adds base 404 page styles
JulesKhong Mar 8, 2024
0ae1d6c
#61 adds file structure to header organism
JulesKhong Mar 8, 2024
20e4dc4
#61 fixes broken css
JulesKhong Mar 8, 2024
c74399f
#61 adds social nav
JulesKhong Mar 8, 2024
1b85bdc
#61 updates directory paths in .php files
JulesKhong Mar 8, 2024
ed6e603
#61 adds utility typography styles
JulesKhong Mar 8, 2024
22a9d35
#61 updates btn directory paths, adds btn-text-link, btn-social
JulesKhong Mar 8, 2024
492e935
#61 updates directory paths in page templates
JulesKhong Mar 8, 2024
e4c2fa9
#61 updates directory path in archive.php
JulesKhong Mar 8, 2024
4b9c397
#61 removes font sizes
JulesKhong Mar 8, 2024
2b245d3
#61 updates directory path in cards and card-grid
JulesKhong Mar 8, 2024
febdbd7
#61 renames image.twig -> media.twig
JulesKhong Mar 8, 2024
c2f406c
#61 updates paths in Section Title
JulesKhong Mar 8, 2024
f58f669
#61 updates directory structure for Accordion
JulesKhong Mar 8, 2024
6b4858b
#61 updates directory structure in Banner
JulesKhong Mar 8, 2024
1271865
#61 updates directory structure in CTA
JulesKhong Mar 8, 2024
2efa7d0
#61 Adds News Grid
JulesKhong Mar 8, 2024
00a4019
#61 updates directory structure for People Cards
JulesKhong Mar 8, 2024
eab003e
#61 updates directory structure for Wayfinding Cards
JulesKhong Mar 8, 2024
082cb15
#61 adds missing svgs
JulesKhong Mar 8, 2024
ff41a03
#61 updates directory structure for Image + Text
JulesKhong Mar 8, 2024
6a42131
#61 updates footer design
JulesKhong Mar 8, 2024
78c80b1
#61 updates style guide page templates
JulesKhong Mar 8, 2024
ebdeb30
#61 adds 404.twig styles
JulesKhong Mar 8, 2024
59f73e2
#61 Moves wayfinding-cards display template
JulesKhong Mar 8, 2024
d006f86
#61 fixes broken css variables
JulesKhong Mar 8, 2024
30dcefc
#61 fixes teas.twig path reference
JulesKhong Mar 8, 2024
171a379
#61 removes people card JS logic
JulesKhong Mar 8, 2024
e24d0f2
#61 updates JS for navigation
JulesKhong Mar 8, 2024
052cdd6
#61 removes icon-link svg twig files
JulesKhong Mar 8, 2024
1045651
#61 updates page.twig to use an h1 banner
JulesKhong Mar 8, 2024
98d40f7
#61 adds pagination to /style-guide
JulesKhong Mar 8, 2024
b049527
#61 removes FRCG social links, replaces with TS
JulesKhong Mar 9, 2024
ac0ad55
#61 removes FRCG contact info, adds placeholder
JulesKhong Mar 9, 2024
c9b0767
#61 removes Amnesty reference
JulesKhong Mar 9, 2024
50dbef5
#61 updates grid approach in tokens and style guide
JulesKhong Mar 9, 2024
be0b35a
#61 renames styleguide-sections directory
JulesKhong Mar 9, 2024
9e8d8ec
#61 adds atomic approach to style guide page
JulesKhong Mar 9, 2024
f60ab2f
#61 fixes directory paths on cards
JulesKhong Mar 9, 2024
e0a066e
#61 fixes wrong secondary-900 color
JulesKhong Mar 9, 2024
1fc19e1
#61 fixes wrong secondary-900 color
JulesKhong Mar 9, 2024
4b68c3c
#61 adds grid tokens to tailwind.config.js
JulesKhong Mar 9, 2024
d77cca5
#61 adds page template to page.php
JulesKhong Mar 9, 2024
3f7f925
#61 recompiled _tokens.js
JulesKhong Mar 9, 2024
5b7eb87
#61 adds event cards and fixes person card base
JulesKhong Mar 9, 2024
2d14a08
#61 updates style guide section description documentation
JulesKhong Mar 9, 2024
ee16234
#61 adds pagination to the style guide
JulesKhong Mar 9, 2024
98f303d
#61 updates directory path to menu.twig
JulesKhong Mar 9, 2024
9d685a2
#61 adds Footer to style guide
JulesKhong Mar 9, 2024
0d6b2eb
#61 adds page-our-team.twig
JulesKhong Mar 9, 2024
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
2 changes: 1 addition & 1 deletion 404.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@
*/

$context = Timber::context();
Timber::render( '404.twig', $context );
Timber::render( 'templates/404.twig', $context );
70 changes: 70 additions & 0 deletions PROJECT_README.sample.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
# PROJECT TITLE (PROJECT_NAME)

[![CircleCI](https://circleci.com/gh/thinkshout/PROJECT_NAME.svg?style=shield)](https://circleci.com/gh/thinkshout/PROJECT_NAME)
[![Dashboard PROJECT_NAME](https://img.shields.io/badge/dashboard-PROJECT_NAME-yellow.svg)](https://dashboard.pantheon.io/sites/cd61a3d0-9e13-4664-9fea-db0831e5e3f5#dev/code)
[![Dev Site PROJECT_NAME](https://img.shields.io/badge/site-PROJECT_NAME-blue.svg)](http://dev-PROJECT_NAME.pantheonsite.io/)

## Requirements

Composer, terminus, and wp-cli (`brew install wp-cli`).

## Site setup

```sh
git clone [email protected]:thinkshout/PROJECT_NAME.git
cd PROJECT_NAME
cp .env.sample .env
composer install
```

Generate salts (https://roots.io/salts.html) and paste into your `.env` file. If your database user or password doesn't
match the ones provided by default, change them.

Then create the database:

```
wp db create
```

## Clone DB if this is an existing site or build actively in progress(optional)
Download and extract a database backup from Pantheon:

```sh
wget -O vendor/database.sql.gz $(terminus backup:get PROJECT_NAME.dev --element=database)
gunzip vendor/database.sql.gz
```

Import the database:

```sh
wp db import vendor/database.sql
```

The project should have its login credentials in TS 1Password. However, if you'd like to make your local copy less annoying to login to (optional):

```sh
wp user update ts_admin --user_pass=PROJECT_NAME
```

## Login
Log in to your site: https://web.PROJECT_NAME.localhost/wp/wp-admin/
Username: `ts_admin`
Password: `PROJECT_NAME`

## Committing code -- do this regularly
Each time you start a new task, you should create a branch from `develop` with the github ticket number and a short
description of the ticket's goal in the branch:

```
git checkout main
git pull
git checkout -b issue-123-short-description
```

Now work on your changes. Make sure configuration changes are saved in the codebase.

Once you're happy with your changes, create a pull request from your branch to the `develop` branch in github
and tag the tech lead or PM in the PR. Also move your ticket into the "Tech Review" column on [Zenhub](https://github.com/thinkshout/hsus#workspaces/).
Someone will then review the PR for potential improvements or fixes, and merge, and move the ticket into the "Ready to deploy"
column in [Zenhub](https://github.com/thinkshout/hsus#workspaces/). This ticket is now ready to go out with
the next release.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,16 @@ This is forked from the "_s" for Timber: a dead-simple theme that you can build

In `assets` you'll find `css/`, `js/`, and `static/` is where you can keep your static front-end scripts, styles, or images. In other words, your CSS files, JS files, fonts, and SVGs would live here.

In `tokens` you'll find base level theme variables for colors, fonts, and spacing. These are used to generate the Tailwind config file and are also used to generate the CSS custom properties file. These files are generated by the `npm run format` command.

`views/` contains all of your Twig templates. These pretty much correspond 1 to 1 with the PHP files that respond to the WordPress template hierarchy. At the end of each PHP template, you'll notice a `Timber::render()` function whose first parameter is the Twig file where that data [or `$context`] will be used. Just an FYI.

## Installation
Getting started you will need to install theme dependencies with [nvm](https://github.com/nvm-sh/nvm#installing-and-updating), [npm](https://docs.npmjs.com/), and [composer](https://getcomposer.org/).

1. Navigate to the theme directory in your project folder.
2. Run `composer require timber/timber` to install Timber in the site, if prompted use the existing `composer.json` file in the project root directory. For more information on using Twig in WordPress see our [wiki article](https://github.com/thinkshout/thinkwp-starter-theme/wiki/TWIG-In-WordPress)
3. If using custom Gutenberg blocks with ACF run `composer require palmiak/timber-acf-wp-blocks` and add the following line to the constructor of the theme class in [class-theme.php](https://github.com/thinkshout/thinkwp-starter-theme/blob/main/lib/class-theme.php).
```php
new Timber_Acf_Wp_Blocks(); // Register blocks in views/blocks with ACF.
```
3. If using custom Gutenberg blocks with ACF run `composer require palmiak/timber-acf-wp-blocks`. For more information refer to the [Timber ACF Blocks documentation](https://palmiak.github.io/timber-acf-wp-blocks/#/).
4. Run `npm install` to install dependencies. Install will check the node version against the `.nvmrc` file, install all dependencies, and populate an initial set of token definitions.

## Theme Development
Expand Down Expand Up @@ -53,3 +52,4 @@ External docs for relevant theme technologies:
- [WordPress](https://wordpress.org)
- [Tailwind CSS](https://tailwindcss.com/)
- [Timber](https://timber.github.io/docs/)
- [Timber ACF Blocks](https://palmiak.github.io/timber-acf-wp-blocks/#/)
131 changes: 70 additions & 61 deletions acf-json/group_60be1fcea8ba4.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
{
"key": "group_60be1fcea8ba4",
"title": "Hero Section",
"title": "Model - Banner",
"fields": [
{
"key": "field_60be1fee8b5e6",
"label": "Hero",
"name": "hero",
"type": "group",
"key": "field_650b2c1a8b8de",
"label": "Banner Presentation",
"name": "block_presentation",
"aria-label": "",
"type": "select",
"instructions": "",
"required": 0,
"conditional_logic": 0,
Expand All @@ -15,68 +16,75 @@
"class": "",
"id": ""
},
"choices": {
"left": "Text on Left",
"right": "Text on Right",
"center": "Text in the Center",
"floating": "Text floating over Image"
},
"default_value": false,
"return_format": "value",
"multiple": 0,
"allow_null": 0,
"ui": 0,
"ajax": 0,
"placeholder": ""
},
{
"key": "field_65137b4beef68",
"label": "Banner Title",
"name": "block_title",
"aria-label": "",
"type": "clone",
"instructions": "",
"required": 0,
"conditional_logic": 0,
"wrapper": {
"width": "",
"class": "",
"id": ""
},
"clone": [
"group_651379242e4f5"
],
"display": "seamless",
"layout": "block",
"sub_fields": [
{
"key": "field_60be20f18b5e8",
"label": "Hero Title",
"name": "hero_title",
"type": "text",
"instructions": "The displayed title of the page. Overrides the post\/page title.",
"required": 0,
"conditional_logic": 0,
"wrapper": {
"width": "",
"class": "",
"id": ""
},
"default_value": "",
"placeholder": "",
"prepend": "",
"append": "",
"maxlength": ""
},
{
"key": "field_60be204b8b5e7",
"label": "Hero Image",
"name": "hero_image",
"type": "image",
"instructions": "Display this image atop of the page. Overrides the featured image on a post if set.",
"required": 0,
"conditional_logic": 0,
"wrapper": {
"width": "",
"class": "",
"id": ""
},
"return_format": "array",
"preview_size": "large",
"library": "all",
"min_width": "",
"min_height": "",
"min_size": "",
"max_width": "",
"max_height": "",
"max_size": "",
"mime_types": ""
}
]
"prefix_label": 0,
"prefix_name": 0
},
{
"key": "field_651715c054092",
"label": "Banner Image",
"name": "image",
"aria-label": "",
"type": "image",
"instructions": "",
"required": 0,
"conditional_logic": 0,
"wrapper": {
"width": "",
"class": "",
"id": ""
},
"return_format": "array",
"library": "all",
"min_width": "",
"min_height": "",
"min_size": "",
"max_width": "",
"max_height": "",
"max_size": "",
"mime_types": "",
"preview_size": "medium"
}
],
"location": [
[
{
"param": "post_type",
"operator": "==",
"operator": "!=",
"value": "post"
}
],
[
{
"param": "post_type",
"operator": "==",
"value": "page"
}
]
],
"menu_order": 0,
Expand All @@ -85,7 +93,8 @@
"label_placement": "top",
"instruction_placement": "label",
"hide_on_screen": "",
"active": true,
"active": false,
"description": "",
"modified": 1627669094
}
"show_in_rest": 0,
"modified": 1696012051
}
Loading