Add banner background image everywhere, rename index template to location.
This commit is contained in:
		
							parent
							
								
									0dfb9b300f
								
							
						
					
					
						commit
						01fdac5338
					
				@ -136,7 +136,7 @@ app.get('/:loc', function(req, res) {
 | 
			
		||||
                        row.statusclass = 'closed';
 | 
			
		||||
                    } else { row.statusclass = 'open'; }
 | 
			
		||||
                });
 | 
			
		||||
                res.render('index', {values: result.rows}, function(err, html) {
 | 
			
		||||
                res.render('location', {values: result.rows}, function(err, html) {
 | 
			
		||||
                    if(err !== null) {
 | 
			
		||||
                        winston.error(err);
 | 
			
		||||
                    } else {
 | 
			
		||||
 | 
			
		||||
@ -30,9 +30,10 @@
 | 
			
		||||
            color:white;
 | 
			
		||||
        } 
 | 
			
		||||
    </style>
 | 
			
		||||
    <!-- favicon design by Paul Stevens of thenounproject.com -->
 | 
			
		||||
</head>
 | 
			
		||||
<body class="container-fluid">
 | 
			
		||||
    
 | 
			
		||||
 | 
			
		||||
    {{! Everything else gets inserted here }}
 | 
			
		||||
    {{{body}}}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -15,7 +15,7 @@
 | 
			
		||||
        <p class="lead">Want to sign on as another TennisCourtsOpen.com location? <a href="mailto:info@tenniscourtsopen.com">Email us.</a></p>
 | 
			
		||||
        <table class="table lead">
 | 
			
		||||
            {{! Make this table dynamic later when DB supports multiple locations. }}
 | 
			
		||||
            <th>Here are the currently supported locations:</th>
 | 
			
		||||
            <th>Here are the currently supported locations:{{! </th><th>Status</th> }}
 | 
			
		||||
            <tr><td><a href="https://tenniscourtsopen.com/tt">Temple Terrace Recreation Center, clay courts</a></td></tr>
 | 
			
		||||
        </table>
 | 
			
		||||
    </div>
 | 
			
		||||
 | 
			
		||||
@ -1,6 +1,6 @@
 | 
			
		||||
{{!< default}}
 | 
			
		||||
 | 
			
		||||
<div style="background:#D1E0E0" class="jumbotron">
 | 
			
		||||
<div style="background: url(banner-bg.jpg) no-repeat center center; background-size: cover; color: #fff" class="jumbotron">
 | 
			
		||||
    <h1 class="text-center">TT Tennis Courts Are...</h1>
 | 
			
		||||
</div>
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user