Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix routing and validations #310

Open
wants to merge 49 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
49 commits
Select commit Hold shift + click to select a range
1a4dac6
create header and footer component for home
edsaur May 1, 2024
3e3fd18
include the header and footer here
edsaur May 1, 2024
6e8886c
remove reviews nav-link
edsaur May 1, 2024
069f236
Fix indentation
edsaur May 1, 2024
526f31d
Add apache configurations
edsaur May 7, 2024
5f0da27
Add Apache Config for routing
edsaur May 8, 2024
d0f5293
replace db import with routing codes
edsaur May 8, 2024
0ce0331
add the database importing here
edsaur May 8, 2024
d1db67c
transfer some php front end files here
edsaur May 8, 2024
9c35890
add the processes here
edsaur May 8, 2024
d00b759
add ajax to registration
edsaur May 8, 2024
a4fb393
remove whitespaces
edsaur May 8, 2024
704c8f2
put styling
edsaur May 8, 2024
7396b29
transfer the images here
edsaur May 8, 2024
2cc9502
fix routing
edsaur May 8, 2024
c381b8a
replace password
edsaur May 8, 2024
e7c7e30
deleted files
edsaur May 8, 2024
5d274e1
remove inline css and errors and replace paths
edsaur May 14, 2024
7dbed65
add login css here
edsaur May 14, 2024
a452bda
initial commit
edsaur May 14, 2024
112c59e
add new validation and process to login
edsaur May 15, 2024
b0869e6
add legacy login process code here
edsaur May 15, 2024
0807b45
config getting all data
edsaur May 15, 2024
59acd7e
remove action and method in form
edsaur May 15, 2024
e8ccb58
add ajax process to form
edsaur May 15, 2024
af5c114
add styling
edsaur May 15, 2024
1a1b04d
fix validation
edsaur May 16, 2024
27c6e96
add session to login
edsaur May 16, 2024
be1ffd7
add logout process here
edsaur May 16, 2024
ea0ba30
add checkers if user is logged in
edsaur May 16, 2024
f66a268
change the redirect
edsaur May 16, 2024
939f5b1
add logout in routes
edsaur May 16, 2024
0dd174e
delete item
edsaur May 16, 2024
acc8654
add new contributor in the documentation
edsaur May 16, 2024
837ddf3
add new database connection and fix routing
edsaur May 16, 2024
ac6f76a
added a document referrer if login is successful
edsaur May 16, 2024
a32dee9
added a new event for a button
edsaur May 16, 2024
ae1abc5
add new styling
edsaur May 16, 2024
34b52b3
add styling for a button
edsaur May 16, 2024
35c4318
add a button
edsaur May 16, 2024
341171e
add a button
edsaur May 16, 2024
159adbd
adjust review
edsaur Jul 2, 2024
44cead5
add new routes
edsaur Jul 3, 2024
c40c421
add admin styles here
edsaur Jul 3, 2024
395c723
Add a default 404 page
edsaur Jul 3, 2024
a213b3f
add the staff/admin view pages here
edsaur Jul 3, 2024
8da92d3
edit the route of the dashHeader and check login
edsaur Jul 3, 2024
6cf62d6
reposition to the top page the call to require config file
edsaur Jul 3, 2024
c10e328
delete items
edsaur Jul 3, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .htaccess
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
php_value display_errors 1

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php [L]
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,3 +81,4 @@
| Bryan | https://github.com/BryanTheLai |
| Yong | https://github.com/ahhyang |
| Kevin | https://github.com/kevin07212004 |
| Edzer | https://github.com/edsaur |
2 changes: 1 addition & 1 deletion adminSide/config.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php // Rememeber to change the username,password and database name to acutal values
define('DB_HOST','localhost');
define('DB_USER','root');
define('DB_PASS','');
define('DB_PASS','root');
define('DB_NAME','restaurantDB');

//Create Connection
Expand Down
3 changes: 0 additions & 3 deletions adminSide/panel/pos-panel.php

This file was deleted.

Binary file added assets/image/BurgerGrilling.mp4
Binary file not shown.
File renamed without changes
85 changes: 85 additions & 0 deletions css/login.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
.login-container {
padding: 50px; /* Adjust the padding as needed */
border-radius: 10px; /* Add rounded corners */
margin: 100px auto; /* Center the container horizontally */
max-width: 500px; /* Set a maximum width for the container */
}

body {
font-family: 'Montserrat', sans-serif;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
margin: 0; /* Remove default margin */
background-color:black;
background-image: url('/assets/image/loginBackground.jpg'); /* Set the background image path */
background-size: cover;
background-position: center;
background-repeat: no-repeat;
background-attachment: fixed;
color: white;
}

.login_wrapper {
width: 400px; /* Adjust the container width as needed */
padding: 20px;
}

h2 {
text-align: center;
font-family: 'Montserrat', serif;
}

p {
font-family: 'Montserrat', serif;
}

#registration-link {
font-family: Arial, Helvetica, sans-serif;
margin-top:1em;
color:white;
}

.form-group {
margin-bottom: 15px; /* Add space between form elements */
}

::placeholder {
font-size: 12px; /* Adjust the font size as needed */
}

.text-danger{
font-size: 13px;
}


.msg-field:empty{
display:none;
}

.form-group {
margin-bottom: 15px; /* Add space between form elements */
}

::placeholder {
font-size: 12px; /* Adjust the font size as needed */
}

/* Add flip animation class to all Font Awesome icons */
.fa-flip {
animation: fa-flip 3s infinite;
}

/* Keyframes for the flip animation */
@keyframes fa-flip {
0% {
transform: scale(1) rotateY(0);
}
50% {
transform: scale(1.2) rotateY(180deg);
}
100% {
transform: scale(1) rotateY(360deg);
}
}
22 changes: 22 additions & 0 deletions css/pos.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
.center-middle {
display: flex;
justify-content: center;
align-items: center;
text-align: center;
min-height: 100vh;
}

/* Add your other styles here */
#item-select-section {
/* Add any styling specific to the item-select-section */
max-width: 40rem; /* You can adjust this value */
padding: 1rem; /* Add padding as needed */
}

#cart-section {
/* Add any styling specific to the cart-section */
max-width: 60rem; /* You can adjust this value */
max-height: 60rem;
padding: 1rem; /* Add padding as needed */

}
15 changes: 15 additions & 0 deletions css/stars.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
.star-rating {
margin: 10px 0;
display: inline-block;
}
.star-rating li {
padding: 0;
}
.star-rating i {
font-size: 3em;
color: #ffc000;
}
.list-inline-item {
display: inline-block;
list-style-type: none;
}
Loading