feat(blog): premium UI upgrade for Blog 1 (₹47L case study)#39
Draft
feat(blog): premium UI upgrade for Blog 1 (₹47L case study)#39
Conversation
Co-authored-by: mauryaakash2555 <246499468+mauryaakash2555@users.noreply.github.com>
Co-authored-by: mauryaakash2555 <246499468+mauryaakash2555@users.noreply.github.com>
…ghter gradient) Co-authored-by: mauryaakash2555 <246499468+mauryaakash2555@users.noreply.github.com>
…ges-desktop Fix header background images cut off on desktop pages
Co-authored-by: mauryaakash2555 <246499468+mauryaakash2555@users.noreply.github.com>
…t-responsiveness Restore responsive hero height scaling on large screens
Co-authored-by: mauryaakash2555 <246499468+mauryaakash2555@users.noreply.github.com>
…r-top Fix hero background positioning on desktop screens
…hero images Co-authored-by: mauryaakash2555 <246499468+mauryaakash2555@users.noreply.github.com>
…hero images Co-authored-by: mauryaakash2555 <246499468+mauryaakash2555@users.noreply.github.com>
…e-top-again [WIP] Fix(hero): inline top-center backgroundPosition for hero images on desktop
…e-top Add inline backgroundPosition to hero sections (note: overridden by existing CSS !important rules)
Updated image dimensions for optimization.
Updated image dimensions for optimization.
Adjust hero section height and background properties for desktop.
Added styles to ensure the hero image displays fully on desktop without cropping, and included an optional gradient overlay.
Added styles for a cinematic hero section in App.css.
Removed old styles for hero image on desktop and added new styles for a cinematic hero section.
Refactor blog post fetching and improve layout styles.
Removed unused CSS styles and adjusted hero section properties.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Co-authored-by: mauryaakash2555 <246499468+mauryaakash2555@users.noreply.github.com>
|
Deployment failed with the following error: Learn More: https://vercel.com/akashs-projects-7840bca9?upgradeToPro=build-rate-limit |
Co-authored-by: mauryaakash2555 <246499468+mauryaakash2555@users.noreply.github.com>
Co-authored-by: mauryaakash2555 <246499468+mauryaakash2555@users.noreply.github.com>
…handling Co-authored-by: mauryaakash2555 <246499468+mauryaakash2555@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Implement premium UI and readability upgrades for Blog 1
feat(blog): premium UI upgrade for Blog 1 (₹47L case study)
Dec 11, 2025
6fd9d66 to
776f391
Compare
ad3a7bc to
74b07c2
Compare
cca89cf to
da01cd7
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Implements comprehensive UI enhancements for the ₹47 lakh investment mistake case study blog post per detailed UX specification. Preserves canonical content while adding premium visual components and accessibility improvements.
Core Changes
New Components (BlogDetail.js)
ComparisonChart: Actual vs ideal portfolio bar chart with illustrative dataGoldHighlightBox: Prominent ₹47,00,000 opportunity cost calloutMidBlogCTA: Educational 12-point portfolio check after key sectionRelatedPosts: Responsive grid with hover effectsContent Rendering Enhancement
Intelligent injection of components at specific content markers without modifying source HTML:
Typography & Readability (App.css)
UI Elements
rel="noopener noreferrer"Accessibility
<article>,<section>, proper heading hierarchyFiles Modified
BlogDetail.js: Complete restructure with enhanced rendering (588 lines)App.css: Blog-specific typography rules (93 lines)staticBlogData.js: Image path update (2 lines)hero-47l-dashboard.svg: Premium placeholder hero (new file)Brand Theme: Black/grey base + gold accent (#DAA520) maintained throughout.
TODO: Replace SVG hero with licensed 1200x400px finance dashboard image (see comment in BlogDetail.js line 395).
Original prompt
Implement premium UI and readability upgrades for Blog 1 (₹47 lakh case study) based on the canonical content and detailed UX spec.
Repository: mauryaakash2555/premium-invest-8
Base branch: main
New branch to create: feature/blog1-premium-ui
Canonical content:
Target blog page:
pages/blog/[slug].tsxorapp/(site)/blog/[slug]/page.tsx. If there are multiple templates, update the blog-post template used by the site.#DAA520.Implementation requirements (follow exactly):
feature/blog1-premium-uioffmain.feature/blog1-premium-uitomainwith the PR title and description provided below.investment-advice-misstep.mdor an equivalent MD/MDX or data source file; update only that content source (and not inline text in components) so future edits are centralized./public/images/blogs/hero-47l-dashboard.jpg. If this file or a similar hero does not exist, add a new placeholder image asset in an appropriate public/images path and include aTODO: update with licensed herocode comment where the src is used.<Image>wrapper (Next.jsnext/image) has:className="w-full h-60 md:h-72 object-cover rounded-xl"(or equivalent applying those styles).alttext:"Finance dashboard with charts — BM Wealth case study".rounded-xl border-2with border color#DAA520, background#0d0d0d, text near-white (e.g.,text-white/90), paddingp-4 md:p-5.This is a real case study, anonymised for privacy.Shared strictly for educational awareness.No products or investments are being recommended.<section>or<div role="note">is fine; ensure it appears directly beneath the metadata.<a>styled as buttons):https://wa.me/?text=${encodeURIComponent(currentUrl)}.https://www.linkedin.com/sharing/share-offsite/?url=${encodeURIComponent(currentUrl)}.currentUrlshould be derived from the actual runtime URL in the blog page component. In an app router, you can useusePathnameandprocess.env.NEXT_PUBLIC_SITE_URLas base, or a similar approach; ensure it works in the browser only (guard against SSR where necessary).target="_blank".rel="noopener noreferrer".aria-label="Share on WhatsApp"andaria-label="Share on LinkedIn".bg-[#25D366]) with white text androunded-md px-4 py-2 text-sm font-medium flex items-center gap-2.bg-[#0A66C2]) with similar white text / rounded styling.<section aria-labelledby="opportunity-cost" className="...">.#DAA520.rounded-xl.shadow-lg.text-center flex flex-col items-center justify-center.This pull request was created as a result of the following prompt from Copilot chat.
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.