Documentation Index
Fetch the complete documentation index at: https://mintlify.com/nayalsaurav/resume-analyzer/llms.txt
Use this file to discover all available pages before exploring further.
ScoreCircle is a pure SVG component that renders a circular progress indicator with a pink-to-blue gradient arc and a centered score label. It translates a numeric score (0–100) into a visual arc that fills proportionally, giving users an at-a-glance sense of their overall resume strength without needing to read a number first.
Signature
Props
The score value to visualize, expected in the range 0–100. Determines how much of the circular arc is filled. Defaults to
75 when omitted.Usage
Implementation Details
Container & SVG Setup
The component renders inside a fixed-size100 × 100 px <div> with position: relative. The inner <svg> fills the container completely using height="100%" and width="100%" with a viewBox="0 0 100 100".
The SVG is rotated −90° via a Tailwind transform -rotate-90 class so that the arc begins at the 12 o’clock position rather than the default 3 o’clock position.
Geometry
Arc dimensions are derived from two constants:strokeDashoffset:
strokeDashoffset of 0 means the arc is completely filled; an offset equal to the full circumference means it is completely empty.
Background Ring
A static grey circle forms the unfilled track behind the progress arc:Gradient Arc
The progress arc uses a<linearGradient> defined in <defs> to paint a pink-to-blue color sweep:
strokeLinecap="round" gives the arc a rounded tip at the leading edge for a polished appearance.
Centered Label
A absolutely-positioned overlay renders the score text centered over the SVG:<div> layered on top of the SVG rather than inside it, which keeps the text crisp and avoids SVG text rendering inconsistencies across browsers.
ScoreCircle is not animated — the arc renders at its final position immediately on mount. If you need an animated entry (e.g., the arc drawing in from 0% to the target score), wrap the component in a CSS transition or a Framer Motion animate block that interpolates the score prop from 0 to the real value.