1.2.1 — Front Page Parity Fix (HTML Hero + Portfolio Skeleton) (vibe-kanban) #4
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
{
"task_id": "1.2.1",
"task_title": "Front Page Parity Fix (Hero HTML block + Portfolio skeleton)",
"objective": "Correct the 1.2.0 block front page to match the PHP layout/behaviors: hero video restored and portfolio rows alternate with hover effects, using the exact DOM/class hooks CSS expects.",
"context": "1.2.0 introduced drift (full-width blocks, missing hovers, broken alternation). This task constrains markup to the PHP contract so existing CSS applies without redesign.",
"constraints": [
"Do not change server/DNS/DB settings.",
"Do not add theme.json in this task.",
"Use only core blocks; for hero/portfolio containers, prefer HTML blocks to preserve exact markup.",
"All media URLs must be site-relative (/wp-content/...).",
"Do not introduce alignwide/alignfull or extra wrappers that alter layout."
],
"requirements": [
"In templates/front-page.html, replace the current hero with an HTML block containing the exact video tag from PHP:",
{
"html_snippet_hero": "<video class="hero-video-bg" playsinline autoplay muted loop src="/wp-content/uploads/.../NanoBackgroundVideo.mp4">"
},
"In templates/front-page.html, ensure the portfolio section uses the exact outer skeleton so CSS nth-child alternation works. Use an HTML block for the wrapper and repeat rows:",
{
"html_snippet_portfolio": "<ul class="work-loop">\n
Project Title
\nShort excerpt…
\n \n \n <div class="work-image">\n <a class="work-link" href="PROJECT_URL">\n <img src="/wp-content/uploads/.../thumb.jpg" alt="…" />\n \n \n \n},
"Non‑negotiables: The following classes must exist and wrap content exactly as shown: .work-loop, .work-row, .work-text, .work-image, .work-link. Both text and image must be inside .work-link anchors so hover CSS fires.",
"Neutralize Gutenberg spacing within this front page if it leaks through. If needed, append the following minimal rules to style.css (or place adjacent to existing rules) without changing design tokens:",
{
"css_patch_optional": ".work-loop{list-style:none;margin:0;padding:0}.work-row{display:flex;align-items:center;gap:0}.work-text,.work-image{flex:1 1 50%}.work-row .wp-block-columns{gap:0} .work-link{display:inline-block;text-decoration:none;transition:color .2s ease,transform .2s ease,opacity .2s ease}.work-image img{display:block;transition:transform .25s ease,opacity .25s ease}.work-row:hover .work-image img{transform:translateY(-2px) scale(1.02);opacity:.96}.work-row:hover .work-text h2{text-decoration:underline}"
},
"Header/footer parts remain as in 1.2.0; do not change their wrappers or classes.",
"Leave PHP templates in place for reference; do not delete."
],
"acceptance_criteria": [
"DOM/class parity: .hero-video-bg, .work-loop, .work-row, .work-text, .work-image, .work-link are present as in PHP.",
"Hero video autoplays (muted, playsinline) and src is site-relative (no old domain).",
"Portfolio rows alternate via existing CSS (nth-child) and hover effects trigger on both image and text.",
"No console errors; no 404s for media; no alignwide/alignfull introduced.",
"PR includes before/after screenshots showing parity on desktop."
],
"file_scope": [
"templates/front-page.html",
"style.css (optional small patch only)",
"(reference) front-page.php"
],
"post_task_actions": [
"Update README.md (status + changelog).",
"Open PR: '1.2.1 Front page parity fix (HTML hero + portfolio skeleton)'."
]
}