<body>
<div id="mySimpleTemplate" class="myTemplate"
data-type="text/x-handlebars-template">
<link rel="stylesheet" type="text/css" href="style.css">
<div class="wrap">
<div class="header" >
<img src="ServiceNow.jpeg" alt="" height="56px">
<!-- Images within the title header area should have an image height =56px. -->
<div style="text-align: left;">
<h1>
Service Now Incidents
<!--replace the title with your own or handlebard field of a field you would like to pull into your card. -->
</h1>
</div>
<!--The div style below is an example of how to include some additional fields in the title/header part that are aligned right-->
<div class="additional">
<span class="additional1">
Incident Number
</span>
<span class="additional2">
{{number}}
</span>
</div>
</div>
<div class="card-content">
<!-- the <hr> creates an example horizontal line at the beginning of card body directly below the header. It can be removed but this horizontal line shows how the header CSS padding is working -->
Incident Details, see back of card for more information
<hr>
<br>
<span class="label">Opened By:</span><br>
{{opened_by.display_value}} <br>
<br>
<span class="label">Incident State: </span><br>
{{state}}<br>
<br>
<span class="label">Incident Impact: </span><br>
{{impact}}<br>
<br>
<span class="label">Incident Priority: </span><br>
{{priority}}<br>
<br>
<span class="label">Incident Opened: </span><br>
{{opened_at}}<br>
<br>
<span class="label">Incident Short Description: </span><br>
{{short_description}}<br>
<br>
<br>
</div>
</div>
</div>
</body>
<body>
<div id="mySimpleTemplate" class="myTemplate"
data-type="text/x-handlebars-template">
<link rel="stylesheet" type="text/css" href="style.css">
<div class="wrap">
<div class="header" >
<div style="text-align: left;">
<h1>
Example Backside
</h1>
</div>
<!--The div style below is an example of how to include some additional fields in the title/header part that are aligned right-->
</div>
<hr>
<div class="card-content">
<!-- the <hr> creates an example horizontal line at the beginning of card body directly below the header. It can be removed but shows how the header CSS padding is working -->
<!--by adding a class reference like the ones specified below add an action to the arrow item in the bottom left hand side of the card. Supported items are c2g_phonenumber; c2g_email; c2g_website; c2g_address;-->
<span class="label">Location:</span><br>
<div class="c2g_address">
{{location.display_value}}
</div>
<br>
</div>
</div>
</div>
</div>
</body>
.myTemplate {
background: linear-gradient(to right bottom,#d3d3d3,#367dc4);
color: #fafafa;
font-family: Helvetica, Arial;
height: 100vh;
/*The linear-gradient background provides a nice background with slight color transistion from upper-right to bottom left. We also recommend Helvetica or Arial for the broadest range of font-weight property support. Another example could be background: linear-gradient(to bottom right,#589CCE,#226596);*/
}
.header {
display: flex;
padding: 1rem;
height: 3rem;
/*Padding the header's title area of the card with 1REM or 16px gives the header details room to breathe on all four sides. Helpful to accomodate many mobile screen sizes*/
}
.header img {
margin-right: 0.5rem;
}
.header h1{
font-size: 1rem;
margin-top: 0.5rem;
color: #fff;
font-weight: bold;
flex: 1 1;
line-height: 2.5rem;
white-space: nowrap;
/*We recommend that the header title font size of 1.25rem or 20px and tends to fit on a single line around 24 characters. Single line titles display best when in the card deck view. If you are including an image in header than consider 20px*/
}
.header .name{
font-weight: normal;
margin-top: 1.25rem;
font-size: 1rem;
display: block;
text-align: right;
white-space: normal;
}
.header .additional {
position: absolute;
right: 16px;
color: #fafafa;
text-align: right;
margin-left: 1rem;
}
.header .additional1 {
font-size: 0.75rem;
display: block;
text-align: right;
line-height: 0.5rem;
padding-top:0.5rem;
}
.header .additional2 {
font-size: 0.875rem;
display: block;
text-align: right;
padding-top:0.5rem;
}
.card-content {
padding: 1rem;
margin-bottom: 2rem;
}
.card-content .label{
font-size:0.75rem;
color:#CEDDEC;
}
.footer{
background-color: #2F6497;
height: 3rem;
display: flex;
position: absolute;
bottom: 0;
width:100%;
}
.footer .footer-content{
position: relative;
left: 18%;
display: flex;
}
.footer h4{
font-size: 0.75rem;
flex: 1 1;
color: #fafafa;
font-weight: normal;
margin-right: 0.5rem;
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
32 | |
13 | |
12 | |
11 | |
10 | |
9 | |
7 | |
7 | |
6 | |
6 |