You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
339 lines
10 KiB
339 lines
10 KiB
{{!
|
|
This file is part of Moodle - http://moodle.org/
|
|
|
|
Moodle is free software: you can redistribute it and/or modify
|
|
it under the terms of the GNU General Public License as published by
|
|
the Free Software Foundation, either version 3 of the License, or
|
|
(at your option) any later version.
|
|
|
|
Moodle is distributed in the hope that it will be useful,
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
GNU General Public License for more details.
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
along with Moodle. If not, see <http://www.gnu.org/licenses/>.
|
|
}}
|
|
{{!
|
|
@template theme_ilb/login
|
|
|
|
Login page template
|
|
|
|
Example context (json):
|
|
{
|
|
"output": {
|
|
"doctype": "<!DOCTYPE html>",
|
|
"page_title": "Login page",
|
|
"favicon": "favicon.ico",
|
|
"main_content": "<h1>Headers keep HTML validators happy</h1>"
|
|
}
|
|
}
|
|
}}
|
|
<style>
|
|
.wrapper {
|
|
display: flex;
|
|
align-items: center;
|
|
flex-direction: column;
|
|
justify-content: center;
|
|
width: 100%;
|
|
min-height: 100%;
|
|
padding: 20px;
|
|
}
|
|
|
|
#formContent {
|
|
-webkit-border-radius: 10px 10px 10px 10px;
|
|
border-radius: 10px 10px 10px 10px;
|
|
background: #fff;
|
|
padding: 30px;
|
|
width: 90%;
|
|
max-width: 450px;
|
|
position: relative;
|
|
padding: 0px;
|
|
-webkit-box-shadow: 0 30px 60px 0 rgba(0,0,0,0.3);
|
|
box-shadow: 0 30px 60px 0 rgba(0,0,0,0.3);
|
|
text-align: center;
|
|
}
|
|
|
|
#formFooter {
|
|
background-color: #f6f6f6;
|
|
border-top: 1px solid #dce8f1;
|
|
padding: 25px;
|
|
text-align: center;
|
|
-webkit-border-radius: 0 0 10px 10px;
|
|
border-radius: 0 0 10px 10px;
|
|
}
|
|
|
|
input[type=button], input[type=submit], input[type=reset] {
|
|
background-color: #28a745;
|
|
border: none;
|
|
color: white;
|
|
padding: 15px 80px;
|
|
text-align: center;
|
|
text-decoration: none;
|
|
display: inline-block;
|
|
text-transform: uppercase;
|
|
font-size: 13px;
|
|
-webkit-box-shadow: 0 10px 30px 0 rgba(95,186,233,0.4);
|
|
box-shadow: 0 10px 30px 0 rgba(95,186,233,0.4);
|
|
-webkit-border-radius: 5px 5px 5px 5px;
|
|
border-radius: 5px 5px 5px 5px;
|
|
margin: 5px 20px 40px 20px;
|
|
-webkit-transition: all 0.3s ease-in-out;
|
|
-moz-transition: all 0.3s ease-in-out;
|
|
-ms-transition: all 0.3s ease-in-out;
|
|
-o-transition: all 0.3s ease-in-out;
|
|
transition: all 0.3s ease-in-out;
|
|
}
|
|
|
|
input[type=button]:hover, input[type=submit]:hover, input[type=reset]:hover {
|
|
background-color: #52b86a;
|
|
}
|
|
|
|
input[type=button]:active, input[type=submit]:active, input[type=reset]:active {
|
|
-moz-transform: scale(0.95);
|
|
-webkit-transform: scale(0.95);
|
|
-o-transform: scale(0.95);
|
|
-ms-transform: scale(0.95);
|
|
transform: scale(0.95);
|
|
}
|
|
|
|
input[type=text] {
|
|
background-color: #f6f6f6;
|
|
border: none;
|
|
color: #0d0d0d;
|
|
padding: 15px 32px;
|
|
text-align: center;
|
|
text-decoration: none;
|
|
display: inline-block;
|
|
font-size: 16px;
|
|
margin: 5px;
|
|
width: 85%;
|
|
border: 2px solid #f6f6f6;
|
|
-webkit-transition: all 0.5s ease-in-out;
|
|
-moz-transition: all 0.5s ease-in-out;
|
|
-ms-transition: all 0.5s ease-in-out;
|
|
-o-transition: all 0.5s ease-in-out;
|
|
transition: all 0.5s ease-in-out;
|
|
-webkit-border-radius: 5px 5px 5px 5px;
|
|
border-radius: 5px 5px 5px 5px;
|
|
}
|
|
|
|
input[type=text]:focus {
|
|
background-color: #fff;
|
|
border-bottom: 2px solid #5fbae9;
|
|
}
|
|
|
|
input[type=text]:placeholder {
|
|
color: #cccccc;
|
|
}
|
|
input[type=password] {
|
|
background-color: #f6f6f6;
|
|
border: none;
|
|
color: #0d0d0d;
|
|
padding: 15px 32px;
|
|
text-align: center;
|
|
text-decoration: none;
|
|
display: inline-block;
|
|
font-size: 16px;
|
|
margin: 5px;
|
|
width: 85%;
|
|
border: 2px solid #f6f6f6;
|
|
-webkit-transition: all 0.5s ease-in-out;
|
|
-moz-transition: all 0.5s ease-in-out;
|
|
-ms-transition: all 0.5s ease-in-out;
|
|
-o-transition: all 0.5s ease-in-out;
|
|
transition: all 0.5s ease-in-out;
|
|
-webkit-border-radius: 5px 5px 5px 5px;
|
|
border-radius: 5px 5px 5px 5px;
|
|
}
|
|
|
|
input[type=password]:focus {
|
|
background-color: #fff;
|
|
border-bottom: 2px solid #5fbae9;
|
|
}
|
|
|
|
input[type=password]:placeholder {
|
|
color: #cccccc;
|
|
}
|
|
|
|
.fadeInDown {
|
|
-webkit-animation-name: fadeInDown;
|
|
animation-name: fadeInDown;
|
|
-webkit-animation-duration: 1s;
|
|
animation-duration: 1s;
|
|
-webkit-animation-fill-mode: both;
|
|
animation-fill-mode: both;
|
|
}
|
|
|
|
@-webkit-keyframes fadeInDown {
|
|
0% {
|
|
opacity: 0;
|
|
-webkit-transform: translate3d(0, -100%, 0);
|
|
transform: translate3d(0, -100%, 0);
|
|
}
|
|
100% {
|
|
opacity: 1;
|
|
-webkit-transform: none;
|
|
transform: none;
|
|
}
|
|
}
|
|
|
|
@keyframes fadeInDown {
|
|
0% {
|
|
opacity: 0;
|
|
-webkit-transform: translate3d(0, -100%, 0);
|
|
transform: translate3d(0, -100%, 0);
|
|
}
|
|
100% {
|
|
opacity: 1;
|
|
-webkit-transform: none;
|
|
transform: none;
|
|
}
|
|
}
|
|
@-webkit-keyframes fadeIn { from { opacity:0; } to { opacity:1; } }
|
|
@-moz-keyframes fadeIn { from { opacity:0; } to { opacity:1; } }
|
|
@keyframes fadeIn { from { opacity:0; } to { opacity:1; } }
|
|
|
|
.fadeIn {
|
|
opacity:0;
|
|
-webkit-animation:fadeIn ease-in 1;
|
|
-moz-animation:fadeIn ease-in 1;
|
|
animation:fadeIn ease-in 1;
|
|
|
|
-webkit-animation-fill-mode:forwards;
|
|
-moz-animation-fill-mode:forwards;
|
|
animation-fill-mode:forwards;
|
|
|
|
-webkit-animation-duration:1s;
|
|
-moz-animation-duration:1s;
|
|
animation-duration:1s;
|
|
}
|
|
|
|
.fadeIn.first {
|
|
-webkit-animation-delay: 0.4s;
|
|
-moz-animation-delay: 0.4s;
|
|
animation-delay: 0.4s;
|
|
}
|
|
|
|
.fadeIn.second {
|
|
-webkit-animation-delay: 0.6s;
|
|
-moz-animation-delay: 0.6s;
|
|
animation-delay: 0.6s;
|
|
}
|
|
|
|
.fadeIn.third {
|
|
-webkit-animation-delay: 0.8s;
|
|
-moz-animation-delay: 0.8s;
|
|
animation-delay: 0.8s;
|
|
}
|
|
|
|
.fadeIn.fourth {
|
|
-webkit-animation-delay: 1s;
|
|
-moz-animation-delay: 1s;
|
|
animation-delay: 1s;
|
|
}
|
|
|
|
.underlineHover:after {
|
|
display: block;
|
|
left: 0;
|
|
bottom: -10px;
|
|
width: 0;
|
|
height: 2px;
|
|
background-color: #56baed;
|
|
content: "";
|
|
transition: width 0.2s;
|
|
}
|
|
|
|
.underlineHover:hover {
|
|
color: #0d0d0d;
|
|
}
|
|
|
|
.underlineHover:hover:after{
|
|
width: 100%;
|
|
}
|
|
|
|
h1{
|
|
color:#60a0ff;
|
|
}
|
|
|
|
*:focus {
|
|
outline: none;
|
|
}
|
|
|
|
#icon {
|
|
margin-top: 5%;
|
|
margin-bottom: 10%;
|
|
width:70%;
|
|
}
|
|
.alignloginbutton{
|
|
margin-left: auto;
|
|
margin-right: auto;
|
|
}
|
|
|
|
|
|
</style>
|
|
{{> theme_ilb/head }}
|
|
|
|
<!--
|
|
{{{ output.main_content }}}
|
|
-->
|
|
|
|
<body {{{ bodyattributes }}}>
|
|
|
|
<div id="page-wrapper">
|
|
|
|
{{{ output.standard_top_of_body_html }}}
|
|
|
|
{{> theme_ilb/navbar }}
|
|
|
|
<div class="alert alert-danger fadeIn first" role="alert" style="margin-top: 54px; margin-bottom: -50px">
|
|
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
|
|
<span aria-hidden="true">×</span>
|
|
</button>
|
|
<h4 class="alert-heading">Usuário não logado!</h4>
|
|
<hr>
|
|
<p class="mb-0">Para poder acessar ao curso "CURSO GENÉRICO" é necessário realizar o login.</p>
|
|
</div>
|
|
|
|
<form class="loginform" id="login" method="post" action="index.php">
|
|
<input type="hidden" name="logintoken" value="{{logintoken}}">
|
|
<div id="page" class="container-fluid mt-0">
|
|
<div id="page-content" class="row">
|
|
<div id="region-main-box" class="col-12">
|
|
<section id="region-main" class="col-12">
|
|
<div class="wrapper fadeInDown" style="margin-top: 50px;">
|
|
<div id="formContent">
|
|
<div class="fadeIn second">
|
|
<img src="https://saberes.senado.leg.br/theme/image.php/ilb/theme/1559136669/logo_saberes_xl" id="icon" alt="User Icon" />
|
|
</div>
|
|
<form>
|
|
<input type="text" id="login_username" class="fadeIn second" value="" name="username" placeholder="Usuário" autocomplete="username">
|
|
<input type="password" id="login_password" class="fadeIn third" value="" name="password" placeholder="Senha" autocomplete="current-password">
|
|
<a href="/moodle/login/forgot_password.php" style="width: 85%; display: inline-block; text-align: left;" class="fadeIn third">Esqueci minha senha</a>
|
|
<div style="width: 85%;" class="alignloginbutton">
|
|
<button type="submit" class="fadeIn fourth btn btn-success btn-lg btn-block" id="loginbtn" style="cursor: pointer;">Login</button>
|
|
</div>
|
|
</form>
|
|
<div id="formFooter">
|
|
<a href="/moodle/login/signup.php" class="underlineHover" href="#">Cadastrar</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<!--
|
|
{{{ output.course_content_header }}}
|
|
{{{ output.course_content_footer }}}
|
|
-->
|
|
|
|
</section>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
{{> theme_ilb/footer }}
|
|
</div>
|
|
|
|
</body>
|
|
</html>
|
|
{{#js}}
|
|
require(['theme_ilb/loader']);
|
|
{{/js}}
|
|
|