Commit graph

106 commits

Author SHA1 Message Date
Kelly Dwan 469e3437b1
Pledge List: Fix margin overflow when only 1 contributor on a pledge
Fixes #95
2019-11-08 17:20:45 -05:00
Kelly Dwan beb2db453e
My Pledges: Add border only when multiple pledge lists exist 2019-11-08 17:14:14 -05:00
Ian Dunn 85de3422ea
Theme: Bump cachebuster
It was reverted in the production repo in [dotorg 15511].
2019-11-04 15:19:49 -06:00
Ian Dunn 11b9bf3604
Pledge List: Sort randomly by default for fairness.
See #70
2019-11-02 13:26:22 -05:00
Kelly Dwan 18cf186cc4
Update quote in quote block
Fixes #74
2019-11-01 11:30:59 -05:00
Kelly Dwan a5f96240f1
Pledge List: Fix alignment of contributors (again)
Fixes #66
2019-11-01 11:21:50 -05:00
Ian Dunn 27a8080424
Pledge List: Add vertical padding between rows of contributors. 2019-11-01 05:17:08 -05:00
Ian Dunn 97daa42308
Pledge List: Wrap description in paragraph to increase spacing. 2019-10-31 20:33:16 -05:00
Ian Dunn 98b365a012
Pledge List: Clarify that hours pledged is per week. 2019-10-31 17:59:04 -05:00
Ian Dunn 1b3e2e3301
Single Pledge: Add nofollow to user input links.
Otherwise it would incorrectly signal to search engines that we're endorsing the links.
2019-10-31 17:56:18 -05:00
Ian Dunn 22cb761c57
Single Pledge: Make contributor avatar link to profile to improve UX. 2019-10-31 16:27:27 -05:00
Ian Dunn 33d3bc1933
Pledge List: Show hours because it's a more meaningful statistic. 2019-10-31 16:27:27 -05:00
Ian Dunn 0c250daa7d
Theme: Link to profile slugs to avoid 404s. 2019-10-31 10:54:37 -05:00
Ian Dunn 38fe19036d
Theme: Show paragraphs on single pledge views. 2019-10-31 08:30:06 -05:00
Ian Dunn 2dcdcd939c
Pledge List: Show excerpt to keep page uncluttered. 2019-10-31 08:28:18 -05:00
Ian Dunn e61ce467cb
Pledge Form: Allow HTML within descriptions.
Fixes #63
2019-10-30 13:32:32 -07:00
Kelly Dwan 1fad6f0eaa
Pledge List: Fix alignment of contributors
Fixes #66
2019-10-30 14:48:59 -05:00
Kelly Dwan 55bf7e3839
Theme: bump cachebuster 2019-10-30 13:48:11 -05:00
Kelly Dwan 0b26fad482
My Pledges: Update styles and format to match design
- Add a single-pledge view so we can separate out the pending from published
- Update layout and styles of my pledges list
- Adds link and danger button styles
2019-10-30 13:24:48 -05:00
Kelly Dwan 2b7fb6cd21
Theme: Rename file
SCSS files should use `-` as word separators
2019-10-30 13:13:03 -05:00
Ian Dunn 1c6d39cd2a
Theme: Add basic styles for My Pledges page.
There's more work to do here, but this gets us close enough to start beta testing.

