Custom Login Shell - Sample 5

This sample login shell has both a logo (as part of the logon form) and a background image. It also has welcome text and brief instructions to the right of the logon form. The logo, image, button color and instructions 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 Background 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 (1170 x 780 pixels). To use your own image, replace the URL on line 11 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 50.

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 23 & 24. 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 29 & 30.

Customizing the Instructions

You will certainly want to customize the welcome text and perhaps also the instructions below it. To do this, edit the text on lines 156 (welcome) & 158 (instructions).

Using the Sample 5 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
154
155
156
157
158
159
160
161
162
163
<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>Login to 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" />
</head>
<body>
<style type="text/css">body {
    background-image: url('https://images.unsplash.com/photo-1536257104079-aa99c6460a5a?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=1170&q=80');
    background-repeat: no-repeat;
    background-position: fill;
    -webkit-background-size: fill;
    -moz-background-size: fill;
    -o-background-size: fill;
    background-size: 150%;
    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;
    padding-top: 25px;
    border-radius: 10px;
    }

.tmpl-header {
    position: relative;
    margin-bottom: 30px;
	}

.form-wrapper {
    display: inline-grid;
    max-width: 400px;
    min-width: 350px;
    background-color: rgba(0,0,0,0.6);
    color:#FFFFFF;
    padding: 15px;
    border-radius: 10px;
    }
	
.info-wrapper {
   	display: inline-grid;
	margin-left: auto;
	with: 30%;
    margin: 100;
    max-width: 800px;
    min-width: 350px;
    background-color: rgba(255,255,255,.85);
    color:#000;
    padding: 20px;
    border-radius: 10px;
	font-size:medium;
    }
	
.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);
    }
.center {
  margin: auto;
  width: 90%;
  padding: 10px;
	}

h3 {
    font-size: 3em;
    }

a, a:hover, a:focus {
    color: #8db9ff;
    }
</style>
<div class="tmpl-header">&nbsp;</div>

<div class="form-wrapper"><img alt="" src="https://c4265878.ssl.cf2.rackcdn.com/training2.2401051705.Training_Church_Logo4.png" 
    style="width: 370px; height: 112px;" /><!--FORM START--><!--FORM END--></div>

<div class="info-wrapper">
<h1 class="text-left"><strong>Welcome to Training Church!</strong></h1>

<h4 class="text-left">If you do not yet have a login and would like to participate in this community, 
    you can sign up by clicking &lsquo;Request Password&rsquo; under the login box to the left.</h4>
</div>
</body>
</html>


Latest Update

03/11/2024

Added this article.