From f9177fd960af3d9e8c1316b4001928fc83cfb414 Mon Sep 17 00:00:00 2001
From: tharindu-dm <85168846+tharindu-dm@users.noreply.github.com>
Date: Fri, 29 Nov 2024 10:16:22 +0530
Subject: [PATCH 1/3] login page appearance change
---
app/config/database.php | 8 ++++----
app/views/Institute/InstituteDashboard.php | 2 +-
public/css/login.css | 4 +++-
3 files changed, 8 insertions(+), 6 deletions(-)
diff --git a/app/config/database.php b/app/config/database.php
index 4fb95ba..4107ea3 100644
--- a/app/config/database.php
+++ b/app/config/database.php
@@ -28,7 +28,7 @@ private function loadEnv($filePath)
}
}
- private function connect() //connecting to azure sql server
+ /*private function connect() //connecting to azure sql server
{
// Load the .env file using the method
$this->loadEnv(__DIR__ . '/.env');
@@ -45,9 +45,9 @@ private function connect() //connecting to azure sql server
} catch (PDOException $e) {
die("Connection failed: " . $e->getMessage());
}
- }
+ }*/
- /*private function connect()
+ private function connect()
{
// Load the .env file using the method
$this->loadEnv(__DIR__ . '/.env');
@@ -67,7 +67,7 @@ private function connect() //connecting to azure sql server
die("Connection failed: " . $e->getMessage());
}
}
- */
+
public function query($query, $data = []) //using sql prepared statement to avoid sql injections
{
diff --git a/app/views/Institute/InstituteDashboard.php b/app/views/Institute/InstituteDashboard.php
index 8a488d7..90d41c2 100644
--- a/app/views/Institute/InstituteDashboard.php
+++ b/app/views/Institute/InstituteDashboard.php
@@ -53,7 +53,7 @@
diff --git a/public/css/login.css b/public/css/login.css
index 855cff4..ba579a0 100644
--- a/public/css/login.css
+++ b/public/css/login.css
@@ -5,7 +5,9 @@
.creativity-section {
flex: 1;
- background: linear-gradient(135deg, #ffd700 0%, #ffaa00 100%);
+ /*background: linear-gradient(135deg, #ffd700 0%, #ffaa00 100%);*/
+ background-image: url('/Free-Write/public/images/designer-hero.webp');
+ background-size: cover;
display: flex;
align-items: center;
justify-content: center;
From 42243d451cf988cd58ac3a7386abd6dabf8e20ee Mon Sep 17 00:00:00 2001
From: tharindu-dm <85168846+tharindu-dm@users.noreply.github.com>
Date: Fri, 29 Nov 2024 10:25:16 +0530
Subject: [PATCH 2/3] CREATE COMMPETTION FRONT END VALIDATDATION
Co-authored-by: Jathukulan S
Co-authored-by: Jathukulann
---
.../publisher/creatingnewcompetition.php | 214 +++++++++++++++---
1 file changed, 177 insertions(+), 37 deletions(-)
diff --git a/app/views/publisher/creatingnewcompetition.php b/app/views/publisher/creatingnewcompetition.php
index 7bf52c7..918061e 100644
--- a/app/views/publisher/creatingnewcompetition.php
+++ b/app/views/publisher/creatingnewcompetition.php
@@ -153,13 +153,12 @@
}
.error-message {
- background-color: #ffebee;
- color: #c62828;
- padding: 1rem;
- margin-bottom: 1rem;
- border-radius: 8px;
- border: 1px solid #ef9a9a;
- }
+ color: #dc3545;
+ font-size: 0.875rem;
+ margin-top: -1rem;
+ margin-bottom: 1rem;
+ display: none;
+}
@@ -205,43 +204,184 @@
-
+
+
+
-
-
+