|
1 | 1 | import { Rss } from '../../rss/entity/rss.entity'; |
| 2 | + |
2 | 3 | export const PRODUCT_DOMAIN = 'https://denamu.site'; |
3 | 4 |
|
4 | 5 | export function createRssRegistrationContent( |
@@ -126,3 +127,41 @@ export function createRssRemoveCertificateContent( |
126 | 127 | </div> |
127 | 128 | `; |
128 | 129 | } |
| 130 | + |
| 131 | +export function createPasswordResetMailContent( |
| 132 | + userName: string, |
| 133 | + passwordResetLink: string, |
| 134 | + serviceAddress: string, |
| 135 | +) { |
| 136 | + return ` |
| 137 | + <div style="font-family: 'Apple SD Gothic Neo', 'Malgun Gothic', '맑은 고딕', sans-serif; margin: 0; padding: 1px; background-color: #f4f4f4;"> |
| 138 | + <div style="max-width: 600px; margin: 20px auto; background-color: #ffffff; padding: 20px; border-radius: 8px; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);"> |
| 139 | + <div style="text-align: center; padding: 20px 0; border-bottom: 2px solid #f0f0f0;"> |
| 140 | + <img src="https://denamu.site/files/Denamu_Logo_KOR.png" alt="Denamu Logo" width="244" height="120"> |
| 141 | + </div> |
| 142 | + <div style="padding: 20px 0;"> |
| 143 | + <div style="color: #007bff; font-size: 24px; font-weight: bold; margin-bottom: 20px; text-align: center;">비밀번호 재설정</div> |
| 144 | + <div style="background-color: #f8f9fa; padding: 15px; border-radius: 4px; margin: 15px 0;"> |
| 145 | + <p><strong>안녕하세요, ${userName}님!</strong></p> |
| 146 | + <p>비밀번호 재설정을 요청하셨습니다.</p> |
| 147 | + <p>아래 버튼을 클릭하여 새로운 비밀번호를 설정해 주세요.</p> |
| 148 | + </div> |
| 149 | + <center> |
| 150 | + <a href="${passwordResetLink}" style="display: inline-block; padding: 12px 24px; background-color: #007bff; color: #ffffff; text-decoration: none; border-radius: 4px; margin: 20px 0; font-weight: bold;">비밀번호 재설정하기</a> |
| 151 | + </center> |
| 152 | + <div style="font-size: 14px; color: #6c757d; margin-top: 20px; text-align: center;"> |
| 153 | + <p>버튼이 작동하지 않는 경우, 아래 링크를 복사하여 브라우저에 붙여넣기 해주세요:</p> |
| 154 | + <p style="word-break: break-all; background-color: #f8f9fa; padding: 10px; border-radius: 4px;">${passwordResetLink}</p> |
| 155 | + <p>이 링크는 10분 동안 유효합니다.</p> |
| 156 | + <p style="color: #dc3545; font-weight: bold;">만약 비밀번호 재설정을 요청하지 않으셨다면, 이 메일을 무시하셔도 됩니다.</p> |
| 157 | + </div> |
| 158 | + </div> |
| 159 | + </div> |
| 160 | + <div style="display: flex; flex-direction: column; justify-content: center; align-items: center; border-top: 2px solid #f0f0f0; color: #6c757d; font-size: 14px; height: 100px;"> |
| 161 | + <p>본 메일은 발신전용입니다.</p> |
| 162 | + <p>문의사항이 있으시다면 ${serviceAddress}로 연락주세요.</p> |
| 163 | + </div> |
| 164 | + </div> |
| 165 | + </div> |
| 166 | +`; |
| 167 | +} |
0 commit comments