Commit 0ae8c1a6 by Nilu

responsive alert

parent 3f5b3836
...@@ -2557,6 +2557,46 @@ a.forgot-pass { ...@@ -2557,6 +2557,46 @@ a.forgot-pass {
color: #4a4a4a; color: #4a4a4a;
padding: 0 60px; padding: 0 60px;
} }
.reponsive-alert {
display: block;
width: 100%;
height: 100%;
padding: 2.5%;
box-sizing: border-box;
}
.responsive-alert-top {
height: 100%;
}
.reponsive-alert .responsive-alert-body {
height: 100%;
padding: 15% 0;
}
.grin-with-sweat{
font-size: 100px;
}
.responsive-alert-body{
border-radius: 2px;
background-color: #ffffff;
box-shadow: 0 0 30px 5px rgba(0, 0, 0, 0.2);
border: 1px solid #e8e8eb;
margin: 0 auto;
text-align: center;
padding: 0;
}
.responsive-alert-body h2{
font-size: 22px;
font-weight: 600;
color: #4a4a4a;
margin: 0 0 22px;
}
.responsive-alert-body p {
font-size: 16px;
font-weight: 300;
line-height: 1.56;
text-align: center;
color: #4a4a4a;
padding: 0 60px;
}
.create-y-f-job{ .create-y-f-job{
width: 100%; width: 100%;
border-top: 1px solid #ededef; border-top: 1px solid #ededef;
......
...@@ -110,6 +110,10 @@ ...@@ -110,6 +110,10 @@
</FORM> </FORM>
</NODE> </NODE>
<NODE name="responsive_alert_jsp" factory="Participant">
<INHERITS factory="Named" nodename="CoreORMAdminNoPriv"/>
</NODE>
<NODE name="verification_sent_jsp" factory="Participant"> <NODE name="verification_sent_jsp" factory="Participant">
<INHERITS factory="Named" nodename="CoreORMAdminNoPriv"/> <INHERITS factory="Named" nodename="CoreORMAdminNoPriv"/>
</NODE> </NODE>
......
...@@ -20,6 +20,8 @@ ...@@ -20,6 +20,8 @@
<%@include file="/inc/std_imports.jsp" %> <%@include file="/inc/std_imports.jsp" %>
<%@include file="/hotjar.jsp" %> <%@include file="/hotjar.jsp" %>
<%@include file="/heapAnalysis.jsp" %> <%@include file="/heapAnalysis.jsp" %>
<%@page import="oneit.servlets.portability.BrowserServices"%>
</head> </head>
<script> <script>
window.intercomSettings = { window.intercomSettings = {
...@@ -32,6 +34,13 @@ ...@@ -32,6 +34,13 @@
</script> </script>
<body> <body>
<% <%
boolean isMobile = BrowserServices.isMobile(request);
if(isMobile)
{
response.sendRedirect(request.getContextPath() + "/extensions/adminportal/responsive_alert.jsp");
}
Article home = WebUtils.getArticleByShortCut(objTran, WebUtils.ADMIN_HOME); Article home = WebUtils.getArticleByShortCut(objTran, WebUtils.ADMIN_HOME);
String homeUrl = home.getLink(request); String homeUrl = home.getLink(request);
String signoutUrl = "logout.jsp?nextURL=" + homeUrl; String signoutUrl = "logout.jsp?nextURL=" + homeUrl;
......
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@ page extends="oneit.servlets.jsp.FormJSP" %>
<%@ include file="/setuprequest.jsp" %>
<%@ include file="/inc/stdimports50.jsp" %><%-- This is in cougar --%>
<%@ include file="/extensions/performa/inc/stdimports.jsp" %>
<%! protected String getName (ServletConfig config) { return "responsive_alert_jsp"; } %>
<%@ include file="inc/htmlheader_nopriv.jsp" %>
<div class="modal reponsive-alert" role="dialog">
<div class="responsive-alert-top">
<div class="responsive-alert-body">
<div class="responsive-alert-wrapper">
<div class="grin-with-sweat">😅</div>
<h2>Uh oh</h2>
<p> Talentology for Hiring Teams is currently available on desktop computers only.</p>
<p>Sorry about that!</p>
<p>On your desktop, check your email for our "Welcome to Talentology" message, and follow its link to get started!</p>
<div class="create-y-f-job">
<img src="<%= request.getContextPath() %>/images/logo.svg">
</div>
</div>
</div>
</div>
</div>
<%@ include file="inc/htmlfooter_nopriv.jsp" %>
\ No newline at end of file
...@@ -3,9 +3,17 @@ ...@@ -3,9 +3,17 @@
<%@ include file="/setuprequest.jsp" %> <%@ include file="/setuprequest.jsp" %>
<%@ include file="/inc/stdimports50.jsp" %><%-- This is in cougar --%> <%@ include file="/inc/stdimports50.jsp" %><%-- This is in cougar --%>
<%@ include file="/extensions/performa/inc/stdimports.jsp" %> <%@ include file="/extensions/performa/inc/stdimports.jsp" %>
<%@page import="oneit.servlets.portability.BrowserServices"%>
<%! protected String getName (ServletConfig config) { return "signin_jsp"; } %> <%! protected String getName (ServletConfig config) { return "signin_jsp"; } %>
<% <%
boolean isMobile = BrowserServices.isMobile(request);
if(isMobile)
{
response.sendRedirect(request.getContextPath() + "/extensions/adminportal/responsive_alert.jsp");
}
ORMProcessState process = (ORMProcessState) ProcessDecorator.getDefaultProcess(request); ORMProcessState process = (ORMProcessState) ProcessDecorator.getDefaultProcess(request);
ObjectTransaction objTran = process.getTransaction (); ObjectTransaction objTran = process.getTransaction ();
String nextPage = WebUtils.getArticleByShortCut(objTran, WebUtils.ADMIN_HOME).getLink(request); String nextPage = WebUtils.getArticleByShortCut(objTran, WebUtils.ADMIN_HOME).getLink(request);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment