Custom Login Shell - Sample 4

This sample login shell has both a logo (as part of the logon form) and a background image. The logo, image, button color and footer text can be customized, as well as the transparency of the logon form.

Important

If you plan to make extensive changes to the login shell, the person making the changes should be familiar with HTML and CSS. It is beyond the scope of TouchPoint Support to customize the shell for you or to guide you on how to do it yourself. Our support of customization is limited to the items mentioned about when the steps below are followed.

Customizing the Image

You can replace the background image in this login shell. The replacement image should be approximately the same size and proportions as the included image (1950 x 1300 pixels). To use your own image, replace the URL on line 14 with the URL to the new image. Make sure that the URL begins with https:; otherwise the login page may present a security warning to users.

Customizing the Transparency of the Logon Form

The transparency of the logon form is already configured for most uses. But, depending on the background image you use, you may wish to adjust it slightly. The transparency is controlled by a number between zero and one: zero is completely transparent (invisible) and one is completely opaque. In most cases, you will want a setting around 0.5. To adjust the transparency, change the final parameter (0.6) on line 58.

Customizing the Button Color

If desired, you can change the color of the Sign In button to match the colors in the background image or your church’s primary branding colors. Specify the color in RGB hexadecimal format. (For a handy converter for finding the hexadecimal representation, see https://www.rapidtables.com/convert/color/rgb-to-hex.html. Enter the color by replacing the hexadecimal numbers on lines 27 & 28. You will also want to change the color of the button when the cursor is hovering over it. For this, we recommend a slightly darker shade of the primary button color. Enter this by replacing the hexadecimal numbers on lines 33 & 34.

Using the Sample 4 Code

To use this sample login shell, copy the code below and paste it into an HTML Content file as directed in Using a Custom Login Page. Then make any desired customizations with the file in Source view.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
<html>
<head>
    <link href="/favicon.ico?v=2" rel="shortcut icon" /><meta charset="utf-8"><meta http-equiv="X-UA-Compatible"
        content="IE=edge"><meta name="viewport" content="width=device-width, maximum-scale=1.0">
    <title>TouchPoint</title>
    <meta content="width=device-width, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" name="viewport" />
    <link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css" rel="stylesheet" />
        <!-- FB Open Graph Tags -->
        <meta property="og:type" content="website" /><meta property="og:title" content="TouchPoint login" />
        <meta property="og:description" content="Manager your user information with TouchPoint. " /><meta property="og:image"/>
</head>
<body>
<style type="text/css">body {
    background-image: url('https://c4265878.ssl.cf2.rackcdn.com/brett.2002031427.cinside1.jpg');
    background-repeat: no-repeat;
    background-position: center;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
    background-color: #000000;
    text-align: center;
    }

.btn.btn-primary.btn-block.btn-lg, .btn.btn-primary.min-width15em {
    color: #fff;
    background-color: #2892B5;
    border-color: #2892B5;
    }

.btn.btn-primary.btn-block.btn-lg:hover, .btn.btn-primary.min-width15em:hover {
    color: #fff;
    background-color: #2888a7;
    border-color: #2888a7;
    }

.account {
    text-align: center;
    max-width: 400px;
    margin: auto;
    background-color: transparent;
    padding-bottom: 25px;
    padding-top: 25px;
    border-radius: 10px;
    }

.tmpl-header {
    position: relative;
    z-index:1;
    padding-top: 28px;
    }

.form-wrapper {
    display: block;
    margin: auto;
    max-width: 400px;
    min-width: 350px;
    background-color: rgba(0,0,0,0.6);
    color:#FFF;
    padding: 15px;
    border-radius: 10px;
    }

.input-lg, .form-horizontal .form-group-lg .form-control {
    color: black;
    }

.panel, .panel-body {
    background-color:transparent !important;
    margin-bottom:25px;
    border:none !important;
    }

.panel-group {
    max-width: 85%;
    margin: auto;
    }

.table td {
    Color:#fff;
    }

.panel-heading {
    Color:#fff !important;
    background-color:transparent !important;
    }

.panel-title {
    font-size:2em !important;
    font-weight:600 !important;
    }

.form-footer {
        color:#FFF;
    padding:10px;
    margin-top:10px;
    border-top:15px;
    margin-bottom:0px;
    }

th {
    color:#FFF !important;
    }

.logo {
    padding: 10px;
    max-width: 400px;
    margin: auto;
    }

.bg-info {
    background-color: #58a5ea;
    border-radius: 5px;
    color: #ffffff;
    padding: 10px;
    font-weight: 400;
    }

.well {
    min-height: 20px;
    max-width: 600px;
    min-width:300px;
    margin: auto;
    padding: 19px;
    margin-bottom: 20px;
    border: none;
    border-radius: 4px;
    -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.05);
    box-shadow: inset 0 1px 1px rgba(0,0,0,.05);
    }

h3 {
    font-size: 3em;
    }

a, a:hover, a:focus {
    color: #8db9ff;
    }

</style>
<div class="tmpl-header">&nbsp;</div>

<div class="form-wrapper">
<div class="logo"><img src="https://c4265878.ssl.cf2.rackcdn.com/brett.2002031520.TP-logo-white.png" /></div>
<!--FORM START--><!--FORM END-->

<div class="form-footer">
<p>Need help? Email <a href="mailto:help@mychurch.com" style="color:#fff;">help@mychurch.com</a><br />
Dallas, TX | 555.555.5555</p>
</div>
</div>
</body>
</html>


Latest Update 02/27/2020

Added code lines 64-66 to make input visible for 2FA authentication code entry.

© 2020 TouchPoint Software, LLC.  All rights reserved.