-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
608 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
.my-footer { | ||
height: 5em; | ||
background-color: #163b65; | ||
margin-top: 1.5em; | ||
padding: 1em; | ||
color: white; | ||
font-size: 80%; | ||
} | ||
|
||
.room-image { | ||
max-width: 50%; | ||
} | ||
|
||
.notie-container { | ||
box-shadow: none; | ||
} | ||
|
||
.datepicker { | ||
z-index: 10000; | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,263 @@ | ||
{{define "base"}} | ||
<!doctype html> | ||
<html lang="en"> | ||
|
||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" | ||
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"> | ||
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | ||
<title>Document</title> | ||
<!-- Required meta tags --> | ||
<meta charset="utf-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> | ||
|
||
<title>My Nice Page</title> | ||
|
||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" | ||
integrity="sha384-B0vP5xmATw1+K9KRQjQERJvTumQW0nPEzvF6L/Z6nronJ3oUOFUFpCjEUQouq2+l" | ||
crossorigin="anonymous"> | ||
integrity="sha384-B0vP5xmATw1+K9KRQjQERJvTumQW0nPEzvF6L/Z6nronJ3oUOFUFpCjEUQouq2+l" crossorigin="anonymous"> | ||
<link rel="stylesheet" | ||
href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/datepicker-bs4.min.css"> | ||
<link rel="stylesheet" type="text/css" href="https://unpkg.com/notie/dist/notie.min.css"> | ||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/sweetalert2.min.css"> | ||
<link rel="stylesheet" type="text/css" href="/static/css/styles.css"> | ||
|
||
<style> | ||
.btn-outline-secondary { | ||
color: aqua; | ||
border-color: #6c757d; | ||
} | ||
|
||
p { | ||
|
||
{{block "css" .}} | ||
} | ||
|
||
.paraClass { | ||
font-size: 3em; | ||
} | ||
|
||
.secondClass { | ||
color: red; | ||
} | ||
|
||
#lastPara { | ||
text-decoration: underline; | ||
} | ||
</style> | ||
|
||
{{end}} | ||
</head> | ||
|
||
<body> | ||
|
||
<nav class="navbar navbar-expand-lg navbar-dark bg-dark"> | ||
<a class="navbar-brand" href="#">Navbar</a> | ||
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNav" | ||
aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation"> | ||
<span class="navbar-toggler-icon"></span> | ||
</button> | ||
<div class="collapse navbar-collapse" id="navbarNav"> | ||
<ul class="navbar-nav"> | ||
<li class="nav-item active"> | ||
<a class="nav-link" href="/">Home <span class="sr-only">(current)</span></a> | ||
</li> | ||
<li class="nav-item"> | ||
<a class="nav-link" href="/about">About</a> | ||
</li> | ||
<li class="nav-item dropdown"> | ||
<a class="nav-link dropdown-toggle" href="#" id="navbarDropdownMenuLink" role="button" | ||
data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> | ||
Rooms | ||
</a> | ||
<div class="dropdown-menu" aria-labelledby="navbarDropdownMenuLink"> | ||
<a class="dropdown-item" href="/generals-quarters">General's Quarters</a> | ||
<a class="dropdown-item" href="/majors-suite">Major's Suite</a> | ||
</div> | ||
</li> | ||
<li class="nav-item"> | ||
<a class="nav-link" href="/search-availability">Book Now</a> | ||
</li> | ||
<li class="nav-item"> | ||
<a class="nav-link" href="/contact">Contact</a> | ||
</li> | ||
|
||
</ul> | ||
</div> | ||
</nav> | ||
|
||
{{block "content" .}} | ||
|
||
{{end}} | ||
|
||
|
||
<footer class="my-footer"> | ||
<div class="row"> | ||
<div class="col"> | ||
left | ||
</div> | ||
|
||
<div class="col"> | ||
center | ||
</div> | ||
|
||
<div class="col"> | ||
right | ||
</div> | ||
</div> | ||
</footer> | ||
|
||
<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js" | ||
integrity="sha384-DfXdz2htPH0lsSSs5nCTpuj/zy4C+OGpamoFVy38MVBnE+IbbVYUew+OrCXaRkfj" | ||
crossorigin="anonymous"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" | ||
integrity="sha384-Piv4xVNRyMGpqkS2by6br4gNJ7DXjqk09RmUpJ8jgGtD7zP9yug3goQfGII0yAns" | ||
crossorigin="anonymous"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/datepicker-full.min.js"></script> | ||
<script src="https://unpkg.com/notie"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/sweetalert2.min.js"></script> | ||
|
||
|
||
{{block "js" .}} | ||
|
||
{{end}} | ||
|
||
<script> | ||
let attention = Prompt(); | ||
|
||
(function () { | ||
'use strict'; | ||
window.addEventListener('load', function () { | ||
// Fetch all the forms we want to apply custom Bootstrap validation styles to | ||
let forms = document.getElementsByClassName('needs-validation'); | ||
// Loop over them and prevent submission | ||
Array.prototype.filter.call(forms, function (form) { | ||
form.addEventListener('submit', function (event) { | ||
if (form.checkValidity() === false) { | ||
event.preventDefault(); | ||
event.stopPropagation(); | ||
} | ||
form.classList.add('was-validated'); | ||
}, false); | ||
}); | ||
}, false); | ||
})(); | ||
|
||
|
||
function notify(msg, msgType) { | ||
notie.alert({ | ||
type: msgType, | ||
text: msg, | ||
}) | ||
} | ||
|
||
function notifyModal(title, text, icon, confirmationButtonText) { | ||
Swal.fire({ | ||
title: title, | ||
html: text, | ||
icon: icon, | ||
confirmButtonText: confirmationButtonText | ||
}) | ||
} | ||
|
||
function Prompt() { | ||
let toast = function (c) { | ||
const{ | ||
msg = '', | ||
icon = 'success', | ||
position = 'top-end', | ||
|
||
} = c; | ||
|
||
const Toast = Swal.mixin({ | ||
toast: true, | ||
title: msg, | ||
position: position, | ||
icon: icon, | ||
showConfirmButton: false, | ||
timer: 3000, | ||
timerProgressBar: true, | ||
didOpen: (toast) => { | ||
toast.addEventListener('mouseenter', Swal.stopTimer) | ||
toast.addEventListener('mouseleave', Swal.resumeTimer) | ||
} | ||
}) | ||
|
||
Toast.fire({}) | ||
} | ||
|
||
let success = function (c) { | ||
const { | ||
msg = "", | ||
title = "", | ||
footer = "", | ||
} = c | ||
|
||
Swal.fire({ | ||
icon: 'success', | ||
title: title, | ||
text: msg, | ||
footer: footer, | ||
}) | ||
|
||
} | ||
|
||
let error = function (c) { | ||
const { | ||
msg = "", | ||
title = "", | ||
footer = "", | ||
} = c | ||
|
||
Swal.fire({ | ||
icon: 'error', | ||
title: title, | ||
text: msg, | ||
footer: footer, | ||
}) | ||
|
||
} | ||
|
||
async function custom(c) { | ||
const { | ||
msg = "", | ||
title = "", | ||
} = c; | ||
|
||
const { value: formValues } = await Swal.fire({ | ||
title: title, | ||
html: msg, | ||
backdrop: false, | ||
focusConfirm: false, | ||
showCancelButton: true, | ||
willOpen: () => { | ||
const elem = document.getElementById("reservation-dates-modal"); | ||
const rp = new DateRangePicker(elem, { | ||
format: 'yyyy-mm-dd', | ||
showOnFocus: true, | ||
}) | ||
}, | ||
didOpen: () => { | ||
document.getElementById("start").removeAttribute("disabled"); | ||
document.getElementById("end").removeAttribute("disabled"); | ||
}, | ||
preConfirm: () => { | ||
return [ | ||
document.getElementById('start').value, | ||
document.getElementById('end').value | ||
] | ||
} | ||
}) | ||
|
||
if (formValues) { | ||
Swal.fire(JSON.stringify(formValues)) | ||
} | ||
} | ||
|
||
return { | ||
toast: toast, | ||
success: success, | ||
error: error, | ||
custom: custom, | ||
} | ||
} | ||
|
||
</script> | ||
|
||
</body> | ||
|
||
</html> | ||
{{end}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{{template "base" .}} | ||
|
||
{{define "content"}} | ||
<div class="container"> | ||
<div class="row"> | ||
<div class="col"> | ||
<h1>This is the contact page</h1> | ||
|
||
</div> | ||
</div> | ||
</div> | ||
{{end}} |
Oops, something went wrong.