Gitlab@Informatics

Skip to content
Snippets Groups Projects
Commit b5cfb13e authored by 65160394's avatar 65160394
Browse files

Project Round 2

parent bdaf3416
No related branches found
No related tags found
No related merge requests found
...@@ -80,7 +80,7 @@ exports.postLogin = async (req, res) => { ...@@ -80,7 +80,7 @@ exports.postLogin = async (req, res) => {
exports.Logout = (req, res) => { exports.Logout = (req, res) => {
req.session.destroy(() => { req.session.destroy(() => {
res.redirect('/login'); res.redirect('/');
}); });
}; };
/* Global Styles */
body {
font-family: 'Arial', sans-serif;
background-color: #f0f2f5;
margin: 0;
padding: 0;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
}
.login-container {
background-color: #fff;
border-radius: 8px;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
padding: 30px;
width: 100%;
max-width: 400px;
text-align: center;
}
h2 {
font-size: 24px;
margin-bottom: 20px;
color: #333;
}
/* Error Message Styling */
.error-message {
background-color: #f8d7da;
color: #721c24;
padding: 10px;
border-radius: 5px;
margin-bottom: 15px;
font-size: 14px;
}
/* Input Group */
.input-group {
margin-bottom: 20px;
text-align: left;
}
.input-group label {
font-size: 14px;
color: #666;
margin-bottom: 5px;
display: block;
}
.input-group input {
width: 100%;
padding: 10px;
border: 1px solid #ccc;
border-radius: 5px;
font-size: 16px;
outline: none;
transition: border-color 0.3s ease;
}
.input-group input:focus {
border-color: #007bff;
}
/* Submit Button */
button {
width: 100%;
padding: 12px;
background-color: #007bff;
color: white;
border: none;
border-radius: 5px;
font-size: 16px;
cursor: pointer;
transition: background-color 0.3s ease;
}
button:hover {
background-color: #0056b3;
}
/* Register Link */
p {
font-size: 14px;
color: #666;
}
a {
color: #007bff;
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
/* Global Styles */
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
background-color: #f7f9fc;
margin: 0;
padding: 0;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
}
.register-container {
background-color: #ffffff;
border-radius: 10px;
box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
padding: 40px;
width: 100%;
max-width: 420px;
text-align: center;
transition: transform 0.3s ease-in-out;
}
.register-container:hover {
transform: translateY(-5px);
}
h2 {
font-size: 28px;
color: #333;
margin-bottom: 20px;
font-weight: 600;
}
/* Error Message Styling */
.error-message {
background-color: #f8d7da;
color: #721c24;
padding: 12px;
border-radius: 5px;
margin-bottom: 20px;
font-size: 14px;
box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}
/* Input Group */
.input-group {
margin-bottom: 25px;
text-align: left;
display: flex;
flex-direction: column;
align-items: flex-start;
}
.input-group label {
font-size: 16px;
color: #666;
margin-bottom: 8px;
}
.input-group input {
width: 100%;
padding: 14px;
border: 1px solid #ccc;
border-radius: 8px;
font-size: 16px;
outline: none;
transition: border-color 0.3s ease, box-shadow 0.3s ease;
background-color: #f7f9fc;
}
.input-group input:focus {
border-color: #5c6bc0;
box-shadow: 0 0 10px rgba(92, 107, 192, 0.3);
}
/* Submit Button */
button {
width: 100%;
padding: 15px;
background-color: #5c6bc0;
color: white;
border: none;
border-radius: 8px;
font-size: 18px;
font-weight: 600;
cursor: pointer;
transition: background-color 0.3s ease, transform 0.2s ease;
}
button:hover {
background-color: #3f4f8c;
transform: translateY(-2px);
}
button:active {
transform: translateY(1px);
}
/* Register Link */
p {
font-size: 16px;
color: #777;
}
a {
color: #5c6bc0;
text-decoration: none;
font-weight: 600;
}
a:hover {
text-decoration: underline;
}
File moved
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
<meta charset="UTF-8"> <meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Tour Website</title> <title>Tour Website</title>
<link rel="stylesheet" href="/css/style.css"> <link rel="stylesheet" href="/css/styles.css">
</head> </head>
<body> <body>
<header> <header>
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
<meta charset="UTF-8"> <meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Login</title> <title>Login</title>
<link rel="stylesheet" href="/styles.css"> <link rel="stylesheet" href="/login.css">
</head> </head>
<body> <body>
<div class="login-container"> <div class="login-container">
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
<meta charset="UTF-8"> <meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Register</title> <title>Register</title>
<link rel="stylesheet" href="/styles.css"> <link rel="stylesheet" href="/regis.css">
</head> </head>
<body> <body>
<div class="register-container"> <div class="register-container">
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment