Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update verification email view #228

Merged
merged 1 commit into from
Dec 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
64 changes: 56 additions & 8 deletions backend/internal/views/verification_email.templ
Original file line number Diff line number Diff line change
@@ -1,12 +1,60 @@
package views

templ VerificationEmail(url string) {
<div>
<h1>SPUR x Konfer</h1>
<div>
<h1>Let's Verify Your Email</h1>
<p>Please click the link below and we will verify your email.</p>
<a href={ templ.URL(url) }>Verify now</a>
</div>
</div>
<html lang="en">
<head>
<meta charset="UTF-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<title>Verify Your Email</title>
<style>
body {
font-family: Arial, sans-serif;
line-height: 1.6;
color: #000000 !important;
margin: 0;
padding: 0;
}
.container {
max-width: 600px;
margin: 0 auto;
padding: 20px;
}
.header {
background-color: #f8f9fa;
padding: 20px;
text-align: center;
}
.content {
padding: 20px;
}
.button, .button:visited {
display: inline-block;
padding: 10px 20px;
background-color: #007bff;
color: #ffffff !important;
text-decoration: none;
border-radius: 5px;
}
</style>
</head>
<body>
<div class="container">
<div class="header">
<h1>Verify Your Email</h1>
</div>
<div class="content">
<p>Hello,</p>
<p>Thank you for signing up! To complete your registration, please verify your email address by clicking the button below:</p>
<p style="text-align: center;">
<a href={ templ.SafeURL(url) } class="button">Verify Email</a>
</p>
<p>If the button above doesn't work, you can also copy and paste the following link into your browser:</p>
<p>{ url }</p>
<p>This link will expire in 30 minutes for security reasons.</p>
<p>If you didn't create an account with us, please ignore this email.</p>
<p>Best regards,<br/>SPUR x KONFER</p>
</div>
</div>
</body>
</html>
}
19 changes: 16 additions & 3 deletions backend/internal/views/verification_email_templ.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading