Skip to content

Add Read Time Feature for Guides#1124

Open
suman20041 wants to merge 3 commits intosayeeg-11:mainfrom
suman20041:Time
Open

Add Read Time Feature for Guides#1124
suman20041 wants to merge 3 commits intosayeeg-11:mainfrom
suman20041:Time

Conversation

@suman20041
Copy link

#1110 issue resolved

Description

The feature calculates total word count across guide content and displays a stylish badge next to each section heading showing estimated reading time based on average reading speed (200 words/min).

Changes Made

  • Added calculateReadTime() function to guides.js that:

    • Counts words from all guide paragraphs
    • Calculates total reading time
    • Injects read time badges into section headings
  • Added CSS styles for .read-time-badge in guides.css with:

    • Gold-themed design matching the site's aesthetic
    • Clock icon from Font Awesome
    • Smooth hover effects
    • Dark mode compatibility

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