microserviciile de register, login finalizate

This commit is contained in:
Cerbu Andrei Mihnea
2023-06-15 22:21:53 +03:00
parent a739a66ae4
commit 4e585ba278
159 changed files with 4775 additions and 1747 deletions
+148
View File
@@ -0,0 +1,148 @@
*{
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Josefin Sans', sans-serif;
}
html,
body{
height: 100%;
}
body{
background-image: url("../Images/background/background.jpg");
background-size: cover;
background-position: center;
background-repeat: no-repeat;
background-attachment: fixed;
}
body{
display: flex;
flex-direction: column;
justify-content: space-evenly;
align-items: center;
}
h1{
color: white;
text-shadow:
-1px -1px 0 #000,
0 -1px 0 #000,
1px -1px 0 #000,
1px 0 0 #000,
1px 1px 0 #000,
0 1px 0 #000,
-1px 1px 0 #000,
-1px 0 0 #000;
}
.hr1{
width: 70%;
}
.Title{
margin: 3vh;
margin-top: 0;
font-size: 3rem;
}
input, button{
margin: 1rem;
margin-left: 0;
margin-right: 0;
background-color: #60FF8C;
border: 0.1em solid black;
border-radius: 20px;
padding: 1vh;
padding-left: 5vh;
padding-right: 5vh;
min-width: 100%;
cursor: default;
}
button{
background-color: #FF5555
}
button:hover{
background-color: #FF2B2B;
cursor: pointer;
}
.Inputs{
display: flex;
flex-direction: column;
}
.Inputs > *, button{
padding: 1rem;
}
input[type="radio"]{
margin:0;
}
input:focus{
outline: none;
}
.LoginButtons{
width: 70%;
}
.LoginForm{
display: flex;
flex-direction: column;
justify-content: center;
width: 100%;
}
.errorStyle{
text-align: center;
color: white;
}
.LoginButtons hr{
width:100%;
}
.BigContainer{
background-color: rgba(0, 0, 0, 0.5);
border-radius: 20px;
position: fixed;
display: flex;
flex-direction: column;
align-items: center;
padding: 2rem;
transform: scale(1);
flex: 100%;
width:50%;
}
@media screen and (max-width: 800px){
*{
overflow: hidden;
}
.BigContainer{
margin-top: 5vh;
margin-bottom: 5vh;
min-width: 70%;
transform: scale(1);
}
.Inputs > *{
width: 100%;
}
h1{
font-size: 1rem;
text-align: center;
}
.LoginButtons{
width:100%;
}
.hr1{
width:100%;
}
}
+100
View File
@@ -0,0 +1,100 @@
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Josefin Sans', sans-serif;
}
html,
body {
height: 100%;
}
body {
background-image: url("../Images/background/background.jpg");
background-size: cover;
background-position: center;
background-repeat: no-repeat;
background-attachment: fixed;
}
body {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}
h1, h3 {
color: white;
text-shadow: -1px -1px 0 #000, 0 -1px 0 #000, 1px -1px 0 #000, 1px 0 0 #000, 1px 1px 0 #000, 0 1px 0 #000, -1px 1px 0 #000, -1px 0 0 #000;
}
.Title {
margin: 5vh;
font-size: 3rem;
}
button {
margin: 1rem;
background-color: #60FF8C;
border: 0.1em solid black;
border-radius: 20px;
padding: 1vh;
padding-left: 5vh;
padding-right: 5vh;
max-width: 100%;
cursor: default;
width: 100%;
}
button:hover {
margin: 1rem;
background-color: #FF5555;
border: 0.1em solid black;
border-radius: 20px;
padding: 1vh;
padding-left: 5vh;
padding-right: 5vh;
max-width: 100%;
cursor: pointer;
width: 100%;
}
.RegisterButton {
margin-bottom: 0;
}
.RegisterButton:hover {
margin-bottom: 0;
cursor: pointer;
}
.LoginButtons {
display: flex;
flex-direction: column;
align-items: center;
margin-bottom: 0;
margin-top: 0;
}
.BigContainer {
position: fixed;
display: flex;
flex-direction: column;
align-items: center;
justify-content: space-between;
transform: scale(1.5);
flex: 100%;
}
@media screen and (max-width: 888px) {
.BigContainer {
width: 30%;
}
h1, h3 {
font-size: 1rem;
text-align: center;
}
}
+28
View File
@@ -0,0 +1,28 @@
<?php
use app\core\Application;
$pathToCSS = "/views/layouts/CSS/styleAuth.css";
?>
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" type="text/css" href=<?php echo $pathToCSS ?> />
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Josefin+Sans&display=swap" rel="stylesheet">
<title><?php echo Application::$app->view->getTitle()?></title>
</head>
<body>
<div class="BigContainer">
<h1 class="Title"><?php echo Application::$app->view->getTitle()?></h1>
<div class="LoginForm">
{{content}}
</div>
</div>
</body>
</html>
+28
View File
@@ -0,0 +1,28 @@
<?php $pathToCSS = "/views/layouts/CSS/styleMain.css";?>
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, height=device-height, initial-scale=1">
<link rel="stylesheet" type="text/css" href=<?php echo $pathToCSS ?>>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Josefin+Sans&display=swap" rel="stylesheet">
<title>Know Your Food.</title>
</head>
<body>
<div class="BigContainer">
<h1 class="Title">Know Your Food.</h1>
<div class="LoginButtons">
<h3>If you have an account already</h3>
<button type="button" class="LoginButton" onclick="location.href='login'">Login</button>
<h3>or</h3>
<button type="button" class="RegisterButton" onclick="location.href='register'">Register</button>
</div>
</div>
</body>
</html>
Binary file not shown.

