package templates

import "fmt"

func RenderInvitation(candidateName, companyName, testURL string) string {
	content := fmt.Sprintf(`
    <h2>Hello, %s!</h2>
    <p>You have been invited by <strong>%s</strong> to take a psychometric assessment on TalentScale.</p>
    <p>This assessment will help the hiring team understand your potential and professional traits better.</p>
    <div style="text-align: center;">
      <a href="%s" class="btn">Start Assessment</a>
    </div>
    <p>If the button above doesn't work, copy and paste this link into your browser:</p>
    <p style="color: #6366f1; word-break: break-all;">%s</p>
    <br>
    <p>Best regards,<br>TalentScale Team</p>`,
		candidateName, companyName, testURL, testURL)

	return BaseLayout("Psychometric Assessment Invitation — TalentScale", content)
}
