add styles

parent ee512b06
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
return [ return [
'name' => 'Reblum', 'name' => 'Reblum',
'title' => 'Reblum - portrait retouch app', 'title' => 'Reblum - portrait retouch app',
'minificate_static' => true, 'minificate_static' => false,
'empty_password' => '100', 'empty_password' => '100',
]; ];
.b-alerts .alert
{
position: fixed;
margin-top: 30px;
z-index: 9999;
}
.b-header-menu
{
text-align: right;
}
.btn-google
{
color: #545454;
background-color: #ffffff;
box-shadow: 0 1px 2px 1px #ddd;
}
.btn-google:focus
{
outline: 0;
box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
}
:not(.btn-check)+.btn-google:active {
border-color: transparent;
}
#sign-in-with-apple
{
display: inline !important;
padding: 10px !important;
border-color: #000 !important;
border-radius: 8px !important;
}
\ No newline at end of file
(function() {
"use strict";
console.log('AAA login page');
})()
\ No newline at end of file
<div class="mt-5"> <div class="b-alerts row justify-content-center">
@if(session('success')) @if(session('success'))
<div class="alert alert-success"> <div class="alert alert-success col-4">
{{ session('success') }} {{ session('success') }}
</div> </div>
@endif @endif
@if(session('error')) @if(session('error'))
<div class="alert alert-danger"> <div class="alert alert-danger col-4">
{{ session('error') }} {{ session('error') }}
</div> </div>
@endif @endif
@if ($errors->any()) @if ($errors->any())
<div class="alert alert-danger"> <div class="alert alert-danger col-4">
<ul> <ul>
@foreach ($errors->all() as $error) @foreach ($errors->all() as $error)
<li>{{ $error }}</li> <li>{{ $error }}</li>
......
...@@ -28,8 +28,10 @@ ...@@ -28,8 +28,10 @@
<!-- ======= Header ======= --> <!-- ======= Header ======= -->
<header id="header" class="fixed-top"> <header id="header" class="fixed-top">
<div class="container d-flex align-items-center justify-content-between"> <div class="container d-flex align-items-center justify-content-between">
<h1 class="logo"><a href="{{ route('home') }}">{{ config('project.name') }}</a></h1>
<h1 class="logo col-4"><a href="{{ route('home') }}">{{ config('project.name') }}</a></h1>
<div class="b-header-menu col-4">
@auth @auth
<a class="" href="{{ url('settings') }}">Налаштування</a> <a class="" href="{{ url('settings') }}">Налаштування</a>
<a class="" href="{{ route('logout') }}">Вийти</a> <a class="" href="{{ route('logout') }}">Вийти</a>
...@@ -38,9 +40,11 @@ ...@@ -38,9 +40,11 @@
<a class="" href="{{ route('login.create') }}">Вхiд</a> <a class="" href="{{ route('login.create') }}">Вхiд</a>
<a class="" href="{{ route('register.create') }}">Регiстрацiя</a> <a class="" href="{{ route('register.create') }}">Регiстрацiя</a>
@endguest @endguest
</div>
@yield('head_content') @yield('head_content')
</div> </div>
</header><!-- End Header --> </header><!-- End Header -->
...@@ -58,6 +62,7 @@ ...@@ -58,6 +62,7 @@
<!-- JS Files --> <!-- JS Files -->
@include('layouts.scripts') @include('layouts.scripts')
@yield('page_scripts')
</body> </body>
......
...@@ -12,6 +12,7 @@ ...@@ -12,6 +12,7 @@
<link href="assets/vendor/remixicon/remixicon.css" rel="stylesheet"> <link href="assets/vendor/remixicon/remixicon.css" rel="stylesheet">
<link href="assets/vendor/swiper/swiper-bundle.min.css" rel="stylesheet"> <link href="assets/vendor/swiper/swiper-bundle.min.css" rel="stylesheet">
<link href="assets/css/style.css" rel="stylesheet"> <link href="assets/css/style.css" rel="stylesheet">
<link href="assets/css/common.css" rel="stylesheet">
@endif @endif
......
...@@ -7,6 +7,9 @@ ...@@ -7,6 +7,9 @@
<section id="register" class="register"> <section id="register" class="register">
<div class='container'> <div class='container'>
<div class="row justify-content-center">
<div class="col-4 text-center">
<h4>Регiстрацiя</h4> <h4>Регiстрацiя</h4>
<form method="post" action="{{ route('register.store') }}"> <form method="post" action="{{ route('register.store') }}">
...@@ -39,7 +42,9 @@ ...@@ -39,7 +42,9 @@
</form> </form>
<a class="" href="{{ route('login.create') }}">Вхiд</a> </div>
</div>
</div> </div>
</section> </section>
......
...@@ -2,11 +2,21 @@ ...@@ -2,11 +2,21 @@
@section('title')Авторизацiя @endsection @section('title')Авторизацiя @endsection
@section('page_scripts')
@if(!config('project.minificate_static'))
<script src="assets/js/login.js"></script>
@endif
@endsection
@section('content') @section('content')
<section> <section>
<div class='container'> <div class='container'>
<div class="row justify-content-center">
<div class="col-4 text-center">
<h4>Авторизацiя</h4> <h4>Авторизацiя</h4>
<form method="post" action="{{ route('login') }}"> <form method="post" action="{{ route('login') }}">
...@@ -27,13 +37,16 @@ ...@@ -27,13 +37,16 @@
<button type="submit" class="btn btn-primary">Войти</button> <button type="submit" class="btn btn-primary">Войти</button>
</div> </div>
<a class="" href="{{ route('login.google') }}">Войти через Google</a><br> <a class="btn btn-google" href="{{ route('login.google') }}"><img src="https://img.icons8.com/color/16/000000/google-logo.png"> Sign in with Google</a>
<div>
@signInWithApple("black", true, "sign-in", 10) @signInWithApple("black", true, "sign-in", 10)
</div>
</form> </form>
<a class="" href="{{ route('register.create') }}">Регiстрацiя</a> </div>
</div>
</div> </div>
</section> </section>
......
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