Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
L
laravel-test
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Александр Чаплыгин
laravel-test
Commits
9d2e8278
Commit
9d2e8278
authored
Jun 19, 2023
by
Александр Чаплыгин
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add styles
parent
ee512b06
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
132 additions
and
64 deletions
+132
-64
project.php
src/config/project.php
+1
-1
common.css
src/public/assets/css/common.css
+39
-0
style.css
src/public/assets/css/style.css
+1
-2
login.js
src/public/assets/js/login.js
+7
-0
alerts.blade.php
src/resources/views/layouts/alerts.blade.php
+6
-7
layout.blade.php
src/resources/views/layouts/layout.blade.php
+7
-2
styles.blade.php
src/resources/views/layouts/styles.blade.php
+1
-0
create.blade.php
src/resources/views/user/create.blade.php
+33
-28
login.blade.php
src/resources/views/user/login.blade.php
+37
-24
No files found.
src/config/project.php
View file @
9d2e8278
...
...
@@ -3,7 +3,7 @@
return
[
'name'
=>
'Reblum'
,
'title'
=>
'Reblum - portrait retouch app'
,
'minificate_static'
=>
tru
e
,
'minificate_static'
=>
fals
e
,
'empty_password'
=>
'100'
,
];
src/public/assets/css/common.css
0 → 100644
View file @
9d2e8278
.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
src/public/assets/css/style.css
View file @
9d2e8278
...
...
@@ -1939,4 +1939,4 @@ section {
background
:
#3194db
;
color
:
#fff
;
text-decoration
:
none
;
}
\ No newline at end of file
}
src/public/assets/js/login.js
0 → 100644
View file @
9d2e8278
(
function
()
{
"use strict"
;
console
.
log
(
'AAA login page'
);
})()
\ No newline at end of file
src/resources/views/layouts/alerts.blade.php
View file @
9d2e8278
<div
class=
"
mt-5
"
>
<div
class=
"
b-alerts row justify-content-center
"
>
@if(session('success'))
<div
class=
"alert alert-success"
>
<div
class=
"alert alert-success
col-4
"
>
{{ session('success') }}
</div>
@endif
@if(session('error'))
<div
class=
"alert alert-danger"
>
<div
class=
"alert alert-danger
col-4
"
>
{{ session('error') }}
</div>
@endif
@if ($errors->any())
<div
class=
"alert alert-danger"
>
<div
class=
"alert alert-danger
col-4
"
>
<ul>
@foreach ($errors->all() as $error)
<li>
{{ $error }}
</li>
...
...
@@ -21,4 +21,4 @@
</ul>
</div>
@endif
</div>
\ No newline at end of file
</div>
src/resources/views/layouts/layout.blade.php
View file @
9d2e8278
...
...
@@ -28,8 +28,10 @@
<!-- ======= Header ======= -->
<header
id=
"header"
class=
"fixed-top"
>
<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
<a
class=
""
href=
"{{ url('settings') }}"
>
Налаштування
</a>
<a
class=
""
href=
"{{ route('logout') }}"
>
Вийти
</a>
...
...
@@ -38,8 +40,10 @@
<a
class=
""
href=
"{{ route('login.create') }}"
>
Вхiд
</a>
<a
class=
""
href=
"{{ route('register.create') }}"
>
Регiстрацiя
</a>
@endguest
</div>
@yield('head_content')
</div>
</header>
<!-- End Header -->
...
...
@@ -58,6 +62,7 @@
<!-- JS Files -->
@include('layouts.scripts')
@yield('page_scripts')
</body>
...
...
src/resources/views/layouts/styles.blade.php
View file @
9d2e8278
...
...
@@ -12,6 +12,7 @@
<
link
href
=
"assets/vendor/remixicon/remixicon.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/common.css"
rel
=
"stylesheet"
>
@
endif
...
...
src/resources/views/user/create.blade.php
View file @
9d2e8278
...
...
@@ -6,40 +6,45 @@
<
section
id
=
"register"
class
="
register
">
<div class='container'>
<h4>Регiстрацiя</h4>
<form method="
post
" action="
{{
route
(
'register.store'
)
}}
">
<div class="
row
justify
-
content
-
center
">
<div class="
col
-
4
text
-
center
">
@csrf
<h4>Регiстрацiя</h4>
<div class="
form
-
group
">
<label for='name'>Ваше имя</label>
<input class="
form
-
control
" type="
text
" id="
name
" name="
name
" value="
{{
old
(
'name'
)
}}
">
</div>
<form method="
post
" action="
{{
route
(
'register.store'
)
}}
">
<div class="
form
-
group
">
<label for='email'>Email address</label>
<input class="
form
-
control
" type="
email
" id="
email
" name="
email
" value="
{{
old
(
'email'
)
}}
">
</div>
<div class="
form
-
group
">
<label for='password'>Password</label>
<input class="
form
-
control
" type="
password
" id="
password
" name="
password
">
</div>
<div class="
form
-
group
">
<label for='password_confirmation'>Confirm password</label>
<input class="
form
-
control
" type="
password
" id="
password_confirmation
" name="
password_confirmation
">
</div>
<div class="
form
-
group
">
<button type="
submit
" class="
btn
btn
-
primary
">Send</button>
</div>
@csrf
<div class="
form
-
group
">
<label for='name'>Ваше имя</label>
<input class="
form
-
control
" type="
text
" id="
name
" name="
name
" value="
{{
old
(
'name'
)
}}
">
</div>
</form>
<div class="
form
-
group
">
<label for='email'>Email address</label>
<input class="
form
-
control
" type="
email
" id="
email
" name="
email
" value="
{{
old
(
'email'
)
}}
">
</div>
<div class="
form
-
group
">
<label for='password'>Password</label>
<input class="
form
-
control
" type="
password
" id="
password
" name="
password
">
</div>
<div class="
form
-
group
">
<label for='password_confirmation'>Confirm password</label>
<input class="
form
-
control
" type="
password
" id="
password_confirmation
" name="
password_confirmation
">
</div>
<div class="
form
-
group
">
<button type="
submit
" class="
btn
btn
-
primary
">Send</button>
</div>
</form>
<a class="" href="
{{
route
(
'login.create'
)
}}
">Вхiд</a>
</div>
</div>
</div>
</section>
...
...
src/resources/views/user/login.blade.php
View file @
9d2e8278
...
...
@@ -2,38 +2,51 @@
@
section
(
'title'
)
Авторизацiя
@
endsection
@
section
(
'page_scripts'
)
@
if
(
!
config
(
'project.minificate_static'
))
<
script
src
=
"assets/js/login.js"
></
script
>
@
endif
@
endsection
@
section
(
'content'
)
<
section
>
<
div
class
='
container
'>
<h4>Авторизацiя</h4>
<form method="post" action="{{ route('
login
') }}">
<div class="row justify-content-center">
<div class="col-4 text-center">
@csrf
<h4>Авторизацiя</h4>
<form method="post" action="{{ route('
login
') }}">
@csrf
<div class="form-group">
<label for='
email
'>Email address</label>
<input class="form-control" type="email" id="email" name="email" value="{{ old('
email
') }}">
</div>
<div class="form-group">
<label for='
password
'>Password</label>
<input class="form-control" type="password" id="password" name="password">
</div>
<div class="form-group">
<button type="submit" class="btn btn-primary">Войти</button>
</div>
<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)
</div>
</form>
<div class="form-group">
<label for='
email
'>Email address</label>
<input class="form-control" type="email" id="email" name="email" value="{{ old('
email
') }}">
</div>
<div class="form-group">
<label for='
password
'>Password</label>
<input class="form-control" type="password" id="password" name="password">
</div>
<div class="form-group">
<button type="submit" class="btn btn-primary">Войти</button>
</div>
<a class="" href="{{ route('
login
.
google
') }}">Войти через Google</a><br>
@signInWithApple("black", true, "sign-in", 10)
</form>
<a class="" href="{{ route('
register
.
create
'
)
}}
">Регiстрацiя</a>
</div>
</div>
</section>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment