Skip to content

Commit

Permalink
Merge pull request #201 from JokerTrickster/improvement/200/email_sen…
Browse files Browse the repository at this point in the history
…d_api

{improvement} - 디자이너 이메일 추가 \n
  • Loading branch information
JokerTrickster authored Oct 30, 2024
2 parents efa4fb2 + fca5e7b commit 7e1a1cd
Show file tree
Hide file tree
Showing 4 changed files with 58 additions and 29 deletions.
62 changes: 36 additions & 26 deletions src/utils/aws/template/foodNameReport.html
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
<!DOCTYPE html>
<html lang="ko">

<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>오늘 추가된 음식 레포트</title>
<title>오늘의 음식 추천 리스트</title>
<style>
body {
font-family: Arial, sans-serif;
Expand All @@ -12,6 +13,7 @@
margin: 0;
padding: 20px;
}

.container {
max-width: 600px;
margin: auto;
Expand All @@ -20,50 +22,58 @@
border-radius: 8px;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

h1 {
color: #343a40;
text-align: center;
}
h2 {

p {
color: #495057;
border-bottom: 2px solid #e9ecef;
padding-bottom: 10px;
font-size: 16px;
}
.date {
font-size: 18px;
color: #6c757d;

.link-container {
text-align: center;
margin-bottom: 20px;
margin-top: 15px;
}

.link {
display: inline-block;
padding: 10px 20px;
background-color: #007bff;
color: #ffffff;
text-decoration: none;
border-radius: 5px;
}

.food-list {
margin-top: 20px;
padding: 10px;
border: 1px solid #dee2e6;
border-radius: 4px;
background: #e9ecef;
list-style-type: none; /* 기본 리스트 스타일 제거 */
}
.food-list li {
padding: 8px;
margin: 5px 0;
background: #ffffff;
border: 1px solid #ced4da;
border-radius: 4px;
transition: background 0.3s;
}
.food-list li:hover {
background: #f1f3f5;
text-align: center;
font-size: 16px;
color: #495057;
}
</style>
</head>

<body>
<div class="container">
<h1>오늘 추가된 음식 레포트</h1>
<div class="date">{{currentDate}}</div> <!-- 오늘 날짜 삽입 -->
<h2>음식 리스트</h2>
<ul class="food-list">
{{foodList}} <!-- 음식 리스트가 동적으로 삽입됩니다. -->
</ul>
<h1>{{currentDate}} 음식 이름 업로드 리스트</h1>
<p>아래 링크를 들어가서 음식 이름을 많이 넣어주세요~</p>

<div class="link-container">
<a href="https://docs.google.com/spreadsheets/d/14tdo7YRdlwmqLoSgJZX8pH39792mP0Dju3tKTNHlZL8/edit?usp=drive_link" class="link">음식 이름 추가 문서 이동 버튼</a>
</div>

<h2>업로드 음식 이름</h2>
<div class="food-list">
{{foodList}}
</div>
</div>
</body>

</html>
4 changes: 2 additions & 2 deletions src/utils/aws/template/foodNameReport.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"Template": {
"TemplateName": "foodNameReport",
"SubjectPart": "푸드픽 음식 저장 리포트",
"TextPart":"오늘 추가된 음식 레포트\n\n오늘 날짜: {{currentDate}}\n\n음식 리스트:\n{{foodList}}\n",
"HtmlPart": "<!DOCTYPE html>\n<html lang=\"ko\">\n<head>\n <meta charset=\"UTF-8\">\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n <title>오늘 추가된 음식 레포트</title>\n <style>\n body {\n font-family: Arial, sans-serif;\n line-height: 1.6;\n background-color: #f8f9fa;\n margin: 0;\n padding: 20px;\n }\n .container {\n max-width: 600px;\n margin: auto;\n background: #ffffff;\n padding: 20px;\n border-radius: 8px;\n box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);\n }\n h1 {\n color: #343a40;\n text-align: center;\n }\n h2 {\n color: #495057;\n border-bottom: 2px solid #e9ecef;\n padding-bottom: 10px;\n }\n .date {\n font-size: 18px;\n color: #6c757d;\n text-align: center;\n margin-bottom: 20px;\n }\n .food-list {\n margin-top: 20px;\n padding: 10px;\n border: 1px solid #dee2e6;\n border-radius: 4px;\n background: #e9ecef;\n list-style-type: none; /* 기본 리스트 스타일 제거 */\n }\n .food-list li {\n padding: 8px;\n margin: 5px 0;\n background: #ffffff;\n border: 1px solid #ced4da;\n border-radius: 4px;\n transition: background 0.3s;\n }\n .food-list li:hover {\n background: #f1f3f5;\n }\n </style>\n</head>\n<body>\n <div class=\"container\">\n <h1>오늘 추가된 음식 레포트</h1>\n <div class=\"date\">{{currentDate}}</div> <!-- 오늘 날짜 삽입 -->\n <h2>음식 리스트</h2>\n <ul class=\"food-list\">\n {{foodList}} <!-- 음식 리스트가 동적으로 삽입됩니다. -->\n </ul>\n </div>\n</body>\n</html>"
"TextPart": "오늘의 음식 추천 리스트\n\n오늘 날짜: {{currentDate}}\n\n음식 리스트:\n{{foodList}}",
"HtmlPart": "<!DOCTYPE html>\n<html lang=\"ko\">\n<head>\n <meta charset=\"UTF-8\">\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n <title>오늘의 음식 추천 리스트</title>\n <style>\n body {\n font-family: Arial, sans-serif;\n line-height: 1.6;\n background-color: #f8f9fa;\n margin: 0;\n padding: 20px;\n }\n .container {\n max-width: 600px;\n margin: auto;\n background: #ffffff;\n padding: 20px;\n border-radius: 8px;\n box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);\n }\n h1 {\n color: #343a40;\n text-align: center;\n }\n p {\n color: #495057;\n font-size: 16px;\n }\n .link-container {\n text-align: center;\n margin-top: 15px;\n }\n .link {\n display: inline-block;\n padding: 10px 20px;\n background-color: #007bff;\n color: #ffffff;\n text-decoration: none;\n border-radius: 5px;\n }\n .food-list {\n margin-top: 20px;\n padding: 10px;\n border: 1px solid #dee2e6;\n border-radius: 4px;\n background: #e9ecef;\n text-align: center;\n font-size: 16px;\n color: #495057;\n }\n </style>\n</head>\n<body>\n <div class=\"container\">\n <h1>{{currentDate}} 음식 이름 업로드 리스트</h1>\n <p>아래 링크를 들어가서 음식 이름을 많이 넣어주세요~</p>\n <div class=\"link-container\">\n <a href=\"https://docs.google.com/spreadsheets/d/14tdo7YRdlwmqLoSgJZX8pH39792mP0Dju3tKTNHlZL8/edit?usp=drive_link\" class=\"link\">음식 이름 추가 문서 이동 버튼</a>\n </div>\n <h2>업로드 음식 이름</h2>\n <div class=\"food-list\">\n {{foodList}}\n </div>\n </div>\n</body>\n</html>"
}
}
19 changes: 19 additions & 0 deletions src/utils/aws/template/foodUploadReport.html
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,20 @@
font-size: 14px;
color: #444;
}

.link-container {
text-align: center;
margin-top: 20px;
}

.link-button {
display: inline-block;
padding: 10px 20px;
background-color: #007bff;
color: #ffffff;
text-decoration: none;
border-radius: 5px;
}
</style>
</head>

Expand All @@ -78,6 +92,11 @@ <h2>업로드 성공한 음식</h2>
<h2>업로드 실패한 음식</h2>
<div class="food-list">{{failedFoodList}}</div>
</div>

<div class="link-container">
<a href="https://drive.google.com/drive/folders/1dDuC5IM8fQ1GNUyFaLfAvmKQhpU8fWgX?usp=drive_link"
class="link-button">음식 업로드 하러 문서 이동 버튼</a>
</div>
</div>
</body>

Expand Down
2 changes: 1 addition & 1 deletion src/utils/aws/template/foodUploadReport.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
"TemplateName": "foodUploadReport",
"SubjectPart": "푸드픽 음식 이미지 업로드 결과 리포트",
"TextPart": "아래는 음식 이미지 업로드 결과입니다.\n확인해서 음식 업로드 실패한 음식 이름은 음식 이름을 추가해주세요~\n\n업로드 성공한 음식:\n{{successFoodList}}\n\n업로드 실패한 음식:\n{{failedFoodList}}",
"HtmlPart": "<!DOCTYPE html><html lang='en'><head><meta charset='UTF-8'><meta name='viewport' content='width=device-width, initial-scale=1.0'><title>Food Upload Status</title><style>body { font-family: Arial, sans-serif; color: #333; background-color: #f9f9f9; padding: 0; margin: 0; }.container { width: 100%; max-width: 600px; margin: 20px auto; background-color: #ffffff; border-radius: 8px; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1); padding: 20px; }.header { font-size: 18px; margin-bottom: 10px; color: #555; }.description { font-size: 14px; color: #666; margin-bottom: 20px; }.card { border-radius: 6px; padding: 15px; background-color: #f4f4f4; margin-bottom: 15px; }.success { border-left: 4px solid #4CAF50; }.failure { border-left: 4px solid #F44336; }h2 { font-size: 16px; margin: 0 0 10px; color: #333; }.food-list { font-size: 14px; color: #444; }</style></head><body><div class='container'><div class='header'>아래는 음식 이미지 업로드 결과입니다.</div><div class='description'>확인해서 음식 업로드 실패한 음식 이름은 음식 이름을 추가해주세요~</div><div class='card success'><h2>업로드 성공한 음식</h2><div class='food-list'>{{successFoodList}}</div></div><div class='card failure'><h2>업로드 실패한 음식</h2><div class='food-list'>{{failedFoodList}}</div></div></div></body></html>"
"HtmlPart": "<!DOCTYPE html><html lang='en'><head><meta charset='UTF-8'><meta name='viewport' content='width=device-width, initial-scale=1.0'><title>Food Upload Status</title><style>body { font-family: Arial, sans-serif; color: #333; background-color: #f9f9f9; padding: 0; margin: 0; }.container { width: 100%; max-width: 600px; margin: 20px auto; background-color: #ffffff; border-radius: 8px; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1); padding: 20px; }.header { font-size: 18px; margin-bottom: 10px; color: #555; }.description { font-size: 14px; color: #666; margin-bottom: 20px; }.card { border-radius: 6px; padding: 15px; background-color: #f4f4f4; margin-bottom: 15px; }.success { border-left: 4px solid #4CAF50; }.failure { border-left: 4px solid #F44336; } h2 { font-size: 16px; margin: 0 0 10px; color: #333; }.food-list { font-size: 14px; color: #444; } .link-container { text-align: center; margin-top: 20px; } .link-button { display: inline-block; padding: 10px 20px; background-color: #007bff; color: #ffffff; text-decoration: none; border-radius: 5px; }</style></head><body><div class='container'><div class='header'>아래는 음식 이미지 업로드 결과입니다.</div><div class='description'>확인해서 음식 업로드 실패한 음식 이름은 음식 이름을 추가해주세요~</div><div class='card success'><h2>업로드 성공한 음식</h2><div class='food-list'>{{successFoodList}}</div></div><div class='card failure'><h2>업로드 실패한 음식</h2><div class='food-list'>{{failedFoodList}}</div></div><div class='link-container'><a href='https://drive.google.com/drive/folders/1dDuC5IM8fQ1GNUyFaLfAvmKQhpU8fWgX?usp=drive_link' class='link-button'>음식 업로드 하러 문서 이동 버튼</a></div></div></body></html>"
}
}

0 comments on commit 7e1a1cd

Please sign in to comment.