package emails

import (
	"git.ma-al.com/goc_daniel/b2b/app/templ/layout"
	"git.ma-al.com/goc_daniel/b2b/app/view"
	"git.ma-al.com/goc_daniel/b2b/app/utils/i18n"
)

templ EmailVerificationWrapper(data view.EmailLayout[view.EmailVerificationData]) {
	@layout.Base( i18n.T___(data.LangID, "email.email_verification_title")) {
		<div class="container">
			<div class="email-wrapper">
				<div class="email-header">
					<h1>{ i18n.T___(data.LangID, "email.email_verification_title") }</h1>
				</div>
				<div class="email-body">
					<p>{ i18n.T___(data.LangID, "email.email_greeting") }</p>
					<p>{ i18n.T___(data.LangID, "email.email_verification_message1")  }</p>
					<div style="text-align: center;">
						<a href={ data.Data.VerificationURL } class="button">{ i18n.T___(data.LangID, "email.email_verify_button")  }</a>
					</div>
					<p>{ i18n.T___(data.LangID, "email.email_or_copy")  }</p>
					<div class="link-container">{ data.Data.VerificationURL }</div>
					<p><strong>{ i18n.T___(data.LangID, "email.email_verification_note") }</strong></p>
					<p>{ i18n.T___(data.LangID, "email.email_ignore")  }</p>
				</div>
				<div class="email-footer">
					<p>&copy; 2024 Gitea Manager. { i18n.T___(data.LangID, "email.email_footer")}</p>
                    
				</div>
			</div>
		</div>
	}
}
