Уважаемые друзья и пользователи сайта ART-UCOZ!
Уведомляем вас о том, что мы приняли трудное, но обдуманное решение о закрытии проекта в качестве Интернет-магазина ART-UCOZ. С 05.11.2022 года сайт ART-UCOZ.RU продолжит работать в качестве каталога файлов, статей и информации. Будет закрыт только раздел интернет-магазина!
Все товары были перенесены в наш новый проект SHOPTHEMES - Vendor Marketplace (https://shopthemes.ru), над которым мы долго работали и продолжаем улучшать его в настоящее время.
Вас ждут: личный кабинет, возможность пополнения баланса на любую сумму, зачисление бонусов за посещение, перевод средств между пользователями, вывод средств (для продавцов), личный чат, больше новых цифровых товаров и многое другое.
Уведомляем вас о том, что мы приняли трудное, но обдуманное решение о закрытии проекта в качестве Интернет-магазина ART-UCOZ. С 05.11.2022 года сайт ART-UCOZ.RU продолжит работать в качестве каталога файлов, статей и информации. Будет закрыт только раздел интернет-магазина!
Все товары были перенесены в наш новый проект SHOPTHEMES - Vendor Marketplace (https://shopthemes.ru), над которым мы долго работали и продолжаем улучшать его в настоящее время.
Вас ждут: личный кабинет, возможность пополнения баланса на любую сумму, зачисление бонусов за посещение, перевод средств между пользователями, вывод средств (для продавцов), личный чат, больше новых цифровых товаров и многое другое.
Уважаемые пользователи!
Доводим до вашего сведения, что мы не занимаемся обучениями по системе uCoz и настройками Ваших сайтов.
Подобные просьбы и вопросы - будут игнорироваться!
Подобные просьбы и вопросы - будут игнорироваться!
Красивая форма авторизации на сайте для uCoz
Дата добавления: 19.12.2017 - 22:05
Категория: Хаки / Дополнения, Служебные страницы
Добавил: Buger
Количество просмотров: 3.2k
Количество комментариев: 0
Размер файла: 8.3 Kb
Рейтинг материала: 5.0 / 2
БЕСПЛАТНО
рейтинг
5.0
/
голосов
2
Данную форму можно использовать как во всплывающим модальном окне, так и на отдельной странице сайта.
HTML разметка:
Код
<div class="login-wrapper">
<div class="login-left">
<img src="https://res.cloudinary.com/dzqowkhxu/image/upload/v1513679279/bg-login_bxxfkf.png">
<div class="h1">Авторизация</div>
</div>
<div class="login-right">
<div class="h2">Авторизация</div>
<div class="form-group">
<input type="text" name="user" placeholder="Логин">
</div>
<div class="form-group">
<input type="password" name="password" placeholder="Пароль">
</div>
<div class="checkbox-container">
<input type="checkbox" checked="checked">
<div class="text-checkbox">Я согласен с условиями ресурса.</div>
</div>
<div class="button-area">
<a href="$REGISTER_LINK$" class="btn btn-secondary">Регистрация</a>
<button class="btn btn-primary" type="submit">Войти</button>
</div>
</div>
</div>
<div class="login-left">
<img src="https://res.cloudinary.com/dzqowkhxu/image/upload/v1513679279/bg-login_bxxfkf.png">
<div class="h1">Авторизация</div>
</div>
<div class="login-right">
<div class="h2">Авторизация</div>
<div class="form-group">
<input type="text" name="user" placeholder="Логин">
</div>
<div class="form-group">
<input type="password" name="password" placeholder="Пароль">
</div>
<div class="checkbox-container">
<input type="checkbox" checked="checked">
<div class="text-checkbox">Я согласен с условиями ресурса.</div>
</div>
<div class="button-area">
<a href="$REGISTER_LINK$" class="btn btn-secondary">Регистрация</a>
<button class="btn btn-primary" type="submit">Войти</button>
</div>
</div>
</div>
CSS стили:
Код
* {
box-sizing: border-box;
}
html,
body {
margin: 0;
padding: 0;
height: 100%;
}
body {
font-family: sans-serif;
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-box-pack: center;
-webkit-justify-content: center;
-ms-flex-pack: center;
justify-content: center;
-webkit-box-align: center;
-webkit-align-items: center;
-ms-flex-align: center;
align-items: center;
background: linear-gradient(243.87deg, #F28FE5 30.6%, #371933 130.6%);
overflow: hidden;
}
input {
font-family: inherit;
-webkit-appearance: none;
-moz-appearance: none;
border: 0;
border-bottom: 1px solid #AAAAAA;
font-size: 16px;
color: #000;
border-radius: 0;
}
input[type="text"],
input[type="password"] {
width: 100%;
height: 40px;
}
button,
input:focus {
outline: 0;
}
::-webkit-input-placeholder {
font-size: 16px;
font-weight: 300;
letter-spacing: -0.00933333em;
}
.form-group {
position: relative;
padding-top: 15px;
margin-top: 10px;
}
label {
position: absolute;
top: 0;
opacity: 1;
transform: translateY(5px);
color: #aaa;
font-weight: 300;
font-size: 13px;
letter-spacing: -0.00933333em;
transition: all 0.2s ease-out;
}
input:placeholder-shown+label {
opacity: 0;
transform: translateY(15px);
}
.h1 {
color: #fff;
opacity: 0.8;
font-size: 20px;
font-weight: 400;
text-transform: uppercase;
letter-spacing: 0.2405em;
transition: all 770ms cubic-bezier(0.51, 0.04, 0.12, 0.99);
text-align: center;
cursor: pointer;
position: absolute;
}
.open .h1 {
transform: translateX(200px) translateZ(0);
}
.h2 {
color: #000;
font-size: 20px;
letter-spacing: -0.00933333em;
font-weight: 600;
padding-bottom: 15px;
}
.login-wrapper {
width: 800px;
height: 440px;
background-color: #fff;
box-shadow: 0px 2px 50px rgba(0, 0, 0, 0.2);
border-radius: 4px;
overflow: hidden;
position: relative;
}
.login-left {
width: 100%;
height: 100%;
display: flex;
justify-content: center;
align-items: center;
transition: all 770ms cubic-bezier(0.51, 0.04, 0.12, 0.99);
overflow: hidden;
}
.login-left img {
object-fit: cover;
width: 100%;
height: 100%;
display: block;
transition: all 770ms cubic-bezier(0.51, 0.04, 0.12, 0.99);
object-position: left;
}
.open .login-left img {
transform: translateX(280px) translateZ(0);
}
.open .login-left {
transform: translateX(-400px) translateZ(0);
}
.login-right {
padding: 40px;
position: absolute;
top: 0;
right: 0;
width: 400px;
transform: translateX(400px) translateZ(0);
transition: all 770ms cubic-bezier(0.51, 0.04, 0.12, 0.99);
}
.open .login-right {
transform: translateX(0px) translateZ(0);
}
.checkbox-container {
display: flex;
margin-top: 35px;
}
.text-checkbox {
color: #aaa;
font-size: 16px;
letter-spacing: -0.00933333em;
font-weight: 300;
margin-left: 15px;
}
input[type="checkbox"] {
cursor: pointer;
margin: 0;
height: 22px;
position: relative;
width: 22px;
-webkit-appearance: none;
transition: all 180ms linear;
}
input[type="checkbox"]:before {
border: 1px solid #aaa;
background-color: #fff;
content: '';
width: 20px;
height: 20px;
display: block;
border-radius: 2px;
transition: all 180ms linear;
}
input[type="checkbox"]:checked:before {
background: linear-gradient(198.08deg, #B4458C 45.34%, #E281E7 224.21%);
border: 1px solid #C359AA;
}
input[type="checkbox"]:after {
content: '';
border: 2px solid #fff;
border-right: 0;
border-top: 0;
display: block;
height: 4px;
left: 4px;
opacity: 0;
position: absolute;
top: 6px;
-webkit-transform: rotate(-45deg);
transform: rotate(-45deg);
width: 12px;
transition: all 180ms linear;
}
input[type="checkbox"]:checked:after {
opacity: 1;
}
.button-area {
display: flex;
justify-content: space-between;
margin-top: 30px;
}
.btn {
font-family: inherit;
-webkit-appearance: none;
-moz-appearance: none;
background-color: transparent;
border: none;
border-radius: 2px;
height: 40px;
display: flex;
padding: 0 35px;
cursor: pointer;
font-size: 16px;
text-transform: uppercase;
letter-spacing: -0.00933333em;
}
.btn-primary {
color: #fff;
background: linear-gradient(198.08deg, #B4458C 45.34%, #E281E7 224.21%);
box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.1);
}
.btn-secondary {
color: #C359AA;
}
a.btn {
padding-top: 10px;
text-decoration: none;
}
box-sizing: border-box;
}
html,
body {
margin: 0;
padding: 0;
height: 100%;
}
body {
font-family: sans-serif;
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-box-pack: center;
-webkit-justify-content: center;
-ms-flex-pack: center;
justify-content: center;
-webkit-box-align: center;
-webkit-align-items: center;
-ms-flex-align: center;
align-items: center;
background: linear-gradient(243.87deg, #F28FE5 30.6%, #371933 130.6%);
overflow: hidden;
}
input {
font-family: inherit;
-webkit-appearance: none;
-moz-appearance: none;
border: 0;
border-bottom: 1px solid #AAAAAA;
font-size: 16px;
color: #000;
border-radius: 0;
}
input[type="text"],
input[type="password"] {
width: 100%;
height: 40px;
}
button,
input:focus {
outline: 0;
}
::-webkit-input-placeholder {
font-size: 16px;
font-weight: 300;
letter-spacing: -0.00933333em;
}
.form-group {
position: relative;
padding-top: 15px;
margin-top: 10px;
}
label {
position: absolute;
top: 0;
opacity: 1;
transform: translateY(5px);
color: #aaa;
font-weight: 300;
font-size: 13px;
letter-spacing: -0.00933333em;
transition: all 0.2s ease-out;
}
input:placeholder-shown+label {
opacity: 0;
transform: translateY(15px);
}
.h1 {
color: #fff;
opacity: 0.8;
font-size: 20px;
font-weight: 400;
text-transform: uppercase;
letter-spacing: 0.2405em;
transition: all 770ms cubic-bezier(0.51, 0.04, 0.12, 0.99);
text-align: center;
cursor: pointer;
position: absolute;
}
.open .h1 {
transform: translateX(200px) translateZ(0);
}
.h2 {
color: #000;
font-size: 20px;
letter-spacing: -0.00933333em;
font-weight: 600;
padding-bottom: 15px;
}
.login-wrapper {
width: 800px;
height: 440px;
background-color: #fff;
box-shadow: 0px 2px 50px rgba(0, 0, 0, 0.2);
border-radius: 4px;
overflow: hidden;
position: relative;
}
.login-left {
width: 100%;
height: 100%;
display: flex;
justify-content: center;
align-items: center;
transition: all 770ms cubic-bezier(0.51, 0.04, 0.12, 0.99);
overflow: hidden;
}
.login-left img {
object-fit: cover;
width: 100%;
height: 100%;
display: block;
transition: all 770ms cubic-bezier(0.51, 0.04, 0.12, 0.99);
object-position: left;
}
.open .login-left img {
transform: translateX(280px) translateZ(0);
}
.open .login-left {
transform: translateX(-400px) translateZ(0);
}
.login-right {
padding: 40px;
position: absolute;
top: 0;
right: 0;
width: 400px;
transform: translateX(400px) translateZ(0);
transition: all 770ms cubic-bezier(0.51, 0.04, 0.12, 0.99);
}
.open .login-right {
transform: translateX(0px) translateZ(0);
}
.checkbox-container {
display: flex;
margin-top: 35px;
}
.text-checkbox {
color: #aaa;
font-size: 16px;
letter-spacing: -0.00933333em;
font-weight: 300;
margin-left: 15px;
}
input[type="checkbox"] {
cursor: pointer;
margin: 0;
height: 22px;
position: relative;
width: 22px;
-webkit-appearance: none;
transition: all 180ms linear;
}
input[type="checkbox"]:before {
border: 1px solid #aaa;
background-color: #fff;
content: '';
width: 20px;
height: 20px;
display: block;
border-radius: 2px;
transition: all 180ms linear;
}
input[type="checkbox"]:checked:before {
background: linear-gradient(198.08deg, #B4458C 45.34%, #E281E7 224.21%);
border: 1px solid #C359AA;
}
input[type="checkbox"]:after {
content: '';
border: 2px solid #fff;
border-right: 0;
border-top: 0;
display: block;
height: 4px;
left: 4px;
opacity: 0;
position: absolute;
top: 6px;
-webkit-transform: rotate(-45deg);
transform: rotate(-45deg);
width: 12px;
transition: all 180ms linear;
}
input[type="checkbox"]:checked:after {
opacity: 1;
}
.button-area {
display: flex;
justify-content: space-between;
margin-top: 30px;
}
.btn {
font-family: inherit;
-webkit-appearance: none;
-moz-appearance: none;
background-color: transparent;
border: none;
border-radius: 2px;
height: 40px;
display: flex;
padding: 0 35px;
cursor: pointer;
font-size: 16px;
text-transform: uppercase;
letter-spacing: -0.00933333em;
}
.btn-primary {
color: #fff;
background: linear-gradient(198.08deg, #B4458C 45.34%, #E281E7 224.21%);
box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.1);
}
.btn-secondary {
color: #C359AA;
}
a.btn {
padding-top: 10px;
text-decoration: none;
}
JS скрипт отвечающий за появление формы при клике по заголовку:
Код
var openLoginRight = document.querySelector('.h1');
var loginWrapper = document.querySelector('.login-wrapper');
openLoginRight.addEventListener('click', function() {
loginWrapper.classList.toggle('open');
});
var loginWrapper = document.querySelector('.login-wrapper');
openLoginRight.addEventListener('click', function() {
loginWrapper.classList.toggle('open');
});
Добавлять комментарии могут только зарегистрированные пользователи.
Поделись с друзьями: