Skip to content
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
Original file line number Diff line number Diff line change
@@ -0,0 +1,135 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>Financial Safety Net Card</title>
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<meta name="robots" content="noindex, nofollow" />
<meta name="googlebot" content="noindex, nofollow" />
<meta
name="viewport"
content="width=311, height=120, initial-scale=1.0, user-scalable=no"
/>
<style>
@import url("https://fonts.googleapis.com/css2?family=Libre+Franklin:wght@400;600;700&display=swap");

* {
box-sizing: border-box;
margin: 0;
padding: 0;
}

html,
body {
margin: 0;
padding: 0;
overflow: hidden;
font-family: "Libre Franklin", sans-serif;
width: 311px;
height: 120px;
}

.card-container {
width: 311px;
height: 120px;
background-color: #ffffff;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
padding: 1rem;
display: flex;
align-items: flex-start;
gap: 1rem;
position: relative;
box-sizing: border-box;
}

.icon-wrapper {
flex-shrink: 0;
width: 3rem;
height: 3rem;
background-color: #e0f2f7;
border-radius: 0.75rem;
display: flex;
justify-content: center;
align-items: center;
overflow: hidden;
}

.icon-wrapper img {
width: 100%;
height: auto;
max-height: 100%;
object-fit: contain;
border-radius: 0.375rem;
}

.content-area {
flex: 1;
min-width: 0;
color: #333333;
display: flex;
flex-direction: column;
justify-content: space-between;
height: 100%;
}

.title {
font-size: 14px;
font-weight: 600;
line-height: 1.2;
margin: 0 0 4px 0;
color: #333333;
overflow: hidden;
overflow-wrap: anywhere;
word-wrap: anywhere;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
}

.description {
font-size: 10px;
line-height: 1.3;
margin: 0 0 6px 0;
color: #555555;
flex: 1;
overflow: hidden;
overflow-wrap: anywhere;
word-wrap: anywhere;
display: -webkit-box;
-webkit-line-clamp: 3;
-webkit-box-orient: vertical;
}

.cta-link {
font-size: 12px;
font-weight: 600;
color: #007bff;
text-decoration: none;
display: inline-flex;
align-items: center;
transition: color 0.2s ease-in-out;
margin-top: auto;
overflow-wrap: anywhere;
word-wrap: anywhere;
}

.cta-link:hover {
color: #0056b3;
}
</style>
</head>
<body>
<div class="card-container">
<div class="icon-wrapper">
<img src="{{picture}}" alt="Financial Safety Icon" />
</div>
<div class="content-area">
<h2 class="title">{{title}}</h2>
<p class="description">{{description}}</p>
<a role="button" tabindex="0"class="cta-link">
<span>{{ctaText}}</span>
</a>
</div>
</div>
</body>
</html>
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Financial Safety Net Card Data",
"description": "Schema for the Financial Safety Net card content.",
"type": "object",
"properties": {
"body": {
"title": "Card Content",
"type": "object",
"properties": {
"title": {
"title": "Card Title",
"type": "string",
"maxLength": 25,
"default": "Financial Safety Net",
"metadata": {
"placeholderText": "Enter a title (max. 25 chars)"
}
},
"picture": {
"title": "Image",
"type": "file",
"default": "{{contextRoot}}/assets/recommendationIcon.png",
"metadata": {
"renderingHint": "image"
}
},
"description": {
"title": "Card Description",
"type": "string",
"maxLength": 75,
"default": "A buffer is an emergency fund that protects you from unexpected expenses.",
"metadata": {
"placeholderText": "Enter a description (max. 75 chars)"
}
},
"ctaText": {
"title": "Call to Action Text",
"type": "string",
"maxLength": 25,
"default": "Set up automatic savings",
"metadata": {
"placeholderText": "Enter CTA text (max. 25 chars)"
}
}
},
"required": [
"title",
"picture",
"description",
"ctaText"
],
"metadata": {
"layoutPath": "{{contextRoot}}/assets/index.html"
}
}
},
"required": [
"body"
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"name": "financial-safety-recommendation-card",
"description": "A buffer is an emergency fund that protects you from unexpected expenses and financial surprises.",
"title": "Financial Safety Net",
"engagement": "custom",
"channel": "banner",
"default": false,
"thumbnailPath": "{{contextRoot}}/assets/recommendationThumbnail.png",
"tags": [
"recommendation",
"311x120"
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,135 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>Financial Safety Net Card</title>
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<meta name="robots" content="noindex, nofollow" />
<meta name="googlebot" content="noindex, nofollow" />
<meta
name="viewport"
content="width=311, height=120, initial-scale=1.0, user-scalable=no"
/>
<style>
@import url("https://fonts.googleapis.com/css2?family=Libre+Franklin:wght@400;600;700&display=swap");

* {
box-sizing: border-box;
margin: 0;
padding: 0;
}

html,
body {
margin: 0;
padding: 0;
overflow: hidden;
font-family: "Libre Franklin", sans-serif;
width: 311px;
height: 120px;
}

.card-container {
width: 311px;
height: 120px;
background-color: #ffffff;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
padding: 1rem;
display: flex;
align-items: flex-start;
gap: 1rem;
position: relative;
box-sizing: border-box;
}

.icon-wrapper {
flex-shrink: 0;
width: 3rem;
height: 3rem;
background-color: #e0f2f7;
border-radius: 0.75rem;
display: flex;
justify-content: center;
align-items: center;
overflow: hidden;
}

.icon-wrapper img {
width: 100%;
height: auto;
max-height: 100%;
object-fit: contain;
border-radius: 0.375rem;
}

.content-area {
flex: 1;
min-width: 0;
color: #333333;
display: flex;
flex-direction: column;
justify-content: space-between;
height: 100%;
}

.title {
font-size: 14px;
font-weight: 600;
line-height: 1.2;
margin: 0 0 4px 0;
color: #333333;
overflow: hidden;
overflow-wrap: anywhere;
word-wrap: anywhere;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
}

.description {
font-size: 10px;
line-height: 1.3;
margin: 0 0 6px 0;
color: #555555;
flex: 1;
overflow: hidden;
overflow-wrap: anywhere;
word-wrap: anywhere;
display: -webkit-box;
-webkit-line-clamp: 3;
-webkit-box-orient: vertical;
}

.cta-link {
font-size: 12px;
font-weight: 600;
color: #007bff;
text-decoration: none;
display: inline-flex;
align-items: center;
transition: color 0.2s ease-in-out;
margin-top: auto;
overflow-wrap: anywhere;
word-wrap: anywhere;
}

.cta-link:hover {
color: #0056b3;
}
</style>
</head>
<body>
<div class="card-container">
<div class="icon-wrapper">
<img src="{{picture}}" alt="Financial Safety Icon" />
</div>
<div class="content-area">
<h2 class="title">{{title}}</h2>
<p class="description">{{description}}</p>
<a role="button" tabindex="0"class="cta-link">
<span>{{ctaText}}</span>
</a>
</div>
</div>
</body>
</html>
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading