Skip to content

Challenge 1: Airbnb-style front page replication (feature/yonatan-parga) - #31

Open
bugsinx12 wants to merge 14 commits into
MeanPug:masterfrom
bugsinx12:feature/yonatan-parga
Open

Challenge 1: Airbnb-style front page replication (feature/yonatan-parga)#31
bugsinx12 wants to merge 14 commits into
MeanPug:masterfrom
bugsinx12:feature/yonatan-parga

Conversation

@bugsinx12

@bugsinx12 bugsinx12 commented Jun 2, 2026

Copy link
Copy Markdown

Challenge 1: Airbnb-style Front Page

Replicates the Airbnb front-page aesthetic as a WordPress theme.

  • Custom Post Type property with meta boxes, admin columns, image picker
  • Auto Seeder (class-property-seeder.php) populates properties with mock data
  • Front-page template with responsive header, search bar, hero card, property grid
  • MeanPug pug icon included per requirements
  • Tailwind CSS matching the reference design

Live demo: https://yonatanparga.dev/
dxScreenshot from 2026-06-03 17-02-07

@bugsinx12

Copy link
Copy Markdown
Author

Hi @steinbachr! This PR is my submission for Challenge 1. Please review when you get a chance. Thanks!

- Add brand colors to tailwind.config.js, replace arbitrary values
- Register nav menu locations, use wp_nav_menu() with fallback
- Replace static content with dynamic WP calls (user, theme_mod, i18n)
- Move seeder from wp_loaded to after_switch_theme
- Add _doing_it_wrong() to ACF fallback stubs
- Add PHPDoc/documentation to all undocumented functions
- Replace inline CSS with Tailwind/admin classes
- Add file-level docblocks to template parts
- Add composer.json with PHPCS + PHPUnit config
- Add PHPUnit test for PropertySeeder
- Download pug icon locally instead of hotlinking
@bugsinx12

Copy link
Copy Markdown
Author

Code quality improvements pushed:

  • Tailwind config: Brand colors extracted (airbnb, airbnb-dark, airbnb-btn, banner-bg)
  • Dynamic template: Nav menus use wp_nav_menu() with fallback, user name is dynamic, COVID banner uses get_theme_mod()
  • Seeder: Moved from wp_loaded (every request) to after_switch_theme
  • ACF fallbacks: Now call _doing_it_wrong() in debug mode
  • PHPDoc: All functions documented, file-level docblocks on all templates
  • Local assets: Pug icon downloaded locally, placeholder SVG for missing property images
  • Testing: Added composer.json, phpcs.xml, phpunit.xml, and a PropertySeederTest
  • Inline CSS: Replaced with Tailwind classes or admin-specific CSS

@bugsinx
bugsinx requested a review from steinbachr June 2, 2026 22:14
@bugsinx12
bugsinx12 force-pushed the feature/yonatan-parga branch from d3d1c55 to 892d133 Compare June 3, 2026 01:22
@bugsinx bugsinx self-assigned this Jun 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants