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
@@ -1,135 +1,118 @@
<!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;
}
<head>
<meta charset="UTF-8" />
<title>Financial Safety Net</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=device-width, initial-scale=1" />
<style>
@import url("https://fonts.googleapis.com/css2?family=Libre+Franklin:wght@400;600;700&display=swap");

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

.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;
}
html,
body {
margin: 0;
padding: 0;
}

.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;
}
body {
font-family: 'Libre Franklin', sans-serif;
font-size: 14px;
width: 100vw;
height: 100vh;
}

.icon-wrapper img {
width: 100%;
height: auto;
max-height: 100%;
object-fit: contain;
border-radius: 0.375rem;
}
.container {
background-color: #f3f6f9;
padding: 15px;
height: 120px;
overflow: hidden;
display: flex;
align-items: flex-start;
gap: 1rem;
border-radius: 1rem;
}

.content-area {
flex: 1;
min-width: 0;
color: #333333;
display: flex;
flex-direction: column;
justify-content: space-between;
height: 100%;
}
.icon-wrapper {
flex-shrink: 0;
width: 2rem;
height: 2rem;
border-radius: 0.75rem;
}

.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;
}
.icon-wrapper img {
width: 100%;
max-width: 100%;
height: auto;
}

.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;
}
.content-area {
flex: 1;
color: #333333;
}

.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;
}
.title {
font-size: 14px;
font-weight: 600;
line-height: 1.2;
margin: 0 0 4px 0;
color: #061223;
overflow: hidden;
overflow-wrap: anywhere;
word-wrap: anywhere;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
}

.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>
.description {
font-size: 12px;
line-height: 1.3;
margin: 0 0 10px 0;
color: #3A495D;
overflow: hidden;
overflow-wrap: anywhere;
word-wrap: anywhere;
display: -webkit-box;
-webkit-line-clamp: 3;
-webkit-box-orient: vertical;
}

.cta-link {
font-size: 14px;
font-weight: 600;
color: #295EFF;
text-decoration: none;
transition: color 0.2s ease-in-out;
overflow-wrap: anywhere;
word-wrap: anywhere;
}

.cta-link:hover {
color: #0056b3;
}
</style>
</head>

<body>
<div class="container">
<div class="icon-wrapper">
<img src="{{picture}}" alt="Financial Safety Icon" />
</div>
</body>
</html>
<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.
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
"type": "object",
"properties": {
"body": {
"title": "Card Content",
"title": "Body of message",
"type": "object",
"properties": {
"title": {
"title": "Card Title",
"title": "Title",
"type": "string",
"maxLength": 25,
"default": "Financial Safety Net",
Expand All @@ -26,7 +26,7 @@
}
},
"description": {
"title": "Card Description",
"title": "Description",
"type": "string",
"maxLength": 75,
"default": "A buffer is an emergency fund that protects you from unexpected expenses.",
Expand All @@ -44,18 +44,10 @@
}
}
},
"required": [
"title",
"picture",
"description",
"ctaText"
],
"required": ["title", "picture", "description", "ctaText"],
"metadata": {
"layoutPath": "{{contextRoot}}/assets/index.html"
}
}
},
"required": [
"body"
]
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,5 @@
"channel": "banner",
"default": false,
"thumbnailPath": "{{contextRoot}}/assets/recommendationThumbnail.png",
"tags": [
"recommendation",
"311x120"
]
"tags": ["recommendation", "mobile", "311x120"]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>Introductory Banking Banner</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=device-width, initial-scale=1" />
<style>
@import url('https://fonts.googleapis.com/css2?family=Libre+Franklin:wght@400;600&display=swap');
</style>
<style>
* {
box-sizing: border-box;
}

html,
body {
margin: 0;
padding: 0;
}

body {
font-family: 'Libre Franklin', sans-serif;
font-size: 14px;
width: 100vw;
height: 100vh;
}

.container {
background: linear-gradient(225deg, #233147 14.64%, #091C35 85.36%);
height: 114px;
border-radius: 1rem;
overflow: hidden;
}

.content-area {
color: #FFFFFF;
padding: 1rem 1.5rem;
}

p {
margin: 0;
}

.title {
font-size: 1rem;
font-weight: 600;
margin-bottom: 0.5rem;
}

.description {
font-size: 0.813rem;
font-weight: 400;
line-height: 1.4;
}

@media (min-width: 700px) {
.container {
height: 200px;
}

.title {
font-size: 1.25rem;
margin-bottom: 1rem;
}

.description {
font-size: 1rem;
line-height: 1.6;
}
}
</style>
</head>
<body>
<div class="container">
<div class="content-area">
<p class="title">{{title}}</p>
<p class="description">
{{description}}
</p>
</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