Skip to content

Instantly share code, notes, and snippets.

@shawnbot
Created May 20, 2024 23:31
Show Gist options
  • Save shawnbot/90546c748a0321e2adc4381d994b37d9 to your computer and use it in GitHub Desktop.
Save shawnbot/90546c748a0321e2adc4381d994b37d9 to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html><head>
<link href="https://fonts.googleapis.com" rel="preconnect"/>
<link crossorigin="" href="https://fonts.gstatic.com" rel="preconnect"/>
<link href="https://fonts.googleapis.com/css2?family=Rubik:wght@300;400;600&amp;display=swap" rel="stylesheet"/>
<meta content="width=device-width" name="viewport"/>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type"/>
<meta content="light dark" name="color-scheme"/>
<meta content="light dark" name="supported-color-schemes"/>
<title>Form Submission</title>
<style>
/* -------------------------------------
GLOBAL RESETS
------------------------------------- */
/*All the styling goes here*/
.light { display:block !important; width: auto !important; overflow: visible !important; float: none !important; max-height:inherit !important; max-width:inherit !important; line-height: auto !important; margin-top:0px !important; visibility:inherit !important; }
.dark { display:none; display:none !important; }
@media (prefers-color-scheme: dark ) {
/* Hides Light Mode-Only Content, Like Images */
.light { display:none; display:none !important; }
/* Shows Dark Mode-Only Content, Like Images */
.dark { display:block !important; width: auto !important; overflow: visible !important; float: none !important; max-height:inherit !important; max-width:inherit !important; line-height: auto !important; margin-top:0px !important; visibility:inherit !important; }
}
img {
height: 60px;
border: none;
-ms-interpolation-mode: bicubic;
max-width: 100%;
padding-bottom:20px;
}
body {
background-color: #f6f6f6;
font-family: Rubik, ui-sans-serif, sans-serif;
-webkit-font-smoothing: antialiased;
font-size: 16px;
line-height: 24px;
margin: 0;
padding: 0;
-ms-text-size-adjust: 100%;
-webkit-text-size-adjust: 100%;
}
table {
border-collapse: separate;
mso-table-lspace: 0pt;
mso-table-rspace: 0pt;
width: 100%; }
table td {
font-family: Rubik, ui-sans-serif, sans-serif;
font-size: 16px;
vertical-align: top;
}
/* -------------------------------------
BODY & CONTAINER
------------------------------------- */
.body {
background-color: #f6f6f6;
width: 100%;
}
@media (prefers-color-scheme: dark ) {
.body {
background-color: #424244;
}}
/* Set a max-width, and make it display as block so it will automatically stretch to that width, but will also shrink down on a phone or something */
.container {
display: block;
Margin: 0 auto !important;
/* makes it centered */
max-width: 580px;
padding: 20px;
width: 580px;
}
/* This should also be a block element, so that it will fill 100% of the .container */
.content {
box-sizing: border-box;
display: block;
Margin: 0 auto;
max-width: 580px;
padding: 10px;
}
/* -------------------------------------
HEADER, FOOTER, MAIN
------------------------------------- */
.main {
background: #ffffff;
border-radius: 3px;
width: 100%;
}
@media (prefers-color-scheme: dark ) {
.main {
background: #212123;
}}
.wrapper {
box-sizing: border-box;
padding: 40px;
}
.content-block {
padding-bottom: 10px;
padding-top: 10px;
}
.footer {
clear: both;
Margin-top: 10px;
text-align: center;
width: 100%;
}
.footer td,
.footer p,
.footer span,
.footer a {
color: #999999;
font-size: 12px;
text-align: center;
}
/* -------------------------------------
TYPOGRAPHY
------------------------------------- */
h1,
h2,
h3,
h4 {
color: #212123;
font-family: Rubik, ui-sans-serif, sans-serif;
font-weight: 400;
line-height: 1.4;
margin: 0;
margin-bottom: 30px;
}
@media (prefers-color-scheme: dark) {
h1,
h2,
h3,
h4 {
color: #ffffff;
}}
h1 {
font-size: 32px;
font-weight: 600;
text-align: left;
}
p,
ul,
ol {
font-family: Rubik, ui-sans-serif, sans-serif;
font-size: 16px;
font-weight: normal;
line-height: 24px;
margin: 0;
margin-bottom: 15px;
}
p li,
ul li,
ol li {
list-style-position: inside;
margin-left: 5px;
}
a {
color: #495ED4;
text-decoration: underline;
}
/* -------------------------------------
BUTTONS
------------------------------------- */
.btn {
box-sizing: border-box;
background-color: #495ED4;
border: solid 1px #495ED4;
border-radius: 5px;
box-sizing: border-box;
color: #ffffff;
cursor: pointer;
display: inline-block;
font-size: 16px;
font-weight: bold;
margin: 0;
padding: 12px 25px;
text-decoration: none;
text-transform: capitalize;
}
/* -------------------------------------
OTHER STYLES THAT MIGHT BE USEFUL
------------------------------------- */
.last {
margin-bottom: 0;
}
.first {
margin-top: 0;
}
.align-center {
text-align: center;
}
.align-right {
text-align: right;
}
.align-left {
text-align: left;
}
.clear {
clear: both;
}
.mt0 {
margin-top: 0;
}
.mb0 {
margin-bottom: 0;
}
.preheader {
color: transparent;
display: none;
height: 0;
max-height: 0;
max-width: 0;
opacity: 0;
overflow: hidden;
mso-hide: all;
visibility: hidden;
width: 0;
}
.powered-by a {
text-decoration: none;
}
hr {
border: 0;
border-bottom: 1px solid #f6f6f6;
Margin: 20px 0;
}
/* -------------------------------------
RESPONSIVE AND MOBILE FRIENDLY STYLES
------------------------------------- */
@media only screen and (max-width: 620px) {
table[class=body] h1 {
font-size: 24px !important;
margin-bottom: 10px !important;
}
table[class=body] p,
table[class=body] ul,
table[class=body] ol,
table[class=body] td,
table[class=body] span,
table[class=body] a {
font-size: 16px !important;
}
table[class=body] .wrapper,
table[class=body] .article {
padding: 20px !important;
}
table[class=body] .content {
padding: 0 !important;
margin: 10px !important;
}
table[class=body] .container {
padding: 0 !important;
width: 100% !important;
}
table[class=body] .main {
border-left-width: 0 !important;
border-radius: 0 !important;
border-right-width: 0 !important;
}
table[class=body] .btn table {
width: 100% !important;
}
table[class=body] .btn a {
width: 100% !important;
}
table[class=body] .img-responsive {
height: auto !important;
max-width: 100% !important;
width: auto !important;
}
}
/* -------------------------------------
PRESERVE THESE STYLES IN THE HEAD
------------------------------------- */
@media all {
.ExternalClass {
width: 100%;
}
.ExternalClass,
.ExternalClass p,
.ExternalClass span,
.ExternalClass font,
.ExternalClass td,
.ExternalClass div {
line-height: 100%;
}
.apple-link a {
color: inherit !important;
font-family: inherit !important;
font-size: inherit !important;
font-weight: inherit !important;
line-height: inherit !important;
text-decoration: none !important;
}
.btn-primary table td:hover {
background-color: #34495e !important;
}
.btn-primary a:hover {
background-color: #34495e !important;
border-color: #34495e !important;
}
}
</style>
<style>
body {
font-family: 'Rubik', Rubik, ui-sans-serif, sans-serif;
}
table td {
font-family: 'Rubik', Rubik, ui-sans-serif, sans-serif;
}
.main {
border-radius: 8px;
}
</style>
</head>
<body class="">
<table border="0" cellpadding="0" cellspacing="0" class="body" role="presentation">
<tbody><tr>
<td> </td>
<td class="container">
<div class="light"><img alt="City and County of San Francisco city seal" src="https://static.sf.gov/img/CCSF-lockup.png" style="margin: 40px auto 0;display: block;"/></div>
<div class="dark"><img alt="City and County of San Francisco city seal" src="https://static.sf.gov/img/CCSF-lockup-white.png" style="margin: 40px auto 0;display: block;"/></div>
<div class="content">
<table class="main" role="presentation">
<tbody><tr>
<td class="wrapper">
<table border="0" cellpadding="0" cellspacing="0" role="presentation">
<tbody><tr>
<td>
<div id="content">
<p>
A submission for
<strong id="project_address">533 Kyle Island Suite 370</strong>
failed to be sent to OnBase.
</p>
<p><strong>Applicant contact info:</strong></p>
<ul>
<li>Name: <span id="applicant_name">Jason Bishop</span>
</li>
<li>Email: <a href="mailto:candicegriffin@example.org" id="applicant_email">candicegriffin@example.org</a></li>
<li>Phone: <span id="applicant_phone">(770) 905-6875</span></li>
<li>Submission: <a href="http://localhost:8000/django-admin/ab1114/webhookpayload/1162/change/" id="submission_id">3415c8a560f54942eb47e28db0f4572c</a></li>
</ul>
<p>
You can see more information about
<a href="http://localhost:8000/django-admin/ab1114/onbaseformsubmission/632/change/" id="detail_link">the failed submission</a>
and a list of all other submissions in
<a href="http://localhost:8000/django-admin/ab1114/" id="dashboard_link">the dashboard</a>.
</p>
</div>
</td>
</tr>
</tbody></table>
</td>
</tr>
</tbody></table>
<div class="align-center">
<br/>
<p style="font-size: 13px;"></p>
</div>
</div>
</td>
<td> </td>
</tr>
</tbody></table>
</body></html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment