Skip to content

Commit 85a4d02

Browse files
committed
added templates for error popups (issue hestiacp#11)
1 parent bd91554 commit 85a4d02

File tree

2 files changed

+122
-3
lines changed

2 files changed

+122
-3
lines changed

web/static-templates/css/popup.css

Lines changed: 74 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,4 +65,77 @@
6565
}
6666
.d-popup .prop-value{
6767
color:#fff;
68-
}
68+
}
69+
70+
/* errors popup */
71+
.d-popup-errors{
72+
width:auto;
73+
background: url(../i/auth/form-bg.png) repeat;
74+
}
75+
.d-popup-errors .d-popup-inner{
76+
width:480px;
77+
padding:20px 40px 0;
78+
}
79+
.d-popup-errors .d-popup-title{
80+
position:relative;
81+
margin:0 0 27px;
82+
padding:0 105px 0 40px;
83+
font-size:21px;
84+
line-height:27px;
85+
font-weight:normal;
86+
text-transform:uppercase;
87+
color:#6536c4;
88+
text-align:left;
89+
background:url(../i/auth/planet-1.png) no-repeat 5px 13px;
90+
letter-spacing:-1px;
91+
}
92+
.d-popup-errors .planets{
93+
display:block;
94+
width:91px;
95+
height:7px;
96+
position:absolute;
97+
top:11px;
98+
right:0;
99+
background:url(../i/auth/planet-2.png) no-repeat;
100+
}
101+
.d-popup-errors .d-popup-main{
102+
padding-left:40px;
103+
min-height:250px;
104+
}
105+
.d-popup-errors .section-title{
106+
margin:0 0 38px;
107+
font-size:30px;
108+
font-weight:normal;
109+
color:#f0f042;
110+
}
111+
.d-popup-errors .d-popup-summary{
112+
padding:0 0 20px 0;
113+
font-size:15px;
114+
}
115+
.d-popup-errors .d-popup-summary li{
116+
padding-left:15px;
117+
background:url(../i/blue-bullet.png) no-repeat 0 50%;
118+
}
119+
.d-popup-errors .footnotes{
120+
margin: 0 -40px;
121+
padding:15px 20px;
122+
font-size:14px;
123+
line-height:18px;
124+
border-top:2px solid #34352f;
125+
color:#686c6d;
126+
}
127+
128+
.d-popup-errors .questions-url{
129+
color:#686c6d;
130+
text-decoration:none;
131+
}
132+
.d-popup-errors .additional-info{
133+
float:left;
134+
white-space:nowrap;
135+
font-size:12px;
136+
}
137+
.d-popup-errors .report-case-url{
138+
float:right;
139+
display:block;
140+
color:#686c6d;
141+
}

web/static-templates/users-2.html

Lines changed: 48 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -926,7 +926,7 @@ <h1 class="logo"><a href="#">Vesta panel <span>&nbsp;</span></a></h1>
926926
</div><!-- // #content -->
927927
</div>
928928
</div>
929-
<div class="d-popup d-popup-ns-list" style="left:1160px;top:615px;z-index:1000;display:block;">
929+
<div class="d-popup d-popup-ns-list" style="left:1160px;top:685px;z-index:1000;display:block;">
930930
<div class="d-popup-inner">
931931
<span class="close">&times;</span>
932932
<div class="d-popup-content">
@@ -956,7 +956,7 @@ <h1 class="logo"><a href="#">Vesta panel <span>&nbsp;</span></a></h1>
956956
</div>
957957
</div>
958958
</div>
959-
<div class="d-popup d-popup-default-tpl" style="left:780px;top:720px;z-index:1002;">
959+
<div class="d-popup d-popup-default-tpl" style="left:780px;top:840px;z-index:1002;">
960960
<div class="d-popup-inner">
961961
<span class="close">&times;</span>
962962
<div class="d-popup-content">
@@ -1010,5 +1010,51 @@ <h1 class="logo"><a href="#">Vesta panel <span>&nbsp;</span></a></h1>
10101010
</div>
10111011
</div>
10121012
</div>
1013+
<div class="d-popup d-popup-errors" style="left:900px;top:290px;z-index:999;display:block;">
1014+
<div class="d-popup-inner">
1015+
<span class="close">&times;</span>
1016+
<div class="d-popup-content">
1017+
<div class="d-popup-title">
1018+
<span class="popup-title-wrap">This is out of Newton's Phisics <i class="planets">&nbsp;</i></span>
1019+
</div>
1020+
<div class="d-popup-main">
1021+
<h2 class="section-title">Internet connection seems to be lost</h2>
1022+
<div class="d-popup-summary">
1023+
<ul>
1024+
<li>Please check your connection</li>
1025+
<li>Contact your provider</li>
1026+
<li>or give us a call (+373 22) 25-11-65</li>
1027+
</ul>
1028+
</div>
1029+
</div>
1030+
<div class="footnotes cc">
1031+
<p class="additional-info">For questions please contact <a class="questions-url" href="mailto:support@vestacp.com">support@vestacp.com</a></p>
1032+
<a class="report-case-url" href="#">report this case</a>
1033+
</div>
1034+
</div>
1035+
</div>
1036+
</div>
1037+
1038+
<div class="d-popup d-popup-errors d-popup-errors2" style="left:320px;top:290px;z-index:999;display:block;">
1039+
<div class="d-popup-inner">
1040+
<span class="close">&times;</span>
1041+
<div class="d-popup-content">
1042+
<div class="d-popup-title">
1043+
<span class="popup-title-wrap">This is out of Newton's Phisics <i class="planets">&nbsp;</i></span>
1044+
</div>
1045+
<div class="d-popup-main">
1046+
<h2 class="section-title">Something went wrong. We're working on getting this fixed as soon as we can. </h2>
1047+
<div class="d-popup-summary">
1048+
<p>It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout. The point of using Lorem Ipsum is that it has a more-or-less normal distribution of letters, as opposed to using 'Content here, content here', making it look like readable English. Many desktop publishing packages and web page editors now use Lorem Ipsum as their default model text, and a search for 'lorem ipsum' will uncover many web sites still in their infancy. Various versions have evolved over the years, sometimes by accident, sometimes on purpose (injected humour and the like).</p>
1049+
</div>
1050+
</div>
1051+
<div class="footnotes cc">
1052+
<p class="additional-info">For questions please contact <a class="questions-url" href="mailto:support@vestacp.com">support@vestacp.com</a></p>
1053+
<a class="report-case-url" href="#">report this case</a>
1054+
</div>
1055+
</div>
1056+
</div>
1057+
</div>
1058+
10131059
</body>
10141060
</html>

0 commit comments

Comments
 (0)