Skip to content

feat: add clean personalized time-based greeting on homepage #794 - #852

Open
aarushii25 wants to merge 3 commits into
devanshi14malhotra:mainfrom
aarushii25:feature-personalized-greeting
Open

aarushii25 wants to merge 3 commits into
devanshi14malhotra:mainfrom
aarushii25:feature-personalized-greeting

Conversation

@aarushii25

Copy link
Copy Markdown
image image ### 🎯 Purpose / Overview This PR resolves the enhancement request outlined in #794. It replaces the purely static experience on the homepage with an interactive, dynamic, time-based onboarding greeting system for returning or newly authenticated users.

💡 Core Changes

  1. HTML Layout Layer (pages/index.html): - Cleanly integrated an absolute placeholder node wrapper (#personalized-greeting) inside <section class="hero"> just above the primary website title text block.

    • Applied smooth CSS fade-in hardware acceleration transitions (opacity 1s ease-in-out).
  2. JavaScript Routing Engine (frontend/js/app.js):

    • Engineered the programmatic fallback algorithm executePersonalizedGreetingRouting() invoked dynamically on standard DOMContentLoaded states.
    • Parses active user session objects natively via SafeStorage tokens to avoid identity mismatch constraints. Drops down smoothly to 'Reader' if anonymous.
    • Runs automated evaluations on system hour structures to map targeted time greeting constraints dynamically (Morning, Afternoon, Evening, Night).

🎨 Visual & Aesthetic Design Synchronization

  • Typography Matrix: Completely maps site predefined font rules utilizing native Playfair Display, Georgia, and clean sans-serif configurations.
  • Color Variables Adaptation: Linked font styles purely to --text-main variables to allow flawless visual symmetry and dynamic adjustment across both Light and Dark mode transitions seamlessly.
  • Minimalist Aesthetic: Omitted any loud icons/emojis or static accent shifts to align 100% with BiblioDrift's storytelling aura.

🧪 Verification & Testing Completed

  • Mocked time variables iteratively to verify dynamic string translation and accurate boundary transitions.
  • Evaluated session lookups across local application profiles (localStorage/IndexedDB tracking).
  • Verified that styling elements display flawlessly under light, dark, and custom wood modes without layout shifting issues.

@devanshi14malhotra pls review!

@netlify

netlify Bot commented May 21, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for bibliodrift-dm ready!

Name Link
🔨 Latest commit a229e3c
🔍 Latest deploy log https://app.netlify.com/projects/bibliodrift-dm/deploys/6a113f0f85913f00084c5647
😎 Deploy Preview https://deploy-preview-852--bibliodrift-dm.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@aarushii25

Copy link
Copy Markdown
Author

Hi @devanshi14malhotra,

I have completely synchronized the upstream repository changes and resolved the manual layout and syntax merge conflicts in frontend/pages/index.html.

Additionally, per best practices, I have replaced all the raw literal emojis within the 'Reader Perspectives' avatar blocks with scalable, standard FontAwesome icons to ensure cross-browser rendering stability.

The pipeline checks should be clear now. Ready for review and merge!

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.

1 participant