See #56
2019-10-29 12:54:22 -07:00
Ian Dunn 189c61bfe8
Flip placeholder pending status to publish now that testing done. 2019-10-29 10:15:22 -07:00
Kelly Dwan bc867a344e
Pledge List: Style search results 2019-10-28 20:37:09 -04:00
Kelly Dwan aa8b1838cd
Pledge Form: Use agreement text as label content
This calls more attention to the agreement text, and correctly associates it with the input for screen reader users.
2019-10-28 20:09:38 -04:00
Kelly Dwan f49a938c1e
Theme Search: Fix search box alignment 2019-10-28 20:04:03 -04:00
Kelly Dwan 1336228976
Pledge List: Get real pledge form link from page 2019-10-28 20:02:17 -04:00
Kelly Dwan c367a00071
Pledge List: Style pagination 2019-10-28 19:58:22 -04:00
Kelly Dwan 14ed8d4d6b
Pledge List Filters: Update style and add filter on-change functionality
- Style search box & filter dropdown
- Enable sort filter on select change
- Fix some PHP notices
2019-10-28 19:39:16 -04:00
Kelly Dwan 5b5a1d50ff
Pledge List: Fix grid layout for small screens 2019-10-28 18:21:59 -04:00
Kelly Dwan ac1027b550
Homepage: Fix contributor highlight section 2019-10-28 18:21:54 -04:00
Kelly Dwan c6c4baf62b
Theme: Fix heading level styles 2019-10-28 17:02:45 -04:00
Kelly Dwan 840ae50ac5
Theme: Tweak paralleogram styles 2019-10-28 16:58:39 -04:00
Corey McKrill dbdcf26bd9 Theme: Single pledge view (#43)
* Theme: Create template part for single pledge

* Plugin: Add functions for handling xprofile data

* Plugin: Add helper function for getting contributor user objects

* Theme: Display aggregated contributor data on single pledge view

* Theme: Add functions, markup, and styles to show team badges

* Theme: Add badge for Test team

* Theme: Add tentative URL for report a pledge link

* Theme: Add support for post thumbnails

* Theme: Add org logo to single pledge view

* Theme: Update `$content_width` to 960

This matches the width of the content in the global header and
the About page.

* Move pledge template to a file used by the template heirarchy

* Clean up some PHPCS errors

* Move pledge structure out to just the list items

* Create file for single pledge styles

* style badge grid into a grid.

* Add a custom image size for the logo

* Update styles

* Un-hide pledges with no confirmed contributors

* Fix content width
2019-10-28 13:38:49 -04:00
Kelly Dwan 553247cbf7
Pledge List: Display pledges in list with sort and search ability (#33)
* Use the post-type when choosing template partial
* Add pledge archive templates
* Style pledge list page
* Style individual pledge
* Use pledge featured image for the logo
* Fix aspect ratio of image
* Add real contributors to the pledges
* Enable sorting and searching of pledges
* Add pledge sorting markup
* Style the page header
* Restrict any pledges with no contributors from being shown on the frontend
* Update contributor count key name
2019-10-25 16:34:46 -04:00
Kelly Dwan 157b73e13f
Homepage: clean up item positioning
- Remove accidental drop-shadow (mistake in Figma)
- Use the correct fonts for callout text
- Switch to a fixed width of rems over percentages to make alignment easier
- Use rems to outdent quote so it lines up with the edge of the photo
- Overlap the blue box + photo on larger screens, and offset the quote down
- Remove unused selectors
- Fix quote display in the editor
2019-10-24 13:10:40 -04:00
Corey McKrill a2fba5250e
Unify the plugin and theme namespaces 2019-10-22 10:57:04 -07:00
Ian Dunn 78822c4323
Theme: Iterate on pullquotes and other hero areas.
See #2.
2019-10-18 14:29:26 -07:00
Ian Dunn 9c700e59cb
Theme: Iterate on About fonts and block styles. 2019-10-18 09:19:27 -07:00
Kelly Dwan 91ed1e933d
Use correct heading level for list pages 2019-10-09 14:40:02 -04:00
Kelly Dwan fd40341aaa
Update color variables to match core 2019-10-09 14:39:48 -04:00
Kelly Dwan 0f675ae6c3
Create Pledge: Make form functional (#31)
This broadly enables & styles the pledge forms across the frontend and wp-admin.

- Switches field `readonly` control to a variable called `$readonly`
- Create `PledgeMeta\get_pledge_meta()` which will fetch data from `$_POST`, a pledge post, or defaults.
- Add Number of Employees field
- Update form content to match mockup:
  - fields now have help text
  - success message uses content from mockup
  - logo field is moved to the "org info" section
- Style form in theme, add some similar styles to the admin

Fixes #7, fixes #28
2019-10-08 18:29:35 -04:00
Kelly Dwan b08effbe8b
Move layout-related code to separate component files 2019-10-07 17:11:35 -04:00
Kelly Dwan 3ebc219416
Remove build files (#19)
* Remove build CSS files

* Ignore built files

* Remove call to RTL styles
2019-10-07 15:59:38 -04:00
Ian Dunn 883ed29374
Theme: Align header text left on mobile. 2019-10-05 09:48:26 -07:00
Kelly Dwan 7a355b8314
Theme: Fix interior page layout (#18)
Fixes #4
2019-10-04 11:32:57 -04:00
Kelly Dwan e20a834cb0
Use columns block for the parallelogram style (#16)
This avoids the complex mutliply-nested blocks and makes the block style less reliant on a custom class. On mid-sized screens, we switch to plain horizontally-overlapping rectangles, and on small screens we stack the columns, and vertically-overlap.

Also, remove the parallelogram styles from the editor display. The skew and positioning don't work well in the editor context.
2019-10-03 15:09:06 -04:00
Kelly Dwan f8558fe9c2
More blocks styles moved to the appropriate object/utilities folders
Simplifies pullquote and fixes the issues with editor styles; move color classes utilities.
2019-10-02 17:08:14 -04:00
Kelly Dwan e6b3fbd989
Move blocks and block styles to the correct places in the CSS structure
There should be no visual changes
2019-10-02 15:54:45 -04:00
Kelly Dwan ef8c78f4f3
Update and document CSS structure
Looking at ITCSS, it appears the last level should be `utilities`. Since that's a name that has no negative connotations, let's use that instead. Also add a README documenting each folder's use.
2019-10-02 10:57:31 -04:00
Kelly Dwan c8211bf6a0
Update packages to latest
Removes es6-promise, which is not necessary for local development (we're all on a modern version of node).
Moves the sass file generation to a separate function, the current IIFE method is not clear.
Update autoprefixer's browserlist to use the core WordPress configuration
Add a default task, and map grunt in npm scripts
2019-10-01 16:51:52 -04:00
Kelly Dwan ec4afa649d
Check that register_block_style exists
This function is not in core WordPress yet, so we should check for it in case Gutenberg is deactivated.
2019-10-01 13:45:31 -04:00
Kelly Dwan 30b7c0786e
Fix phpcs errors 2019-10-01 13:44:45 -04:00
Ian Dunn 1db9ec9203
Theme: Add editor styles. 2019-09-26 15:38:53 -07:00
Ian Dunn a197adc6e2
Theme: Add WIP styles for About page. 2019-09-26 15:38:53 -07:00
Ian Dunn 7b45a8c1c1
Theme: Move above pub/ folder to avoid clutter from sync commits. 2019-09-24 16:49:35 -07:00
Ian Dunn de191e098b
Theme: Initial commit.
This was forked from `pub/wporg-main` and `pub/wporg-plugins`, and then customized.
2019-09-24 16:23:39 -07:00