JSFiddle - React, Tailwind, and code Playground
by Ved prakash
HTML
<html>
<head>
<title>Email Template</title>
<link rel="styleSheet" type="text/css" href="app.css" />
<link rel="stylesheet" type="text/css" href="https://fonts.googleapis.com/css?family=Oswald" />
<link rel="stylesheet" type="text/css" href="https://fonts.googleapis.com/css?family=Roboto" />
</head>
<body>
<div class="main">
<header class="header">
<div class="app-logo">
<img src="https://i.postimg.cc/SRsxtjLC/logo.png">
</div>
<h1 class="app-name">Application Name</h1>
<div class="app-actions">
<button class="btn btn-outline btn-orange">LAUNCH GTW</button>
</div>
</header>
<div class="page-content">
<h2 class="page-name bottom-border">Exception Has Occured</h2>
<div class="error-info">
<table style="width:100%">
<tr>
<td>Error Id: 23422 </td>
<td>Browser: Chrome/71.0.3578.98</td>
</tr>
<tr>
<td>User Email: [email protected] </td>
<td>Request URL: http://localhost:8085/trt/exceptionTest</td>
</tr>
<tr>
<td>Display Name: John mahapatra</td>
<td>User ID: 40132142</td>
</tr>
<tr>
<td>Context Path: /Wtr</td>
<td>Error ArthimeticException:/ by Zero</td>
</tr>
<tr>
<td>Query String:</td>
<td>Remote Address: 0:0:0:0:0:0:1</td>
</tr>
</table>
<button class="btn btn-orange">View Error</button>
</div>
<div class="error-details">
<h2 class="page-name top-border">Exception Stack Trace : </h2>
...
CSS
* {
box-sizing: border-box;
}
body {
margin: 2em 2em 0;
font-size: 12px;
font-family: Roboto, 'Open Sans', 'Helvetica Neue', sans-serif;
}
.main {
min-height: calc(100vh - 4em);
background-color: #edecec;
}
.header {
display: flex;
margin-bottom: 4px;
align-items: center;
background-color: #f8f8f8;
border-top: 1px solid #fa5927;
background-repeat: no-repeat;
box-shadow: 0 4px 4px -3px rgba(0, 0, 0, 0.7);
}
.header .app-logo {
width: 180px;
height: 92px;
box-shadow: 8px 0 0px -3px #d5d3d3;
}
.header .app-name {
margin: 0;
flex: auto;
padding: 1em;
color: #fa845f;
font-size: 1.5em;
display: inline-block;
}
.header .app-actions {
padding: 15px;
}
.page-content {
margin: 15px;
padding: 15px;
background-color: #fff;
}
.page-content .page-name.bottom-border {
padding-bottom: 5px;
border-bottom: 2px solid #f0f0f0;
}
.page-content .page-name.top-border {
border-top: 2px solid #f0f0f0;
padding-top: 15px;
margin-top: 25px;
}
.page-content table {
line-height: 2;
margin-bottom: 15px;
font-family: Oswald, 'sans-serif';
}
.footer {
color: #fff;
padding: 30px 30px 0;
background-color: #31393f;
p{
line-height: 1px;
}
}
.footer .footer-bottom {
margin: 0 -30px;
padding: 0.5em 5em;
background-color: #262c31;
}
.footer-para {
line-height: 2em;
}
.btn {
padding: 4px 15px;
display: inline-block;
font-weight: 400;
text-align: center;
white-space: nowrap;
vertical-align: middle;
border: 1px solid transparent;
line-height: 1.4;
border-radius: 2px;
cursor: pointer;
}
.btn-orange {
color: #fff;
background-color: #fa5927;
border-color: #fa5927;
box-shadow: 0 2px 3px rgba(0, 0,0, 0.3);
}
.btn-orange.btn-outline {
color: #fa845f;
background-color: #fff;
border-color: #fa845f;
}
.text-orange {
color: #fa5927;
}
JavaScript
आप् सरकार से कोई सवाल करेंगे तो बीजेपी सेना के आड़ में चली जाएगी. राष्टवाद का दुहाई देगी. लेकिन आप सवाल तयार रखिये. BJP का 1 गरीब नेता हेलिकॉप्टर से आता ही होगा.
बीजेपी नेता बताएगा कि आपकी सभी परेसानी नेहरू छोड़ गये थे . इनके पास सबसे ऊँची मूर्ति और पाताल में पहुँच चुकी लोकत्रंत दोनों का जवाब देना होगा.