After

Width:  |  Height:  |  Size: 71 KiB

Binary file not shown.
Binary file not shown.

After

Width:  |  Height:  |  Size: 87 KiB

Binary file not shown.
Binary file not shown.

After

Width:  |  Height:  |  Size: 49 KiB

Binary file not shown.
Binary file not shown.

After

Width:  |  Height:  |  Size: 3.9 KiB

Binary file not shown.
Binary file not shown.

After

Width:  |  Height:  |  Size: 417 KiB

Binary file not shown.
Binary file not shown.

After

Width:  |  Height:  |  Size: 312 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.
Binary file not shown.
Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.5 KiB

Binary file not shown.
+5
View File
@@ -0,0 +1,5 @@
recipe1 - chilli pork
recipe2 - garlic & paprika chicken
recipe3 - garlic butter chicken
recipe4 - Marry Me Chicken
recipe5 - Teriyaki Chicken Noodle
Binary file not shown.

After

Width:  |  Height:  |  Size: 442 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 188 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 268 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 227 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 426 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 197 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 130 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 207 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 452 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 164 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1011 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 139 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 163 KiB

Binary file not shown.
-27
View File
@@ -1,27 +0,0 @@
<?php use app\core\Application ?>
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Bootstrap demo</title>
</head>
<body>
<div class="container">
<?php if(Application::$app->session->getFlash('success')): ?>
<div class="alert alert-success">
<?php
echo Application::$app->session->getFlash('success');
?>
</div>
<?php endif; ?>
{{content}}
</div>
</body>
</html>
-60
View File
@@ -1,60 +0,0 @@
<?php
use app\core\Application;
?>
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title><?php echo $this->title; ?></title>
</head>
<body>
<nav class="navbar navbar-expand-lg bg-body-tertiary">
<div class="container-fluid">
<a class="navbar-brand" href="#">Navbar</a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse"
data-bs-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false"
aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav me-auto mb-2 mb-lg-0">
<li class="nav-item">
<a class="nav-link active" aria-current="page" href="/knowyourfood/home">Home</a>
</li>
<li class="nav-item">
<a class="nav-link" href="/knowyourfood/contact">contact</a>
</li>
</ul>
<ul class="navbar-nav me-auto mb-2 mb-lg-0">
<li class="nav-item">
<a class="nav-link active" aria-current="page" href="/knowyourfood/login">Login</a>
</li>
<li class="nav-item">
<a class="nav-link" href="/knowyourfood/register">Register</a>
</li>
<li class="nav-item">
<a class="nav-link" href="/knowyourfood/profile">Profile</a>
</li>
</ul>
</div>
</div>
</nav>
<div class="container">
<?php
$flashMessage = Application::$app->session->getFlash('success');
if($flashMessage){
echo $flashMessage;
}
?>
{{content}}
</div>
</body>
</html>