Spaces:
Sleeping
Sleeping
Upload 2 files
Browse files- templates/email.html +16 -0
- templates/rcs_view.html +98 -0
templates/email.html
ADDED
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<!DOCTYPE html>
|
2 |
+
<html>
|
3 |
+
<head>
|
4 |
+
<meta charset="UTF-8">
|
5 |
+
<title>RCS Cards Generated</title>
|
6 |
+
</head>
|
7 |
+
<body style="font-family: Arial, sans-serif; line-height: 1.6; color: #333;">
|
8 |
+
<h2>Your RCS Cards Have Been Generated!</h2>
|
9 |
+
<p>Dear User,</p>
|
10 |
+
<p>Your Rich Communication Services (RCS) cards have been successfully generated.</p>
|
11 |
+
<p>You can view your generated RCS cards by clicking the link below:</p>
|
12 |
+
<p><a href="{{ direct_link }}" style="color: #007bff; text-decoration: none;">View Your RCS Cards</a></p>
|
13 |
+
<p>If you have any questions, feel free to contact our support team.</p>
|
14 |
+
<p>Best regards,<br>Your RCS Generator Team</p>
|
15 |
+
</body>
|
16 |
+
</html>
|
templates/rcs_view.html
ADDED
@@ -0,0 +1,98 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<!DOCTYPE html>
|
2 |
+
<html>
|
3 |
+
<head>
|
4 |
+
<meta charset="UTF-8">
|
5 |
+
<title>Your RCS Cards</title>
|
6 |
+
<style>
|
7 |
+
body {
|
8 |
+
font-family: Arial, sans-serif;
|
9 |
+
line-height: 1.6;
|
10 |
+
color: #333;
|
11 |
+
max-width: 800px;
|
12 |
+
margin: 0 auto;
|
13 |
+
padding: 20px;
|
14 |
+
}
|
15 |
+
.card {
|
16 |
+
border: 1px solid #ccc;
|
17 |
+
border-radius: 8px;
|
18 |
+
padding: 15px;
|
19 |
+
margin-bottom: 20px;
|
20 |
+
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
|
21 |
+
}
|
22 |
+
.card img {
|
23 |
+
max-width: 100%;
|
24 |
+
height: auto;
|
25 |
+
border-radius: 4px;
|
26 |
+
}
|
27 |
+
.card h3 {
|
28 |
+
margin-top: 0;
|
29 |
+
color: #0f0f0f;
|
30 |
+
}
|
31 |
+
.card p {
|
32 |
+
margin: 10px 0;
|
33 |
+
}
|
34 |
+
.card a {
|
35 |
+
display: inline-block;
|
36 |
+
margin: 5px;
|
37 |
+
padding: 8px 16px;
|
38 |
+
background-color: #007bff;
|
39 |
+
color: white;
|
40 |
+
text-decoration: none;
|
41 |
+
border-radius: 4px;
|
42 |
+
}
|
43 |
+
.quick-replies {
|
44 |
+
margin-top: 10px;
|
45 |
+
}
|
46 |
+
.quick-replies button {
|
47 |
+
margin: 5px;
|
48 |
+
padding: 6px 12px;
|
49 |
+
background-color: #f8f9fa;
|
50 |
+
border: 1px solid #ccc;
|
51 |
+
border-radius: 4px;
|
52 |
+
cursor: pointer;
|
53 |
+
}
|
54 |
+
.quick-replies button:hover {
|
55 |
+
background-color: #e9ecef;
|
56 |
+
}
|
57 |
+
</style>
|
58 |
+
</head>
|
59 |
+
<body>
|
60 |
+
<h1>Your RCS Cards</h1>
|
61 |
+
{% for card in rich_cards %}
|
62 |
+
<div class="card">
|
63 |
+
<h3>{{ card.title }}</h3>
|
64 |
+
{% if card.media %}
|
65 |
+
<img src="{{ card.media }}" alt="Card Media">
|
66 |
+
{% endif %}
|
67 |
+
<p>{{ card.text }}</p>
|
68 |
+
<!-- {% if card.url %}
|
69 |
+
<p><a href="{{ card.url }}">Visit Page</a></p>
|
70 |
+
{% endif %} -->
|
71 |
+
{% if card.buttons %}
|
72 |
+
<div>
|
73 |
+
{% for button in card.buttons %}
|
74 |
+
{% if button.type == "weburl" %}
|
75 |
+
<a href="{{ button.payload }}">{{ button.title }}</a>
|
76 |
+
{% else %}
|
77 |
+
<a href="#" data-payload="{{ button.payload }}">{{ button.title }}</a>
|
78 |
+
{% endif %}
|
79 |
+
{% endfor %}
|
80 |
+
</div>
|
81 |
+
{% endif %}
|
82 |
+
{% if card.quickReplies %}
|
83 |
+
<div class="quick-replies">
|
84 |
+
{% for reply in card.quickReplies %}
|
85 |
+
{% if reply.type == "postback" %}
|
86 |
+
<button data-payload="{{ reply.payload }}" data-execute="{{ reply.execute|default('') }}">{{ reply.title }}</button>
|
87 |
+
{% elif reply.type == "call" %}
|
88 |
+
<button onclick="window.location.href='tel:{{ reply.payload }}'">{{ reply.title }}</button>
|
89 |
+
{% else %}
|
90 |
+
<button>{{ reply.title }}</button>
|
91 |
+
{% endif %}
|
92 |
+
{% endfor %}
|
93 |
+
</div>
|
94 |
+
{% endif %}
|
95 |
+
</div>
|
96 |
+
{% endfor %}
|
97 |
+
</body>
|
98 |
+
</html>
|