Basic styling of the login page
This commit is contained in:
parent
08ecbe31da
commit
adf94ac2a1
5 changed files with 56 additions and 23 deletions
1
resources/scss/app.scss
vendored
1
resources/scss/app.scss
vendored
|
@ -38,6 +38,7 @@ nav .fa {
|
|||
|
||||
main {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
width: min(max(90vw,1080px), 100%);
|
||||
background-color: beige;
|
||||
flex-grow: 1;
|
||||
|
|
13
resources/scss/login.scss
vendored
Normal file
13
resources/scss/login.scss
vendored
Normal file
|
@ -0,0 +1,13 @@
|
|||
.login-register-container {
|
||||
display: flex;
|
||||
width: 100%;
|
||||
justify-content: space-around;
|
||||
flex-wrap: wrap;
|
||||
& div {
|
||||
&, & form {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -16,6 +16,18 @@
|
|||
</div>
|
||||
</nav>
|
||||
<main>
|
||||
<div class="alerts">
|
||||
@if(Session::has('success'))
|
||||
<div class="alert alert-success">
|
||||
{{ Session::get('success') }}
|
||||
</div>
|
||||
@endif
|
||||
@foreach($errors->all() as $message)
|
||||
<div class="alert alert-error">
|
||||
{{ $message }}
|
||||
</div>
|
||||
@endforeach
|
||||
</div>
|
||||
@yield('main')
|
||||
</main>
|
||||
|
||||
|
|
|
@ -1,14 +1,16 @@
|
|||
@extends('layouts.app')
|
||||
|
||||
@push('head')
|
||||
<link rel="stylesheet" href="{{ mix("css/login.css") }}">
|
||||
@endpush
|
||||
|
||||
@section('title', "Sklep")
|
||||
|
||||
@section('main')
|
||||
@if(Session::has('success'))
|
||||
<div class="alert alert-success">
|
||||
{{ Session::get('success') }}
|
||||
</div>
|
||||
@endif
|
||||
<div>
|
||||
|
||||
<div class="login-register-container">
|
||||
<div class="login-register-form">
|
||||
<h1> Zaloguj się </h1>
|
||||
<form method="post">
|
||||
<input type="email" name="email">
|
||||
<input type="password" name="password">
|
||||
|
@ -17,6 +19,7 @@
|
|||
</form>
|
||||
</div>
|
||||
<div>
|
||||
<h1> Zarejstruj się </h1>
|
||||
<form method="post" action="{{ url("register") }}">
|
||||
<!-- TODO validation in js !-->
|
||||
<input type="email" name="email" placeholder="email">
|
||||
|
@ -27,6 +30,7 @@
|
|||
@csrf
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@endsection()
|
||||
|
|
3
webpack.mix.js
vendored
3
webpack.mix.js
vendored
|
@ -14,4 +14,7 @@ const mix = require("laravel-mix");
|
|||
mix.js("resources/js/app.js", "public/js").sass(
|
||||
"resources/scss/app.scss",
|
||||
"public/css"
|
||||
).sass(
|
||||
"resources/scss/login.scss",
|
||||
"public/css"
|
||||
);
|
||||
|
|
Loading…
Reference in a new issue