Basic styling of the login page

This commit is contained in:
bad 2021-11-26 10:45:44 +01:00
parent 08ecbe31da
commit adf94ac2a1
5 changed files with 56 additions and 23 deletions

View File

@ -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
View 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;
}
}
}

View File

@ -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>

View File

@ -1,31 +1,35 @@
@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>
<form method="post">
<input type="email" name="email">
<input type="password" name="password">
<input type="submit">
@csrf
</form>
</div>
<div>
<form method="post" action="{{ url("register") }}">
<!-- TODO validation in js !-->
<input type="email" name="email" placeholder="email">
<input type="text" name="name" placeholder="Imie">
<input type="password" name="password" placeholder="Hasło">
<input type="password" name="repeat-password" placeholder="Powtórz hasło">
<input type="submit">
@csrf
</form>
<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">
<input type="submit">
@csrf
</form>
</div>
<div>
<h1> Zarejstruj się </h1>
<form method="post" action="{{ url("register") }}">
<!-- TODO validation in js !-->
<input type="email" name="email" placeholder="email">
<input type="text" name="name" placeholder="Imie">
<input type="password" name="password" placeholder="Hasło">
<input type="password" name="repeat-password" placeholder="Powtórz hasło">
<input type="submit">
@csrf
</form>
</div>
</div>
</body>
</html>

3
webpack.mix.js vendored
View File

@ -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"
);